syzbot


general protection fault in fq_codel_enqueue

Status: fixed on 2020/06/21 14:03
Reported-by: syzbot+fe381b53dc89652f87dc@syzkaller.appspotmail.com
Fix commit: 8920e8ae16a8 net: check untrusted gso_size at kernel entry
First crash: 1672d, last: 1644d
Fix bisection: fixed by (bisect log) :
commit 8920e8ae16a89bebd4d98ec6c7b306b1e3e06722
Author: Willem de Bruijn <willemb@google.com>
Date: Mon May 25 19:07:40 2020 +0000

  net: check untrusted gso_size at kernel entry

  
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 873d 1118d 22/28 fixed on 2023/02/24 13:50
linux-4.19 general protection fault in fq_codel_enqueue (2) C error 14 814d 1545d 0/1 upstream: reported C repro on 2020/08/28 22:42
android-5-10 general protection fault in fq_codel_enqueue (2) 2 213d 215d 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 243d 243d 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 1076d 1668d 0/1 upstream: reported C repro on 2020/04/27 21:56
upstream general protection fault in fq_codel_enqueue (2) C done 34 1146d 1545d 0/28 closed as invalid on 2021/10/07 21:22
upstream general protection fault in fq_codel_enqueue net C done 25 1592d 1677d 15/28 fixed on 2020/07/17 17:58
android-5-10 general protection fault in fq_codel_enqueue 1 847d 847d 0/2 auto-obsoleted due to no activity on 2022/10/25 22:19

Sample crash report:
audit: type=1400 audit(1590144810.681:8): avc:  denied  { execmem } for  pid=6448 comm="syz-executor032" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 6448 Comm: syz-executor032 Not tainted 4.19.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:126 [inline]
RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:174 [inline]
RIP: 0010:fq_codel_enqueue+0xa63/0x1190 net/sched/sch_fq_codel.c:236
Code: 00 00 00 e8 5f 17 a9 fb 48 8b 44 24 38 80 38 00 0f 85 c4 05 00 00 48 be 00 00 00 00 00 fc ff df 49 8b 07 48 89 c2 48 c1 ea 03 <80> 3c 32 00 0f 85 52 05 00 00 48 8b 10 48 8d 78 28 48 b9 00 00 00
RSP: 0018:ffff888089a2f6d0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000000
RBP: ffff888089a2f7d0 R08: ffff888091cb02c0 R09: ffffffff8aafb008
R10: ffffffff8aafb017 R11: ffffffff8aafb010 R12: ffff888089a2f8a0
R13: 0000000000000000 R14: 0000000000000400 R15: ffff8880864a0180
FS:  000000000122c880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe9c578f020 CR3: 000000009e1eb000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __dev_xmit_skb net/core/dev.c:3498 [inline]
 __dev_queue_xmit+0x171f/0x3010 net/core/dev.c:3814
 packet_snd net/packet/af_packet.c:2976 [inline]
 packet_sendmsg+0x2389/0x6070 net/packet/af_packet.c:3001
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:632
 sock_write_iter+0x283/0x3c0 net/socket.c:901
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x512/0x760 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440599
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcf28e0858 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004a173e RCX: 0000000000440599
RDX: 000000000000006c RSI: 00000000200003c0 RDI: 0000000000000005
RBP: 54c6c2ff093a6d32 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000246 R12: 0000000000010000
R13: 0000000000401eb0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 90b9c5ea5a54d6d9 ]---
RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:126 [inline]
RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:174 [inline]
RIP: 0010:fq_codel_enqueue+0xa63/0x1190 net/sched/sch_fq_codel.c:236
Code: 00 00 00 e8 5f 17 a9 fb 48 8b 44 24 38 80 38 00 0f 85 c4 05 00 00 48 be 00 00 00 00 00 fc ff df 49 8b 07 48 89 c2 48 c1 ea 03 <80> 3c 32 00 0f 85 52 05 00 00 48 8b 10 48 8d 78 28 48 b9 00 00 00
RSP: 0018:ffff888089a2f6d0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000000
RBP: ffff888089a2f7d0 R08: ffff888091cb02c0 R09: ffffffff8aafb008
R10: ffffffff8aafb017 R11: ffffffff8aafb010 R12: ffff888089a2f8a0
R13: 0000000000000000 R14: 0000000000000400 R15: ffff8880864a0180
FS:  000000000122c880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe9c578f020 CR3: 000000009e1eb000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/22 10:55 linux-4.19.y 1bab61d3e8cd 4afdfa20 .config console log report syz C ci2-linux-4-19
2020/04/24 08:15 linux-4.19.y 7edd66cf6167 03d97a1b .config console log report syz C ci2-linux-4-19
2020/05/11 08:29 linux-4.19.y 033c4ea49a4b f8f57555 .config console log report ci2-linux-4-19
2020/04/30 11:09 linux-4.19.y 765675379b62 3698959a .config console log report ci2-linux-4-19
2020/04/24 05:44 linux-4.19.y 7edd66cf6167 03d97a1b .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.