Oops: divide error: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 8429 Comm: syz.2.667 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+0x3c8/0x7e0 drivers/comedi/comedi_buf.c:391 Code: 41 03 45 00 48 8b 4c 24 78 42 0f b6 0c 21 84 c9 4c 8b bc 24 90 00 00 00 44 8b 74 24 54 0f 85 02 01 00 00 31 d2 48 8b 4c 24 30 31 41 89 55 00 48 8b 44 24 70 42 0f b6 04 20 84 c0 0f 85 09 01 RSP: 0018:ffffc90000007958 EFLAGS: 00010046 RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffff888027ab3a80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880278ed000 RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000000ff R10: dffffc0000000000 R11: ffffffff8900ce90 R12: dffffc0000000000 R13: ffff888027ab3a38 R14: 0000000000000000 R15: ffff888027ab3a00 FS: 00007f370f45b6c0(0000) GS:ffff8881257a8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f370f438fb8 CR3: 0000000028d50000 CR4: 00000000003526f0 Call Trace: comedi_buf_write_samples+0x369/0x5a0 drivers/comedi/comedi_buf.c:602 das16m1_handler+0x213/0x4b0 drivers/comedi/drivers/das16m1.c:413 das16m1_interrupt+0xaf/0x180 drivers/comedi/drivers/das16m1.c:470 __handle_irq_event_percpu+0x295/0xab0 kernel/irq/handle.c:203 handle_irq_event_percpu kernel/irq/handle.c:240 [inline] handle_irq_event+0x8b/0x1e0 kernel/irq/handle.c:257 handle_edge_irq+0x23b/0xa10 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:-1 [inline] __common_interrupt+0x141/0x1f0 arch/x86/kernel/irq.c:325 common_interrupt+0x5e/0xe0 arch/x86/kernel/irq.c:318 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:688 RIP: 0010:variable_ffs arch/x86/include/asm/bitops.h:312 [inline] RIP: 0010:handle_softirqs+0x1b0/0x870 kernel/softirq.c:610 Code: 89 64 24 30 0f b7 db 48 c7 c7 e0 b3 a9 8b e8 77 e8 03 0a 65 66 c7 05 45 dc 61 11 00 00 e8 58 a5 42 00 fb 49 c7 c7 c0 c0 20 8e ff ff ff ff 0f bc c3 41 89 c5 41 ff c5 0f 84 c2 03 00 00 89 5c RSP: 0018:ffffc90000007e40 EFLAGS: 00000286 RAX: 4a8bc31f3f9d4a00 RBX: 0000000000000382 RCX: 4a8bc31f3f9d4a00 RDX: 0000000000000003 RSI: ffffffff8dc97dd0 RDI: ffffffff8c05d060 RBP: ffffc90000007f50 R08: ffffffff8fe57b77 R09: 1ffffffff1fcaf6e R10: dffffc0000000000 R11: fffffbfff1fcaf6f R12: 000000000000000a R13: 0000000000000000 R14: dffffc0000000000 R15: ffffffff8e20c0c0 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x1f0 kernel/softirq.c:723 irq_exit_rcu+0x9/0x30 kernel/softirq.c:739 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1052 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1052 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:console_flush_all+0x7f4/0xb10 arch/x86/include/asm/irqflags.h:-1 Code: ff ff e8 7f 60 1f 00 90 0f 0b 90 e9 62 fc ff ff e8 71 60 1f 00 e8 3c 40 e8 09 48 85 db 74 c0 e8 62 60 1f 00 fb 48 8b 5c 24 18 <48> 8b 44 24 20 42 80 3c 20 00 74 08 48 89 df e8 68 03 85 00 48 8b RSP: 0018:ffffc9000e1fecc0 EFLAGS: 00000293 RAX: ffffffff81a131de RBX: ffffffff8ede0cf8 RCX: ffff88807e0a8000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000e1fee10 R08: ffffffff8fe57b77 R09: 1ffffffff1fcaf6e R10: dffffc0000000000 R11: fffffbfff1fcaf6f R12: dffffc0000000000 R13: 0000000000000001 R14: 0000000000000000 R15: ffffffff8ede0ca0 __console_flush_and_unlock kernel/printk/printk.c:3258 [inline] console_unlock+0xbb/0x190 kernel/printk/printk.c:3298 vprintk_emit+0x4c5/0x590 kernel/printk/printk.c:2423 _printk+0xcf/0x120 kernel/printk/printk.c:2448 __nla_validate_parse+0x2563/0x2d40 lib/nlattr.c:647 __nla_parse+0x40/0x60 lib/nlattr.c:732 __nlmsg_parse include/net/netlink.h:789 [inline] genl_family_rcv_msg_attrs_parse+0x1c9/0x2a0 net/netlink/genetlink.c:945 genl_family_rcv_msg_doit+0xb8/0x300 net/netlink/genetlink.c:1093 genl_family_rcv_msg net/netlink/genetlink.c:1195 [inline] genl_rcv_msg+0x60e/0x790 net/netlink/genetlink.c:1210 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2552 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:714 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:729 ____sys_sendmsg+0x505/0x830 net/socket.c:2617 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2671 __sys_sendmsg net/socket.c:2703 [inline] __do_sys_sendmsg net/socket.c:2708 [inline] __se_sys_sendmsg net/socket.c:2706 [inline] __x64_sys_sendmsg+0x19b/0x260 net/socket.c:2706 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f370e58eec9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f370f45b038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f370e7e6090 RCX: 00007f370e58eec9 RDX: 0000000004040010 RSI: 0000200000000040 RDI: 0000000000000005 RBP: 00007f370e611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f370e7e6128 R14: 00007f370e7e6090 R15: 00007fff70002138 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:comedi_buf_munge drivers/comedi/comedi_buf.c:347 [inline] RIP: 0010:comedi_buf_write_free+0x3c8/0x7e0 drivers/comedi/comedi_buf.c:391 Code: 41 03 45 00 48 8b 4c 24 78 42 0f b6 0c 21 84 c9 4c 8b bc 24 90 00 00 00 44 8b 74 24 54 0f 85 02 01 00 00 31 d2 48 8b 4c 24 30 31 41 89 55 00 48 8b 44 24 70 42 0f b6 04 20 84 c0 0f 85 09 01 RSP: 0018:ffffc90000007958 EFLAGS: 00010046 RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffff888027ab3a80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880278ed000 RBP: 0000000000000002 R08: 0000000000000000 R09: 00000000000000ff R10: dffffc0000000000 R11: ffffffff8900ce90 R12: dffffc0000000000 R13: ffff888027ab3a38 R14: 0000000000000000 R15: ffff888027ab3a00 FS: 00007f370f45b6c0(0000) GS:ffff8881257a8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f370f438fb8 CR3: 0000000028d50000 CR4: 00000000003526f0 ---------------- Code disassembly (best guess): 0: 41 03 45 00 add 0x0(%r13),%eax 4: 48 8b 4c 24 78 mov 0x78(%rsp),%rcx 9: 42 0f b6 0c 21 movzbl (%rcx,%r12,1),%ecx e: 84 c9 test %cl,%cl 10: 4c 8b bc 24 90 00 00 mov 0x90(%rsp),%r15 17: 00 18: 44 8b 74 24 54 mov 0x54(%rsp),%r14d 1d: 0f 85 02 01 00 00 jne 0x125 23: 31 d2 xor %edx,%edx 25: 48 8b 4c 24 30 mov 0x30(%rsp),%rcx * 2a: f7 31 divl (%rcx) <-- trapping instruction 2c: 41 89 55 00 mov %edx,0x0(%r13) 30: 48 8b 44 24 70 mov 0x70(%rsp),%rax 35: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax 3a: 84 c0 test %al,%al 3c: 0f .byte 0xf 3d: 85 09 test %ecx,(%rcx) 3f: 01 .byte 0x1