syzbot


general protection fault in ip6_datagram_dst_update

Status: fixed on 2019/08/05 13:45
Subsystems: net
[Documentation on labels]
Fix commit: 8975a3abc303 ipv6: fix potential crash in ip6_datagram_dst_update()
First crash: 1800d, last: 1797d
Cause bisection: introduced by (bisect log) :
commit 59c820b2317f0ffe1ab9b5d2c0515cdbfe714e6e
Author: Willem de Bruijn <willemb@google.com>
Date: Sun Jul 7 09:34:45 2019 +0000

  ipv6: elide flowlabel check if no exclusive leases exist

Crash: general protection fault in ip6_datagram_dst_update (log)
Repro: C syz .config
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 general protection fault in ip6_datagram_dst_update 1 2324d 2324d 0/3 auto-closed as invalid on 2019/02/22 12:36

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: 8913 Comm: syz-executor732 Not tainted 5.2.0-rc6+ #63
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ip6_datagram_dst_update+0x559/0xc30 net/ipv6/datagram.c:83
Code: 00 00 e8 ea 29 3f fb 4d 85 f6 0f 84 96 04 00 00 e8 dc 29 3f fb 49 8d 7e 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 16 06 00 00 4d 8b 6e 20 e8 b4 29 3f fb 4c 89 ee
RSP: 0018:ffff8880984d7ae0 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff888089731a30 RCX: ffffffff86319e62
RDX: 0000000000000003 RSI: ffffffff86319a84 RDI: 000000000000001e
RBP: ffff8880984d7c10 R08: ffff888099b00680 R09: ffffed1015d06c80
R10: ffffed1015d06c7f R11: ffff8880ae8363fb R12: ffff8880897314c0
R13: 0000000000000001 R14: fffffffffffffffe R15: ffff8880984d7b40
FS:  0000555557531880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000016 CR3: 00000000a0c19000 CR4: 00000000001406f0
Call Trace:
 __ip6_datagram_connect+0x5e9/0x1390 net/ipv6/datagram.c:246
 ip6_datagram_connect+0x30/0x50 net/ipv6/datagram.c:269
 ip6_datagram_connect_v6_only+0x69/0x90 net/ipv6/datagram.c:281
 inet_dgram_connect+0x14a/0x2d0 net/ipv4/af_inet.c:571
 __sys_connect+0x264/0x330 net/socket.c:1824
 __do_sys_connect net/socket.c:1835 [inline]
 __se_sys_connect net/socket.c:1832 [inline]
 __x64_sys_connect+0x73/0xb0 net/socket.c:1832
 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440309
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:00007ffe754101d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440309
RDX: 000000000000001c RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401b90
R13: 0000000000401c20 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 796c96037b97def9 ]---
RIP: 0010:ip6_datagram_dst_update+0x559/0xc30 net/ipv6/datagram.c:83
Code: 00 00 e8 ea 29 3f fb 4d 85 f6 0f 84 96 04 00 00 e8 dc 29 3f fb 49 8d 7e 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 16 06 00 00 4d 8b 6e 20 e8 b4 29 3f fb 4c 89 ee
RSP: 0018:ffff8880984d7ae0 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff888089731a30 RCX: ffffffff86319e62
RDX: 0000000000000003 RSI: ffffffff86319a84 RDI: 000000000000001e
RBP: ffff8880984d7c10 R08: ffff888099b00680 R09: ffffed1015d06c80
R10: ffffed1015d06c7f R11: ffff8880ae8363fb R12: ffff8880897314c0
R13: 0000000000000001 R14: fffffffffffffffe R15: ffff8880984d7b40
FS:  0000555557531880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000016 CR3: 00000000a0c19000 CR4: 00000000001406f0

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/10 08:49 net-next-old 08cc83cc7fd8 f62e1e85 .config console log report syz C ci-upstream-net-kasan-gce
2019/07/11 06:14 linux-next a77f5c70e3d2 ff7bf04c .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/07/12 02:07 upstream 17a20acaf171 baa5258a .config console log report ci-upstream-kasan-gce
2019/07/12 05:13 net-old a131c2bf1656 baa5258a .config console log report ci-upstream-net-this-kasan-gce
2019/07/13 00:23 net-next-old a131c2bf1656 baa5258a .config console log report ci-upstream-net-kasan-gce
2019/07/12 23:24 net-next-old a131c2bf1656 baa5258a .config console log report ci-upstream-net-kasan-gce
2019/07/12 14:34 net-next-old a131c2bf1656 baa5258a .config console log report ci-upstream-net-kasan-gce
2019/07/11 04:09 net-next-old 1ff2f0fa450e ff7bf04c .config console log report ci-upstream-net-kasan-gce
2019/07/10 17:06 net-next-old 08cc83cc7fd8 f62e1e85 .config console log report ci-upstream-net-kasan-gce
2019/07/10 07:44 net-next-old 08cc83cc7fd8 f62e1e85 .config console log report ci-upstream-net-kasan-gce
2019/07/10 14:27 linux-next a77f5c70e3d2 f62e1e85 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/07/10 13:59 linux-next a77f5c70e3d2 f62e1e85 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.