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: 75d, last: 9d07h
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 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 general protection fault in mcp_i2c_xfer origin:upstream C 17 7d08h 76d 0/3 upstream: reported C repro on 2025/03/28 02:43
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

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: 4447 Comm: syz-executor208 Not tainted 5.15.179-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:mcp_i2c_xfer+0x5a/0x430 drivers/hid/hid-mcp2221.c:309
Code: 00 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 aa 2f f6 f9 4c 8b 33 4d 89 f4 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 4c 89 f7 e8 87 2f f6 f9 49 8b 1e 48 8d ab 70
RSP: 0018:ffffc900048df958 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88807c8ee1d8 RCX: ffff888028411dc0
RDX: 0000000000000000 RSI: ffffc900048dfbc0 RDI: ffff88807c8ee030
RBP: dffffc0000000000 R08: ffffffff86bbc579 R09: ffffed100f91dcd3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffffc900048dfbc0
FS:  00007f237bb516c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00002000000012c0 CR3: 000000002be4e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __i2c_transfer+0x85a/0x2100 drivers/i2c/i2c-core-base.c:-1
 i2c_transfer+0x261/0x3a0 drivers/i2c/i2c-core-base.c:2330
 i2c_transfer_buffer_flags+0x17c/0x260 drivers/i2c/i2c-core-base.c:2358
 i2c_master_send include/linux/i2c.h:109 [inline]
 i2cdev_write+0x88/0x130 drivers/i2c/i2c-dev.c:175
 do_loop_readv_writev fs/read_write.c:-1 [inline]
 do_iter_write+0x39c/0x760 fs/read_write.c:857
 vfs_writev fs/read_write.c:928 [inline]
 do_writev+0x281/0x470 fs/read_write.c:971
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f237bba0609
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1f 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f237bb51168 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007f237bc21408 RCX: 00007f237bba0609
RDX: 0000000000000001 RSI: 00002000000012c0 RDI: 0000000000000005
RBP: 00007f237bc21400 R08: 00007f237bb516c0 R09: 0000000000000000
R10: 00007f237bb516c0 R11: 0000000000000246 R12: 00007f237bc2140c
R13: 000000000000000b R14: 00007ffc18b02ce0 R15: 00007ffc18b02dc8
 </TASK>
Modules linked in:
---[ end trace 4d050129d8e3590a ]---
RIP: 0010:mcp_i2c_xfer+0x5a/0x430 drivers/hid/hid-mcp2221.c:309
Code: 00 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 aa 2f f6 f9 4c 8b 33 4d 89 f4 49 c1 ec 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 04 00 74 08 4c 89 f7 e8 87 2f f6 f9 49 8b 1e 48 8d ab 70
RSP: 0018:ffffc900048df958 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88807c8ee1d8 RCX: ffff888028411dc0
RDX: 0000000000000000 RSI: ffffc900048dfbc0 RDI: ffff88807c8ee030
RBP: dffffc0000000000 R08: ffffffff86bbc579 R09: ffffed100f91dcd3
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000001 R14: 0000000000000000 R15: ffffc900048dfbc0
FS:  00007f237bb516c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555667f6da8 CR3: 000000002be4e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 48 89             	add    %cl,-0x77(%rax)
   3:	d8 48 c1             	fmuls  -0x3f(%rax)
   6:	e8 03 80 3c 28       	call   0x283c800e
   b:	00 74 08 48          	add    %dh,0x48(%rax,%rcx,1)
   f:	89 df                	mov    %ebx,%edi
  11:	e8 aa 2f f6 f9       	call   0xf9f62fc0
  16:	4c 8b 33             	mov    (%rbx),%r14
  19:	4d 89 f4             	mov    %r14,%r12
  1c:	49 c1 ec 03          	shr    $0x3,%r12
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	41 80 3c 04 00       	cmpb   $0x0,(%r12,%rax,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 87 2f f6 f9       	call   0xf9f62fc0
  39:	49 8b 1e             	mov    (%r14),%rbx
  3c:	48                   	rex.W
  3d:	8d                   	.byte 0x8d
  3e:	ab                   	stos   %eax,%es:(%rdi)
  3f:	70                   	.byte 0x70

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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.