syzbot
general protection fault in fq_codel_enqueue
Status: fixed on 2020/07/17 17:58
Subsystems:
net
[Documentation on labels]
Fix commit:
9274124f023b
net: stricter validation of untrusted gso packets
First crash: 2293d, last: 2208d
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: 0 PID: 7036 Comm: syz-executor027 Not tainted 5.7.0-rc7-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:120 [inline]
RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:168 [inline]
RIP: 0010:fq_codel_enqueue+0xa75/0x11b0 net/sched/sch_fq_codel.c:230
Code: 27 fb 44 3b 64 24 70 0f 83 dd 00 00 00 e8 d3 70 27 fb 48 8b 44 24 40 80 38 00 0f 85 5a 05 00 00 49 8b 06 48 89 c2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 52 05 00 00 48 8b 10 49 89 16 48 89 c2 48 c1
RSP: 0018:ffffc900010976a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90001097880
RDX: 0000000000000000 RSI: ffffffff864bcddd RDI: 0000000000000000
RBP: ffffc900010977b0 R08: ffff88808bee62c0 R09: fffffbfff185df44
R10: ffffffff8c2efa1f R11: fffffbfff185df43 R12: 0000000000000400
R13: dffffc0000000000 R14: ffff888086240000 R15: ffffc90001097880
FS: 0000000002055880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000100 CR3: 0000000094c8e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dev_xmit_skb net/core/dev.c:3710 [inline]
__dev_queue_xmit+0x154a/0x30a0 net/core/dev.c:4021
packet_snd net/packet/af_packet.c:2979 [inline]
packet_sendmsg+0x24fd/0x5e90 net/packet/af_packet.c:3004
sock_sendmsg_nosec net/socket.c:652 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:672
sock_write_iter+0x289/0x3c0 net/socket.c:1004
call_write_iter include/linux/fs.h:1907 [inline]
new_sync_write+0x4a2/0x700 fs/read_write.c:484
__vfs_write+0xc9/0x100 fs/read_write.c:497
vfs_write+0x268/0x5d0 fs/read_write.c:559
ksys_write+0x1ee/0x250 fs/read_write.c:612
do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
entry_SYSCALL_64_after_hwframe+0x49/0xb3
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:00007fff444744f8 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 6ca6d2b81633e941 ]---
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+0xa75/0x11b0 net/sched/sch_fq_codel.c:230
Code: 27 fb 44 3b 64 24 70 0f 83 dd 00 00 00 e8 d3 70 27 fb 48 8b 44 24 40 80 38 00 0f 85 5a 05 00 00 49 8b 06 48 89 c2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 52 05 00 00 48 8b 10 49 89 16 48 89 c2 48 c1
RSP: 0018:ffffc900010976a0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90001097880
RDX: 0000000000000000 RSI: ffffffff864bcddd RDI: 0000000000000000
RBP: ffffc900010977b0 R08: ffff88808bee62c0 R09: fffffbfff185df44
R10: ffffffff8c2efa1f R11: fffffbfff185df43 R12: 0000000000000400
R13: dffffc0000000000 R14: ffff888086240000 R15: ffffc90001097880
FS: 0000000002055880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000100 CR3: 0000000094c8e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.