Oops: divide error: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 29320 Comm: syz.7.5940 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: ffffc90002f94000 RCX: ffffffff88b9efdf
RDX: 0000000000000000 RSI: ffffffff88b797fd RDI: 0000000000000004
RBP: dffffc0000000000 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: ffff888031681a3c R12: ffff888031681a00
R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff88b9ef20
FS: 00007f32ff1466c0(0000) GS:ffff888124e60000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32ff146d58 CR3: 0000000032b2e000 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+0x233/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:_static_cpu_has arch/x86/include/asm/cpufeature.h:101 [inline]
RIP: 0010:addr_has_metadata mm/kasan/kasan.h:334 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:177 [inline]
RIP: 0010:kasan_check_range+0x32/0x1b0 mm/kasan/generic.c:189
Code: 84 64 01 00 00 48 89 f8 41 54 44 0f b6 c2 48 01 f0 55 53 0f 82 d7 00 00 00 eb 0f cc cc cc 48 b8 00 00 00 00 00 00 00 ff eb 0a <48> b8 00 00 00 00 00 80 ff ff 48 39 c7 0f 82 b3 00 00 00 4c 8d 54
RSP: 0018:ffffc900100ff6c0 EFLAGS: 00000282
RAX: ffffffff90606c98 RBX: 0000000000000000 RCX: ffffffff81964561
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90606c90
RBP: ffffc900100ff850 R08: 0000000000000000 R09: fffff5200201fed0
R10: ffffc900100ff687 R11: 0000000000000000 R12: dffffc0000000000
R13: 0000000000000000 R14: 1ffff9200201feec R15: ffffffff89f62255
instrument_atomic_read include/linux/instrumented.h:68 [inline]
_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
cpumask_test_cpu include/linux/cpumask.h:646 [inline]
cpu_online include/linux/cpumask.h:1205 [inline]
trace_contention_end+0x31/0x130 include/trace/events/lock.h:122
__mutex_lock_common kernel/locking/mutex.c:607 [inline]
__mutex_lock+0x1bb/0x1060 kernel/locking/mutex.c:760
__unix_dgram_recvmsg+0x255/0xc30 net/unix/af_unix.c:2598
unix_dgram_recvmsg+0xd0/0x110 net/unix/af_unix.c:2700
sock_recvmsg_nosec net/socket.c:1065 [inline]
____sys_recvmsg+0x5f6/0x6b0 net/socket.c:2835
___sys_recvmsg+0x114/0x1a0 net/socket.c:2879
do_recvmmsg+0x2fe/0x750 net/socket.c:2974
__sys_recvmmsg net/socket.c:3048 [inline]
__do_sys_recvmmsg net/socket.c:3071 [inline]
__se_sys_recvmmsg net/socket.c:3064 [inline]
__x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3064
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0xcd/0x4e0 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f32fe38eec9
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:00007f32ff146038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f32fe5e6090 RCX: 00007f32fe38eec9
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003
RBP: 00007f32fe411f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f32fe5e6128 R14: 00007f32fe5e6090 R15: 00007fffb631a358
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: ffffc90002f94000 RCX: ffffffff88b9efdf
RDX: 0000000000000000 RSI: ffffffff88b797fd RDI: 0000000000000004
RBP: dffffc0000000000 R08: 0000000000000004 R09: 0000000000000001
R10: 0000000000000001 R11: ffff888031681a3c R12: ffff888031681a00
R13: 0000000000000002 R14: 0000000000000000 R15: ffffffff88b9ef20
FS: 00007f32ff1466c0(0000) GS:ffff888124e60000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32ff146d58 CR3: 0000000032b2e000 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)