syzbot


general protection fault in __tipc_nl_net_set

Status: fixed on 2018/05/08 18:30
Subsystems: tipc
[Documentation on labels]
Fix commit: c6404122cb18 tipc: fix possible crash in __tipc_nl_net_set()
First crash: 2282d, last: 2281d

Sample crash report:
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
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: 4499 Comm: syz-executor3 Not tainted 4.16.0+ #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:nla_memcpy+0x2c/0xb0 lib/nlattr.c:365
RSP: 0018:ffff8801b1a37248 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8801b1a37468 RCX: ffffed0036346e59
RDX: 0000000000000000 RSI: ffffffff8348a2cb RDI: ffff8801b1a372c8
RBP: ffff8801b1a37270 R08: ffffed0036346e61 R09: ffff8801b1a3730c
R10: ffffed0036346e61 R11: ffff8801b1a3730f R12: 0000000000000008
R13: ffff8801b1a372c8 R14: ffff8801b151c040 R15: 0000000000000000
FS:  00007fb56dd20700(0000) GS:ffff8801db000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000625208 CR3: 00000001b14eb000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 nla_get_u64 include/net/netlink.h:1138 [inline]
 __tipc_nl_net_set+0x93b/0xd40 net/tipc/net.c:256
 tipc_nl_net_set+0x22/0x30 net/tipc/net.c:267
 genl_family_rcv_msg+0x889/0x1120 net/netlink/genetlink.c:599
 genl_rcv_msg+0xc6/0x170 net/netlink/genetlink.c:624
 netlink_rcv_skb+0x172/0x440 net/netlink/af_netlink.c:2448
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:635
 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline]
 netlink_unicast+0x58b/0x740 net/netlink/af_netlink.c:1336
 netlink_sendmsg+0x9f0/0xfa0 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:629 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:639
 ___sys_sendmsg+0x805/0x940 net/socket.c:2117
 __sys_sendmsg+0x115/0x270 net/socket.c:2155
 SYSC_sendmsg net/socket.c:2164 [inline]
 SyS_sendmsg+0x29/0x30 net/socket.c:2162
 do_syscall_64+0x29e/0x9d0 arch/x86/entry/common.c:287
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x455319
RSP: 002b:00007fb56dd1fc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb56dd206d4 RCX: 0000000000455319
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000004ef R14: 00000000006fa708 R15: 0000000000000000
Code: 48 89 e5 41 57 49 89 f7 41 56 41 55 49 89 fd 41 54 41 89 d4 53 e8 a5 86 2e fe 4c 89 fa 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 4c 89 f8 83 e0 07 83 c0 01 38 d0 7c 04 84 d2 75 58 
RIP: nla_memcpy+0x2c/0xb0 lib/nlattr.c:365 RSP: ffff8801b1a37248
---[ end trace e092341edb3efec5 ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/04/16 19:18 net-next-old 9a00b697ce31 802ac912 .config console log report syz ci-upstream-net-kasan-gce
2018/04/16 02:20 net-next-old 5d1365940a68 7a67784c .config console log report syz ci-upstream-net-kasan-gce
2018/04/16 19:03 net-next-old 9a00b697ce31 802ac912 .config console log report ci-upstream-net-kasan-gce
2018/04/16 02:04 net-next-old 5d1365940a68 7a67784c .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.