================================================================== BUG: KASAN: use-after-free in perf_trace_lock_acquire+0x400/0x550 include/trace/events/lock.h:13 Read of size 8 at addr ffff88806f0a7380 by task ksoftirqd/0/11 CPU: 0 PID: 11 Comm: ksoftirqd/0 Not tainted 5.10.0-rc7-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 perf_trace_lock_acquire+0x400/0x550 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x1e1/0x740 kernel/locking/lockdep.c:5408 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 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+0x3d3/0x7a0 block/bio.c:1450 req_bio_endio block/blk-core.c:263 [inline] blk_update_request+0x68e/0x1490 block/blk-core.c:1467 blk_mq_end_request+0x4c/0x510 block/blk-mq.c:562 lo_complete_rq+0x20d/0x2d0 drivers/block/loop.c:501 blk_done_softirq+0x294/0x3e0 block/blk-mq.c:586 __do_softirq+0x2a0/0x9f6 kernel/softirq.c:298 run_ksoftirqd kernel/softirq.c:653 [inline] run_ksoftirqd+0x2d/0x50 kernel/softirq.c:645 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Allocated by task 25783: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:461 kmalloc include/linux/slab.h:552 [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:1419 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x89/0x2f0 fs/super.c:1549 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x13ad/0x20c0 fs/namespace.c:3205 do_mount fs/namespace.c:3218 [inline] __do_sys_mount fs/namespace.c:3426 [inline] __se_sys_mount fs/namespace.c:3403 [inline] __ia32_sys_mount+0x27e/0x300 fs/namespace.c:3403 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x56/0x80 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c Freed by task 9254: 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+0x102/0x140 mm/kasan/common.c:422 slab_free_hook mm/slub.c:1544 [inline] slab_free_freelist_hook+0x5d/0x150 mm/slub.c:1577 slab_free mm/slub.c:3142 [inline] kfree+0xdb/0x360 mm/slub.c:4124 lbmLogShutdown fs/jfs/jfs_logmgr.c:1872 [inline] lmLogShutdown+0x2c6/0x580 fs/jfs/jfs_logmgr.c:1691 lmLogClose+0x4ae/0x620 fs/jfs/jfs_logmgr.c:1467 jfs_umount+0x26f/0x320 fs/jfs/jfs_umount.c:116 jfs_put_super+0x61/0x140 fs/jfs/super.c:194 generic_shutdown_super+0x144/0x370 fs/super.c:464 kill_block_super+0x97/0xf0 fs/super.c:1446 deactivate_locked_super+0x94/0x160 fs/super.c:335 deactivate_super+0xad/0xd0 fs/super.c:366 cleanup_mnt+0x3a3/0x530 fs/namespace.c:1118 task_work_run+0xdd/0x190 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+0x17e/0x1a0 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x38/0x260 kernel/entry/common.c:266 __do_fast_syscall_32+0x62/0x80 arch/x86/entry/common.c:138 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c The buggy address belongs to the object at ffff88806f0a7300 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 128 bytes inside of 192-byte region [ffff88806f0a7300, ffff88806f0a73c0) The buggy address belongs to the page: page:0000000025a55db4 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6f0a6 head:0000000025a55db4 order:1 compound_mapcount:0 flags: 0x4fff00000010200(slab|head) raw: 04fff00000010200 0000000000000000 0000000100000001 ffff888010043540 raw: 0000000000000000 0000000080200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806f0a7280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88806f0a7300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806f0a7380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88806f0a7400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88806f0a7480: 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================