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: 7364 Comm: syz.5.690 Not tainted 5.15.188-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 99 75 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 79 75 67 fa 4c 8b 33 4d 8d ae 70 RSP: 0018:ffffc90002f2fb30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90015f5f000 RSI: 0000000000001cec RDI: 0000000000001ced RBP: 0000000000000003 R08: dffffc0000000000 R09: ffffed100c43e8d3 R10: ffffed100c43e8d3 R11: 1ffff1100c43e8d2 R12: dffffc0000000000 R13: 1ffff1100c43e82b R14: dffffc0000000000 R15: ffff88801a1da780 FS: 00007f4f4fc496c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c3c060f CR3: 000000007ec5b000 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:0x7f4f51de1929 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:00007f4f4fc49038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f4f52008fa0 RCX: 00007f4f51de1929 RDX: 0000200000000440 RSI: 0000000000000707 RDI: 0000000000000004 RBP: 00007f4f51e63b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4f52008fa0 R15: 00007fff838957a8 Modules linked in: ---[ end trace 17be60867da7d1b4 ]--- 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 99 75 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 79 75 67 fa 4c 8b 33 4d 8d ae 70 RSP: 0018:ffffc90002f2fb30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc90015f5f000 RSI: 0000000000001cec RDI: 0000000000001ced RBP: 0000000000000003 R08: dffffc0000000000 R09: ffffed100c43e8d3 R10: ffffed100c43e8d3 R11: 1ffff1100c43e8d2 R12: dffffc0000000000 R13: 1ffff1100c43e82b R14: dffffc0000000000 R15: ffff88801a1da780 FS: 00007f4f4fc496c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdba3d2b286 CR3: 000000007ec5b000 CR4: 00000000003506f0 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 99 75 67 fa call 0xfa6775b2 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 79 75 67 fa call 0xfa6775b2 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