syzbot


general protection fault in __netlink_ns_capable

Status: fixed on 2018/02/01 16:29
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+e432865c29eb4c48c142@syzkaller.appspotmail.com
Fix commit: f428fe4a04cc rtnetlink: give a user socket to get_target_net()
First crash: 2319d, last: 2299d
Discussions (2)
Title Replies (including bot) Last reply
general protection fault in __netlink_ns_capable 5 (6) 2018/02/01 07:39
[PATCH] rtnetlink: give a user socket to get_target_net() 2 (2) 2018/01/03 18:37

Sample crash report:
netlink: 'syzkaller247599': attribute type 46 has an invalid length.
netlink: 'syzkaller247599': attribute type 46 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] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 3148 Comm: syzkaller247599 Not tainted 4.15.0-rc5+ #237
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__netlink_ns_capable+0x8b/0x120 net/netlink/af_netlink.c:835
RSP: 0018:ffff8801c97ef158 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffff84359210
RDX: 000000000000007b RSI: ffffffff85f10ae0 RDI: 00000000000003d8
RBP: ffff8801c97ef170 R08: 0000000000000000 R09: 1ffff100392fde01
R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff85f10ae0
R13: 000000000000000c R14: 0000000000000010 R15: 0000000000000020
FS:  0000000001049880(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000ffab CR3: 00000001d5cf7004 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 netlink_ns_capable+0x26/0x30 net/netlink/af_netlink.c:853
 get_target_net+0x9d/0x120 net/core/rtnetlink.c:1695
 rtnl_dump_ifinfo+0x2e5/0xee0 net/core/rtnetlink.c:1736
 netlink_dump+0x48c/0xce0 net/netlink/af_netlink.c:2189
 __netlink_dump_start+0x4f0/0x6d0 net/netlink/af_netlink.c:2286
 netlink_dump_start include/linux/netlink.h:214 [inline]
 rtnetlink_rcv_msg+0x977/0x1020 net/core/rtnetlink.c:4381
 netlink_rcv_skb+0x21e/0x460 net/netlink/af_netlink.c:2408
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:4423
 netlink_unicast_kernel net/netlink/af_netlink.c:1275 [inline]
 netlink_unicast+0x4e8/0x6f0 net/netlink/af_netlink.c:1301
 netlink_sendmsg+0xa4a/0xe60 net/netlink/af_netlink.c:1864
 sock_sendmsg_nosec net/socket.c:636 [inline]
 sock_sendmsg+0xca/0x110 net/socket.c:646
 SYSC_sendto+0x361/0x5c0 net/socket.c:1727
 SyS_sendto+0x40/0x50 net/socket.c:1695
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x43fdd9
RSP: 002b:00007ffcfe4b2ae8 EFLAGS: 00000203 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fdd9
RDX: 0000000000000055 RSI: 000000002000ffab RDI: 0000000000000005
RBP: 00000000006ca018 R08: 0000000020000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000203 R12: 0000000000401740
R13: 00000000004017d0 R14: 0000000000000000 R15: 0000000000000000
Code: fa 48 c1 ea 03 80 3c 02 00 0f 85 95 00 00 00 48 8b 5b 18 48 b8 00 00 00 00 00 fc ff df 48 8d bb d8 03 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 80 00 00 00 48 8b 9b d8 03 00 00 48 b8 00 00 
RIP: __netlink_ns_capable+0x8b/0x120 net/netlink/af_netlink.c:835 RSP: ffff8801c97ef158
---[ end trace 797c579401d7e780 ]---

Crashes (74):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/24 12:36 upstream 464e1d5f23cc 73aba437 .config console log report syz C ci-upstream-kasan-gce
2017/12/24 10:37 upstream 464e1d5f23cc 73aba437 .config console log report syz C ci-upstream-kasan-gce-386
2017/12/20 12:00 upstream 10a7e9d84915 2d836b1d .config console log report syz C ci-upstream-kasan-gce-386
2017/12/20 11:47 net-next-old f39a5c01c3d2 2d836b1d .config console log report syz C ci-upstream-net-kasan-gce
2017/12/25 13:33 linux-next 0e08c463db38 73aba437 .config console log report syz C ci-upstream-next-kasan-gce
2017/12/25 03:22 mmots 37759fa6d0fa 73aba437 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/21 22:22 linux-next 0e08c463db38 81fe66b4 .config console log report syz C ci-upstream-next-kasan-gce
2017/12/21 08:34 mmots 75aa5540627f 90a46995 .config console log report syz C ci-upstream-mmots-kasan-gce
2018/01/09 16:03 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 15:59 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 15:37 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 15:23 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 15:10 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:49 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:48 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:44 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:41 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:34 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:26 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:14 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:13 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 14:02 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:53 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:53 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:51 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:48 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:42 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:40 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:33 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:32 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:25 net-next-old f4803f1b73f8 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:09 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:07 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:05 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 13:04 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:57 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:41 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:41 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:40 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:39 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:29 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:27 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:25 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:23 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:19 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:18 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:16 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
2018/01/09 12:16 net-next-old 0c3b34d80494 11dc42f6 .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.