================================================================================ UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:131:9 index 5319 is out of range for type 'unsigned long[8]' CPU: 1 PID: 878 Comm: syz.2.216 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: __dump_stack+0x21/0x24 lib/dump_stack.c:88 dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106 dump_stack+0x15/0x24 lib/dump_stack.c:113 ubsan_epilogue+0xe/0x40 lib/ubsan.c:151 __ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:282 decode_tail kernel/locking/qspinlock.c:131 [inline] __pv_queued_spin_lock_slowpath+0x9ea/0xc40 kernel/locking/qspinlock.c:471 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline] queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x120/0x130 kernel/locking/spinlock.c:162 __unfreeze_partials+0x70/0x190 mm/slub.c:2578 put_cpu_partial+0xa9/0x100 mm/slub.c:2690 __slab_free+0x1c4/0x280 mm/slub.c:3589 do_slab_free mm/slub.c:3666 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] __kmem_cache_alloc_node+0x194/0x2d0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958 memdup_user_nul+0x2b/0xf0 mm/util.c:266 event_inject_write+0xe8/0x1ae0 kernel/trace/trace_events_inject.c:296 vfs_write+0x3fb/0xd00 fs/read_write.c:582 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f1884f9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1884dff028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1885225fa0 RCX: 00007f1884f9f559 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f1885036b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1885226038 R14: 00007f1885225fa0 R15: 00007ffdf0b37568 ================================================================================ general protection fault, probably for non-canonical address 0xff67fc9e9f68722f: 0000 [#1] PREEMPT SMP KASAN KASAN: maybe wild-memory-access in range [0xfb4004f4fb439178-0xfb4004f4fb43917f] CPU: 1 PID: 878 Comm: syz.2.216 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 RIP: 0010:__pv_queued_spin_lock_slowpath+0x2c8/0xc40 kernel/locking/qspinlock.c:474 Code: 86 4c 89 f8 48 c1 e8 03 80 3c 10 00 74 12 4c 89 ff e8 1c de b4 fc 48 ba 00 00 00 00 00 fc ff df 4d 03 2f 4c 89 e8 48 c1 e8 03 <80> 3c 10 00 4d 89 ef 4c 8b 6c 24 30 74 12 4c 89 ff e8 e2 de b4 fc RSP: 0018:ffffc90002f4f600 EFLAGS: 00010802 RAX: 1f68009e9f68722f RBX: ffff88810006c000 RCX: ffff888123a65100 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 00000000ffffffff RBP: ffffc90002f4f6f0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff0f6ee4c R12: 1ffff1103ede71c9 R13: fb4004f4fb43917b R14: 1ffff1102000d800 R15: ffffffff866e1fd8 FS: 00007f1884dff6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1884dfeff8 CR3: 000000010b95e000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline] queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock include/linux/spinlock.h:187 [inline] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x120/0x130 kernel/locking/spinlock.c:162 __unfreeze_partials+0x70/0x190 mm/slub.c:2578 put_cpu_partial+0xa9/0x100 mm/slub.c:2690 __slab_free+0x1c4/0x280 mm/slub.c:3589 do_slab_free mm/slub.c:3666 [inline] ___cache_free+0xbf/0xd0 mm/slub.c:3722 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0xc6/0x140 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x24/0x80 mm/kasan/common.c:311 kasan_slab_alloc include/linux/kasan.h:202 [inline] slab_post_alloc_hook+0x4f/0x2d0 mm/slab.h:768 slab_alloc_node mm/slub.c:3382 [inline] __kmem_cache_alloc_node+0x194/0x2d0 mm/slub.c:3423 __do_kmalloc_node mm/slab_common.c:937 [inline] __kmalloc_node_track_caller+0xa1/0x1e0 mm/slab_common.c:958 memdup_user_nul+0x2b/0xf0 mm/util.c:266 event_inject_write+0xe8/0x1ae0 kernel/trace/trace_events_inject.c:296 vfs_write+0x3fb/0xd00 fs/read_write.c:582 ksys_write+0x14a/0x260 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x7b/0x90 fs/read_write.c:646 x64_sys_call+0x27b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f1884f9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1884dff028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1885225fa0 RCX: 00007f1884f9f559 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007f1885036b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1885226038 R14: 00007f1885225fa0 R15: 00007ffdf0b37568 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__pv_queued_spin_lock_slowpath+0x2c8/0xc40 kernel/locking/qspinlock.c:474 Code: 86 4c 89 f8 48 c1 e8 03 80 3c 10 00 74 12 4c 89 ff e8 1c de b4 fc 48 ba 00 00 00 00 00 fc ff df 4d 03 2f 4c 89 e8 48 c1 e8 03 <80> 3c 10 00 4d 89 ef 4c 8b 6c 24 30 74 12 4c 89 ff e8 e2 de b4 fc RSP: 0018:ffffc90002f4f600 EFLAGS: 00010802 RAX: 1f68009e9f68722f RBX: ffff88810006c000 RCX: ffff888123a65100 RDX: dffffc0000000000 RSI: 0000000000000001 RDI: 00000000ffffffff RBP: ffffc90002f4f6f0 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffffbfff0f6ee4c R12: 1ffff1103ede71c9 R13: fb4004f4fb43917b R14: 1ffff1102000d800 R15: ffffffff866e1fd8 FS: 00007f1884dff6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1884dfeff8 CR3: 000000010b95e000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 86 4c 89 f8 xchg %cl,-0x8(%rcx,%rcx,4) 4: 48 c1 e8 03 shr $0x3,%rax 8: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) c: 74 12 je 0x20 e: 4c 89 ff mov %r15,%rdi 11: e8 1c de b4 fc call 0xfcb4de32 16: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 1d: fc ff df 20: 4d 03 2f add (%r15),%r13 23: 4c 89 e8 mov %r13,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) <-- trapping instruction 2e: 4d 89 ef mov %r13,%r15 31: 4c 8b 6c 24 30 mov 0x30(%rsp),%r13 36: 74 12 je 0x4a 38: 4c 89 ff mov %r15,%rdi 3b: e8 e2 de b4 fc call 0xfcb4df22