general protection fault, probably for non-canonical address 0xdffffc00000000dc: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000006e0-0x00000000000006e7] CPU: 0 PID: 10899 Comm: syz-executor127 Not tainted 6.0.0-rc6-syzkaller-00030-g06f7db949993 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/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:ffffc90003b4fd98 EFLAGS: 00010013 RAX: ffff88801dfff3b0 RBX: ffff888021c6c800 RCX: 00000000000000dc RDX: 0000000000000000 RSI: ffffffff859cdad9 RDI: 00000000000006e4 RBP: 00000000bfb79e80 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000bfb79e80 R11: 0000000000000000 R12: 0000000000000005 R13: dffffc0000000000 R14: 000000004043b6c0 R15: 00000000000006c0 FS: 00007fb487895700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000500 CR3: 000000007e457000 CR4: 0000000000350ef0 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:0x7fb4878ea739 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 16 00 00 90 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:00007fb4878951f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000024 RCX: 00007fb4878ea739 RDX: 0000000020000500 RSI: 00000000c0109207 RDI: 0000000000000004 RBP: 00007fb487975280 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb48797528c R13: 00007ffe010b557f R14: 00007fb487895300 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:ffffc90003b4fd98 EFLAGS: 00010013 RAX: ffff88801dfff3b0 RBX: ffff888021c6c800 RCX: 00000000000000dc RDX: 0000000000000000 RSI: ffffffff859cdad9 RDI: 00000000000006e4 RBP: 00000000bfb79e80 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000bfb79e80 R11: 0000000000000000 R12: 0000000000000005 R13: dffffc0000000000 R14: 000000004043b6c0 R15: 00000000000006c0 FS: 00007fb487895700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000500 CR3: 000000007e457000 CR4: 0000000000350ef0 ---------------- 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