================================================================================
UBSAN: array-index-out-of-bounds in kernel/locking/qspinlock.c:130:9
index 8299 is out of range for type 'unsigned long[8]'
CPU: 1 PID: 2715 Comm: syz.1.611 Tainted: G W 5.15.159-syzkaller-01152-g99ada58989e6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106
dump_stack+0x15/0x20 lib/dump_stack.c:113
ubsan_epilogue lib/ubsan.c:151 [inline]
__ubsan_handle_out_of_bounds+0x118/0x140 lib/ubsan.c:282
decode_tail kernel/locking/qspinlock.c:130 [inline]
__pv_queued_spin_lock_slowpath+0xb9d/0xc40 kernel/locking/qspinlock.c:468
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock include/linux/spinlock.h:187 [inline]
__raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
_raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
__mutex_lock_common kernel/locking/mutex.c:631 [inline]
__mutex_lock+0x5c6/0x1870 kernel/locking/mutex.c:756
__mutex_lock_slowpath+0xe/0x10 kernel/locking/mutex.c:1007
mutex_lock+0x135/0x1e0 kernel/locking/mutex.c:289
steam_input_open+0x91/0x1a0 drivers/hid/hid-steam.c:297
input_open_device+0x1a5/0x310 drivers/input/input.c:640
evdev_open_device drivers/input/evdev.c:404 [inline]
evdev_open+0x3df/0x620 drivers/input/evdev.c:491
chrdev_open+0x4f7/0x620 fs/char_dev.c:414
do_dentry_open+0x81c/0xfd0 fs/open.c:828
vfs_open+0x73/0x80 fs/open.c:958
do_open fs/namei.c:3608 [inline]
path_openat+0x26f0/0x2f40 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13f/0x830 fs/open.c:1234
do_sys_open fs/open.c:1250 [inline]
__do_sys_openat fs/open.c:1266 [inline]
__se_sys_openat fs/open.c:1261 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1261
x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6aa1a96890
Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 19 8f 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 6c 8f 02 00 8b 44
RSP: 002b:00007f6aa04abb70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6aa1a96890
RDX: 0000000000000000 RSI: 00007f6aa04abc10 RDI: 00000000ffffff9c
RBP: 00007f6aa04abc10 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f6aa1c50208 R15: 00007ffe6ef10178
================================================================================
general protection fault, probably for non-canonical address 0xdffffc0000208150: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000001040a80-0x0000000001040a87]
CPU: 1 PID: 2715 Comm: syz.1.611 Tainted: G W 5.15.159-syzkaller-01152-g99ada58989e6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2f3/0xc40 kernel/locking/qspinlock.c:471
Code: 74 1e 48 89 4c 24 10 48 8b 7c 24 10 e8 66 87 5d 00 48 8b 4c 24 10 48 ba 00 00 00 00 00 fc ff df 4c 03 21 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 4c 89 e7 e8 df 87 5d 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90000e47140 EFLAGS: 00010206
RAX: 0000000000208150 RBX: ffff8881f7138ad4 RCX: ffffffff8626db78
RDX: dffffc0000000000 RSI: 00000000000174da RDI: 00000000000174db
RBP: ffffc90000e47230 R08: ffffffff814199db R09: 0000000000000003
R10: fffffbfff0e99c4c R11: dffffc0000000001 R12: 0000000001040a80
R13: 1ffff11024cf768b R14: 1ffff1103ee27159 R15: ffff8881267bb458
FS: 00007f6aa04ac6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6aa04abf98 CR3: 0000000123b8e000 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:585 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
do_raw_spin_lock include/linux/spinlock.h:187 [inline]
__raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline]
_raw_spin_lock+0x139/0x1b0 kernel/locking/spinlock.c:154
__mutex_lock_common kernel/locking/mutex.c:631 [inline]
__mutex_lock+0x5c6/0x1870 kernel/locking/mutex.c:756
__mutex_lock_slowpath+0xe/0x10 kernel/locking/mutex.c:1007
mutex_lock+0x135/0x1e0 kernel/locking/mutex.c:289
steam_input_open+0x91/0x1a0 drivers/hid/hid-steam.c:297
input_open_device+0x1a5/0x310 drivers/input/input.c:640
evdev_open_device drivers/input/evdev.c:404 [inline]
evdev_open+0x3df/0x620 drivers/input/evdev.c:491
chrdev_open+0x4f7/0x620 fs/char_dev.c:414
do_dentry_open+0x81c/0xfd0 fs/open.c:828
vfs_open+0x73/0x80 fs/open.c:958
do_open fs/namei.c:3608 [inline]
path_openat+0x26f0/0x2f40 fs/namei.c:3742
do_filp_open+0x21c/0x460 fs/namei.c:3769
do_sys_openat2+0x13f/0x830 fs/open.c:1234
do_sys_open fs/open.c:1250 [inline]
__do_sys_openat fs/open.c:1266 [inline]
__se_sys_openat fs/open.c:1261 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1261
x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:258
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6aa1a96890
Code: 48 89 44 24 20 75 93 44 89 54 24 0c e8 19 8f 02 00 44 8b 54 24 0c 89 da 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 6c 8f 02 00 8b 44
RSP: 002b:00007f6aa04abb70 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6aa1a96890
RDX: 0000000000000000 RSI: 00007f6aa04abc10 RDI: 00000000ffffff9c
RBP: 00007f6aa04abc10 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f6aa1c50208 R15: 00007ffe6ef10178
Modules linked in:
---[ end trace 57cd387a8a5a3e5b ]---
RIP: 0010:__pv_queued_spin_lock_slowpath+0x2f3/0xc40 kernel/locking/qspinlock.c:471
Code: 74 1e 48 89 4c 24 10 48 8b 7c 24 10 e8 66 87 5d 00 48 8b 4c 24 10 48 ba 00 00 00 00 00 fc ff df 4c 03 21 4c 89 e0 48 c1 e8 03 <80> 3c 10 00 74 12 4c 89 e7 e8 df 87 5d 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90000e47140 EFLAGS: 00010206
RAX: 0000000000208150 RBX: ffff8881f7138ad4 RCX: ffffffff8626db78
RDX: dffffc0000000000 RSI: 00000000000174da RDI: 00000000000174db
RBP: ffffc90000e47230 R08: ffffffff814199db R09: 0000000000000003
R10: fffffbfff0e99c4c R11: dffffc0000000001 R12: 0000000001040a80
R13: 1ffff11024cf768b R14: 1ffff1103ee27159 R15: ffff8881267bb458
FS: 00007f6aa04ac6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6aa04abf98 CR3: 0000000123b8e000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 74 1e je 0x20
2: 48 89 4c 24 10 mov %rcx,0x10(%rsp)
7: 48 8b 7c 24 10 mov 0x10(%rsp),%rdi
c: e8 66 87 5d 00 call 0x5d8777
11: 48 8b 4c 24 10 mov 0x10(%rsp),%rcx
16: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
1d: fc ff df
20: 4c 03 21 add (%rcx),%r12
23: 4c 89 e0 mov %r12,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) <-- trapping instruction
2e: 74 12 je 0x42
30: 4c 89 e7 mov %r12,%rdi
33: e8 df 87 5d 00 call 0x5d8817
38: 48 rex.W
39: ba 00 00 00 00 mov $0x0,%edx
3e: 00 fc add %bh,%ah