syzbot


general protection fault in mcp_i2c_xfer

Status: upstream: reported C repro on 2025/03/28 20:36
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+2e1b728f22e5449c2297@syzkaller.appspotmail.com
First crash: 238d, last: 7d02h
Bug presence (3)
Date Name Commit Repro Result
2025/05/17 linux-5.15.y (ToT) 3b8db0e4f263 C [report] general protection fault in mcp_i2c_xfer
2025/03/29 upstream (ToT) 7d06015d936c C [report] unregister_netdevice: waiting for DEV to become free
2025/05/17 upstream (ToT) 172a9d94339c C Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in mcp_i2c_xfer origin:upstream missing-backport 2 C done 32 125d 239d 3/3 fixed on 2025/08/21 13:25
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/04/26 05:32 17m retest repro linux-5.15.y report log
2025/04/26 05:32 13m retest repro linux-5.15.y report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2025/09/06 18:22 12h13m fix candidate upstream error job log

Sample crash report:
udc-core: couldn't find an available UDC or it's busy
misc raw-gadget: fail, usb_gadget_probe_driver returned -16
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: 4591 Comm: syz.4.100 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:mcp_i2c_xfer+0x58/0x420 drivers/hid/hid-mcp2221.c:341
Code: 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 89 be 66 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 69 be 66 fa 4c 8b 33 4d 8d ae 70
RSP: 0018:ffffc90005437b30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880183f9dc0
RDX: 0000000000000000 RSI: ffff8880197fe340 RDI: ffff88807b9dc030
RBP: 0000000000000002 R08: dffffc0000000000 R09: ffffed100f73b8d3
R10: ffffed100f73b8d3 R11: 1ffff1100f73b8d2 R12: dffffc0000000000
R13: 1ffff1100f73b82b R14: dffffc0000000000 R15: ffff8880197fe340
FS:  00007fec2289c6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fec235af000 CR3: 0000000079e52000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __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:0x7fec2322cfc9
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:00007fec2289c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fec23483fa0 RCX: 00007fec2322cfc9
RDX: 0000200000000340 RSI: 0000000000000707 RDI: 0000000000000005
RBP: 00007fec232aff91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fec23484038 R14: 00007fec23483fa0 R15: 00007ffc9e2bf078
 </TASK>
Modules linked in:
---[ end trace d1ce250ce7bab326 ]---
RIP: 0010:mcp_i2c_xfer+0x58/0x420 drivers/hid/hid-mcp2221.c:341
Code: 01 00 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 89 be 66 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 69 be 66 fa 4c 8b 33 4d 8d ae 70
RSP: 0018:ffffc90005437b30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880183f9dc0
RDX: 0000000000000000 RSI: ffff8880197fe340 RDI: ffff88807b9dc030
RBP: 0000000000000002 R08: dffffc0000000000 R09: ffffed100f73b8d3
R10: ffffed100f73b8d3 R11: 1ffff1100f73b8d2 R12: dffffc0000000000
R13: 1ffff1100f73b82b R14: dffffc0000000000 R15: ffff8880197fe340
FS:  00007fec2289c6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fec2287bd58 CR3: 0000000079e52000 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 89 be 66 fa       	call   0xfa66bea2
  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 69 be 66 fa       	call   0xfa66bea2
  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

Crashes (52):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/21 16:05 linux-5.15.y ac56c046adf4 9832ed61 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/03/29 04:04 linux-5.15.y 0c935c049b5c 9a1a9e31 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/03/29 01:33 linux-5.15.y 0c935c049b5c 9a1a9e31 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/15 17:07 linux-5.15.y cc5ec8769306 f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/15 11:28 linux-5.15.y cc5ec8769306 f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/14 18:19 linux-5.15.y cc5ec8769306 f7988ea4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/12 19:15 linux-5.15.y cc5ec8769306 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/09 21:02 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/06 22:29 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/05 14:20 linux-5.15.y cc5ec8769306 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/11/01 18:52 linux-5.15.y cc5ec8769306 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/30 19:34 linux-5.15.y cc5ec8769306 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/30 03:13 linux-5.15.y cc5ec8769306 fd2207e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/29 16:47 linux-5.15.y cc5ec8769306 fd2207e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/25 15:20 linux-5.15.y ac56c046adf4 c0460fcd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/21 07:32 linux-5.15.y ac56c046adf4 9832ed61 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/15 10:16 linux-5.15.y 29e53a5b1c4f b6605ba8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/13 16:15 linux-5.15.y 29e53a5b1c4f b6605ba8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/04 16:06 linux-5.15.y 29e53a5b1c4f 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/10/04 10:15 linux-5.15.y 29e53a5b1c4f 49379ee0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/09/29 14:17 linux-5.15.y 43bb85222e53 86341da6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/09/17 11:09 linux-5.15.y 43bb85222e53 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/09/17 08:19 linux-5.15.y 43bb85222e53 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/09/14 16:16 linux-5.15.y 43bb85222e53 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/09/11 22:59 linux-5.15.y 43bb85222e53 e2beed91 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/27 04:06 linux-5.15.y c79648372d02 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/25 13:26 linux-5.15.y c79648372d02 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/20 18:31 linux-5.15.y c79648372d02 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/19 06:07 linux-5.15.y c79648372d02 523f460e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/18 20:39 linux-5.15.y c79648372d02 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/12 01:06 linux-5.15.y c79648372d02 c06e8995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/07 13:18 linux-5.15.y c79648372d02 04cffc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/07 00:12 linux-5.15.y c79648372d02 9a42d6b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/08/04 22:19 linux-5.15.y c79648372d02 f5bcc8dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/07/28 08:15 linux-5.15.y c79648372d02 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/07/18 21:51 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/07/15 02:52 linux-5.15.y 89950c454265 d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/07/07 13:56 linux-5.15.y 3dea0e7f549e 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/06/30 21:06 linux-5.15.y 3dea0e7f549e 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/06/29 15:56 linux-5.15.y 3dea0e7f549e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/06/17 22:47 linux-5.15.y 1c700860e8bc e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/06/03 03:35 linux-5.15.y 98f47d0e9b8c a30356b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/06/02 15:14 linux-5.15.y 98f47d0e9b8c b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/05/17 14:06 linux-5.15.y 3b8db0e4f263 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/05/17 14:05 linux-5.15.y 3b8db0e4f263 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/05/17 05:48 linux-5.15.y 3b8db0e4f263 f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/04/11 08:13 linux-5.15.y f7347f400572 94486846 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/04/03 09:29 linux-5.15.y 0c935c049b5c 996a9618 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/03/28 21:40 linux-5.15.y 0c935c049b5c 9a1a9e31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/03/28 20:36 linux-5.15.y 0c935c049b5c 9a1a9e31 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in mcp_i2c_xfer
2025/03/29 13:37 linux-5.15.y 0c935c049b5c cf25e2c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 BUG: unable to handle kernel paging request in mcp_i2c_xfer
* Struck through repros no longer work on HEAD.