Oops: divide error: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:comedi_buf_munge drivers/comedi/comedi_buf.c:347 [inline] RIP: 0010:comedi_buf_write_free+0x414/0x720 drivers/comedi/comedi_buf.c:391 Code: 02 00 00 31 d2 f7 74 24 1c 48 8b 54 24 30 48 c1 ea 03 0f b6 14 2a 41 03 44 24 38 84 d2 74 09 80 fa 03 0f 8e 66 02 00 00 31 d2 <41> f7 b4 24 80 00 00 00 48 8b 44 24 48 48 c1 e8 03 41 89 54 24 38 RSP: 0018:ffffc90000007d20 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffffc9000339c000 RCX: ffffffff88cab75f RDX: 0000000000000000 RSI: ffffffff88c85f7d RDI: 0000000000000004 RBP: dffffc0000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: ffff888060caf03c R12: ffff888060caf000 R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff88cab6a0 FS: 0000000000000000(0000) GS:ffff8881249df000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2fb950 CR3: 000000005cda5000 CR4: 00000000003526f0 Call Trace: comedi_buf_write_samples+0x3fc/0x640 drivers/comedi/comedi_buf.c:602 das16m1_handler+0x203/0x5a0 drivers/comedi/drivers/das16m1.c:413 das16m1_interrupt+0xb7/0x1c0 drivers/comedi/drivers/das16m1.c:470 __handle_irq_event_percpu+0x236/0x920 kernel/irq/handle.c:203 handle_irq_event_percpu kernel/irq/handle.c:240 [inline] handle_irq_event+0xab/0x1e0 kernel/irq/handle.c:257 handle_edge_irq+0x3ca/0x9e0 kernel/irq/chip.c:855 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq arch/x86/kernel/irq.c:254 [inline] call_irq_handler arch/x86/kernel/irq.c:310 [inline] __common_interrupt+0xcd/0x2f0 arch/x86/kernel/irq.c:325 common_interrupt+0xba/0xe0 arch/x86/kernel/irq.c:318 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:693 RIP: 0010:pv_native_safe_halt+0xf/0x20 arch/x86/kernel/paravirt.c:82 Code: e7 75 02 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d d3 f6 24 00 fb f4 0c 0a 03 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 RSP: 0018:ffffffff8e007df8 EFLAGS: 000002c2 RAX: 0000000007ab0a3b RBX: 0000000000000000 RCX: ffffffff8b6522d9 RDX: 0000000000000000 RSI: ffffffff8db02646 RDI: ffffffff8bf1cfc0 RBP: fffffbfff1c12f40 R08: 0000000000000001 R09: ffffed1017086655 R10: ffff8880b84332ab R11: 0000000000000000 R12: 0000000000000000 R13: ffffffff8e097a00 R14: ffffffff908323d0 R15: 0000000000000000 arch_safe_halt arch/x86/include/asm/paravirt.h:107 [inline] default_idle+0x13/0x20 arch/x86/kernel/process.c:767 default_idle_call+0x6c/0xb0 kernel/sched/idle.c:122 cpuidle_idle_call kernel/sched/idle.c:190 [inline] do_idle+0x38d/0x500 kernel/sched/idle.c:330 cpu_startup_entry+0x4f/0x60 kernel/sched/idle.c:428 rest_init+0x16b/0x2b0 init/main.c:757 start_kernel+0x3f3/0x4e0 init/main.c:1111 x86_64_start_reservations+0x18/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x130/0x190 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x148 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:comedi_buf_munge drivers/comedi/comedi_buf.c:347 [inline] RIP: 0010:comedi_buf_write_free+0x414/0x720 drivers/comedi/comedi_buf.c:391 Code: 02 00 00 31 d2 f7 74 24 1c 48 8b 54 24 30 48 c1 ea 03 0f b6 14 2a 41 03 44 24 38 84 d2 74 09 80 fa 03 0f 8e 66 02 00 00 31 d2 <41> f7 b4 24 80 00 00 00 48 8b 44 24 48 48 c1 e8 03 41 89 54 24 38 RSP: 0018:ffffc90000007d20 EFLAGS: 00010046 RAX: 0000000000000001 RBX: ffffc9000339c000 RCX: ffffffff88cab75f RDX: 0000000000000000 RSI: ffffffff88c85f7d RDI: 0000000000000004 RBP: dffffc0000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: ffff888060caf03c R12: ffff888060caf000 R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff88cab6a0 FS: 0000000000000000(0000) GS:ffff8881249df000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2fb950 CR3: 000000005cda5000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 02 00 add (%rax),%al 2: 00 31 add %dh,(%rcx) 4: d2 f7 shl %cl,%bh 6: 74 24 je 0x2c 8: 1c 48 sbb $0x48,%al a: 8b 54 24 30 mov 0x30(%rsp),%edx e: 48 c1 ea 03 shr $0x3,%rdx 12: 0f b6 14 2a movzbl (%rdx,%rbp,1),%edx 16: 41 03 44 24 38 add 0x38(%r12),%eax 1b: 84 d2 test %dl,%dl 1d: 74 09 je 0x28 1f: 80 fa 03 cmp $0x3,%dl 22: 0f 8e 66 02 00 00 jle 0x28e 28: 31 d2 xor %edx,%edx * 2a: 41 f7 b4 24 80 00 00 divl 0x80(%r12) <-- trapping instruction 31: 00 32: 48 8b 44 24 48 mov 0x48(%rsp),%rax 37: 48 c1 e8 03 shr $0x3,%rax 3b: 41 89 54 24 38 mov %edx,0x38(%r12)