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: 59d, last: 7d23h
▶ ▼ 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 42d 46d 0/3 upstream: reported on 2026/10/17 01:38
linux-6.1 divide error in comedi_inc_scan_progress (2) 2 5 4d08h 15d 0/3 upstream: reported on 2026/11/16 12:51
linux-5.15 divide error in comedi_inc_scan_progress (2) 2 3 229d 277d 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 248d 391d 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 495d 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 360d 511d 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 378d 378d 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 218d 356d 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: 12 Comm: kworker/u4:0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: netns cleanup_net
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 79 cb 66 f9 4c 8d 63 3c 4d 89 e7 49
RSP: 0018:ffffc90000007c90 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff88802f707600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: 00000000000000ff R09: 00000000000000ff
R10: dffffc0000000000 R11: fffff5200193d601 R12: ffff88802f707688
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88802f707634
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c96f6da08 CR3: 000000006120f000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 comedi_buf_write_samples+0x375/0x5d0 drivers/comedi/comedi_buf.c:646
 das16m1_handler+0x23a/0x4d0 drivers/comedi/drivers/das16m1.c:413
 das16m1_interrupt+0xab/0x180 drivers/comedi/drivers/das16m1.c:470
 __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:should_resched arch/x86/include/asm/preempt.h:104 [inline]
RIP: 0010:__local_bh_enable_ip+0x142/0x1c0 kernel/softirq.c:413
Code: 8a e8 62 ad 47 09 65 66 8b 05 aa 77 b0 7e 66 85 c0 75 54 bf 01 00 00 00 e8 1b 26 0a 00 e8 d6 53 3b 00 fb 65 8b 05 76 77 b0 7e <85> c0 75 05 e8 75 5c ad ff 48 c7 04 24 0e 36 e0 45 4b c7 04 37 00
RSP: 0018:ffffc900001175a0 EFLAGS: 00000286
RAX: 0000000080000000 RBX: 0000000000000201 RCX: 8d7b3cb7c8c1f700
RDX: dffffc0000000000 RSI: ffffffff8aead240 RDI: ffffffff8b3c70e0
RBP: ffffc90000117630 R08: ffffffff9222d50f R09: 1ffffffff2445aa1
R10: dffffc0000000000 R11: fffffbfff2445aa2 R12: ffffffff894dd1b7
R13: dffffc0000000000 R14: dffffc0000000000 R15: 1ffff92000022eb4
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 addrconf_ifdown+0x697/0x18f0 net/ipv6/addrconf.c:3932
 addrconf_notify+0x6c6/0x1010 net/ipv6/addrconf.c:-1
 notifier_call_chain+0x18f/0x380 kernel/notifier.c:93
 call_netdevice_notifiers_extack net/core/dev.c:2077 [inline]
 call_netdevice_notifiers net/core/dev.c:2091 [inline]
 unregister_netdevice_many_notify+0x1037/0x1910 net/core/dev.c:11294
 unregister_netdevice_many net/core/dev.c:11350 [inline]
 default_device_exit_batch+0x5e3/0x670 net/core/dev.c:11941
 ops_exit_list net/core/net_namespace.c:178 [inline]
 cleanup_net+0x785/0xb00 net/core/net_namespace.c:656
 process_one_work kernel/workqueue.c:2657 [inline]
 process_scheduled_works+0xa60/0x1600 kernel/workqueue.c:2734
 worker_thread+0xa5e/0xfe0 kernel/workqueue.c:2815
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </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 79 cb 66 f9 4c 8d 63 3c 4d 89 e7 49
RSP: 0018:ffffc90000007c90 EFLAGS: 00010046
RAX: 0000000000000001 RBX: ffff88802f707600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000002 R08: 00000000000000ff R09: 00000000000000ff
R10: dffffc0000000000 R11: fffff5200193d601 R12: ffff88802f707688
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88802f707634
FS:  0000000000000000(0000) GS:ffff8880b8c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c96f6da08 CR3: 000000006120f000 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 79 cb 66 f9       	call   0xf966cbb1
  38:	4c 8d 63 3c          	lea    0x3c(%rbx),%r12
  3c:	4d 89 e7             	mov    %r12,%r15
  3f:	49                   	rex.WB

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/24 01:51 linux-6.6.y e2bb30811e06 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
2026/11/24 01:47 linux-6.6.y e2bb30811e06 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
2026/11/24 01:46 linux-6.6.y e2bb30811e06 fab64d89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan divide error in comedi_inc_scan_progress
2026/11/24 01:45 linux-6.6.y e2bb30811e06 fab64d89 .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/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.