================================================================== BUG: KASAN: use-after-free in lbmIODone+0x117b/0x1520 fs/jfs/jfs_logmgr.c:2193 Read of size 4 at addr ffff8880118c0f08 by task ksoftirqd/1/16 CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.9.0-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+0x137/0x1be lib/dump_stack.c:118 print_address_description+0x6c/0x660 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report+0x136/0x1e0 mm/kasan/report.c:562 lbmIODone+0x117b/0x1520 fs/jfs/jfs_logmgr.c:2193 req_bio_endio block/blk-core.c:263 [inline] blk_update_request+0x7b7/0x1510 block/blk-core.c:1467 blk_mq_end_request+0x39/0x70 block/blk-mq.c:562 blk_done_softirq+0x2fd/0x380 block/blk-mq.c:586 __do_softirq+0x307/0x6be kernel/softirq.c:298 run_ksoftirqd+0x63/0xa0 kernel/softirq.c:653 smpboot_thread_fn+0x572/0x970 kernel/smpboot.c:165 kthread+0x36b/0x390 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Allocated by task 4399: kasan_save_stack mm/kasan/common.c:48 [inline] kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x111/0x140 mm/kasan/common.c:461 kmem_cache_alloc_trace+0x14b/0x250 mm/slub.c:2918 kmalloc include/linux/slab.h:554 [inline] lbmLogInit fs/jfs/jfs_logmgr.c:1829 [inline] lmLogInit+0x26f/0x1750 fs/jfs/jfs_logmgr.c:1278 open_inline_log fs/jfs/jfs_logmgr.c:1183 [inline] lmLogOpen+0x4a9/0xe50 fs/jfs/jfs_logmgr.c:1077 jfs_mount_rw+0x92/0x4a0 fs/jfs/jfs_mount.c:259 jfs_fill_super+0x592/0x9a0 fs/jfs/super.c:571 mount_bdev+0x24f/0x360 fs/super.c:1419 legacy_get_tree+0xea/0x180 fs/fs_context.c:592 vfs_get_tree+0x88/0x270 fs/super.c:1549 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x17b4/0x2a20 fs/namespace.c:3205 do_mount fs/namespace.c:3218 [inline] __do_sys_mount fs/namespace.c:3426 [inline] __se_sys_mount+0x28c/0x320 fs/namespace.c:3403 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 8490: kasan_save_stack mm/kasan/common.c:48 [inline] kasan_set_track+0x3d/0x70 mm/kasan/common.c:56 kasan_set_free_info+0x17/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0x108/0x140 mm/kasan/common.c:422 slab_free_hook mm/slub.c:1544 [inline] slab_free_freelist_hook+0xd6/0x1a0 mm/slub.c:1577 slab_free mm/slub.c:3142 [inline] kfree+0xd1/0x280 mm/slub.c:4124 lbmLogShutdown fs/jfs/jfs_logmgr.c:1872 [inline] lmLogShutdown+0x575/0x780 fs/jfs/jfs_logmgr.c:1691 lmLogClose+0x269/0x480 fs/jfs/jfs_logmgr.c:1467 jfs_put_super+0x68/0x100 fs/jfs/super.c:194 generic_shutdown_super+0x120/0x2a0 fs/super.c:464 kill_block_super+0x79/0xd0 fs/super.c:1446 deactivate_locked_super+0xa7/0xf0 fs/super.c:335 cleanup_mnt+0x462/0x510 fs/namespace.c:1118 task_work_run+0x137/0x1c0 kernel/task_work.c:151 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0xe4/0x170 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x4a/0x170 kernel/entry/common.c:266 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8880118c0f00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 8 bytes inside of 192-byte region [ffff8880118c0f00, ffff8880118c0fc0) The buggy address belongs to the page: page:000000002033ee3e refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118c0 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea000049bf00 0000000200000002 ffff888010441500 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880118c0e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880118c0e80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff8880118c0f00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880118c0f80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880118c1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================