syzbot


divide error in comedi_inc_scan_progress

Status: upstream: reported on 2025/12/10 08:43
Reported-by: syzbot+2bcaaae2c36c1b70a448@syzkaller.appspotmail.com
First crash: 142d, last: 5d00h
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 divide error in comedi_inc_scan_progress (2) 2 3 15d 63d 0/3 upstream: reported on 2026/02/27 16:53
linux-6.6 divide error in comedi_inc_scan_progress (2) 2 8 34d 177d 0/2 upstream: reported on 2025/11/05 08:13
linux-6.6 divide error in comedi_inc_scan_progress 2 2 281d 284d 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 146d 297d 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 164d 164d 0/3 auto-obsoleted due to no activity on 2026/02/27 00:49

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 15159 Comm: syz.9.2763 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:comedi_inc_scan_progress+0x19e/0x430 drivers/comedi/drivers.c:562
Code: b6 0c 19 84 c9 0f 85 b8 01 00 00 03 45 34 4c 8d a5 88 00 00 00 4c 89 e1 48 c1 e9 03 0f b6 0c 19 84 c9 0f 85 c7 01 00 00 31 d2 <41> f7 34 24 41 89 17 45 89 ec eb 0f e8 71 27 b4 f9 48 bb 00 00 00
RSP: 0018:ffffc90000007c68 EFLAGS: 00010046
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88807e875e00 R08: ffff88807e875e00 R09: 1ffff92001a30400
R10: dffffc0000000000 R11: fffff52001a30401 R12: ffff88807e875e88
R13: 0000000000000004 R14: 0000000000000000 R15: ffff88807e875e34
FS:  00007faa40e626c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33920ff8 CR3: 0000000049f53000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 comedi_buf_write_samples+0x36e/0x5d0 drivers/comedi/comedi_buf.c:646
 aio_iiro_16_cos+0x166/0x1c0 drivers/comedi/drivers/aio_iiro_16.c:69
 __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+0x243/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> 2f dd 20 f7 65 8b 05 80 60 ca 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc90003317a00 EFLAGS: 00000206
RAX: dffffc0000000004 RBX: 0000000000000a02 RCX: f65897f3c1475500
RDX: dffffc0000000000 RSI: ffffffff8a8c1120 RDI: 0000000000000001
RBP: ffffc90003317a90 R08: ffffffff90af9297 R09: 1ffffffff215f252
R10: dffffc0000000000 R11: fffffbfff215f253 R12: dffffc0000000000
R13: dffffc0000000000 R14: ffffffff96f87ff0 R15: 1ffff92000662f40
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 autoconfig drivers/tty/serial/8250/8250_port.c:1347 [inline]
 serial8250_config_port+0x1bbf/0x3930 drivers/tty/serial/8250/8250_port.c:3223
 univ8250_config_port+0x3b1/0x960 drivers/tty/serial/8250/8250_core.c:444
 uart_do_autoconfig drivers/tty/serial/serial_core.c:1174 [inline]
 uart_ioctl+0x10b3/0x13b0 drivers/tty/serial/serial_core.c:1551
 tty_ioctl+0x7ea/0xba0 drivers/tty/tty_io.c:2776
 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:0x7faa3ff9cdd9
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:00007faa40e62028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007faa40215fa0 RCX: 00007faa3ff9cdd9
RDX: 0000000000000000 RSI: 0000000000005453 RDI: 0000000000000003
RBP: 00007faa40032d69 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007faa40216038 R14: 00007faa40215fa0 R15: 00007fff97166488
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:comedi_inc_scan_progress+0x19e/0x430 drivers/comedi/drivers.c:562
Code: b6 0c 19 84 c9 0f 85 b8 01 00 00 03 45 34 4c 8d a5 88 00 00 00 4c 89 e1 48 c1 e9 03 0f b6 0c 19 84 c9 0f 85 c7 01 00 00 31 d2 <41> f7 34 24 41 89 17 45 89 ec eb 0f e8 71 27 b4 f9 48 bb 00 00 00
RSP: 0018:ffffc90000007c68 EFLAGS: 00010046
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88807e875e00 R08: ffff88807e875e00 R09: 1ffff92001a30400
R10: dffffc0000000000 R11: fffff52001a30401 R12: ffff88807e875e88
R13: 0000000000000004 R14: 0000000000000000 R15: ffff88807e875e34
FS:  00007faa40e626c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33920ff8 CR3: 0000000049f53000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
   0:	b6 0c                	mov    $0xc,%dh
   2:	19 84 c9 0f 85 b8 01 	sbb    %eax,0x1b8850f(%rcx,%rcx,8)
   9:	00 00                	add    %al,(%rax)
   b:	03 45 34             	add    0x34(%rbp),%eax
   e:	4c 8d a5 88 00 00 00 	lea    0x88(%rbp),%r12
  15:	4c 89 e1             	mov    %r12,%rcx
  18:	48 c1 e9 03          	shr    $0x3,%rcx
  1c:	0f b6 0c 19          	movzbl (%rcx,%rbx,1),%ecx
  20:	84 c9                	test   %cl,%cl
  22:	0f 85 c7 01 00 00    	jne    0x1ef
  28:	31 d2                	xor    %edx,%edx
* 2a:	41 f7 34 24          	divl   (%r12) <-- trapping instruction
  2e:	41 89 17             	mov    %edx,(%r15)
  31:	45 89 ec             	mov    %r13d,%r12d
  34:	eb 0f                	jmp    0x45
  36:	e8 71 27 b4 f9       	call   0xf9b427ac
  3b:	48                   	rex.W
  3c:	bb                   	.byte 0xbb
  3d:	00 00                	add    %al,(%rax)

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/27 06:46 linux-6.1.y 7c87defbd336 9c2d0995 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/04/03 23:00 linux-6.1.y 1989cd3d56e2 4440e7c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/03/29 11:16 linux-6.1.y 1989cd3d56e2 b5ceaad2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2026/01/30 05:01 linux-6.1.y cd9b81672742 bfa73b7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan divide error in comedi_inc_scan_progress
2025/12/10 08:42 linux-6.1.y 50cbba13faa2 d6526ea3 .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.