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: 4281 Comm: syz-executor.1 Not tainted 6.0.0-rc6-next-20220923-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/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: 5f 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:ffffc900034c7cd8 EFLAGS: 00010003 RAX: dffffc0000000000 RBX: 1ffff92000698f9c RCX: 0000000000000000 RDX: 000000000000000e RSI: 0000000000000008 RDI: 0000000000000074 RBP: 0000000000000070 R08: 0000000000000000 R09: ffffffff8de06717 R10: fffffbfff1bc0ce2 R11: 000000000008c07e R12: 0000000000000246 R13: ffff888079e82528 R14: ffff88807d61c6b0 R15: ffff88802145b6a0 FS: 00005555570d5400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2c317b0000 CR3: 000000007cca2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 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:0x7f430d23d37b 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:00007ffca7dca130 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f430d23d37b RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000004 RBP: 00007f430d3ad980 R08: 0000000000000000 R09: 00007f430d3b0850 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000013c80 R13: 00007ffca7dca230 R14: 00007ffca7dca250 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: 5f 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:ffffc900034c7cd8 EFLAGS: 00010003 RAX: dffffc0000000000 RBX: 1ffff92000698f9c RCX: 0000000000000000 RDX: 000000000000000e RSI: 0000000000000008 RDI: 0000000000000074 RBP: 0000000000000070 R08: 0000000000000000 R09: ffffffff8de06717 R10: fffffbfff1bc0ce2 R11: 000000000008c07e R12: 0000000000000246 R13: ffff888079e82528 R14: ffff88807d61c6b0 R15: ffff88802145b6a0 FS: 00005555570d5400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2c317b0000 CR3: 000000007cca2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 5f pop %rdi 1: 81 48 8d 14 03 c7 02 orl $0x2c70314,-0x73(%rax) 8: f1 icebp 9: f1 icebp a: f1 icebp b: f1 icebp c: c7 42 04 04 f3 f3 f3 movl $0xf3f3f304,0x4(%rdx) 13: 48 89 fa mov %rdi,%rdx 16: 65 48 8b 0c 25 28 00 mov %gs:0x28,%rcx 1d: 00 00 1f: 48 89 4c 24 60 mov %rcx,0x60(%rsp) 24: 31 c9 xor %ecx,%ecx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 d0 cmp %dl,%al 39: 7c 08 jl 0x43 3b: 84 d2 test %dl,%dl 3d: 0f .byte 0xf 3e: 85 da test %ebx,%edx