Oops: divide error: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 1296 Comm: aoe_tx0 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: ffffc90003056000 RCX: ffffffff88be07ff RDX: 0000000000000000 RSI: ffffffff88bbb020 RDI: 0000000000000004 RBP: dffffc0000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: ffff888029a62e3c R12: ffff888029a62e00 R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff88be0740 FS: 0000000000000000(0000) GS:ffff888124e75000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b309feff8 CR3: 000000005b5f6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000008 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 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+0xd0/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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194 Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 56 fa 46 f6 48 89 df e8 3e 4e 47 f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 85 59 37 f6 65 8b 05 9e 4d 2a 08 85 c0 74 16 5b RSP: 0018:ffffc900046af818 EFLAGS: 00000246 RAX: 0000000000000006 RBX: ffffffff9ab68580 RCX: 0000000000000002 RDX: 0000000000000000 RSI: ffffffff8d82662a RDI: ffffffff8bd045c0 RBP: 0000000000000293 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff905fb397 R11: 0000000000000000 R12: 0000000000000022 R13: ffffffff9ab68688 R14: 0000000000000000 R15: 0000000000000003 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline] uart_port_unlock_irqrestore include/linux/serial_core.h:788 [inline] uart_port_unlock_deref drivers/tty/serial/serial_core.c:91 [inline] uart_port_unlock_deref drivers/tty/serial/serial_core.c:88 [inline] uart_write+0x2a4/0xb30 drivers/tty/serial/serial_core.c:637 sl_encaps drivers/net/slip/slip.c:409 [inline] sl_xmit+0x6d1/0xf30 drivers/net/slip/slip.c:518 __netdev_start_xmit include/linux/netdevice.h:5248 [inline] netdev_start_xmit include/linux/netdevice.h:5257 [inline] xmit_one net/core/dev.c:3845 [inline] dev_hard_start_xmit+0x97/0x740 net/core/dev.c:3861 sch_direct_xmit+0x1b2/0xcf0 net/sched/sch_generic.c:344 __dev_xmit_skb net/core/dev.c:4152 [inline] __dev_queue_xmit+0x144d/0x4490 net/core/dev.c:4729 dev_queue_xmit include/linux/netdevice.h:3365 [inline] tx+0xcc/0x190 drivers/block/aoe/aoenet.c:62 kthread+0x1e1/0x3e0 drivers/block/aoe/aoecmd.c:1241 kthread+0x3c2/0x780 kernel/kthread.c:463 ret_from_fork+0x56a/0x730 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 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: ffffc90003056000 RCX: ffffffff88be07ff RDX: 0000000000000000 RSI: ffffffff88bbb020 RDI: 0000000000000004 RBP: dffffc0000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000001 R11: ffff888029a62e3c R12: ffff888029a62e00 R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff88be0740 FS: 0000000000000000(0000) GS:ffff888124e75000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b309feff8 CR3: 000000005b5f6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000008 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- 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)