general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000070-0x0000000000000077] CPU: 1 PID: 30203 Comm: syz-executor.3 Not tainted 6.1.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] RIP: 0010:do_raw_spin_lock+0x69/0x2a0 kernel/locking/spinlock_debug.c:114 Code: 60 81 48 8d 14 03 c7 02 f1 f1 f1 f1 c7 42 04 04 f3 f3 f3 48 89 fa 65 48 8b 0c 25 28 00 00 00 48 89 4c 24 60 31 c9 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 da RSP: 0018:ffffc90006ad7cd8 EFLAGS: 00010003 RAX: dffffc0000000000 RBX: 1ffff92000d5af9c RCX: 0000000000000000 RDX: 000000000000000e RSI: 0000000000000008 RDI: 0000000000000074 RBP: 0000000000000070 R08: 0000000000000000 R09: ffffffff8de21957 R10: fffffbfff1bc432a R11: 000000000008c07e R12: 0000000000000246 R13: ffff88807a3dbba8 R14: ffff8880699cb3c0 R15: ffff888021dffb20 FS: 00005555565ad400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ef27000 CR3: 0000000033b48000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x41/0x50 kernel/locking/spinlock.c:162 hidraw_release+0xc9/0x4c0 drivers/hid/hidraw.c:352 __fput+0x27c/0xa90 fs/file_table.c:320 task_work_run+0x16b/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:296 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fdf6e43d3cb Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007fdf6eadfb80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fdf6e43d3cb RDX: 00007fdf6e5b05b0 RSI: ffffffffffffffff RDI: 0000000000000004 RBP: 00007fdf6e5ad980 R08: 0000000000000000 R09: 00007fdf6e5b05b8 R10: 00007fdf6eadfc80 R11: 0000000000000293 R12: 00000000000b16d1 R13: 00007fdf6eadfc80 R14: 00007fdf6e5abf80 R15: 0000000000000032 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] RIP: 0010:do_raw_spin_lock+0x69/0x2a0 kernel/locking/spinlock_debug.c:114 Code: 60 81 48 8d 14 03 c7 02 f1 f1 f1 f1 c7 42 04 04 f3 f3 f3 48 89 fa 65 48 8b 0c 25 28 00 00 00 48 89 4c 24 60 31 c9 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 da RSP: 0018:ffffc90006ad7cd8 EFLAGS: 00010003 RAX: dffffc0000000000 RBX: 1ffff92000d5af9c RCX: 0000000000000000 RDX: 000000000000000e RSI: 0000000000000008 RDI: 0000000000000074 RBP: 0000000000000070 R08: 0000000000000000 R09: ffffffff8de21957 R10: fffffbfff1bc432a R11: 000000000008c07e R12: 0000000000000246 R13: ffff88807a3dbba8 R14: ffff8880699cb3c0 R15: ffff888021dffb20 FS: 00005555565ad400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2ef27000 CR3: 0000000033b48000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 81 48 8d 14 03 c7 02 orl $0x2c70314,-0x73(%rax) 7: f1 icebp 8: f1 icebp 9: f1 icebp a: f1 icebp b: c7 42 04 04 f3 f3 f3 movl $0xf3f3f304,0x4(%rdx) 12: 48 89 fa mov %rdi,%rdx 15: 65 48 8b 0c 25 28 00 mov %gs:0x28,%rcx 1c: 00 00 1e: 48 89 4c 24 60 mov %rcx,0x60(%rsp) 23: 31 c9 xor %ecx,%ecx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2d: 48 89 f8 mov %rdi,%rax 30: 83 e0 07 and $0x7,%eax 33: 83 c0 03 add $0x3,%eax 36: 38 d0 cmp %dl,%al 38: 7c 08 jl 0x42 3a: 84 d2 test %dl,%dl 3c: 0f .byte 0xf 3d: 85 da test %ebx,%edx