Process accounting resumed Process accounting resumed Process accounting resumed 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+0x1047/0x1300 fs/minix/itree_common.c:160 Read of size 2 at addr ffff888080b347b8 by task syz-executor560/6493 CPU: 1 PID: 6493 Comm: syz-executor560 Not tainted 4.19.120-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Process accounting resumed Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 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+0x88/0x2b9 mm/kasan/report.c:396 add_chain fs/minix/itree_common.c:14 [inline] get_branch fs/minix/itree_common.c:52 [inline] get_block+0x1047/0x1300 fs/minix/itree_common.c:160 minix_get_block+0xe5/0x110 fs/minix/inode.c:379 __block_write_begin_int+0x480/0x17a0 fs/buffer.c:1978 __block_write_begin fs/buffer.c:2028 [inline] block_write_begin+0x58/0x2e0 fs/buffer.c:2087 minix_write_begin+0x35/0xe0 fs/minix/inode.c:415 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3162 __generic_file_write_iter+0x24c/0x610 mm/filemap.c:3287 generic_file_write_iter+0x37f/0x729 mm/filemap.c:3315 call_write_iter include/linux/fs.h:1821 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x512/0x760 fs/read_write.c:487 __kernel_write+0x109/0x370 fs/read_write.c:506 do_acct_process+0xcd8/0x10e0 kernel/acct.c:520 acct_pin_kill+0x29/0xf0 kernel/acct.c:174 pin_kill+0x17a/0x7e0 fs/fs_pin.c:50 acct_on+0x54b/0x760 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+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x44ad79 Code: fd cb 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 cb cb fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ff49b132ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3 RAX: ffffffffffffffda RBX: 00000000006dcc28 RCX: 000000000044ad79 RDX: 000000000044ad79 RSI: 89f6f3d9b5241138 RDI: 0000000020000480 RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000a R11: 0000000000000246 R12: 00000000006dcc2c R13: 00007ffd885b612f R14: 00007ff49b1339c0 R15: 20c49ba5e353f7cf The buggy address belongs to the page: page:ffffea000202cd00 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfffe0000000000() raw: 00fffe0000000000 ffffea00022ffac8 ffffea0002414b48 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888080b34680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888080b34700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888080b34780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888080b34800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888080b34880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================