general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 6752 Comm: syz.6.541 Not tainted 6.1.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/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 79 bf 35 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 59 bf 35 fa 4c 8b 33 4d 8d ae a8 RSP: 0018:ffffc900038f7b30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9001799c000 RSI: 00000000000003d8 RDI: 00000000000003d9 RBP: 0000000000000002 R08: dffffc0000000000 R09: ffffed100a0850ba R10: ffffed100a0850ba R11: 1ffff1100a0850b9 R12: dffffc0000000000 R13: 1ffff1100a08502b R14: dffffc0000000000 R15: ffff88805cb1d540 FS: 00007f85692546c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000002580 CR3: 000000005c03c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __i2c_transfer+0x864/0x2260 drivers/i2c/i2c-core-base.c:-1 i2c_transfer+0x24c/0x390 drivers/i2c/i2c-core-base.c:2333 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:870 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f856838e969 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:00007f8569254038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f85685b5fa0 RCX: 00007f856838e969 RDX: 0000200000002580 RSI: 0000000000000707 RDI: 0000000000000004 RBP: 00007f8568410ab1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f85685b5fa0 R15: 00007ffe45b77998 Modules linked in: ---[ end trace 0000000000000000 ]--- 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 79 bf 35 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 59 bf 35 fa 4c 8b 33 4d 8d ae a8 RSP: 0018:ffffc900038f7b30 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000080000 RDX: ffffc9001799c000 RSI: 00000000000003d8 RDI: 00000000000003d9 RBP: 0000000000000002 R08: dffffc0000000000 R09: ffffed100a0850ba R10: ffffed100a0850ba R11: 1ffff1100a0850b9 R12: dffffc0000000000 R13: 1ffff1100a08502b R14: dffffc0000000000 R15: ffff88805cb1d540 FS: 00007f85692546c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faa77803e9c CR3: 000000005c03c000 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 79 bf 35 fa call 0xfa35bf92 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 59 bf 35 fa call 0xfa35bf92 39: 4c 8b 33 mov (%rbx),%r14 3c: 4d rex.WRB 3d: 8d .byte 0x8d 3e: ae scas %es:(%rdi),%al 3f: a8 .byte 0xa8