loop7: detected capacity change from 0 to 32768
==================================================================
BUG: KASAN: use-after-free in dtSplitPage+0x1bce/0x36a0
Write of size 1 at addr ffff88810d022000 by task syz.7.8373/27366

CPU: 0 UID: 0 PID: 27366 Comm: syz.7.8373 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
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:0x7f5924f9e159
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:00007f5925d82028 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 00007f5925225fa0 RCX: 00007f5924f9e159
RDX: 00002000000005c0 RSI: ffffffffffffff9c RDI: 0000200000000700
RBP: 00007f592503506b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5925226038 R14: 00007f5925225fa0 R15: 00007ffce05098a8
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10d022
flags: 0x17ff00000000000(node=0|zone=2|lastcpupid=0x7ff)
raw: 017ff00000000000 ffffea00043408c8 ffff8881210418a0 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 27068, tgid 27068 (segctord), ts 870154634578
 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
 kmem_cache_alloc_noprof+0x399/0x600
 nilfs_btree_alloc_path+0x48/0x5b0
 nilfs_btree_propagate+0x70/0xcc0
 nilfs_bmap_propagate+0x7a/0x130
 nilfs_collect_file_data+0x4f/0xd0
 nilfs_segctor_apply_buffers+0x164/0x330
 nilfs_segctor_scan_file+0x712/0xf70
 nilfs_segctor_do_construct+0x1c66/0x7a70
 nilfs_segctor_construct+0x170/0x690
 nilfs_segctor_thread+0x6c9/0xdb0
page last free pid 5520 tgid 5520 ts 876698254775 stack trace:
 __free_frozen_pages+0xc93/0xd90
 __slab_free+0x274/0x2c0
 qlist_free_all+0x99/0x100
 kasan_quarantine_reduce+0x148/0x160
 __kasan_slab_alloc+0x22/0x80
 kmem_cache_alloc_node_noprof+0x354/0x610
 __alloc_skb+0x1db/0x7a0
 tcp_stream_alloc_skb+0x3f/0x580
 tcp_sendmsg_locked+0x138c/0x5400
 tcp_sendmsg+0x2f/0x50
 sock_sendmsg_nosec+0x10e/0x180
 sock_write_iter+0x2de/0x3e0
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Memory state around the buggy address:
 ffff88810d021f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff88810d021f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88810d022000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                   ^
 ffff88810d022080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88810d022100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
