divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 15073 Comm: syz.5.2625 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/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 41 37 b4 f9 48 bb 00 00 00
RSP: 0018:ffffc90000007c80 EFLAGS: 00010046
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88807cc86800 R08: ffff88807cc86800 R09: 1ffff920019bf600
R10: dffffc0000000000 R11: fffff520019bf601 R12: ffff88807cc86888
R13: 0000000000000002 R14: 0000000000000000 R15: ffff88807cc86834
FS: 00007f7b794466c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7b79445ff8 CR3: 000000005e3f5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
comedi_buf_write_samples+0x36e/0x5d0 drivers/comedi/comedi_buf.c:646
das16m1_handler+0x213/0x4b0 drivers/comedi/drivers/das16m1.c:413
das16m1_interrupt+0xa7/0x170 drivers/comedi/drivers/das16m1.c:470
__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
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 df 0d 21 f7 65 8b 05 30 91 ca 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc90004b2f5a0 EFLAGS: 00000206
RAX: dffffc0000000004 RBX: 0000000000000a06 RCX: 9f2c4375eba1cb00
RDX: dffffc0000000000 RSI: ffffffff8a8c10a0 RDI: 0000000000000001
RBP: ffffc90004b2f630 R08: ffffffff90af72ef R09: 1ffffffff215ee5d
R10: dffffc0000000000 R11: fffffbfff215ee5e R12: dffffc0000000000
R13: 0000000000000000 R14: ffff888063af0ec0 R15: 1ffff92000965eb4
spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
__wake_up_common_lock kernel/sched/wait.c:140 [inline]
__wake_up_sync_key+0x128/0x190 kernel/sched/wait.c:208
__unix_dgram_recvmsg+0x4c3/0xdc0 net/unix/af_unix.c:2478
____sys_recvmsg+0x2cb/0x5e0 net/socket.c:-1
___sys_recvmsg+0x212/0x590 net/socket.c:2779
do_recvmmsg+0x393/0x870 net/socket.c:2873
__sys_recvmmsg net/socket.c:2952 [inline]
__do_sys_recvmmsg net/socket.c:2975 [inline]
__se_sys_recvmmsg net/socket.c:2968 [inline]
__x64_sys_recvmmsg+0x195/0x250 net/socket.c:2968
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:0x7f7b7859c819
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:00007f7b79446028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f7b78816180 RCX: 00007f7b7859c819
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007f7b78632c91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f7b78816218 R14: 00007f7b78816180 R15: 00007fffdaacb038
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 41 37 b4 f9 48 bb 00 00 00
RSP: 0018:ffffc90000007c80 EFLAGS: 00010046
RAX: 0000000000000001 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88807cc86800 R08: ffff88807cc86800 R09: 1ffff920019bf600
R10: dffffc0000000000 R11: fffff520019bf601 R12: ffff88807cc86888
R13: 0000000000000002 R14: 0000000000000000 R15: ffff88807cc86834
FS: 00007f7b794466c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7b79445ff8 CR3: 000000005e3f5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
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 41 37 b4 f9 call 0xf9b4377c
3b: 48 rex.W
3c: bb .byte 0xbb
3d: 00 00 add %al,(%rax)