syzbot


general protection fault in mcp_i2c_xfer

Status: upstream: reported C repro on 2025/03/28 02:43
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+03d875266c03a05c9ccb@syzkaller.appspotmail.com
First crash: 111d, last: 49m
Bug presence (3)
Date Name Commit Repro Result
2025/07/08 linux-6.1.y (ToT) 04d1ccaa9c28 C [report] general protection fault in mcp_i2c_xfer
2025/05/23 upstream (ToT) 94305e83eccb C [report] lost connection to test machine
2025/07/08 upstream (ToT) d7b8f8e20813 C Didn't crash
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 general protection fault in mcp_i2c_xfer missing-backport origin:upstream 8 C 17 2d21h 111d 0/3 upstream: reported C repro on 2025/03/28 20:36

Sample crash report:
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: 4404 Comm: syz-executor187 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:ffffc90005f3fb30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88802cce3b80
RDX: 0000000000000000 RSI: ffff888141b78a40 RDI: ffff88806dd70030
RBP: 0000000000000002 R08: dffffc0000000000 R09: ffffed100dbae0ba
R10: ffffed100dbae0ba R11: 1ffff1100dbae0b9 R12: dffffc0000000000
R13: 1ffff1100dbae02b R14: dffffc0000000000 R15: ffff888141b78a40
FS:  000055557b2c5380(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000002580 CR3: 0000000023acd000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __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:0x7fda30309ed9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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:00007ffe8b48da08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000018cf6 RCX: 00007fda30309ed9
RDX: 0000200000002580 RSI: 0000000000000707 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00232d6332692f76 R09: 0000000000000008
R10: 000000000000000f R11: 0000000000000246 R12: 00007ffe8b48da2c
R13: 00007ffe8b48da60 R14: 00007ffe8b48da40 R15: 0000000000000019
 </TASK>
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:ffffc90005f3fb30 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88802cce3b80
RDX: 0000000000000000 RSI: ffff888141b78a40 RDI: ffff88806dd70030
RBP: 0000000000000002 R08: dffffc0000000000 R09: ffffed100dbae0ba
R10: ffffed100dbae0ba R11: 1ffff1100dbae0b9 R12: dffffc0000000000
R13: 1ffff1100dbae02b R14: dffffc0000000000 R15: ffff888141b78a40
FS:  000055557b2c5380(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fda303810f0 CR3: 0000000023acd000 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

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/16 07:05 linux-6.1.y 02b72ccb5f9d cfde8269 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/03/30 14:41 linux-6.1.y 8e60a714ba3b d3999433 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/07/17 23:43 linux-6.1.y f2198ea7eb3e 0d1223f1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/07/15 06:31 linux-6.1.y f2198ea7eb3e 03fcfc4b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/07/15 00:13 linux-6.1.y f2198ea7eb3e d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/07/14 20:40 linux-6.1.y f2198ea7eb3e d8fc7335 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/07/03 07:59 linux-6.1.y 7e69c33e4858 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/29 06:20 linux-6.1.y 7e69c33e4858 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/24 20:29 linux-6.1.y 58485ff1a74f 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/24 20:26 linux-6.1.y 58485ff1a74f 26d77996 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/24 01:40 linux-6.1.y 58485ff1a74f e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/23 17:00 linux-6.1.y 58485ff1a74f d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/20 15:40 linux-6.1.y 58485ff1a74f 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/17 22:54 linux-6.1.y 58485ff1a74f e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/17 05:14 linux-6.1.y 58485ff1a74f cfebc887 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/14 19:49 linux-6.1.y 58485ff1a74f 5f4b362d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/05 02:09 linux-6.1.y 58485ff1a74f 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/02 18:49 linux-6.1.y da3c5173c55f b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/06/02 18:48 linux-6.1.y da3c5173c55f b396b4bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/05/31 14:52 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/05/27 05:01 linux-6.1.y da3c5173c55f 874a1386 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/05/17 10:50 linux-6.1.y 02b72ccb5f9d f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/05/17 03:58 linux-6.1.y 02b72ccb5f9d f41472b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/05/15 21:07 linux-6.1.y 02b72ccb5f9d cfde8269 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/04/15 13:33 linux-6.1.y 420102835862 23b969b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/04/11 10:52 linux-6.1.y 420102835862 94486846 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/04/11 10:51 linux-6.1.y 420102835862 94486846 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/04/11 10:50 linux-6.1.y 420102835862 94486846 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/04/10 22:29 linux-6.1.y 420102835862 1ef3ab4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/03/30 05:51 linux-6.1.y 8e60a714ba3b d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
2025/03/28 02:43 linux-6.1.y 344a09659766 6c09fb82 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in mcp_i2c_xfer
* Struck through repros no longer work on HEAD.