BUG: spinlock bad magic on CPU#0, syz-executor/4918 lock: 0xffff0000e662caa8, .magic: ffff8000, .owner: €Òbæ/0, .owner_cpu: 512 CPU: 0 PID: 4918 Comm: syz-executor Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 spin_dump+0x110/0x208 kernel/locking/spinlock_debug.c:69 spin_bug kernel/locking/spinlock_debug.c:77 [inline] debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] do_raw_spin_lock+0x1e0/0x2f0 kernel/locking/spinlock_debug.c:114 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0xcc/0x14c kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xe0/0x16c kernel/sched/wait.c:157 unlock_metapage fs/jfs/jfs_metapage.c:37 [inline] release_metapage+0x17c/0x920 fs/jfs/jfs_metapage.c:737 xtTruncate+0xb70/0x2698 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x2a4/0x410 fs/jfs/namei.c:758 jfs_evict_inode+0x2fc/0x3fc fs/jfs/inode.c:153 evict+0x3c8/0x810 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 dentry_unlink_inode+0x360/0x438 fs/dcache.c:380 __dentry_kill+0x320/0x598 fs/dcache.c:586 shrink_dentry_list+0x410/0x7c8 fs/dcache.c:1181 shrink_dcache_parent+0xb0/0x354 fs/dcache.c:-1 do_one_tree+0x2c/0xf0 fs/dcache.c:1662 shrink_dcache_for_umount+0x68/0x114 fs/dcache.c:1679 generic_shutdown_super+0x68/0x2f0 fs/super.c:447 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1143 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9 index 1112 is out of range for type 'unsigned long[8]' CPU: 0 PID: 4918 Comm: syz-executor Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 ubsan_epilogue+0x14/0x48 lib/ubsan.c:151 __ubsan_handle_out_of_bounds+0xd4/0x108 lib/ubsan.c:282 decode_tail kernel/locking/qspinlock.c:130 [inline] queued_spin_lock_slowpath+0x724/0x798 kernel/locking/qspinlock.c:468 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x2ec/0x2f0 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0xcc/0x14c kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xe0/0x16c kernel/sched/wait.c:157 unlock_metapage fs/jfs/jfs_metapage.c:37 [inline] release_metapage+0x17c/0x920 fs/jfs/jfs_metapage.c:737 xtTruncate+0xb70/0x2698 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x2a4/0x410 fs/jfs/namei.c:758 jfs_evict_inode+0x2fc/0x3fc fs/jfs/inode.c:153 evict+0x3c8/0x810 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 dentry_unlink_inode+0x360/0x438 fs/dcache.c:380 __dentry_kill+0x320/0x598 fs/dcache.c:586 shrink_dentry_list+0x410/0x7c8 fs/dcache.c:1181 shrink_dcache_parent+0xb0/0x354 fs/dcache.c:-1 do_one_tree+0x2c/0xf0 fs/dcache.c:1662 shrink_dcache_for_umount+0x68/0x114 fs/dcache.c:1679 generic_shutdown_super+0x68/0x2f0 fs/super.c:447 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1143 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ================================================================================ ================================================================== BUG: KASAN: use-after-free in queued_spin_lock_slowpath+0x57c/0x798 kernel/locking/qspinlock.c:471 Write of size 8 at addr ffff00002158482c by task syz-executor/4918 CPU: 0 PID: 4918 Comm: syz-executor Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_store8_noabort+0x44/0x50 mm/kasan/report_generic.c:314 queued_spin_lock_slowpath+0x57c/0x798 kernel/locking/qspinlock.c:471 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x2ec/0x2f0 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:117 [inline] _raw_spin_lock_irqsave+0xcc/0x14c kernel/locking/spinlock.c:162 __wake_up_common_lock kernel/sched/wait.c:137 [inline] __wake_up+0xe0/0x16c kernel/sched/wait.c:157 unlock_metapage fs/jfs/jfs_metapage.c:37 [inline] release_metapage+0x17c/0x920 fs/jfs/jfs_metapage.c:737 xtTruncate+0xb70/0x2698 fs/jfs/jfs_xtree.c:-1 jfs_free_zero_link+0x2a4/0x410 fs/jfs/namei.c:758 jfs_evict_inode+0x2fc/0x3fc fs/jfs/inode.c:153 evict+0x3c8/0x810 fs/inode.c:647 iput_final fs/inode.c:1769 [inline] iput+0x6c4/0x77c fs/inode.c:1795 dentry_unlink_inode+0x360/0x438 fs/dcache.c:380 __dentry_kill+0x320/0x598 fs/dcache.c:586 shrink_dentry_list+0x410/0x7c8 fs/dcache.c:1181 shrink_dcache_parent+0xb0/0x354 fs/dcache.c:-1 do_one_tree+0x2c/0xf0 fs/dcache.c:1662 shrink_dcache_for_umount+0x68/0x114 fs/dcache.c:1679 generic_shutdown_super+0x68/0x2f0 fs/super.c:447 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1143 __cleanup_mnt+0x20/0x30 fs/namespace.c:1150 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the page: page:00000000e8c1f063 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x61584 flags: 0x1ffc00000000000(node=0|zone=0|lastcpupid=0x7ff) raw: 01ffc00000000000 fffffc0000856108 fffffc0000856108 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000021584700: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff000021584780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff000021584800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff000021584880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff000021584900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================