general protection fault, probably for non-canonical address 0xdffffc00000001fc: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000fe0-0x0000000000000fe7] CPU: 0 PID: 7149 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:mon_bin_flush+0x131/0x290 drivers/usb/mon/mon_bin.c:885 Code: 48 c1 e9 03 42 80 3c 29 00 0f 85 4f 01 00 00 44 89 f1 81 e1 ff 0f 00 00 48 03 48 08 48 8d 79 24 49 89 cf 48 89 f9 48 c1 e9 03 <42> 0f b6 34 29 48 89 f9 83 e1 07 83 c1 03 40 38 f1 7c 09 40 84 f6 RSP: 0018:ffffc9000494fd98 EFLAGS: 00010007 RAX: ffff888042130b60 RBX: ffff88807aefc400 RCX: 00000000000001fc RDX: 0000000000000000 RSI: ffffffff859cf539 RDI: 0000000000000fe4 RBP: 00000000feffe280 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000feffe280 R11: 0000000000000000 R12: 0000000000000003 R13: dffffc0000000000 R14: 0000000000fb6fc0 R15: 0000000000000fc0 FS: 00007f5fd71bc700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5fd717a718 CR3: 0000000074bf7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: mon_bin_ioctl+0x198/0xcc0 drivers/usb/mon/mon_bin.c:1091 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5fd828a5a9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5fd71bc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f5fd83ac120 RCX: 00007f5fd828a5a9 RDX: 00000000200005c0 RSI: 00000000c0109207 RDI: 0000000000000004 RBP: 00007f5fd82e5580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5fd88dfb1f R14: 00007f5fd71bc300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mon_bin_flush+0x131/0x290 drivers/usb/mon/mon_bin.c:885 Code: 48 c1 e9 03 42 80 3c 29 00 0f 85 4f 01 00 00 44 89 f1 81 e1 ff 0f 00 00 48 03 48 08 48 8d 79 24 49 89 cf 48 89 f9 48 c1 e9 03 <42> 0f b6 34 29 48 89 f9 83 e1 07 83 c1 03 40 38 f1 7c 09 40 84 f6 RSP: 0018:ffffc9000494fd98 EFLAGS: 00010007 RAX: ffff888042130b60 RBX: ffff88807aefc400 RCX: 00000000000001fc RDX: 0000000000000000 RSI: ffffffff859cf539 RDI: 0000000000000fe4 RBP: 00000000feffe280 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000feffe280 R11: 0000000000000000 R12: 0000000000000003 R13: dffffc0000000000 R14: 0000000000fb6fc0 R15: 0000000000000fc0 FS: 00007f5fd71bc700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5fd717a718 CR3: 0000000074bf7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 c1 e9 03 shr $0x3,%rcx 4: 42 80 3c 29 00 cmpb $0x0,(%rcx,%r13,1) 9: 0f 85 4f 01 00 00 jne 0x15e f: 44 89 f1 mov %r14d,%ecx 12: 81 e1 ff 0f 00 00 and $0xfff,%ecx 18: 48 03 48 08 add 0x8(%rax),%rcx 1c: 48 8d 79 24 lea 0x24(%rcx),%rdi 20: 49 89 cf mov %rcx,%r15 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 42 0f b6 34 29 movzbl (%rcx,%r13,1),%esi <-- trapping instruction 2f: 48 89 f9 mov %rdi,%rcx 32: 83 e1 07 and $0x7,%ecx 35: 83 c1 03 add $0x3,%ecx 38: 40 38 f1 cmp %sil,%cl 3b: 7c 09 jl 0x46 3d: 40 84 f6 test %sil,%sil