loop4: detected capacity change from 0 to 32768
==================================================================
BUG: KASAN: slab-out-of-bounds in dtSplitPage+0x1bce/0x36a0
Write of size 1 at addr ffff888166b1b0c0 by task syz.4.3831/19850

CPU: 1 UID: 0 PID: 19850 Comm: syz.4.3831 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_mkdir+0x76b/0xb00
 vfs_mkdir+0x406/0x620
 filename_mkdirat+0x285/0x510
 __se_sys_mkdirat+0x35/0x150
 do_syscall_64+0x174/0x580
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f951539cf47
Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 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:00007f9516213e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f9516213ee0 RCX: 00007f951539cf47
RDX: 00000000000001ff RSI: 0000200000000280 RDI: 00000000ffffff9c
RBP: 00002000000007c0 R08: 0000200000000d40 R09: 0000000000000000
R10: 00002000000007c0 R11: 0000000000000246 R12: 0000200000000280
R13: 00007f9516213ea0 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Allocated by task 1:
 kasan_save_track+0x3e/0x80
 __kasan_slab_alloc+0x6c/0x80
 kmem_cache_alloc_noprof+0x2a0/0x5f0
 __kernfs_new_node+0xe6/0x980
 kernfs_new_node+0xea/0x140
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x237/0x300
 sysfs_merge_group+0x183/0x320
 dpm_sysfs_add+0xd2/0x270
 device_add+0x4ca/0xb80
 tty_register_device_attr+0x422/0x950
 tty_register_driver+0x82c/0xdf0
 legacy_pty_init+0x3b2/0x5d0
 pty_init+0x9/0x20
 do_one_initcall+0x250/0x870
 do_initcall_level+0x10a/0x1a0
 do_initcalls+0x59/0xa0
 kernel_init_freeable+0x29d/0x3e0
 kernel_init+0x1d/0x1d0
 ret_from_fork+0x514/0xb70
 ret_from_fork_asm+0x1a/0x30

The buggy address belongs to the object at ffff888166b1b000
 which belongs to the cache kernfs_node_cache of size 176
The buggy address is located 16 bytes to the right of
 allocated 176-byte region [ffff888166b1b000, ffff888166b1b0b0)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x166b1b
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 057ff00000000000 ffff88816041adc0 dead000000000122 0000000000000000
raw: 0000000000000000 0000000800110011 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 5107024382, free_ts 0
 post_alloc_hook+0x1f9/0x250
 get_page_from_freelist+0x21fa/0x2270
 __alloc_frozen_pages_noprof+0x18d/0x380
 allocate_slab+0x79/0x5e0
 refill_objects+0x2d5/0x350
 __pcs_replace_empty_main+0x2bf/0x6b0
 kmem_cache_alloc_noprof+0x382/0x5f0
 __kernfs_new_node+0xe6/0x980
 kernfs_new_node+0xea/0x140
 __kernfs_create_file+0x4b/0x2e0
 sysfs_add_file_mode_ns+0x237/0x300
 sysfs_merge_group+0x183/0x320
 dpm_sysfs_add+0xd2/0x270
 device_add+0x4ca/0xb80
 tty_register_device_attr+0x422/0x950
 tty_register_driver+0x82c/0xdf0
page_owner free stack trace missing

Memory state around the buggy address:
 ffff888166b1af80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888166b1b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888166b1b080: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00
                                           ^
 ffff888166b1b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888166b1b180: 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 00
==================================================================
