general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 6265 Comm: syz.3.494 Not tainted 5.15.184-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:mcp_i2c_xfer+0x58/0x420 drivers/hid/hid-mcp2221.c:309 Code: 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 f9 c4 67 fa 48 8b 1b 48 89 d8 48 c1 e8 03 4d 89 f4 48 89 04 24 <42> 80 3c 30 00 74 08 48 89 df e8 d9 c4 67 fa 4c 8b 33 4d 8d ae 70 RSP: 0018:ffffc9000335fb30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000cc81000 RSI: 0000000000001003 RDI: 0000000000001004 RBP: 0000000000000001 R08: dffffc0000000000 R09: ffffed100c467cd3 R10: ffffed100c467cd3 R11: 1ffff1100c467cd2 R12: dffffc0000000000 R13: 1ffff1100c467c2b R14: dffffc0000000000 R15: ffff888029d551a0 FS: 00007fb7aa6b36c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002580 CR3: 0000000079245000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __i2c_transfer+0x864/0x2060 drivers/i2c/i2c-core-base.c:-1 i2c_transfer+0x24c/0x390 drivers/i2c/i2c-core-base.c:2330 i2cdev_ioctl_rdwr+0x3da/0x6c0 drivers/i2c/i2c-dev.c:297 i2cdev_ioctl+0x5ba/0x750 drivers/i2c/i2c-dev.c:458 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fb7ac84b969 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb7aa6b3038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fb7aca72fa0 RCX: 00007fb7ac84b969 RDX: 0000200000002580 RSI: 0000000000000707 RDI: 0000000000000004 RBP: 00007fb7ac8cdab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb7aca72fa0 R15: 00007ffd7f782048 Modules linked in: ---[ end trace d50a37f64f119079 ]--- RIP: 0010:mcp_i2c_xfer+0x58/0x420 drivers/hid/hid-mcp2221.c:309 Code: 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 f9 c4 67 fa 48 8b 1b 48 89 d8 48 c1 e8 03 4d 89 f4 48 89 04 24 <42> 80 3c 30 00 74 08 48 89 df e8 d9 c4 67 fa 4c 8b 33 4d 8d ae 70 RSP: 0018:ffffc9000335fb30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9000cc81000 RSI: 0000000000001003 RDI: 0000000000001004 RBP: 0000000000000001 R08: dffffc0000000000 R09: ffffed100c467cd3 R10: ffffed100c467cd3 R11: 1ffff1100c467cd2 R12: dffffc0000000000 R13: 1ffff1100c467c2b R14: dffffc0000000000 R15: ffff888029d551a0 FS: 00007fb7aa6b36c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5136decf17 CR3: 0000000079245000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 01 00 add %eax,(%rax) 2: 00 48 89 add %cl,-0x77(%rax) 5: d8 48 c1 fmuls -0x3f(%rax) 8: e8 03 42 80 3c call 0x3c804210 d: 30 00 xor %al,(%rax) f: 74 08 je 0x19 11: 48 89 df mov %rbx,%rdi 14: e8 f9 c4 67 fa call 0xfa67c512 19: 48 8b 1b mov (%rbx),%rbx 1c: 48 89 d8 mov %rbx,%rax 1f: 48 c1 e8 03 shr $0x3,%rax 23: 4d 89 f4 mov %r14,%r12 26: 48 89 04 24 mov %rax,(%rsp) * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 d9 c4 67 fa call 0xfa67c512 39: 4c 8b 33 mov (%rbx),%r14 3c: 4d rex.WRB 3d: 8d .byte 0x8d 3e: ae scas %es:(%rdi),%al 3f: 70 .byte 0x70