syzbot


general protection fault in find_match

Status: closed as invalid on 2020/04/17 19:54
Subsystems: net
[Documentation on labels]
First crash: 1711d, last: 1524d
Cause bisection: introduced by (bisect log) :
commit 93531c6743157d7e8c5792f8ed1a57641149d62c
Author: David Ahern <dsahern@gmail.com>
Date: Wed Apr 18 00:33:25 2018 +0000

  net/ipv6: separate handling of FIB entries from dst based routes

Crash: KASAN: use-after-free Read in ip6_pol_route (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCHv3 next] blackhole_netdev: fix syzkaller reported issue 3 (3) 2019/10/16 07:01
[PATCHv2 next] blackhole_netdev: fix syzkaller reported issue 4 (4) 2019/10/14 01:51
[PATCH next] blackhole_netdev: fix syzkaller reported issue 2 (2) 2019/10/10 00:39
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in find_match (3) net 2 556d 598d 0/26 auto-obsoleted due to no activity on 2023/01/16 14:40
upstream general protection fault in find_match (4) net 1 240d 236d 0/26 auto-obsoleted due to no activity on 2023/11/20 22:29
upstream general protection fault in find_match (2) net 4 1148d 1214d 0/26 auto-closed as invalid on 2021/06/26 04:02
linux-4.19 general protection fault in find_match C error 1 941d 1639d 0/1 upstream: reported C repro on 2019/10/23 12:46

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: 1 PID: 8693 Comm: syz-executor173 Not tainted 5.4.0-rc4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rt6_probe net/ipv6/route.c:657 [inline]
RIP: 0010:find_match net/ipv6/route.c:757 [inline]
RIP: 0010:find_match+0x79c/0xd70 net/ipv6/route.c:733
Code: 80 3c 02 00 0f 85 ae 04 00 00 48 8b 45 c0 48 8b 73 48 48 8d b8 44 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 05
RSP: 0018:ffff888089536da8 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff8880a58b84a0 RCX: ffffffff864ceafa
RDX: 0000000000000048 RSI: 00000000ffffa79b RDI: 0000000000000244
RBP: ffff888089536e08 R08: ffff888094c20280 R09: ffffed1015d26b75
R10: ffffed1015d26b74 R11: ffff8880ae935ba3 R12: ffff88808c6fc000
R13: ffff888089537008 R14: 000000000000000a R15: 0000000000000000
FS:  00007f3f5187a700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdfcf6bcb0 CR3: 00000000966ab000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __find_rr_leaf+0x14e/0x750 net/ipv6/route.c:831
 find_rr_leaf net/ipv6/route.c:852 [inline]
 rt6_select net/ipv6/route.c:896 [inline]
 fib6_table_lookup+0x697/0xdb0 net/ipv6/route.c:2164
 ip6_pol_route+0x1f6/0xaf0 net/ipv6/route.c:2200
 ip6_pol_route_output+0x54/0x70 net/ipv6/route.c:2452
 fib6_rule_lookup+0x133/0x7d0 net/ipv6/fib6_rules.c:113
 ip6_route_output_flags_noref+0x2d6/0x360 net/ipv6/route.c:2484
 ip6_route_output_flags+0x106/0x4d0 net/ipv6/route.c:2497
 ip6_dst_lookup_tail+0x571/0x1ef0 net/ipv6/ip6_output.c:1052
 ip6_dst_lookup_flow+0xa8/0x220 net/ipv6/ip6_output.c:1153
 ip6_sk_dst_lookup_flow net/ipv6/ip6_output.c:1191 [inline]
 ip6_sk_dst_lookup_flow+0x62a/0xb90 net/ipv6/ip6_output.c:1181
 udpv6_sendmsg+0x17b4/0x2990 net/ipv6/udp.c:1446
 inet6_sendmsg+0x9e/0xe0 net/ipv6/af_inet6.c:576
 sock_sendmsg_nosec net/socket.c:637 [inline]
 sock_sendmsg+0xd7/0x130 net/socket.c:657
 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311
 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413
 __do_sys_sendmmsg net/socket.c:2442 [inline]
 __se_sys_sendmmsg net/socket.c:2439 [inline]
 __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x447dc9
Code: e8 8c e7 ff ff 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 fb 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3f51879ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000006ddc28 RCX: 0000000000447dc9
RDX: 00000000000000c6 RSI: 0000000020006d00 RDI: 0000000000000004
RBP: 00000000006ddc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006ddc2c
R13: 00007ffdfcf6bc1f R14: 00007f3f5187a9c0 R15: 00000000006ddc2c
Modules linked in:
---[ end trace a985079a7d072b8d ]---
RIP: 0010:rt6_probe net/ipv6/route.c:657 [inline]
RIP: 0010:find_match net/ipv6/route.c:757 [inline]
RIP: 0010:find_match+0x79c/0xd70 net/ipv6/route.c:733
Code: 80 3c 02 00 0f 85 ae 04 00 00 48 8b 45 c0 48 8b 73 48 48 8d b8 44 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 05
RSP: 0018:ffff888089536da8 EFLAGS: 00010207
RAX: dffffc0000000000 RBX: ffff8880a58b84a0 RCX: ffffffff864ceafa
RDX: 0000000000000048 RSI: 00000000ffffa79b RDI: 0000000000000244
RBP: ffff888089536e08 R08: ffff888094c20280 R09: ffffed1015d26b75
R10: ffffed1015d26b74 R11: ffff8880ae935ba3 R12: ffff88808c6fc000
R13: ffff888089537008 R14: 000000000000000a R15: 0000000000000000
FS:  00007f3f5187a700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffdfcf6bcb0 CR3: 00000000966ab000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/21 22:57 upstream 7d194c2100ad b24d2b8a .config console log report syz C ci-upstream-kasan-gce-root
2019/10/16 06:32 upstream 3b1f00aceb7a d4ea592f .config console log report syz C ci-upstream-kasan-gce
2019/10/16 05:56 upstream 3b1f00aceb7a d4ea592f .config console log report syz C ci-upstream-kasan-gce-386
2019/10/16 05:15 net-old 9cb0aec9ad37 d4ea592f .config console log report syz C ci-upstream-net-this-kasan-gce
2019/10/16 04:06 net-next-old 14f2cf607ccd d4ea592f .config console log report syz C ci-upstream-net-kasan-gce
2019/10/27 12:44 upstream 5a1e843c66fa 25bb509e .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/11/08 22:15 linux-next 5591cf003452 1e35461e .config console log report syz ci-upstream-linux-next-kasan-gce-root
2020/02/15 18:28 upstream 2019fc96af22 5d7b90f1 .config console log report ci-upstream-kasan-gce-root
2019/08/12 22:01 net-old 125b7e0949d4 acb51638 .config console log report ci-upstream-net-this-kasan-gce
2019/10/16 02:43 net-next-old 14f2cf607ccd d4ea592f .config console log report ci-upstream-net-kasan-gce
* Struck through repros no longer work on HEAD.