syzbot


general protection fault in pcl818_ai_cancel

Status: upstream: reported C repro on 2025/07/05 10:41
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+fce5d9d5bd067d6fbe9b@syzkaller.appspotmail.com
First crash: 2d15h, last: 1h18m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] general protection fault in pcl818_ai_cancel 1 (3) 2025/07/05 14:06
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 general protection fault in pcl818_ai_cancel origin:upstream C 7 8h29m 10h14m 0/2 upstream: reported C repro on 2025/07/07 14:36
linux-6.1 general protection fault in pcl818_ai_cancel C 4 15h04m 15h45m 0/3 upstream: reported C repro on 2025/07/07 09:05
linux-5.15 general protection fault in pcl818_ai_cancel C 4 21h28m 22h15m 0/3 upstream: reported C repro on 2025/07/07 02:35
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/07/05 12:39 1h26m hdanton@sina.com patch linux-next OK log

Sample crash report:
comedi comedi0: pcl818: I/O port conflict (0x4,16)
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: 5851 Comm: syz-executor850 Not tainted 6.16.0-rc4-next-20250704-syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/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 79 ca 34 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 58 ca 34 f9 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc900040e79f0 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888031712680 RCX: ffff888033e0da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88802faf0800
RBP: 0000000000000001 R08: ffff88802faf092f R09: 1ffff11005f5e125
R10: dffffc0000000000 R11: ffffffff88efad60 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88802faf0800 R15: dffffc0000000000
FS:  000055556b9bb380(0000) GS:ffff8881258af000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 00000000733ce000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 pcl818_detach+0x66/0xd0 drivers/comedi/drivers/pcl818.c:1115
 comedi_device_detach+0x134/0x720 drivers/comedi/drivers.c:207
 comedi_device_attach+0x568/0x670 drivers/comedi/drivers.c:1000
 do_devconfig_ioctl drivers/comedi/comedi_fops.c:855 [inline]
 comedi_unlocked_ioctl+0x686/0xf40 drivers/comedi/comedi_fops.c:2136
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:598 [inline]
 __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:584
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f22113093e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdaf9e46e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffdaf9e48b8 RCX: 00007f22113093e9
RDX: 0000200000000080 RSI: 0000000040946400 RDI: 0000000000000003
RBP: 00007f221137c610 R08: 0000000000000000 R09: 00007ffdaf9e48b8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdaf9e48a8 R14: 0000000000000001 R15: 0000000000000001
 </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 79 ca 34 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 58 ca 34 f9 4d 8b 24 24 48 83 c3
RSP: 0018:ffffc900040e79f0 EFLAGS: 00010206
RAX: 0000000000000005 RBX: ffff888031712680 RCX: ffff888033e0da00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88802faf0800
RBP: 0000000000000001 R08: ffff88802faf092f R09: 1ffff11005f5e125
R10: dffffc0000000000 R11: ffffffff88efad60 R12: 0000000000000028
R13: dffffc0000000000 R14: ffff88802faf0800 R15: dffffc0000000000
FS:  000055556b9bb380(0000) GS:ffff8881258af000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000005fdeb8 CR3: 00000000733ce000 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 79 ca 34 f9       	call   0xf934ca91
  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 58 ca 34 f9       	call   0xf934ca91
  39:	4d 8b 24 24          	mov    (%r12),%r12
  3d:	48                   	rex.W
  3e:	83                   	.byte 0x83
  3f:	c3                   	ret

Crashes (31):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/07/07 04:32 upstream d7b8f8e20813 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in pcl818_ai_cancel
2025/07/07 01:47 upstream 1f988d0788f5 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/07 01:41 upstream 1f988d0788f5 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/06 05:59 upstream 05df91921da6 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/05 17:30 upstream a79a588fc176 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/05 17:30 upstream a79a588fc176 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/05 17:30 upstream a79a588fc176 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/05 17:20 upstream a79a588fc176 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/05 17:20 upstream a79a588fc176 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in pcl818_ai_cancel
2025/07/07 23:32 upstream d7b8f8e20813 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 19:52 upstream d7b8f8e20813 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 18:24 upstream d7b8f8e20813 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 15:47 upstream d7b8f8e20813 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 08:17 upstream 772b78c2abd8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 06:17 upstream 772b78c2abd8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 01:31 upstream 772b78c2abd8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 01:31 upstream 772b78c2abd8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/06 19:11 upstream 1f988d0788f5 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/06 15:51 upstream 1f988d0788f5 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/06 10:27 upstream 1f988d0788f5 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/05 20:30 upstream a79a588fc176 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/05 12:59 upstream c435a4f487e8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/05 11:00 upstream c435a4f487e8 4f67c4ae .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in pcl818_ai_cancel
2025/07/07 01:53 linux-next 26ffb3d6f02c 4f67c4ae .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/07/07 01:53 linux-next 26ffb3d6f02c 4f67c4ae .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/07/07 01:32 linux-next 26ffb3d6f02c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/07 01:31 linux-next 26ffb3d6f02c 4f67c4ae .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in pcl818_ai_cancel
2025/07/06 01:30 linux-next 26ffb3d6f02c 4f67c4ae .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/07/05 08:58 linux-next 26ffb3d6f02c 4f67c4ae .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.