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 ffff8880842527b8 by task syz-executor526/6486 CPU: 1 PID: 6486 Comm: syz-executor526 Not tainted 4.19.120-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.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 slow_acct_process kernel/acct.c:579 [inline] acct_process+0x517/0x5c0 kernel/acct.c:605 do_exit+0x1738/0x2f30 kernel/exit.c:870 do_group_exit+0x125/0x350 kernel/exit.c:983 __do_sys_exit_group kernel/exit.c:994 [inline] __se_sys_exit_group kernel/exit.c:992 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:992 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x444798 Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00 RSP: 002b:00007ffcd1393c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444798 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00000000004c4410 R08: 00000000000000e7 R09: ffffffffffffffd4 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006d6180 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0002109480 count:0 mapcount:0 mapping:0000000000000000 index:0x1 flags: 0xfffe0000000000() raw: 00fffe0000000000 ffffea0002103e88 ffffea000210cc08 0000000000000000 raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888084252680: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888084252700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888084252780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888084252800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888084252880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================