MINIX-fs: mounting unchecked file system, running fsck is recommended Process accounting resumed ================================================================== BUG: KASAN: use-after-free in add_chain fs/minix/itree_common.c:14 [inline] BUG: KASAN: use-after-free in get_branch fs/minix/itree_common.c:52 [inline] BUG: KASAN: use-after-free in get_block+0x110f/0x1380 fs/minix/itree_common.c:160 Read of size 2 at addr ffff888085660644 by task syz-executor990/7163 CPU: 1 PID: 7163 Comm: syz-executor990 Not tainted 5.7.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 mm/kasan/report.c:382 __kasan_report.cold+0x20/0x38 mm/kasan/report.c:511 kasan_report+0x33/0x50 mm/kasan/common.c:625 add_chain fs/minix/itree_common.c:14 [inline] get_branch fs/minix/itree_common.c:52 [inline] get_block+0x110f/0x1380 fs/minix/itree_common.c:160 minix_get_block+0xe5/0x110 fs/minix/inode.c:376 __block_write_begin_int+0x490/0x1b00 fs/buffer.c:2013 __block_write_begin fs/buffer.c:2063 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2122 minix_write_begin+0x35/0xe0 fs/minix/inode.c:412 generic_perform_write+0x20a/0x4e0 mm/filemap.c:3302 __generic_file_write_iter+0x24c/0x610 mm/filemap.c:3431 generic_file_write_iter+0x3f3/0x630 mm/filemap.c:3463 call_write_iter include/linux/fs.h:1907 [inline] new_sync_write+0x4a2/0x700 fs/read_write.c:484 __vfs_write+0xc9/0x100 fs/read_write.c:497 __kernel_write+0x11c/0x3a0 fs/read_write.c:516 do_acct_process+0xcdc/0x10e0 kernel/acct.c:522 acct_pin_kill+0x29/0xf0 kernel/acct.c:174 pin_kill+0x175/0x7c0 fs/fs_pin.c:44 acct_on+0x55d/0x770 kernel/acct.c:254 __do_sys_acct kernel/acct.c:286 [inline] __se_sys_acct kernel/acct.c:273 [inline] __x64_sys_acct+0xab/0x1f0 kernel/acct.c:273 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x44bea9 Code: bd ca fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 8b ca fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f0a85a5ece8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3 RAX: ffffffffffffffda RBX: 00000000006dec28 RCX: 000000000044bea9 RDX: 000000000044bea9 RSI: ff7df842cfc7c3fb RDI: 0000000020000480 RBP: 00000000006dec20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dec2c R13: 00007ffc52e9afdf R14: 00007f0a85a5f9c0 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0002159800 refcount:0 mapcount:-128 mapping:0000000000000000 index:0x1 flags: 0xfffe0000000000() raw: 00fffe0000000000 ffff88812fffba58 ffffea0002251008 0000000000000000 raw: 000000000000002b 0000000000000000 00000001ffffffff ffff8880a9550000 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8880a9550000 Memory state around the buggy address: ffff888085660500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888085660580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888085660600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff888085660680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888085660700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================