EXT4-fs (loop1): unmounting filesystem 00000000-0000-0000-0000-000000000000. BUG: spinlock bad magic on CPU#0, syz-executor.1/6284 ================================================================== BUG: KASAN: global-out-of-bounds in string_nocheck lib/vsprintf.c:646 [inline] BUG: KASAN: global-out-of-bounds in string+0x1dc/0x264 lib/vsprintf.c:728 Read of size 1 at addr ffff80008f0348f0 by task syz-executor.1/6284 CPU: 0 PID: 6284 Comm: syz-executor.1 Tainted: G W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x198/0x538 mm/kasan/report.c:488 kasan_report+0xd8/0x138 mm/kasan/report.c:601 __asan_report_load1_noabort+0x20/0x2c mm/kasan/report_generic.c:378 string_nocheck lib/vsprintf.c:646 [inline] string+0x1dc/0x264 lib/vsprintf.c:728 vsnprintf+0xe9c/0x1a8c lib/vsprintf.c:2824 vprintk_store+0x38c/0xd80 kernel/printk/printk.c:2225 vprintk_emit+0x1a8/0x344 kernel/printk/printk.c:2326 vprintk_default+0xa0/0xe4 kernel/printk/printk.c:2360 vprintk+0x200/0x2d4 kernel/printk/printk_safe.c:45 _printk+0xdc/0x128 kernel/printk/printk.c:2370 spin_dump kernel/locking/spinlock_debug.c:64 [inline] spin_bug+0x114/0x1e8 kernel/locking/spinlock_debug.c:78 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x1d8/0x334 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 put_pwq_unlocked kernel/workqueue.c:1662 [inline] destroy_workqueue+0x8d8/0xdc0 kernel/workqueue.c:5851 ext4_put_super+0x11c/0xafc fs/ext4/super.c:1302 generic_shutdown_super+0x128/0x2b8 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1676 ext4_kill_sb+0x68/0xa4 fs/ext4/super.c:7301 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 The buggy address belongs to the variable: dev_attr_max_active+0x50/0x120 The buggy address belongs to the virtual mapping at [ffff80008ef20000, ffff800093ca1000) created by: declare_kernel_vmas+0xa8/0xb8 arch/arm64/mm/mmu.c:772 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1ad834 flags: 0x5ffc00000002000(reserved|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002000 fffffdffc5b60d08 fffffdffc5b60d08 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff80008f034780: 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 00 00 f9 f9 ffff80008f034800: 00 00 00 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 f9 >ffff80008f034880: f9 f9 f9 f9 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 ^ ffff80008f034900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff80008f034980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== lock: 0xffff0000d9ef8000, .magic: ffff0000, .owner: /6445, .owner_cpu: -211026808 CPU: 0 PID: 6284 Comm: syz-executor.1 Tainted: G B W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 spin_dump kernel/locking/spinlock_debug.c:70 [inline] spin_bug+0x118/0x1e8 kernel/locking/spinlock_debug.c:78 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] do_raw_spin_lock+0x1d8/0x334 kernel/locking/spinlock_debug.c:115 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 put_pwq_unlocked kernel/workqueue.c:1662 [inline] destroy_workqueue+0x8d8/0xdc0 kernel/workqueue.c:5851 ext4_put_super+0x11c/0xafc fs/ext4/super.c:1302 generic_shutdown_super+0x128/0x2b8 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1676 ext4_kill_sb+0x68/0xa4 fs/ext4/super.c:7301 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ------------[ cut here ]------------ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:131:9 index 13928 is out of range for type 'unsigned long[8]' CPU: 0 PID: 6284 Comm: syz-executor.1 Tainted: G B W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 ubsan_epilogue lib/ubsan.c:231 [inline] __ubsan_handle_out_of_bounds+0xf8/0x148 lib/ubsan.c:429 decode_tail kernel/locking/qspinlock.c:131 [inline] queued_spin_lock_slowpath+0x974/0xd00 kernel/locking/qspinlock.c:468 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x2ec/0x334 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 put_pwq_unlocked kernel/workqueue.c:1662 [inline] destroy_workqueue+0x8d8/0xdc0 kernel/workqueue.c:5851 ext4_put_super+0x11c/0xafc fs/ext4/super.c:1302 generic_shutdown_super+0x128/0x2b8 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1676 ext4_kill_sb+0x68/0xa4 fs/ext4/super.c:7301 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ---[ end trace ]--- Unable to handle kernel paging request at virtual address ffff80008ef0db50 KASAN: probably user-memory-access in range [0x000000047786da80-0x000000047786da87] Mem abort info: ESR = 0x0000000096000047 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x07: level 3 translation fault Data abort info: ISV = 0, ISS = 0x00000047, ISS2 = 0x00000000 CM = 0, WnR = 1, TnD = 0, TagAccess = 0 GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0 swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000001ad2e1000 [ffff80008ef0db50] pgd=0000000000000000, p4d=10000001b248c003, pud=10000001b248d003, pmd=10000001b2492003, pte=0000000000000000 Internal error: Oops: 0000000096000047 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6284 Comm: syz-executor.1 Tainted: G B W 6.10.0-rc3-syzkaller-gac2193b4b460 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : queued_spin_lock_slowpath+0x3cc/0xd00 kernel/locking/qspinlock.c:471 lr : decode_tail kernel/locking/qspinlock.c:131 [inline] lr : queued_spin_lock_slowpath+0x974/0xd00 kernel/locking/qspinlock.c:468 sp : ffff800098de7880 x29: ffff800098de7920 x28: 000000000000d9a5 x27: 1ffff000131bcf1c x26: dfff800000000000 x25: 1fffe0001b3df000 x24: 0000000000040000 x23: ffff0001b3db0e48 x22: ffff80008ef0db50 x21: ffff0001b3db0e40 x20: 1fffe000367b61c8 x19: ffff0000d9ef8000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008aefc018 x15: ffff7000124677ec x14: 1ffff000124677ec x13: 0000000000000004 x12: ffffffffffffffff x11: ffff7000124677ec x10: ffff80008ef0ce40 x9 : 0000000000000001 x8 : 0000000000000000 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800098de6f98 x4 : ffff80008f094de0 x3 : ffff8000801d0830 x2 : 0000000000000001 x1 : 0000000000000004 x0 : ffff0001b3db0e48 Call trace: queued_spin_lock_slowpath+0x3cc/0xd00 kernel/locking/qspinlock.c:474 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x2ec/0x334 kernel/locking/spinlock_debug.c:116 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:120 [inline] _raw_spin_lock_irq+0x60/0x70 kernel/locking/spinlock.c:170 put_pwq_unlocked kernel/workqueue.c:1662 [inline] destroy_workqueue+0x8d8/0xdc0 kernel/workqueue.c:5851 ext4_put_super+0x11c/0xafc fs/ext4/super.c:1302 generic_shutdown_super+0x128/0x2b8 fs/super.c:642 kill_block_super+0x44/0x90 fs/super.c:1676 ext4_kill_sb+0x68/0xa4 fs/ext4/super.c:7301 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: aa1603e0 973cc04a aa1703e0 52800081 (f90002d5) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1603e0 mov x0, x22 4: 973cc04a bl 0xfffffffffcf3012c 8: aa1703e0 mov x0, x23 c: 52800081 mov w1, #0x4 // #4 * 10: f90002d5 str x21, [x22] <-- trapping instruction