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

CPU: 0 UID: 0 PID: 7732 Comm: syz.0.852 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:0x7f7fe3d9e159
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:00007f7fe4cf1028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f7fe4025fa0 RCX: 00007f7fe3d9e159
RDX: 00002000000005c0 RSI: ffffffffffffff9c RDI: 0000200000000700
RBP: 00007f7fe3e3506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7fe4026038 R14: 00007f7fe4025fa0 R15: 00007ffcc2157ee8
 </TASK>

Allocated by task 5356:
 kasan_save_track+0x3e/0x80
 __kasan_kmalloc+0x93/0xb0
 __kmalloc_noprof+0x36b/0x720
 tomoyo_commit_ok+0x29/0x1d0
 tomoyo_update_domain+0x4ea/0x7e0
 tomoyo_write_misc+0x17b/0x1d0
 tomoyo_supervisor+0xff8/0x1560
 tomoyo_env_perm+0x151/0x1f0
 tomoyo_find_next_domain+0x1332/0x1a90
 tomoyo_bprm_check_security+0x11b/0x180
 security_bprm_check+0x85/0x240
 bprm_execve+0x888/0x1590
 do_execveat_common+0x4f4/0x670
 __x64_sys_execve+0x97/0xc0
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff88810bdfa000
 which belongs to the cache kmalloc-64 of size 64
The buggy address is located 24 bytes to the right of
 allocated 40-byte region [ffff88810bdfa000, ffff88810bdfa028)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10bdfa
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 017ff00000000000 ffff8881000418c0 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000200020 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 0xd2cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 5400253051
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x2209/0x2280
 __alloc_frozen_pages_noprof+0x1fc/0x400
 allocate_slab+0x7d/0x620
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2c8/0x6c0
 __kmalloc_noprof+0x47b/0x720
 kobj_map+0x76/0x5b0
 cdev_add+0x8c/0x160
 tty_register_device_attr+0x76e/0x990
 tty_register_driver+0x868/0xe50
 ttynull_init+0x122/0x1a0
 do_one_initcall+0x250/0x870
 do_initcall_level+0x10a/0x1a0
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x29d/0x3e0
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88810bdf9f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88810bdf9f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88810bdfa000: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc
                                           ^
 ffff88810bdfa080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
 ffff88810bdfa100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
==================================================================
