general protection fault in fq_codel_enqueue

41 views
Skip to first unread message

syzbot

unread,
Apr 24, 2020, 1:45:14 AM4/24/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 7edd66cf Linux 4.19.118
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15454854100000
kernel config: https://syzkaller.appspot.com/x/.config?x=8dd19d0705ec9e0
dashboard link: https://syzkaller.appspot.com/bug?extid=fe381b53dc89652f87dc
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+fe381b...@syzkaller.appspotmail.com

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: 1 PID: 26506 Comm: syz-executor.2 Not tainted 4.19.118-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+0xa6c/0x11d0 net/sched/sch_fq_codel.c:236
Code: 00 00 00 e8 76 a7 a8 fb 48 8b 44 24 30 80 38 00 0f 85 99 05 00 00 48 be 00 00 00 00 00 fc ff df 49 8b 06 48 89 c2 48 c1 ea 03 <80> 3c 32 00 0f 85 88 05 00 00 48 8b 10 48 8d 78 28 48 b9 00 00 00
RSP: 0018:ffff888042a27800 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90009f70000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000000
RBP: ffff888042a27900 R08: ffff88804daa8580 R09: ffffffff8acfe048
R10: ffffffff8acfe050 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000400 R14: ffff888035560dc0 R15: ffff888042a279d0
FS: 00007f5a7b654700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30521000 CR3: 0000000097dd2000 CR4: 00000000001406e0
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+0x156b/0x3040 net/core/dev.c:3814
packet_snd net/packet/af_packet.c:2976 [inline]
packet_sendmsg+0x3835/0x5f90 net/packet/af_packet.c:3001
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:632
__sys_sendto+0x21a/0x330 net/socket.c:1787
__do_sys_sendto net/socket.c:1799 [inline]
__se_sys_sendto net/socket.c:1795 [inline]
__x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f5a7b653c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000500d00 RCX: 000000000045c829
RDX: 00000000000001e8 RSI: 0000000020000480 RDI: 0000000000000003
RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000a09 R14: 00000000004ccbed R15: 00007f5a7b6546d4
Modules linked in:
---[ end trace b5f239935022ac8f ]---
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+0xa6c/0x11d0 net/sched/sch_fq_codel.c:236
Code: 00 00 00 e8 76 a7 a8 fb 48 8b 44 24 30 80 38 00 0f 85 99 05 00 00 48 be 00 00 00 00 00 fc ff df 49 8b 06 48 89 c2 48 c1 ea 03 <80> 3c 32 00 0f 85 88 05 00 00 48 8b 10 48 8d 78 28 48 b9 00 00 00
RSP: 0018:ffff888042a27800 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90009f70000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000000
RBP: ffff888042a27900 R08: ffff88804daa8580 R09: ffffffff8acfe048
R10: ffffffff8acfe050 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000400 R14: ffff888035560dc0 R15: ffff888042a279d0
FS: 00007f5a7b654700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30521000 CR3: 0000000097dd2000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 24, 2020, 4:16:14 AM4/24/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 7edd66cf Linux 4.19.118
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=163d89bbe00000
kernel config: https://syzkaller.appspot.com/x/.config?x=8dd19d0705ec9e0
dashboard link: https://syzkaller.appspot.com/bug?extid=fe381b53dc89652f87dc
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f764dfe00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=100fb437e00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+fe381b...@syzkaller.appspotmail.com

