syzbot
UBSAN: array-index-out-of-bounds in unfreeze_partials
Status:
upstream: reported C repro on 2026/12/01 15:28
Reported-by: syzbot+a043651f6884e9158b7a@syzkaller.appspotmail.com
First crash: 1d21h, last: 1d21h
Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9
index 3079 is out of range for type 'unsigned long[8]'
CPU: 0 PID: 805 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
dump_stack+0x15/0x1c lib/dump_stack.c:135
ubsan_epilogue+0xe/0x40 lib/ubsan.c:148
__ubsan_handle_out_of_bounds+0xdf/0xf0 lib/ubsan.c:347
decode_tail kernel/locking/qspinlock.c:130 [inline]
__pv_queued_spin_lock_slowpath+0xb03/0xb80 kernel/locking/qspinlock.c:468
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:554 [inline]
queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock include/linux/spinlock.h:184 [inline]
__raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
_raw_spin_lock+0xe4/0xf0 kernel/locking/spinlock.c:151
spin_lock include/linux/spinlock.h:355 [inline]
unfreeze_partials+0x76/0x180 mm/slub.c:2379
put_cpu_partial+0xc1/0x180 mm/slub.c:2451
__slab_free+0x2c9/0x3a0 mm/slub.c:3100
do_slab_free mm/slub.c:3196 [inline]
___cache_free+0x10e/0x130 mm/slub.c:3215
qlink_free+0x50/0x90 mm/kasan/quarantine.c:157
qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440
kasan_slab_alloc include/linux/kasan.h:244 [inline]
slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580
slab_alloc_node mm/slub.c:2952 [inline]
slab_alloc mm/slub.c:2960 [inline]
kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965
getname_flags+0xba/0x510 fs/namei.c:141
getname fs/namei.c:212 [inline]
do_symlinkat+0x48/0x3d0 fs/namei.c:4165
__do_sys_symlinkat fs/namei.c:4190 [inline]
__se_sys_symlinkat fs/namei.c:4187 [inline]
__x64_sys_symlinkat+0x7b/0x90 fs/namei.c:4187
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fb38be1fd57
Code: 44 00 00 48 89 f2 31 c9 48 89 fe bf 9c ff ff ff e9 8e f5 ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 0a 01 00 00 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:00007ffda1383e58 EFLAGS: 00000202 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb38be1fd57
RDX: 00007fb38beb31be RSI: 00000000ffffff9c RDI: 00007ffda1383ef0
RBP: 00007ffda1383e9c R08: 0000000000000001 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000041
R13: 00000000000927c0 R14: 0000000000006668 R15: 00007ffda1383ef0
================================================================================
general protection fault, probably for non-canonical address 0xdffffc0000152db9: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000000a96dc8-0x0000000000a96dcf]
CPU: 0 PID: 805 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2cc/0xb80 kernel/locking/qspinlock.c:471
Code: 74 14 48 89 54 24 18 48 8b 7c 24 18 e8 1d 79 53 00 48 8b 54 24 18 4c 03 2a 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 96 79 53 00 48 8b 44 24 40 49 89 45
RSP: 0018:ffffc90001777760 EFLAGS: 00010002
RAX: 0000000000152db9 RBX: ffff88810006c000 RCX: dffffc0000000000
RDX: ffffffff85c076f8 RSI: 0000000000000001 RDI: 00000000ffffffff
RBP: ffffc90001777850 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0dd1248 R12: 1ffff1103ee0ae51
R13: 0000000000a96dc8 R14: 1ffff1102000d800 R15: ffff8881f7057294
FS: 000055558524a500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb38bedd44c CR3: 000000011af05000 CR4: 00000000003506b0
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:554 [inline]
queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock include/linux/spinlock.h:184 [inline]
__raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
_raw_spin_lock+0xe4/0xf0 kernel/locking/spinlock.c:151
spin_lock include/linux/spinlock.h:355 [inline]
unfreeze_partials+0x76/0x180 mm/slub.c:2379
put_cpu_partial+0xc1/0x180 mm/slub.c:2451
__slab_free+0x2c9/0x3a0 mm/slub.c:3100
do_slab_free mm/slub.c:3196 [inline]
___cache_free+0x10e/0x130 mm/slub.c:3215
qlink_free+0x50/0x90 mm/kasan/quarantine.c:157
qlist_free_all+0x5f/0xb0 mm/kasan/quarantine.c:176
kasan_quarantine_reduce+0x14a/0x160 mm/kasan/quarantine.c:283
__kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:440
kasan_slab_alloc include/linux/kasan.h:244 [inline]
slab_post_alloc_hook+0x5d/0x2f0 mm/slab.h:580
slab_alloc_node mm/slub.c:2952 [inline]
slab_alloc mm/slub.c:2960 [inline]
kmem_cache_alloc+0x15a/0x2d0 mm/slub.c:2965
getname_flags+0xba/0x510 fs/namei.c:141
getname fs/namei.c:212 [inline]
do_symlinkat+0x48/0x3d0 fs/namei.c:4165
__do_sys_symlinkat fs/namei.c:4190 [inline]
__se_sys_symlinkat fs/namei.c:4187 [inline]
__x64_sys_symlinkat+0x7b/0x90 fs/namei.c:4187
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fb38be1fd57
Code: 44 00 00 48 89 f2 31 c9 48 89 fe bf 9c ff ff ff e9 8e f5 ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 b8 0a 01 00 00 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:00007ffda1383e58 EFLAGS: 00000202 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb38be1fd57
RDX: 00007fb38beb31be RSI: 00000000ffffff9c RDI: 00007ffda1383ef0
RBP: 00007ffda1383e9c R08: 0000000000000001 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000041
R13: 00000000000927c0 R14: 0000000000006668 R15: 00007ffda1383ef0
Modules linked in:
---[ end trace 5eb22c65e054dba4 ]---
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2cc/0xb80 kernel/locking/qspinlock.c:471
Code: 74 14 48 89 54 24 18 48 8b 7c 24 18 e8 1d 79 53 00 48 8b 54 24 18 4c 03 2a 4c 89 e8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 4c 89 ef e8 96 79 53 00 48 8b 44 24 40 49 89 45
RSP: 0018:ffffc90001777760 EFLAGS: 00010002
RAX: 0000000000152db9 RBX: ffff88810006c000 RCX: dffffc0000000000
RDX: ffffffff85c076f8 RSI: 0000000000000001 RDI: 00000000ffffffff
RBP: ffffc90001777850 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff0dd1248 R12: 1ffff1103ee0ae51
R13: 0000000000a96dc8 R14: 1ffff1102000d800 R15: ffff8881f7057294
FS: 000055558524a500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb38bedd44c CR3: 000000011af05000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 74 14 je 0x16
2: 48 89 54 24 18 mov %rdx,0x18(%rsp)
7: 48 8b 7c 24 18 mov 0x18(%rsp),%rdi
c: e8 1d 79 53 00 call 0x53792e
11: 48 8b 54 24 18 mov 0x18(%rsp),%rdx
16: 4c 03 2a add (%rdx),%r13
19: 4c 89 e8 mov %r13,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 4c 89 ef mov %r13,%rdi
33: e8 96 79 53 00 call 0x5379ce
38: 48 8b 44 24 40 mov 0x40(%rsp),%rax
3d: 49 rex.WB
3e: 89 .byte 0x89
3f: 45 rex.RB
* Struck through repros no longer work on HEAD.