================================================================== BUG: KASAN: use-after-free in lbmIODone+0xf9e/0x1530 fs/jfs/jfs_logmgr.c:2193 Read of size 4 at addr ffff88809754fe08 by task ksoftirqd/0/9 CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.9.0-rc7-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+0x1d6/0x29e lib/dump_stack.c:118 print_address_description+0x66/0x620 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 mm/kasan/report.c:530 lbmIODone+0xf9e/0x1530 fs/jfs/jfs_logmgr.c:2193 req_bio_endio block/blk-core.c:259 [inline] blk_update_request+0x7b7/0x1510 block/blk-core.c:1577 blk_mq_end_request+0x39/0x70 block/blk-mq.c:562 blk_done_softirq+0x392/0x410 block/blk-mq.c:586 __do_softirq+0x256/0x6d5 kernel/softirq.c:298 run_ksoftirqd+0xa1/0x130 kernel/softirq.c:652 smpboot_thread_fn+0x572/0x970 kernel/smpboot.c:165 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 4886: kasan_save_stack mm/kasan/common.c:48 [inline] kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc+0x100/0x130 mm/kasan/common.c:461 kmem_cache_alloc_trace+0x1e4/0x2e0 mm/slab.c:3554 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+0x508/0xf60 fs/jfs/jfs_logmgr.c:1077 jfs_mount_rw+0x92/0x4a0 fs/jfs/jfs_mount.c:259 jfs_fill_super+0x59e/0x9b0 fs/jfs/super.c:571 mount_bdev+0x24f/0x360 fs/super.c:1417 legacy_get_tree+0xea/0x180 fs/fs_context.c:592 vfs_get_tree+0x88/0x270 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x179d/0x29e0 fs/namespace.c:3192 do_mount fs/namespace.c:3205 [inline] __do_sys_mount fs/namespace.c:3413 [inline] __se_sys_mount+0x126/0x180 fs/namespace.c:3390 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 6864: 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+0xdd/0x110 mm/kasan/common.c:422 __cache_free mm/slab.c:3422 [inline] kfree+0x113/0x200 mm/slab.c:3760 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:1444 deactivate_locked_super+0xa7/0xf0 fs/super.c:335 cleanup_mnt+0x432/0x4e0 fs/namespace.c:1118 task_work_run+0x137/0x1c0 kernel/task_work.c:141 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:165 [inline] exit_to_user_mode_prepare+0x11a/0x1e0 kernel/entry/common.c:192 syscall_exit_to_user_mode+0x82/0x1d0 kernel/entry/common.c:267 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Last call_rcu(): kasan_save_stack+0x27/0x50 mm/kasan/common.c:48 kasan_record_aux_stack+0x7b/0xb0 mm/kasan/generic.c:346 __call_rcu kernel/rcu/tree.c:2896 [inline] call_rcu+0x141/0x830 kernel/rcu/tree.c:2970 rhashtable_rehash_table lib/rhashtable.c:345 [inline] rht_deferred_worker+0x17b5/0x1bc0 lib/rhashtable.c:429 process_one_work+0x789/0xfc0 kernel/workqueue.c:2269 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2415 kthread+0x37e/0x3a0 drivers/block/aoe/aoecmd.c:1234 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 The buggy address belongs to the object at ffff88809754fe00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 8 bytes inside of 192-byte region [ffff88809754fe00, ffff88809754fec0) The buggy address belongs to the page: page:0000000022677d4f refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88809754f200 pfn:0x9754f flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002772d08 ffffea0002823348 ffff8880aa440000 raw: ffff88809754f200 ffff88809754f000 000000010000000d 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809754fd00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809754fd80: 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809754fe00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809754fe80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88809754ff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================