divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 12739 Comm: syz.8.1409 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:comedi_inc_scan_progress+0x1a2/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 bd eb 78 f9 48 bb 00 00 00
RSP: 0018:ffffc90000007c80 EFLAGS: 00010046
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888023c9aa00 R08: ffff888023c9aa00 R09: 00000000000000ff
R10: dffffc0000000000 R11: fffff52001991201 R12: ffff888023c9aa88
R13: 0000000000000002 R14: 0000000000000000 R15: ffff888023c9aa34
FS: 00007f0b5ee876c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0b5ee86ff8 CR3: 000000002c4d9000 CR4: 00000000003506f0
Call Trace:
<IRQ>
comedi_buf_write_samples+0x372/0x5d0 drivers/comedi/comedi_buf.c:646
das16m1_handler+0x213/0x4b0 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+0x247/0xb30 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:finish_task_switch+0x26a/0x8f0 kernel/sched/core.c:5255
Code: 0f 84 33 01 00 00 48 85 db 0f 85 52 01 00 00 e9 de 04 00 00 4c 8b 75 d0 4c 89 e7 e8 60 bf 2e 09 e8 0b 21 30 00 fb 4c 8b 65 c0 <49> 8d bc 24 f8 15 00 00 48 89 f8 48 c1 e8 03 42 0f b6 04 28 84 c0
RSP: 0018:ffffc9000483f1f8 EFLAGS: 00000282
RAX: a25571742f0fbb00 RBX: 0000000000000000 RCX: a25571742f0fbb00
RDX: dffffc0000000000 RSI: ffffffff8acabd00 RDI: ffffffff8b1c74a0
RBP: ffffc9000483f250 R08: ffffffff911a45af R09: 1ffffffff22348b5
R10: dffffc0000000000 R11: fffffbfff22348b6 R12: ffff888027991e00
R13: dffffc0000000000 R14: ffff88802bab5a00 R15: ffff8880b8e3cac8
context_switch kernel/sched/core.c:5384 [inline]
__schedule+0x155b/0x45a0 kernel/sched/core.c:6700
preempt_schedule_common+0x82/0xc0 kernel/sched/core.c:6867
preempt_schedule+0xc0/0xd0 kernel/sched/core.c:6891
preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45
__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
_raw_spin_unlock_irqrestore+0x111/0x120 kernel/locking/spinlock.c:194
spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
__wake_up_common_lock kernel/sched/wait.c:140 [inline]
__wake_up_sync_key+0x12c/0x1a0 kernel/sched/wait.c:213
__unix_dgram_recvmsg+0x4b8/0xd80 net/unix/af_unix.c:2437
sock_recvmsg_nosec+0x82/0xd0 net/socket.c:1046
____sys_recvmsg+0x4e8/0x5e0 net/socket.c:2811
___sys_recvmsg+0x216/0x590 net/socket.c:2855
do_recvmmsg+0x39a/0x870 net/socket.c:2949
__sys_recvmmsg net/socket.c:3028 [inline]
__do_sys_recvmmsg net/socket.c:3051 [inline]
__se_sys_recvmmsg net/socket.c:3044 [inline]
__x64_sys_recvmmsg+0x199/0x250 net/socket.c:3044
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x55/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0b5df9acb9
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:00007f0b5ee87028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f0b5e216090 RCX: 00007f0b5df9acb9
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000005
RBP: 00007f0b5e008bf7 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0b5e216128 R14: 00007f0b5e216090 R15: 00007fff483ec158
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:comedi_inc_scan_progress+0x1a2/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 bd eb 78 f9 48 bb 00 00 00
RSP: 0018:ffffc90000007c80 EFLAGS: 00010046
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff888023c9aa00 R08: ffff888023c9aa00 R09: 00000000000000ff
R10: dffffc0000000000 R11: fffff52001991201 R12: ffff888023c9aa88
R13: 0000000000000002 R14: 0000000000000000 R15: ffff888023c9aa34
FS: 00007f0b5ee876c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0b5ee86ff8 CR3: 000000002c4d9000 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 bd eb 78 f9 call 0xf978ebf8
3b: 48 rex.W
3c: bb .byte 0xbb
3d: 00 00 add %al,(%rax)