syzbot


WARNING in ip6_setup_cork

Status: fixed on 2018/08/08 18:10
Subsystems: net
[Documentation on labels]
Fix commit: e873e4b9cc7e ipv6: use fib6_info_hold_safe() when necessary
First crash: 2137d, last: 2117d
Discussions (1)
Title Replies (including bot) Last reply
[PATCH net] ipv6: use fib6_info_hold_safe() when necessary 4 (4) 2018/07/23 18:25

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready
8021q: adding VLAN 0 to HW filter on device team0
syz-executor511 (4749) used greatest stack depth: 15688 bytes left
dst_release: dst:(____ptrval____) refcnt:-1
dst_release: dst:(____ptrval____) refcnt:-2
WARNING: CPU: 0 PID: 4753 at include/net/dst.h:239 dst_hold include/net/dst.h:239 [inline]
WARNING: CPU: 0 PID: 4753 at include/net/dst.h:239 ip6_setup_cork+0xd66/0x1830 net/ipv6/ip6_output.c:1206
dst_release: dst:(____ptrval____) refcnt:-1
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4753 Comm: syz-executor511 Not tainted 4.18.0-rc7+ #176
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
dst_release: dst:(____ptrval____) refcnt:-2
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:992
RIP: 0010:dst_hold include/net/dst.h:239 [inline]
RIP: 0010:ip6_setup_cork+0xd66/0x1830 net/ipv6/ip6_output.c:1206
Code: c1 ed 03 89 9d 18 ff ff ff 48 b8 00 00 00 00 00 fc ff df 41 c6 44 05 00 f8 e9 2d 01 00 00 4c 8b a5 c8 fe ff ff e8 1a 5d ce fb <0f> 0b e9 6a fc ff ff e8 0e 5d ce fb 48 8b 85 d0 fe ff ff 48 8d 78 
RSP: 0018:ffff8801d32a7178 EFLAGS: 00010293
RAX: ffff8801ce09a380 RBX: 0000000000000000 RCX: ffffffff85adb746
RDX: 0000000000000000 RSI: ffffffff85adbb16 RDI: 0000000000000005
RBP: ffff8801d32a72c8 R08: ffff8801ce09a380 R09: ffffed0035b35a90
R10: ffffed0035b35a90 R11: ffff8801ad9ad483 R12: ffff8801d32a7720
R13: ffff8801d32a76a0 R14: ffff8801ad9ad480 R15: ffff8801ad9ad440
 ip6_make_skb+0x2c8/0x600 net/ipv6/ip6_output.c:1770
 udpv6_sendmsg+0x2c90/0x35f0 net/ipv6/udp.c:1376
 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798
 sock_sendmsg_nosec net/socket.c:642 [inline]
 sock_sendmsg+0xd5/0x120 net/socket.c:652
 ___sys_sendmsg+0x51d/0x930 net/socket.c:2126
 __sys_sendmmsg+0x240/0x6f0 net/socket.c:2221
 __do_sys_sendmmsg net/socket.c:2250 [inline]
 __se_sys_sendmmsg net/socket.c:2247 [inline]
 __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2247
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446a29
Code: e8 ac b8 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007f87a37f0db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000006dcc38 RCX: 0000000000446a29
RDX: 00000000000000b8 RSI: 0000000020001b00 RDI: 0000000000000003
RBP: 00000000006dcc30 R08: 00007f87a37f1700 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc3c
R13: 00007ffc2ee02d6f R14: 00007f87a37f19c0 R15: 0000000000000001
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/04 01:11 upstream 0b5b1f9a78b5 df7f6947 .config console log report syz C ci-upstream-kasan-gce-root
2018/08/03 03:38 upstream e30cb13c5a09 5b7e23bb .config console log report syz C ci-upstream-kasan-gce-root
2018/08/02 02:13 upstream 44960f2a7b63 0a7cf4ec .config console log report syz C ci-upstream-kasan-gce-root
2018/07/15 05:45 net-old 6bed5e260709 92a49505 .config console log report syz C ci-upstream-net-this-kasan-gce
* Struck through repros no longer work on HEAD.