================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x3f2d/0x5780 kernel/locking/lockdep.c:4311 Read of size 8 at addr ffff8880a3806d68 by task ksoftirqd/1/16 CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.9.0-rc6-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+0x198/0x1fd lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 __lock_acquire+0x3f2d/0x5780 kernel/locking/lockdep.c:4311 lock_acquire+0x1f3/0xaf0 kernel/locking/lockdep.c:5029 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x94/0xce kernel/locking/spinlock.c:159 __wake_up_common_lock+0xb4/0x130 kernel/sched/wait.c:122 lbmIODone+0x44b/0xf60 fs/jfs/jfs_logmgr.c:2294 bio_endio+0x3cf/0x7f0 block/bio.c:1449 req_bio_endio block/blk-core.c:259 [inline] blk_update_request+0x68f/0x1500 block/blk-core.c:1577 blk_mq_end_request+0x4c/0x510 block/blk-mq.c:562 lo_complete_rq+0x20d/0x2d0 drivers/block/loop.c:500 blk_done_softirq+0x33c/0x4d0 block/blk-mq.c:586 __do_softirq+0x1f8/0xb23 kernel/softirq.c:298 run_ksoftirqd kernel/softirq.c:652 [inline] run_ksoftirqd+0xcf/0x170 kernel/softirq.c:644 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 20150: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 kmem_cache_alloc_trace+0x174/0x300 mm/slab.c:3554 kmalloc include/linux/slab.h:554 [inline] lbmLogInit fs/jfs/jfs_logmgr.c:1829 [inline] lmLogInit+0x30b/0x1400 fs/jfs/jfs_logmgr.c:1278 open_inline_log fs/jfs/jfs_logmgr.c:1183 [inline] lmLogOpen+0x726/0x11f0 fs/jfs/jfs_logmgr.c:1077 jfs_mount_rw+0x286/0x4b0 fs/jfs/jfs_mount.c:259 jfs_fill_super+0x860/0xbc0 fs/jfs/super.c:571 mount_bdev+0x32e/0x3f0 fs/super.c:1417 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x89/0x2f0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x1387/0x20a0 fs/namespace.c:3192 do_mount fs/namespace.c:3205 [inline] __do_sys_mount fs/namespace.c:3413 [inline] __se_sys_mount fs/namespace.c:3390 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3390 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 20150: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track+0x1c/0x30 mm/kasan/common.c:56 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0xd8/0x120 mm/kasan/common.c:422 __cache_free mm/slab.c:3422 [inline] kfree+0x10e/0x2b0 mm/slab.c:3760 lbmLogShutdown fs/jfs/jfs_logmgr.c:1872 [inline] lmLogInit+0x94a/0x1400 fs/jfs/jfs_logmgr.c:1423 open_inline_log fs/jfs/jfs_logmgr.c:1183 [inline] lmLogOpen+0x726/0x11f0 fs/jfs/jfs_logmgr.c:1077 jfs_mount_rw+0x286/0x4b0 fs/jfs/jfs_mount.c:259 jfs_fill_super+0x860/0xbc0 fs/jfs/super.c:571 mount_bdev+0x32e/0x3f0 fs/super.c:1417 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x89/0x2f0 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x1387/0x20a0 fs/namespace.c:3192 do_mount fs/namespace.c:3205 [inline] __do_sys_mount fs/namespace.c:3413 [inline] __se_sys_mount fs/namespace.c:3390 [inline] __x64_sys_mount+0x27f/0x300 fs/namespace.c:3390 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8880a3806d00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 104 bytes inside of 192-byte region [ffff8880a3806d00, ffff8880a3806dc0) The buggy address belongs to the page: page:000000003f642a5b refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880a3806a00 pfn:0xa3806 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea000266c648 ffffea00028a00c8 ffff8880aa040000 raw: ffff8880a3806a00 ffff8880a3806000 000000010000000f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a3806c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a3806c80: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a3806d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a3806d80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880a3806e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================