syzbot


general protection fault in call_fib6_multipath_entry_notifiers

Status: fixed on 2019/08/05 13:45
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+382566d339d52cd1a204@syzkaller.appspotmail.com
Fix commit: 9eee3b4913d7 ipv6: Error when route does not have any valid nexthops
First crash: 1765d, last: 1760d
Cause bisection: introduced by (bisect log) :
commit ebee3cad835f7fe7250213225cf6d62c7cf3b2ca
Author: Ido Schimmel <idosch@mellanox.com>
Date: Tue Jun 18 15:12:48 2019 +0000

  ipv6: Add IPv6 multipath notifications for add / replace

Crash: general protection fault in call_fib6_multipath_entry_notifiers (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net-next v2] ipv6: Error when route does not have any valid nexthops 5 (5) 2019/06/22 23:51
[PATCH net-next] ipv6: Check if route exists before notifying it 4 (4) 2019/06/19 19:54
general protection fault in call_fib6_multipath_entry_notifiers 1 (2) 2019/06/19 16:35
Last patch testing requests (2)
Created Duration User Patch Repo Result
2019/06/20 07:15 20m idosch@idosch.org patch net-next-old OK
2019/06/19 17:15 20m idosch@idosch.org patch net-next-old OK

Sample crash report:
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: 9190 Comm: syz-executor149 Not tainted 5.2.0-rc5+ #38
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:call_fib6_multipath_entry_notifiers+0xd1/0x1a0 net/ipv6/ip6_fib.c:396
Code: 8b b5 30 ff ff ff 48 c7 85 68 ff ff ff 00 00 00 00 48 c7 85 70 ff ff ff 00 00 00 00 89 45 88 4c 89 e0 48 c1 e8 03 4c 89 65 80 <42> 80 3c 28 00 0f 85 9a 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d
RSP: 0018:ffff88809788f2c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff11012f11e59 RCX: 00000000ffffffff
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88809788f390 R08: ffff88809788f8c0 R09: 000000000000000c
R10: ffff88809788f5d8 R11: ffff88809788f527 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88809788f8c0 R15: ffffffff89541d80
FS:  000055555632c880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000009ba7c000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ip6_route_multipath_add+0xc55/0x1490 net/ipv6/route.c:5094
 inet6_rtm_newroute+0xed/0x180 net/ipv6/route.c:5208
 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5219
 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477
 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5237
 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline]
 netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328
 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:665
 ___sys_sendmsg+0x803/0x920 net/socket.c:2286
 __sys_sendmsg+0x105/0x1d0 net/socket.c:2324
 __do_sys_sendmsg net/socket.c:2333 [inline]
 __se_sys_sendmsg net/socket.c:2331 [inline]
 __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2331
 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401f9
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:00007ffc09fd0028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401f9
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a80
R13: 0000000000401b10 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 77949df4cfac115c ]---
RIP: 0010:call_fib6_multipath_entry_notifiers+0xd1/0x1a0 net/ipv6/ip6_fib.c:396
Code: 8b b5 30 ff ff ff 48 c7 85 68 ff ff ff 00 00 00 00 48 c7 85 70 ff ff ff 00 00 00 00 89 45 88 4c 89 e0 48 c1 e8 03 4c 89 65 80 <42> 80 3c 28 00 0f 85 9a 00 00 00 48 b8 00 00 00 00 00 fc ff df 4d
RSP: 0018:ffff88809788f2c0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff11012f11e59 RCX: 00000000ffffffff
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff88809788f390 R08: ffff88809788f8c0 R09: 000000000000000c
R10: ffff88809788f5d8 R11: ffff88809788f527 R12: 0000000000000000
R13: dffffc0000000000 R14: ffff88809788f8c0 R15: ffffffff89541d80
FS:  000055555632c880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000009ba7c000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (94):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/19 06:53 net-next-old 39f588603238 34bf9440 .config console log report syz C ci-upstream-net-kasan-gce
2019/06/24 19:45 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 17:50 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 15:52 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 12:57 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 07:40 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 06:38 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 01:34 net-next-old 92ad6325cb89 472f0082 .config console log report ci-upstream-net-kasan-gce
2019/06/23 22:42 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/23 21:33 net-next-old 92ad6325cb89 472f0082 .config console log report ci-upstream-net-kasan-gce
2019/06/23 19:09 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/23 17:11 bpf-next dca73a65a683 472f0082 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/23 13:55 bpf-next dca73a65a683 3efccdd2 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/23 05:44 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/23 02:25 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/23 00:06 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/22 21:28 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/22 19:08 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/22 13:04 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/22 10:15 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/22 04:50 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/21 12:10 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/21 03:38 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/21 02:27 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/21 02:13 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/21 02:07 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 23:49 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 20:51 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 20:17 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 14:12 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 13:55 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 12:30 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/20 12:20 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/20 12:11 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 11:57 net-next-old dca73a65a683 34bf9440 .config console log report ci-upstream-net-kasan-gce
2019/06/20 10:13 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/20 09:20 bpf-next dca73a65a683 34bf9440 .config console log report ci-upstream-bpf-next-kasan-gce
2019/06/24 20:50 linux-next e2d28c40292b 472f0082 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/23 23:01 linux-next e2d28c40292b 472f0082 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/23 20:10 linux-next e2d28c40292b 472f0082 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/23 05:34 linux-next dc636f5d78de 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/22 01:07 linux-next dc636f5d78de 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/21 09:32 linux-next dc636f5d78de 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/21 04:45 linux-next dc636f5d78de 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/21 02:28 linux-next dc636f5d78de 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/20 12:31 linux-next c0e4c41afeef 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/06/20 12:21 linux-next c0e4c41afeef 34bf9440 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.