syzbot


general protection fault in fq_codel_enqueue

Status: auto-obsoleted due to no activity on 2022/10/25 22:19
Reported-by: syzbot+9dffce867350f1d44ad0@syzkaller.appspotmail.com
First crash: 850d, last: 850d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in fq_codel_enqueue (3) net C inconclusive 5 875d 1121d 22/28 fixed on 2023/02/24 13:50
linux-4.19 general protection fault in fq_codel_enqueue C done 5 1646d 1674d 1/1 fixed on 2020/06/21 14:03
linux-4.19 general protection fault in fq_codel_enqueue (2) C error 14 816d 1548d 0/1 upstream: reported C repro on 2020/08/28 22:42
android-5-10 general protection fault in fq_codel_enqueue (2) 2 215d 217d 0/2 auto-obsoleted due to no activity on 2024/07/20 23:55
android-5-15 general protection fault in fq_codel_enqueue 1 245d 245d 0/2 auto-obsoleted due to no activity on 2024/06/21 01:28
linux-4.14 general protection fault in fq_codel_enqueue C inconclusive 6 1078d 1671d 0/1 upstream: reported C repro on 2020/04/27 21:56
upstream general protection fault in fq_codel_enqueue (2) C done 34 1148d 1548d 0/28 closed as invalid on 2021/10/07 21:22
upstream general protection fault in fq_codel_enqueue net C done 25 1594d 1679d 15/28 fixed on 2020/07/17 17:58

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 7142 Comm: syz-executor.5 Not tainted 5.10.120-syzkaller-00388-g2de0a17df44a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:120 [inline]
RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:168 [inline]
RIP: 0010:fq_codel_enqueue+0xcb6/0x14b0 net/sched/sch_fq_codel.c:230
Code: 1f 44 00 00 89 1c 24 4c 89 6c 24 38 48 8b 44 24 20 42 80 3c 38 00 74 08 4c 89 f7 e8 b4 26 c9 fd 4d 8b 2e 4d 89 ee 49 c1 ee 03 <43> 80 3c 3e 00 74 08 4c 89 ef e8 9b 26 c9 fd 4d 8b 65 00 4c 89 fb
RSP: 0018:ffffc90006fd7420 EFLAGS: 00010246
RAX: 1ffff11028158000 RBX: 0000000000000000 RCX: 1ffff11028158000
RDX: ffff888140ac0000 RSI: 00000000000002e6 RDI: 00000000000002e7
RBP: ffffc90006fd7590 R08: ffffffff83dd865d R09: ffffffff83c12e6f
R10: 0000000000000002 R11: ffff88810cb3cf00 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f1143905700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcbf3435090 CR3: 0000000117a34000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __dev_xmit_skb net/core/dev.c:3823 [inline]
 __dev_queue_xmit+0xdde/0x2bb0 net/core/dev.c:4136
 dev_queue_xmit+0x17/0x20 net/core/dev.c:4204
 __bpf_tx_skb net/core/filter.c:2116 [inline]
 __bpf_redirect_common net/core/filter.c:2155 [inline]
 __bpf_redirect+0x892/0xcb0 net/core/filter.c:2162
 ____bpf_clone_redirect net/core/filter.c:2448 [inline]
 bpf_clone_redirect+0x247/0x390 net/core/filter.c:2420
 bpf_prog_3d1649e183dc2cc1+0x56/0x880
 bpf_dispatcher_nop_func include/linux/bpf.h:676 [inline]
 bpf_test_run+0x39a/0xc20 net/bpf/test_run.c:52
 bpf_prog_test_run_skb+0xb4c/0x13e0 net/bpf/test_run.c:591
 bpf_prog_test_run+0x345/0x3c0 kernel/bpf/syscall.c:3150
 __do_sys_bpf+0x4a0/0x6c0 kernel/bpf/syscall.c:4445
 __se_sys_bpf kernel/bpf/syscall.c:4383 [inline]
 __x64_sys_bpf+0x7a/0x90 kernel/bpf/syscall.c:4383
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f114478f209
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:00007f1143905168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f11448a1f60 RCX: 00007f114478f209
RDX: 0000000000000048 RSI: 0000000020000080 RDI: 000000000000000a
RBP: 00007f11447e9161 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcb69b34ff R14: 00007f1143905300 R15: 0000000000022000
Modules linked in:
---[ end trace f603f37c77dfb50b ]---
RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:120 [inline]
RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:168 [inline]
RIP: 0010:fq_codel_enqueue+0xcb6/0x14b0 net/sched/sch_fq_codel.c:230
Code: 1f 44 00 00 89 1c 24 4c 89 6c 24 38 48 8b 44 24 20 42 80 3c 38 00 74 08 4c 89 f7 e8 b4 26 c9 fd 4d 8b 2e 4d 89 ee 49 c1 ee 03 <43> 80 3c 3e 00 74 08 4c 89 ef e8 9b 26 c9 fd 4d 8b 65 00 4c 89 fb
RSP: 0018:ffffc90006fd7420 EFLAGS: 00010246
RAX: 1ffff11028158000 RBX: 0000000000000000 RCX: 1ffff11028158000
RDX: ffff888140ac0000 RSI: 00000000000002e6 RDI: 00000000000002e7
RBP: ffffc90006fd7590 R08: ffffffff83dd865d R09: ffffffff83c12e6f
R10: 0000000000000002 R11: ffff88810cb3cf00 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f1143905700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcbf3435090 CR3: 0000000117a34000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	44 00 00             	add    %r8b,(%rax)
   3:	89 1c 24             	mov    %ebx,(%rsp)
   6:	4c 89 6c 24 38       	mov    %r13,0x38(%rsp)
   b:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
  10:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  15:	74 08                	je     0x1f
  17:	4c 89 f7             	mov    %r14,%rdi
  1a:	e8 b4 26 c9 fd       	callq  0xfdc926d3
  1f:	4d 8b 2e             	mov    (%r14),%r13
  22:	4d 89 ee             	mov    %r13,%r14
  25:	49 c1 ee 03          	shr    $0x3,%r14
* 29:	43 80 3c 3e 00       	cmpb   $0x0,(%r14,%r15,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 ef             	mov    %r13,%rdi
  33:	e8 9b 26 c9 fd       	callq  0xfdc926d3
  38:	4d 8b 65 00          	mov    0x0(%r13),%r12
  3c:	4c 89 fb             	mov    %r15,%rbx

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/27 22:16 android12-5.10-lts 2de0a17df44a fb95c74d .config console log report info ci2-android-5-10 general protection fault in fq_codel_enqueue
* Struck through repros no longer work on HEAD.