================================================================== BUG: KASAN: use-after-free in diFree+0x1883/0x29c0 fs/jfs/jfs_imap.c:886 Read of size 4 at addr ffff88804a386f44 by task syz-executor.3/22070 CPU: 1 PID: 22070 Comm: syz-executor.3 Not tainted 4.19.198-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+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load4_noabort+0x88/0x90 mm/kasan/report.c:432 diFree+0x1883/0x29c0 fs/jfs/jfs_imap.c:886 jfs_evict_inode+0x1a1/0x210 fs/jfs/inode.c:165 evict+0x2ed/0x760 fs/inode.c:559 iput_final fs/inode.c:1555 [inline] iput+0x4f1/0x860 fs/inode.c:1581 diFreeSpecial fs/jfs/jfs_imap.c:563 [inline] diFreeSpecial+0x63/0x80 fs/jfs/jfs_imap.c:555 jfs_mount+0x23f/0x3d0 fs/jfs/jfs_mount.c:223 jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x113c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x467b0a Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f7afd71cfa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000467b0a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f7afd71d000 RBP: 00007f7afd71d040 R08: 00007f7afd71d040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f7afd71d000 R15: 0000000020000080 The buggy address belongs to the page: page:ffffea000128e180 count:0 mapcount:0 mapping:0000000000000000 index:0xffff88804a386e40 flags: 0xfff00000000000() raw: 00fff00000000000 0000000000000000 dead000000000200 0000000000000000 raw: ffff88804a386e40 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804a386e00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804a386e80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88804a386f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88804a386f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88804a387000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================