syzbot


divide error in netem_enqueue (2)

Status: auto-obsoleted due to no activity on 2022/12/14 01:50
Reported-by: syzbot+c515d5f9b2bd0cfb7439@syzkaller.appspotmail.com
First crash: 798d, last: 798d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream divide error in netem_enqueue C done done 332 841d 1854d 0/28 closed as invalid on 2022/11/15 21:20
android-5-10 divide error in netem_enqueue 2 906d 917d 0/2 auto-closed as invalid on 2022/08/28 08:54
linux-4.19 divide error in netem_enqueue C error 55 672d 1457d 0/1 upstream: reported C repro on 2020/11/25 15:52
linux-4.14 divide error in netem_enqueue C error 32 899d 1791d 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: 26198 Comm: syz-executor.0 Not tainted 5.10.140-syzkaller-00825-g59390358870a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:netem_enqueue+0x29e6/0x3900 net/sched/sch_netem.c:516
Code: 45 8b 75 70 4c 89 6c 24 28 49 83 c5 74 4c 89 e9 48 c1 e9 03 8a 14 31 84 d2 48 8b 5c 24 10 0f 85 32 08 00 00 45 2b 75 00 31 d2 <41> f7 f6 49 01 d4 4c 89 e0 48 c1 e8 03 8a 04 30 84 c0 0f 85 45 08
RSP: 0018:ffffc900062cf280 EFLAGS: 00010246
RAX: 000000008d289fa4 RBX: ffff88810fb7b800 RCX: 1ffff11021932686
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88810c993430
RBP: ffffc900062cf3b0 R08: ffffffff824a5832 R09: 0000000000000003
R10: fffff52000c59db5 R11: 1ffff92000c59db4 R12: ffff88811779d080
R13: ffff88810c993434 R14: 0000000000000000 R15: 0000000000000020
FS:  00007f8b6cd83700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000010ff1a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 netem_enqueue+0x12cb/0x3900 net/sched/sch_netem.c:483
 __dev_xmit_skb net/core/dev.c:3827 [inline]
 __dev_queue_xmit+0xd71/0x2a20 net/core/dev.c:4140
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4208
 packet_snd net/packet/af_packet.c:3022 [inline]
 packet_sendmsg+0x4cfc/0x6880 net/packet/af_packet.c:3054
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 ____sys_sendmsg+0x597/0x8e0 net/socket.c:2343
 ___sys_sendmsg net/socket.c:2397 [inline]
 __sys_sendmsg+0x37b/0x460 net/socket.c:2430
 __do_sys_sendmsg net/socket.c:2439 [inline]
 __se_sys_sendmsg net/socket.c:2437 [inline]
 __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2437
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7f8b6dc0d409
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8b6cd83168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f8b6dd1ff80 RCX: 00007f8b6dc0d409
RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 00007f8b6dc68367 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdca3caf2f R14: 00007f8b6cd83300 R15: 0000000000022000
Modules linked in:
---[ end trace 115618bc7d405e35 ]---
RIP: 0010:netem_enqueue+0x29e6/0x3900 net/sched/sch_netem.c:516
Code: 45 8b 75 70 4c 89 6c 24 28 49 83 c5 74 4c 89 e9 48 c1 e9 03 8a 14 31 84 d2 48 8b 5c 24 10 0f 85 32 08 00 00 45 2b 75 00 31 d2 <41> f7 f6 49 01 d4 4c 89 e0 48 c1 e8 03 8a 04 30 84 c0 0f 85 45 08
RSP: 0018:ffffc900062cf280 EFLAGS: 00010246
RAX: 000000008d289fa4 RBX: ffff88810fb7b800 RCX: 1ffff11021932686
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: ffff88810c993430
RBP: ffffc900062cf3b0 R08: ffffffff824a5832 R09: 0000000000000003
R10: fffff52000c59db5 R11: 1ffff92000c59db4 R12: ffff88811779d080
R13: ffff88810c993434 R14: 0000000000000000 R15: 0000000000000020
FS:  00007f8b6cd83700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000010ff1a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	45 8b 75 70          	mov    0x70(%r13),%r14d
   4:	4c 89 6c 24 28       	mov    %r13,0x28(%rsp)
   9:	49 83 c5 74          	add    $0x74,%r13
   d:	4c 89 e9             	mov    %r13,%rcx
  10:	48 c1 e9 03          	shr    $0x3,%rcx
  14:	8a 14 31             	mov    (%rcx,%rsi,1),%dl
  17:	84 d2                	test   %dl,%dl
  19:	48 8b 5c 24 10       	mov    0x10(%rsp),%rbx
  1e:	0f 85 32 08 00 00    	jne    0x856
  24:	45 2b 75 00          	sub    0x0(%r13),%r14d
  28:	31 d2                	xor    %edx,%edx
* 2a:	41 f7 f6             	div    %r14d <-- trapping instruction
  2d:	49 01 d4             	add    %rdx,%r12
  30:	4c 89 e0             	mov    %r12,%rax
  33:	48 c1 e8 03          	shr    $0x3,%rax
  37:	8a 04 30             	mov    (%rax,%rsi,1),%al
  3a:	84 c0                	test   %al,%al
  3c:	0f                   	.byte 0xf
  3d:	85 45 08             	test   %eax,0x8(%rbp)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/09/15 01:47 android12-5.10-lts 59390358870a b884348d .config console log report info ci2-android-5-10 divide error in netem_enqueue
* Struck through repros no longer work on HEAD.