syzbot


general protection fault in pcl818_ai_cancel

Status: upstream: reported C repro on 2025/07/05 10:41
Subsystems: comedi
[Documentation on labels]
Reported-by: syzbot+fce5d9d5bd067d6fbe9b@syzkaller.appspotmail.com
Fix commit: comedi: pcl818: fix null-ptr-deref in pcl818_ai_cancel()
Patched on: [ci-upstream-linux-next-kasan-gce-root ci-upstream-rust-kasan-gce], missing on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 152d, last: now
Cause bisection: failed (error log, bisect log)
  
Discussions (7)
Title Replies (including bot) Last reply
[syzbot] Monthly comedi report (Nov 2025) 0 (1) 2025/11/27 12:42
[PATCH v2] comedi: pcl818: fix null-ptr-deref in pcl818_ai_cancel() 2 (2) 2025/10/23 14:28
[syzbot] [kernel?] general protection fault in pcl818_ai_cancel 2 (5) 2025/10/23 14:05
[PATCH] comedi: pcl818: fix null-ptr-deref in pcl818_ai_cancel() 2 (2) 2025/10/22 10:02
[syzbot] Monthly comedi report (Sep 2025) 0 (1) 2025/09/24 12:39
[syzbot] Monthly comedi report (Aug 2025) 0 (1) 2025/08/25 08:44
[syzbot] Monthly comedi report (Jul 2025) 0 (1) 2025/07/24 09:32
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 general protection fault in pcl818_ai_cancel origin:upstream 2 C 977 8h15m 150d 0/2 upstream: reported C repro on 2025/07/07 14:36
linux-6.1 general protection fault in pcl818_ai_cancel origin:upstream 2 C 764 2h19m 150d 0/3 upstream: reported C repro on 2025/07/07 09:05
linux-5.15 general protection fault in pcl818_ai_cancel origin:upstream 2 C 687 6h44m 150d 0/3 upstream: reported C repro on 2025/07/07 02:35
Last patch testing requests (2)
Created Duration User Patch Repo Result
2025/10/23 13:46 17m n.zhandarovich@fintech.ru patch linux-next error
2025/07/05 12:39 1h26m hdanton@sina.com patch linux-next OK log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 UID: 0 PID: 6011 Comm: syz.0.18 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:pcl818_ai_cancel+0x69/0x3f0 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 19 e3 65 f9 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 f8 e2 65 f9 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc9000391fa40 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff8880760a9200 RCX: ffff8880332e3c80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814c75e000
RBP: 0000000000000001 R08: ffff88814c75e12f R09: 1ffff110298ebc25
R10: dffffc0000000000 R11: ffffffff88c03b50 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88814c75e000 R15: dffffc0000000000
FS:  000055555d10a500(0000) GS:ffff888125ddc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2fd63fff CR3: 0000000077e54000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 pcl818_detach+0x66/0xd0 drivers/comedi/drivers/pcl818.c:1115
 comedi_device_detach_locked+0x178/0x750 drivers/comedi/drivers.c:207
 do_devconfig_ioctl drivers/comedi/comedi_fops.c:848 [inline]
 comedi_unlocked_ioctl+0xd0b/0x1050 drivers/comedi/comedi_fops.c:2178
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:597 [inline]
 __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe3deb8efc9
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:00007ffd7c925fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe3dede5fa0 RCX: 00007fe3deb8efc9
RDX: 0000000000000000 RSI: 0000000040946400 RDI: 0000000000000003
RBP: 00007fe3dec11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe3dede5fa0 R14: 00007fe3dede5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:pcl818_ai_cancel+0x69/0x3f0 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 19 e3 65 f9 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 f8 e2 65 f9 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc9000391fa40 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff8880760a9200 RCX: ffff8880332e3c80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88814c75e000
RBP: 0000000000000001 R08: ffff88814c75e12f R09: 1ffff110298ebc25
R10: dffffc0000000000 R11: ffffffff88c03b50 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88814c75e000 R15: dffffc0000000000
FS:  000055555d10a500(0000) GS:ffff888125cdc000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a7c2874138 CR3: 0000000077e54000 CR4: 00000000003526f0
----------------
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 19 e3 65 f9       	call   0xf965e331
  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 f8 e2 65 f9       	call   0xf965e331
  39:	4d 8b 24 24          	mov    (%r12),%r12
  3d:	48                   	rex.W
  3e:	83                   	.byte 0x83
  3f:	c3                   	ret

Crashes (14142):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/26 22:08 linux-next 72fb0170ef1f c0460fcd .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/10/26 12:02 linux-next 72fb0170ef1f c0460fcd .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/10/16 14:48 linux-next 1fdbb3ff1233 19568248 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/09/20 10:08 linux-next 846bd2225ec3 67c37560 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/09/17 11:45 linux-next 590b221ed425 e2beed91 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/23 00:36 linux-next d086c886ceb9 85deaf45 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/10 21:54 linux-next b551c4e2a98a 19d4829f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/10 17:35 linux-next b551c4e2a98a 19d4829f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/10 14:38 linux-next b551c4e2a98a 19d4829f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/05 15:24 linux-next 26ffb3d6f02c 4f67c4ae .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/05 10:09 linux-next 26ffb3d6f02c 4f67c4ae .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/12/04 23:11 upstream 2aa680df6806 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/04 20:59 upstream 559e608c4655 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/04 18:33 upstream 559e608c4655 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/04 11:08 upstream 559e608c4655 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/03 22:06 upstream a619fe35ab41 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/03 09:52 upstream 3f9f0252130e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/03 09:50 upstream 3f9f0252130e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/03 08:19 upstream 619f4edc8d4f d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/03 06:31 upstream 619f4edc8d4f d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/03 03:35 upstream 619f4edc8d4f d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/02 21:58 upstream 4a26e7032d7d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/02 16:31 upstream 4a26e7032d7d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/02 15:28 upstream 4a26e7032d7d d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/02 13:30 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/02 10:00 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/02 05:25 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/02 02:55 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/02 02:53 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/02 00:16 upstream 1d18101a644e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/01 20:23 upstream 7d0a66e4bb90 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/01 11:54 upstream 7d0a66e4bb90 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/01 11:53 upstream 7d0a66e4bb90 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/12/01 10:05 upstream 7d0a66e4bb90 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/12/04 22:02 upstream 6dfafbd0299a d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 15:53 upstream cc25df3e2e22 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 13:20 upstream cc25df3e2e22 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 09:45 upstream cc25df3e2e22 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 07:49 upstream cc25df3e2e22 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 04:42 upstream 3f9f0252130e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 02:45 upstream 3f9f0252130e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 01:18 upstream 3f9f0252130e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/04 00:06 upstream 3f9f0252130e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/03 19:53 upstream 3f9f0252130e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/03 11:13 upstream 44fc84337b6e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/03 05:07 upstream 44fc84337b6e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/03 00:44 upstream 4a26e7032d7d d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/02 19:34 upstream 4a26e7032d7d d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/02 08:48 upstream 1d18101a644e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/02 07:30 upstream 1d18101a644e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/02 03:57 upstream 1d18101a644e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/02 01:36 upstream 1d18101a644e d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/01 18:31 upstream 7d0a66e4bb90 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/01 15:47 upstream 7d0a66e4bb90 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/12/01 13:32 upstream 7d0a66e4bb90 d1b870e1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/11/28 05:26 linux-next ef68bf704646 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/11/27 21:01 linux-next ef68bf704646 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
* Struck through repros no longer work on HEAD.