syzbot


general protection fault in pcl818_ai_cancel

Status: upstream: reported C repro on 2025/07/07 09:05
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+da192cae9ff294f73da8@syzkaller.appspotmail.com
First crash: 2d02h, last: 1d00h
Bug presence (1)
Date Name Commit Repro Result
2025/07/08 upstream (ToT) d7b8f8e20813 C [report] general protection fault in pcl818_ai_cancel
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in pcl818_ai_cancel kernel 2 C 41 3h06m 4d00h 0/29 upstream: reported C repro on 2025/07/05 10:41
linux-6.6 general protection fault in pcl818_ai_cancel origin:upstream 2 C 9 23h18m 1d20h 0/2 upstream: reported C repro on 2025/07/07 14:36
linux-5.15 general protection fault in pcl818_ai_cancel 2 C 8 20h28m 2d08h 0/3 upstream: reported C repro on 2025/07/07 02:35

Sample crash report:
comedi comedi3: pcl818: I/O port conflict (0xfffffffffffffffb,16)
general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 0 PID: 4412 Comm: syz.0.16 Not tainted 6.1.143-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:pcl818_ai_cancel+0x65/0x3e0 drivers/comedi/drivers/pcl818.c:762
Code: 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 cd 99 16 fa 48 8b 03 48 89 04 24 49 83 c4 28 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 ac 99 16 fa 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc90003497a10 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888079777800 RCX: ffff8880290c8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814cfc9800
RBP: 0000000000000001 R08: dffffc0000000000 R09: ffffed10299f9326
R10: ffffed10299f9326 R11: 1ffff110299f9325 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88814cfc9800 R15: dffffc0000000000
FS:  0000555582f7c500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2bf5ffff CR3: 0000000028193000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pcl818_detach+0x62/0xd0 drivers/comedi/drivers/pcl818.c:1115
 comedi_device_detach+0x12d/0x6e0 drivers/comedi/drivers.c:206
 comedi_device_attach+0x55d/0x650 drivers/comedi/drivers.c:999
 do_devconfig_ioctl drivers/comedi/comedi_fops.c:851 [inline]
 comedi_unlocked_ioctl+0x5ec/0xe90 drivers/comedi/comedi_fops.c:2131
 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:0x7f802638e929
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:00007ffd67df3198 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f80265b5fa0 RCX: 00007f802638e929
RDX: 0000200000000140 RSI: 0000000040946400 RDI: 0000000000000003
RBP: 00007f8026410b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f80265b5fa0 R14: 00007f80265b5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pcl818_ai_cancel+0x65/0x3e0 drivers/comedi/drivers/pcl818.c:762
Code: 8b 1b 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 cd 99 16 fa 48 8b 03 48 89 04 24 49 83 c4 28 4c 89 e0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 e7 e8 ac 99 16 fa 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc90003497a10 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888079777800 RCX: ffff8880290c8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814cfc9800
RBP: 0000000000000001 R08: dffffc0000000000 R09: ffffed10299f9326
R10: ffffed10299f9326 R11: 1ffff110299f9325 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88814cfc9800 R15: dffffc0000000000
FS:  0000555582f7c500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005616fa22e030 CR3: 0000000028193000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8b 1b                	mov    (%rbx),%ebx
   2:	48 89 d8             	mov    %rbx,%rax
   5:	48 c1 e8 03          	shr    $0x3,%rax
   9:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
   e:	74 08                	je     0x18
  10:	48 89 df             	mov    %rbx,%rdi
  13:	e8 cd 99 16 fa       	call   0xfa1699e5
  18:	48 8b 03             	mov    (%rbx),%rax
  1b:	48 89 04 24          	mov    %rax,(%rsp)
  1f:	49 83 c4 28          	add    $0x28,%r12
  23:	4c 89 e0             	mov    %r12,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 e7             	mov    %r12,%rdi
  34:	e8 ac 99 16 fa       	call   0xfa1699e5
  39:	4d 8b 24 24          	mov    (%r12),%r12
  3d:	48                   	rex.W
  3e:	83                   	.byte 0x83
  3f:	c3                   	ret

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/07 09:46 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in pcl818_ai_cancel
2025/07/07 09:26 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in pcl818_ai_cancel
2025/07/08 11:15 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in pcl818_ai_cancel
2025/07/08 11:15 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in pcl818_ai_cancel
2025/07/07 09:04 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in pcl818_ai_cancel
2025/07/07 09:04 linux-6.1.y 04d1ccaa9c28 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan general protection fault in pcl818_ai_cancel
* Struck through repros no longer work on HEAD.