syzbot


general protection fault in qdisc_put

Status: fixed on 2019/10/15 23:39
Reported-by: syzbot+d5870a903591faaca4ae@syzkaller.appspotmail.com
Fix commit: 6efb971ba8ed net_sched: let qdisc_put() accept NULL pointer
First crash: 1886d, last: 1874d
Cause bisection: introduced by (bisect log) :
commit e41d58185f1444368873d4d7422f7664a68be61d
Author: Dmitry Vyukov <dvyukov@google.com>
Date: Wed Jul 12 21:34:35 2017 +0000

  fault-inject: support systematic fault injection

Crash: general protection fault in qdisc_destroy (log)
Repro: C syz .config
  
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.19 00/79] 4.19.75-stable review 92 (92) 2019/09/23 01:33
[PATCH 5.3 00/21] 5.3.1-stable review 31 (31) 2019/09/22 08:13
[PATCH 5.2 000/124] 5.2.17-stable review 132 (132) 2019/09/21 05:05
[PATCH 4.14 00/59] 4.14.146-stable review 65 (65) 2019/09/20 21:22
[Patch net v2] net_sched: let qdisc_put() accept NULL pointer 3 (3) 2019/09/15 18:55
[Patch net] sch_sfb: fix a crash in sfb_destroy() 6 (6) 2019/09/12 16:48
general protection fault in qdisc_put 3 (4) 2019/09/09 23:14

