divide error in comedi_inc_scan_progress (3)

Status: upstream: reported on 2026/10/03 13:05
Reported-by: syzbot+d7d5d94b0246c6b53329@syzkaller.appspotmail.com
First crash: 49d, last: 9d12h
▶ ▼ Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 divide error in comedi_inc_scan_progress (3) 2 2 32d 35d 0/3 upstream: reported on 2026/10/17 01:38
linux-6.1 divide error in comedi_inc_scan_progress (2) 2 2 4d08h 5d09h 0/3 upstream: reported on 2026/11/16 12:51
linux-5.15 divide error in comedi_inc_scan_progress (2) 2 3 218d 267d 0/3 auto-obsoleted due to no activity on 2026/07/26 01:11
linux-6.6 divide error in comedi_inc_scan_progress (2) 2 8 238d 381d 0/2 auto-obsoleted due to no activity on 2026/07/06 18:52
linux-6.6 divide error in comedi_inc_scan_progress 2 2 485d 487d 0/2 auto-obsoleted due to no activity on 2025/11/01 16:46
upstream divide error in comedi_inc_scan_progress comedi 2 74 349d 501d 0/29 auto-obsoleted due to no activity on 2026/02/15 00:02
linux-5.15 divide error in comedi_inc_scan_progress 2 2 367d 367d 0/3 auto-obsoleted due to no activity on 2026/02/27 00:49
linux-6.1 divide error in comedi_inc_scan_progress 2 5 208d 346d 0/3 auto-obsoleted due to no activity on 2026/08/05 06:47

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:comedi_inc_scan_progress+0x1a9/0x420 drivers/comedi/drivers.c:562
Code: 0c 29 84 c9 0f 85 ad 01 00 00 03 43 34 4c 8d a3 88 00 00 00 4c 89 e1 48 c1 e9 03 42 0f b6 0c 29 84 c9 0f 85 b3 01 00 00 31 d2 <41> f7 34 24 41 89 17 eb 05 e8 19 31 69 f9 4c 8d 63 3c 4d 89 e7 49
RSP: 0000:ffffc90000007c70 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff888025d4be00 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff520016ba201 R12: ffff888025d4be88
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888025d4be34
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c4625e9 CR3: 0000000034608000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 comedi_buf_write_samples+0x375/0x5d0 drivers/comedi/comedi_buf.c:646
 parport_interrupt+0x13f/0x1b0 drivers/comedi/drivers/comedi_parport.c:225
 __handle_irq_event_percpu+0x271/0x940 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:210
 handle_edge_irq+0x246/0xb20 kernel/irq/chip.c:831
 generic_handle_irq_desc include/linux/irqdesc.h:161 [inline]
 handle_irq arch/x86/kernel/irq.c:240 [inline]
 __common_interrupt+0x13b/0x230 arch/x86/kernel/irq.c:259
 common_interrupt+0xb4/0xd0 arch/x86/kernel/irq.c:249
 </IRQ>
 <TASK>
 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:678
RIP: 0010:pv_native_safe_halt+0xf/0x10 arch/x86/kernel/paravirt.c:148
Code: f1 33 02 c3 cc cc cc cc cc cc cc f3 0f 1e fa 0f 0b 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 66 90 0f 00 2d e3 61 50 00 fb f4 <c3> 66 0f 1f 00 55 41 57 41 56 41 54 53 50 8b 2f eb 2c 89 cb 80 f9
RSP: 0000:ffffffff8de07d80 EFLAGS: 000002c2
RAX: e81b3fad20acb900 RBX: ffffffff81635e14 RCX: e81b3fad20acb900
RDX: 0000000000000001 RSI: ffffffff8aead140 RDI: ffffffff8b3c5260
RBP: ffffffff8de07eb8 R08: ffff8880b8c36b6b R09: 1ffff11017186d6d
R10: dffffc0000000000 R11: ffffed1017186d6e R12: 1ffffffff1bc0fbc
R13: dffffc0000000000 R14: 1ffffffff1bd2690 R15: 0000000000000000
 arch_safe_halt arch/x86/include/asm/paravirt.h:108 [inline]
 default_idle+0x13/0x20 arch/x86/kernel/process.c:753
 default_idle_call+0x6c/0xa0 kernel/sched/idle.c:97
 cpuidle_idle_call kernel/sched/idle.c:178 [inline]
 do_idle+0x334/0x5c0 kernel/sched/idle.c:302
 cpu_startup_entry+0x43/0x60 kernel/sched/idle.c:401
 rest_init+0x2e2/0x300 init/main.c:710
 arch_call_rest_init+0xe/0x10 init/main.c:806
 start_kernel+0x461/0x4e0 init/main.c:1051
 x86_64_start_reservations+0x2a/0x30 arch/x86/kernel/head64.c:555
 x86_64_start_kernel+0x60/0x60 arch/x86/kernel/head64.c:536
 secondary_startup_64_no_verify+0x179/0x17b
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:comedi_inc_scan_progress+0x1a9/0x420 drivers/comedi/drivers.c:562
Code: 0c 29 84 c9 0f 85 ad 01 00 00 03 43 34 4c 8d a3 88 00 00 00 4c 89 e1 48 c1 e9 03 42 0f b6 0c 29 84 c9 0f 85 b3 01 00 00 31 d2 <41> f7 34 24 41 89 17 eb 05 e8 19 31 69 f9 4c 8d 63 3c 4d 89 e7 49
RSP: 0000:ffffc90000007c70 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff888025d4be00 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
R10: dffffc0000000000 R11: fffff520016ba201 R12: ffff888025d4be88
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888025d4be34
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c4625e9 CR3: 0000000034608000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
   0:	0c 29                	or     $0x29,%al
   2:	84 c9                	test   %cl,%cl
   4:	0f 85 ad 01 00 00    	jne    0x1b7
   a:	03 43 34             	add    0x34(%rbx),%eax
   d:	4c 8d a3 88 00 00 00 	lea    0x88(%rbx),%r12
  14:	4c 89 e1             	mov    %r12,%rcx
  17:	48 c1 e9 03          	shr    $0x3,%rcx
  1b:	42 0f b6 0c 29       	movzbl (%rcx,%r13,1),%ecx
  20:	84 c9                	test   %cl,%cl
  22:	0f 85 b3 01 00 00    	jne    0x1db
  28:	31 d2                	xor    %edx,%edx
* 2a:	41 f7 34 24          	divl   (%r12) <-- trapping instruction
  2e:	41 89 17             	mov    %edx,(%r15)
  31:	eb 05                	jmp    0x38
  33:	e8 19 31 69 f9       	call   0xf9693151
  38:	4c 8d 63 3c          	lea    0x3c(%rbx),%r12
  3c:	4d 89 e7             	mov    %r12,%r15
  3f:	49                   	rex.WB

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/12 09:41 linux-6.6.y 5139929c698c 8d68b303 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
2026/11/12 09:41 linux-6.6.y 5139929c698c 8d68b303 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
2026/10/03 13:04 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
2026/10/03 13:04 linux-6.6.y a91a6aa9253c 57bbd979 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
* Struck through repros no longer work on HEAD.