Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k NILFS (loop0): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds ================================================================== BUG: KASAN: use-after-free in nilfs_set_link+0x38a/0x410 fs/nilfs2/dir.c:421 Read of size 2 at addr ffff880099403008 by task syz-executor.0/3046 CPU: 1 PID: 3046 Comm: syz-executor.0 Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x10c/0x17a lib/dump_stack.c:113 print_address_description.cold.6+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold.7+0x242/0x305 mm/kasan/report.c:396 __asan_report_load2_noabort+0x14/0x20 mm/kasan/report.c:431 nilfs_set_link+0x38a/0x410 fs/nilfs2/dir.c:421 nilfs_rename+0x467/0x7c0 fs/nilfs2/namei.c:411 vfs_rename+0xa18/0x1860 fs/namei.c:4477 do_renameat2+0x60d/0xa00 fs/namei.c:4627 __do_sys_rename fs/namei.c:4673 [inline] __se_sys_rename fs/namei.c:4671 [inline] __x64_sys_rename+0x59/0x80 fs/namei.c:4671 do_syscall_64+0xd0/0x340 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f361b3c8ea9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f361af4a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f361b4f6f80 RCX: 00007f361b3c8ea9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000020000180 RBP: 00007f361b4154a4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f361b4f6f80 R15: 00007ffff1ddd168 The buggy address belongs to the page: page:ffffea00026500c0 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfff00000000000() raw: 00fff00000000000 ffffea0002650108 ffff8800bad2ed60 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not active (free page?) Memory state around the buggy address: ffff880099402f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff880099402f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff880099403000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff880099403080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff880099403100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================