==================================================================
BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1bce/0x36a0
Write of size 1 at addr ffff888112a7b040 by task syz.3.7286/4467

CPU: 0 UID: 0 PID: 4467 Comm: syz.3.7286 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 print_address_description+0x55/0x1e0
 print_report+0x58/0x70
 kasan_report+0x117/0x150
 dtSplitPage+0x1bce/0x36a0
 dtInsert+0x1080/0x5cb0
 jfs_symlink+0x8a1/0xfb0
 vfs_symlink+0x18b/0x330
 filename_symlinkat+0x1cd/0x410
 __se_sys_symlinkat+0x4e/0x2b0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd1af99e159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd1b078c028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007fd1afc25fa0 RCX: 00007fd1af99e159
RDX: 00002000000005c0 RSI: ffffffffffffff9c RDI: 0000200000000700
RBP: 00007fd1afa3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd1afc26038 R14: 00007fd1afc25fa0 R15: 00007ffe4cd70f68
 </TASK>

Allocated by task 28391:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x36b/0x720
 ima_alloc_init_template+0xa4/0x700
 ima_store_measurement+0x1d4/0x690
 process_measurement+0x15ac/0x1c10
 ima_file_check+0xe1/0x130
 security_file_post_open+0xb3/0x260
 path_openat+0x1485/0x1d60
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x115/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888112a7b000
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 0 bytes to the right of
 allocated 64-byte region [ffff888112a7b000, ffff888112a7b040)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888112a7b280 pfn:0x112a7b
flags: 0x17ff00000000200(workingset|node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000200 ffff8881000418c0 ffffea00043fb710 ffffea000449b2d0
raw: ffff888112a7b280 000000000020000f 00000000f5000000 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 12856, tgid 12856 (udevd), ts 306928513571
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x217/0x5a0
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_noprof+0x47b/0x720
 tomoyo_encode+0x2ad/0x570
 tomoyo_realpath_from_path+0x5fa/0x640
 tomoyo_path_perm+0x283/0x560
 security_inode_getattr+0x12b/0x310
 vfs_fstatat+0xb4/0x170
 __x64_sys_newfstatat+0x151/0x200
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 14830 tgid 14830 ts 306927069361 stack trace:
 __free_frozen_pages+0xc93/0xd90
 __kasan_populate_vmalloc+0x12d/0x1c0
 alloc_vmap_area+0xd1a/0x1420
 __get_vm_area_node+0x200/0x2f0
 __vmalloc_node_range_noprof+0x343/0x1540
 __vmalloc_noprof+0xd2/0x120
 bpf_prog_alloc_no_stats+0x47/0x560
 bpf_prog_alloc+0x3c/0x1a0
 bpf_prog_create_from_user+0xa7/0x440
 do_seccomp+0x793/0xdc0
 __se_sys_prctl+0x2a5/0x1910
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff888112a7af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888112a7af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888112a7b000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
                                           ^
 ffff888112a7b080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff888112a7b100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================