Sample crash report:
8021q: adding VLAN 0 to HW filter on device batadv0
netlink: 'syz-executor280': attribute type 1 has an invalid length.
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: 9905 Comm: syz-executor280 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:qdisc_put+0x25/0x90 net/sched/sch_generic.c:988
Code: 00 00 00 00 00 55 48 89 e5 41 54 49 89 fc 53 e8 31 0f bf fb 49 8d 7c 24 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 04 3c 03 7e 54 41 8b 5c 24 10 31 ff 83 e3 01
RSP: 0018:ffff888092537480 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a210c000 RCX: 1ffffffff134b73e
RDX: 0000000000000002 RSI: ffffffff85b3c4ff RDI: 0000000000000010
RBP: ffff888092537490 R08: ffff88809c822300 R09: fffffbfff134b100
R10: fffffbfff134b0ff R11: ffffffff89a587ff R12: 0000000000000000
R13: ffff8880a210c000 R14: ffff8880947903c0 R15: ffff8880a210c03c
FS:  00005555574b6880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000610 CR3: 00000000a469d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dsmark_destroy+0x63/0xd0 net/sched/sch_dsmark.c:419
 qdisc_create+0xbc6/0x1210 net/sched/sch_api.c:1285
 tc_modify_qdisc+0x524/0x1c50 net/sched/sch_api.c:1652
 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223
 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:657
 ___sys_sendmsg+0x803/0x920 net/socket.c:2311
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356
 __do_sys_sendmsg net/socket.c:2365 [inline]
 __se_sys_sendmsg net/socket.c:2363 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441b19
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 7b 10 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd71acb9a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000441b19
RDX: 0000000000000000 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007ffd71acb9c0 R08: 0000000001bbbbbb R09: 0000000001bbbbbb
R10: 0000000001bbbbbb R11: 0000000000000246 R12: 0000000000000000
R13: 00000000004030b0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 38912925ca42d706 ]---
RIP: 0010:qdisc_put+0x25/0x90 net/sched/sch_generic.c:988
Code: 00 00 00 00 00 55 48 89 e5 41 54 49 89 fc 53 e8 31 0f bf fb 49 8d 7c 24 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 04 3c 03 7e 54 41 8b 5c 24 10 31 ff 83 e3 01
RSP: 0018:ffff888092537480 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880a210c000 RCX: 1ffffffff134b73e
RDX: 0000000000000002 RSI: ffffffff85b3c4ff RDI: 0000000000000010
RBP: ffff888092537490 R08: ffff88809c822300 R09: fffffbfff134b100
R10: fffffbfff134b0ff R11: ffffffff89a587ff R12: 0000000000000000
R13: ffff8880a210c000 R14: ffff8880947903c0 R15: ffff8880a210c03c
FS:  00005555574b6880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000610 CR3: 00000000a469d000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (60):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/17 13:34 upstream ad062195731b 13dcda9b .config console log report syz C ci-upstream-kasan-gce-root
2019/09/16 11:04 upstream 4d856f72c10e cb936299 .config console log report syz C ci-upstream-kasan-gce
2019/09/16 11:00 upstream 4d856f72c10e cb936299 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/09/16 10:39 upstream 4d856f72c10e cb936299 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/09/06 16:46 upstream 3b47fd5ca9ea 040fda58 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/09/06 15:28 upstream 3b47fd5ca9ea 040fda58 .config console log report syz C ci-upstream-kasan-gce-root
2019/09/06 14:57 upstream 3b47fd5ca9ea 040fda58 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/09/06 14:10 upstream 3b47fd5ca9ea 040fda58 .config console log report syz C ci-upstream-kasan-gce
2019/09/15 16:27 upstream 1609d7604b84 32d59357 .config console log report syz C ci-upstream-kasan-gce-386
2019/09/06 18:00 upstream 3b47fd5ca9ea 040fda58 .config console log report syz C ci-upstream-kasan-gce-386
2019/09/12 21:33 net-old b456d72412ca 0b7672ee .config console log report syz C ci-upstream-net-this-kasan-gce
2019/09/16 17:47 net-next-old aa2eaa8c272a cb936299 .config console log report syz C ci-upstream-net-kasan-gce
2019/09/06 14:54 net-next-old 0e5b36bc4c1f 040fda58 .config console log report syz C ci-upstream-net-kasan-gce
2019/09/18 06:55 upstream 7f2444d38f6b 03e0d245 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/18 03:10 upstream 7f2444d38f6b 03e0d245 .config console log report ci-upstream-kasan-gce
2019/09/17 21:41 upstream ad062195731b 13dcda9b .config console log report ci-upstream-kasan-gce-smack-root
2019/09/17 02:15 upstream cef7298262e9 51ca0454 .config console log report ci-upstream-kasan-gce
2019/09/16 22:18 upstream 4d856f72c10e cb936299 .config console log report ci-upstream-kasan-gce-root
2019/09/16 20:06 upstream 4d856f72c10e cb936299 .config console log report ci-upstream-kasan-gce-root
2019/09/16 16:54 upstream 4d856f72c10e cb936299 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/16 15:37 upstream 4d856f72c10e cb936299 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/16 13:27 upstream 4d856f72c10e cb936299 .config console log report ci-upstream-kasan-gce
2019/09/16 03:29 upstream 1609d7604b84 32d59357 .config console log report ci-upstream-kasan-gce-root
2019/09/15 21:44 upstream 1609d7604b84 32d59357 .config console log report ci-upstream-kasan-gce
2019/09/15 15:10 upstream 1609d7604b84 32d59357 .config console log report ci-upstream-kasan-gce
2019/09/14 23:24 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/14 10:17 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-root
2019/09/14 09:45 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/14 01:35 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce
2019/09/14 01:34 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/14 01:29 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/14 01:15 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/13 16:43 upstream 505a8ec7e11a 40fa42bc .config console log report ci-upstream-kasan-gce-root
2019/09/13 14:29 upstream 505a8ec7e11a 40fa42bc .config console log report ci-upstream-kasan-gce-root
2019/09/12 18:31 upstream ad32b4800c2b 0b7672ee .config console log report ci-upstream-kasan-gce-smack-root
2019/09/12 18:26 upstream ad32b4800c2b 0b7672ee .config console log report ci-upstream-kasan-gce-smack-root
2019/09/12 07:50 upstream 3120b9a6a3f7 f4e53c10 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/12 05:49 upstream 3120b9a6a3f7 f4e53c10 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/11 20:08 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce-root
2019/09/11 13:40 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce-smack-root
2019/09/10 15:00 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce-root
2019/09/09 16:41 upstream f74c2bb98776 a60cb4cd .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/08 03:53 upstream b3a9964cfa69 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/06 14:00 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-root
2019/09/06 13:59 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-smack-root
2019/09/06 13:59 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/06 13:51 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/06 13:34 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce
2019/09/06 13:51 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce-386
2019/09/10 11:05 net-old c8dc55956b09 a60cb4cd .config console log report ci-upstream-net-this-kasan-gce
2019/09/06 13:57 net-old 7bdf4de12677 040fda58 .config console log report ci-upstream-net-this-kasan-gce
2019/09/08 10:29 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/06 13:59 net-next-old 0e5b36bc4c1f 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/15 21:47 linux-next 6d028043b55e 32d59357 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/09/15 06:20 linux-next 6d028043b55e 32d59357 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.