audit: type=1400 audit(1587716013.651:8): avc: denied { execmem } for pid=6447 comm="syz-executor604" 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: 6447 Comm: syz-executor604 Not tainted 4.19.118-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+0xa6c/0x11d0 net/sched/sch_fq_codel.c:236
Code: 00 00 00 e8 76 a7 a8 fb 48 8b 44 24 30 80 38 00 0f 85 99 05 00 00 48 be 00 00 00 00 00 fc ff df 49 8b 06 48 89 c2 48 c1 ea 03 <80> 3c 32 00 0f 85 88 05 00 00 48 8b 10 48 8d 78 28 48 b9 00 00 00
RSP: 0018:ffff8880899d7800 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000000
RBP: ffff8880899d7900 R08: ffff8880a5d50040 R09: ffffffff8acfe008
R10: ffffffff8acfe010 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000400 R14: ffff888087300180 R15: ffff8880899d79d0
FS: 0000000000b16880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa686ded000 CR3: 00000000928b9000 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+0x156b/0x3040 net/core/dev.c:3814
packet_snd net/packet/af_packet.c:2976 [inline]
packet_sendmsg+0x3835/0x5f90 net/packet/af_packet.c:3001
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:632
__sys_sendto+0x21a/0x330 net/socket.c:1787
__do_sys_sendto net/socket.c:1799 [inline]
__se_sys_sendto net/socket.c:1795 [inline]
__x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4404e9
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:00007ffe1dc87658 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000004a167e RCX: 00000000004404e9
RDX: 00000000000001e8 RSI: 0000000020000480 RDI: 0000000000000005
RBP: 54c6c2ff093a6d32 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000010000
R13: 0000000000401e00 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace d0252909689ba180 ]---
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+0xa6c/0x11d0 net/sched/sch_fq_codel.c:236
Code: 00 00 00 e8 76 a7 a8 fb 48 8b 44 24 30 80 38 00 0f 85 99 05 00 00 48 be 00 00 00 00 00 fc ff df 49 8b 06 48 89 c2 48 c1 ea 03 <80> 3c 32 00 0f 85 88 05 00 00 48 8b 10 48 8d 78 28 48 b9 00 00 00
RSP: 0018:ffff8880899d7800 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: dffffc0000000000 RDI: 0000000000000000
RBP: ffff8880899d7900 R08: ffff8880a5d50040 R09: ffffffff8acfe008
R10: ffffffff8acfe010 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000400 R14: ffff888087300180 R15: ffff8880899d79d0
FS: 0000000000b16880(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa686ded000 CR3: 00000000928b9000 CR4: 00000000001406f0

syzbot

unread,
Apr 27, 2020, 5:56:15 PM4/27/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 050272a0 Linux 4.14.177
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10d7967fe00000
kernel config: https://syzkaller.appspot.com/x/.config?x=b24dc669afb42f8b
dashboard link: https://syzkaller.appspot.com/bug?extid=9cfc52485ebfb6691a07
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1562be64100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13fc2208100000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+9cfc52...@syzkaller.appspotmail.com

audit: type=1400 audit(1588024406.255:8): avc: denied { execmem } for pid=6333 comm="syz-executor331" 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
Modules linked in:
CPU: 1 PID: 6333 Comm: syz-executor331 Not tainted 4.14.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888097c08300 task.stack: ffff8880983c8000
RIP: 0010:dequeue_head net/sched/sch_fq_codel.c:125 [inline]
RIP: 0010:fq_codel_drop net/sched/sch_fq_codel.c:173 [inline]
RIP: 0010:fq_codel_enqueue+0x951/0x1070 net/sched/sch_fq_codel.c:235
RSP: 0018:ffff8880983cf870 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888086b0afc0
RDX: 0000000000000000 RSI: ffff8880983cfa00 RDI: 0000000000000000
RBP: ffff8880983cf950 R08: 000000097886abce R09: ffff88821fff7048
R10: ffff88821fff7050 R11: 0000000000000001 R12: dffffc0000000000
R13: 0000000000000000 R14: ffff888086b00180 R15: ffff8880983cfa00
FS: 0000000001216880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056397e4e3270 CR3: 00000000a94b4000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__dev_xmit_skb net/core/dev.c:3229 [inline]
__dev_queue_xmit+0x12dc/0x25c0 net/core/dev.c:3493
packet_snd net/packet/af_packet.c:3012 [inline]
packet_sendmsg+0x1bf7/0x54b0 net/packet/af_packet.c:3037
sock_sendmsg_nosec net/socket.c:646 [inline]
sock_sendmsg+0xc5/0x100 net/socket.c:656
SYSC_sendto+0x1c4/0x2b0 net/socket.c:1763
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4404e9
RSP: 002b:00007ffc6bcea868 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000004a167e RCX: 00000000004404e9
RDX: 00000000000001e8 RSI: 0000000020000480 RDI: 0000000000000005
RBP: 54c6c2ff093a6d32 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000010000
R13: 0000000000401e00 R14: 0000000000000000 R15: 0000000000000000
Code: 8b 54 24 68 3b 54 24 60 0f 83 bd 00 00 00 e8 57 3b 42 fc 48 8b 44 24 38 80 38 00 0f 85 25 05 00 00 49 8b 06 48 89 c2 48 c1 ea 03 <42> 80 3c 22 00 0f 85 1d 05 00 00 48 8b 10 48 8d 78 28 49 89 16
RIP: dequeue_head net/sched/sch_fq_codel.c:125 [inline] RSP: ffff8880983cf870
RIP: fq_codel_drop net/sched/sch_fq_codel.c:173 [inline] RSP: ffff8880983cf870
RIP: fq_codel_enqueue+0x951/0x1070 net/sched/sch_fq_codel.c:235 RSP: ffff8880983cf870
---[ end trace 6cc2612bf1625d36 ]---


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Jun 21, 2020, 9:30:04 AM6/21/20
to syzkaller...@googlegroups.com
syzbot suspects this bug was fixed by commit:

commit 8920e8ae16a89bebd4d98ec6c7b306b1e3e06722
Author: Willem de Bruijn <wil...@google.com>
Date: Mon May 25 19:07:40 2020 +0000

net: check untrusted gso_size at kernel entry

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=149935ed100000
start commit: 1bab61d3 Linux 4.19.124
git tree: linux-4.19.y
kernel config: https://syzkaller.appspot.com/x/.config?x=e95e3ce854b90b1b
dashboard link: https://syzkaller.appspot.com/bug?extid=fe381b53dc89652f87dc
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b86d6e100000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=104f764a100000

If the result looks correct, please mark the bug fixed by replying with:

#syz fix: net: check untrusted gso_size at kernel entry

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages