divide error in comedi_inc_scan_progress (2)

Status: upstream: reported on 2026/11/16 12:51
Reported-by: syzbot+5b22e9a551844fd19fd5@syzkaller.appspotmail.com
First crash: 14d, last: 3d12h
▶ ▼ 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 41d 45d 0/3 upstream: reported on 2026/10/17 01:38
linux-6.6 divide error in comedi_inc_scan_progress (3) 2 8 7d04h 58d 0/2 upstream: reported on 2026/10/03 13:05
linux-5.15 divide error in comedi_inc_scan_progress (2) 2 3 228d 276d 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 247d 390d 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 494d 497d 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 359d 510d 0/30 auto-obsoleted due to no activity on 2026/02/15 00:02
linux-5.15 divide error in comedi_inc_scan_progress 2 2 377d 377d 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 217d 355d 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: 14485 Comm: syz.3.1811 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:comedi_inc_scan_progress+0x1a5/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 6d 13 ab f9 4c 8d 63 3c 4d 89 e7 49
RSP: 0018:ffffc90000007c70 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff8880315cf600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: ffffc90005bf1001 R09: 1ffff92000b7e200
R10: dffffc0000000000 R11: fffff52000b7e201 R12: ffff8880315cf688
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880315cf634
FS:  00007f8cb75f66c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcaa549f48 CR3: 00000000375d1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 comedi_buf_write_samples+0x371/0x5d0 drivers/comedi/comedi_buf.c:646
 parport_interrupt+0x13b/0x1a0 drivers/comedi/drivers/comedi_parport.c:225
 __handle_irq_event_percpu+0x293/0xa50 kernel/irq/handle.c:158
 handle_irq_event_percpu kernel/irq/handle.c:193 [inline]
 handle_irq_event+0x87/0x1e0 kernel/irq/handle.c:210
 handle_edge_irq+0x242/0xb20 kernel/irq/chip.c:819
 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline]
 handle_irq arch/x86/kernel/irq.c:233 [inline]
 __common_interrupt+0xd7/0x1e0 arch/x86/kernel/irq.c:252
 common_interrupt+0xb0/0xd0 arch/x86/kernel/irq.c:242
 </IRQ>
 <TASK>
 asm_common_interrupt+0x22/0x40 arch/x86/include/asm/idtentry.h:682
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xbc/0x120 kernel/locking/spinlock.c:194
Code: c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 41 c6 04 07 f8 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> cf c6 14 f7 65 8b 05 e0 3c be 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc90003537a20 EFLAGS: 00000206
RAX: dffffc0000000004 RBX: 0000000000000a06 RCX: 592b540069208300
RDX: dffffc0000000000 RSI: ffffffff8aac2360 RDI: 0000000000000001
RBP: ffffc90003537ab0 R08: ffffffff91b6c297 R09: 1ffffffff236d852
R10: dffffc0000000000 R11: fffffbfff236d853 R12: dffffc0000000000
R13: ffffffff97ffa950 R14: ffffffff97ffa950 R15: 1ffff920006a6f44
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 autoconfig drivers/tty/serial/8250/8250_port.c:1347 [inline]
 serial8250_config_port+0x1a17/0x36d0 drivers/tty/serial/8250/8250_port.c:3230
 univ8250_config_port+0x393/0x940 drivers/tty/serial/8250/8250_core.c:444
 uart_do_autoconfig drivers/tty/serial/serial_core.c:1181 [inline]
 uart_ioctl+0x12e0/0x15a0 drivers/tty/serial/serial_core.c:1576
 tty_ioctl+0x7e6/0xba0 drivers/tty/tty_io.c:2793
 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:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f8cb93a9b59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8cb75f6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f8cb9635fa0 RCX: 00007f8cb93a9b59
RDX: 0000000000000000 RSI: 0000000000005453 RDI: 0000000000000008
RBP: 00007f8cb943a18b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f8cb9636038 R14: 00007f8cb9635fa0 R15: 00007ffe9064f178
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:comedi_inc_scan_progress+0x1a5/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 6d 13 ab f9 4c 8d 63 3c 4d 89 e7 49
RSP: 0018:ffffc90000007c70 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff8880315cf600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: ffffc90005bf1001 R09: 1ffff92000b7e200
R10: dffffc0000000000 R11: fffff52000b7e201 R12: ffff8880315cf688
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880315cf634
FS:  00007f8cb75f66c0(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcaa549f48 CR3: 00000000375d1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
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 6d 13 ab f9       	call   0xf9ab13a5
  38:	4c 8d 63 3c          	lea    0x3c(%rbx),%r12
  3c:	4d 89 e7             	mov    %r12,%r15
  3f:	49                   	rex.WB

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/27 17:05 linux-6.1.y 1ca1436ccc68 bff1a522 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/11/27 17:02 linux-6.1.y 1ca1436ccc68 bff1a522 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/11/27 17:01 linux-6.1.y 1ca1436ccc68 bff1a522 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/11/17 13:19 linux-6.1.y c75b0cf0982c 43af6cac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/11/16 12:51 linux-6.1.y c75b0cf0982c 31830773 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
* Struck through repros no longer work on HEAD.