divide error in netem_enqueue

Status: upstream: reported C repro on 2026/08/19 07:01
Reported-by: syzbot+3ea4b9e11653a934dace@syzkaller.appspotmail.com
First crash: 18h53m, last: 9h16m
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in netem_enqueue 2 syz, C done done 332 1477d 2490d 0/29 closed as invalid on 2022/11/15 21:20
android-5-10 divide error in netem_enqueue 2 2 1542d 1553d 0/2 auto-closed as invalid on 2022/08/28 08:54
android-5-10 divide error in netem_enqueue (2) 2 1 1434d 1434d 0/2 auto-obsoleted due to no activity on 2022/12/14 01:50
linux-4.19 divide error in netem_enqueue 2 syz, C error 55 1308d 2093d 0/1 upstream: reported C repro on 2020/11/25 15:52
linux-4.14 divide error in netem_enqueue 2 syz, C error 32 1535d 2427d 0/1 upstream: reported C repro on 2019/12/26 23:17

Sample crash report:
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 309 Comm: syz-executor386 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:netem_enqueue+0x17f8/0x3750 net/sched/sch_netem.c:511
Code: 00 4c 89 e9 45 8b 6d 70 48 89 4c 24 28 4c 8d 61 74 4c 89 e1 48 c1 e9 03 0f b6 0c 31 84 c9 0f 85 34 19 00 00 45 2b 2c 24 31 d2 <41> f7 f5 48 01 d3 48 89 d8 48 c1 e8 03 0f b6 04 30 84 c0 0f 85 45
RSP: 0018:ffffc900009f7520 EFLAGS: 00010246
RAX: 0000000054c8a236 RBX: ffff888120427880 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88810fc8a7f0
RBP: ffffc900009f7650 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200013ee0c R12: ffff88810fc8a7f4
R13: 0000000000000000 R14: 0000000000000008 R15: 0000000000000000
FS:  000055556c87c3c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000069fee0 CR3: 000000010def6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dev_qdisc_enqueue net/core/dev.c:3873 [inline]
 __dev_xmit_skb net/core/dev.c:3957 [inline]
 __dev_queue_xmit+0xc35/0x2d60 net/core/dev.c:4274
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4355
 tpacket_snd net/packet/af_packet.c:2897 [inline]
 packet_sendmsg+0x224d/0x5060 net/packet/af_packet.c:3123
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x2a6/0x3a0 net/socket.c:1080
 call_write_iter include/linux/fs.h:2212 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x831/0xfd0 fs/read_write.c:594
 ksys_write+0x14a/0x260 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ff079bbaa89
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 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 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffce31c8a18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007ff079bbaa89
RDX: 0000000000000001 RSI: 0000200000000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffce31c8a60
 </TASK>
Modules linked in:
---[ end trace 4c573c6ac00d01ca ]---
RIP: 0010:netem_enqueue+0x17f8/0x3750 net/sched/sch_netem.c:511
Code: 00 4c 89 e9 45 8b 6d 70 48 89 4c 24 28 4c 8d 61 74 4c 89 e1 48 c1 e9 03 0f b6 0c 31 84 c9 0f 85 34 19 00 00 45 2b 2c 24 31 d2 <41> f7 f5 48 01 d3 48 89 d8 48 c1 e8 03 0f b6 04 30 84 c0 0f 85 45
RSP: 0018:ffffc900009f7520 EFLAGS: 00010246
RAX: 0000000054c8a236 RBX: ffff888120427880 RCX: 0000000000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88810fc8a7f0
RBP: ffffc900009f7650 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff5200013ee0c R12: ffff88810fc8a7f4
R13: 0000000000000000 R14: 0000000000000008 R15: 0000000000000000
FS:  000055556c87c3c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000069fee0 CR3: 000000010def6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 4c 89 e9          	add    %cl,-0x17(%rcx,%rcx,4)
   4:	45 8b 6d 70          	mov    0x70(%r13),%r13d
   8:	48 89 4c 24 28       	mov    %rcx,0x28(%rsp)
   d:	4c 8d 61 74          	lea    0x74(%rcx),%r12
  11:	4c 89 e1             	mov    %r12,%rcx
  14:	48 c1 e9 03          	shr    $0x3,%rcx
  18:	0f b6 0c 31          	movzbl (%rcx,%rsi,1),%ecx
  1c:	84 c9                	test   %cl,%cl
  1e:	0f 85 34 19 00 00    	jne    0x1958
  24:	45 2b 2c 24          	sub    (%r12),%r13d
  28:	31 d2                	xor    %edx,%edx
* 2a:	41 f7 f5             	div    %r13d <-- trapping instruction
  2d:	48 01 d3             	add    %rdx,%rbx
  30:	48 89 d8             	mov    %rbx,%rax
  33:	48 c1 e8 03          	shr    $0x3,%rax
  37:	0f b6 04 30          	movzbl (%rax,%rsi,1),%eax
  3b:	84 c0                	test   %al,%al
  3d:	0f                   	.byte 0xf
  3e:	85                   	.byte 0x85
  3f:	45                   	rex.RB

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/19 13:22 android13-5.15-lts a825653ab7af 1e72964b .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 divide error in netem_enqueue
2026/08/19 09:44 android13-5.15-lts a825653ab7af 1e72964b .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 divide error in netem_enqueue
2026/08/19 06:55 android13-5.15-lts a825653ab7af 1e72964b .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 divide error in netem_enqueue
2026/08/19 03:45 android13-5.15-lts a825653ab7af 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 divide error in netem_enqueue
* Struck through repros no longer work on HEAD.