syzbot


WARNING in fib6_add (5)

Status: fixed on 2024/01/22 01:16
Subsystems: net
[Documentation on labels]
Fix commit: 75475bb51e78 ipv6: fix potential NULL deref in fib6_add()
First crash: 329d, last: 166d
Cause bisection: introduced by (bisect log) :
commit 0ae3eb7b4611207e140e9772398b9f88b72d6839
Author: Amit Cohen <amcohen@nvidia.com>
Date: Mon Feb 1 19:47:49 2021 +0000

  netdevsim: fib: Perform the route programming in a non-atomic context

Crash: WARNING in fib6_add (log)
Repro: C syz .config
  
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in fib6_add net C 8225 2384d 2408d 3/26 fixed on 2017/11/28 03:36
upstream WARNING in fib6_add (4) net 2 1480d 1497d 0/26 auto-closed as invalid on 2020/08/31 02:33
linux-6.1 WARNING in fib6_add C done 2 162d 329d 3/3 fixed on 2024/01/11 06:28
linux-5.15 WARNING in fib6_add C error 4 161d 330d 0/3 auto-obsoleted due to no activity on 2024/03/22 05:58
upstream WARNING in fib6_add (2) net 11 1858d 2000d 0/26 auto-closed as invalid on 2019/10/17 17:19
upstream WARNING in fib6_add (3) net 1 1575d 1575d 0/26 closed as invalid on 2020/02/24 20:17
linux-4.19 WARNING in fib6_add 1 1747d 1747d 0/1 auto-closed as invalid on 2019/12/07 20:56
Last patch testing requests (7)
Created Duration User Patch Repo Result
2023/12/07 14:55 21m retest repro upstream report log
2023/11/23 12:01 15m edumazet@google.com upstream report log
2023/11/16 04:09 14m retest repro upstream report log
2023/10/06 01:30 14m retest repro net report log
2023/09/20 00:07 15m retest repro linux-next report log
2023/08/25 04:52 19m retest repro upstream report log
2023/08/25 04:52 14m retest repro upstream report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/07/27 23:19 2h06m bisect fix net job log (0) log

Sample crash report:
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd7a7e7e30
R13: 00007fa50e2c2004 R14: 00007ffd7a7e7e00 R15: 0000000000000003
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5062 at net/ipv6/ip6_fib.c:1516 fib6_add+0x310d/0x3fa0 net/ipv6/ip6_fib.c:1516
Modules linked in:
CPU: 1 PID: 5062 Comm: syz-executor211 Not tainted 6.7.0-rc2-syzkaller-00014-gc2d5304e6c64 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:fib6_add+0x310d/0x3fa0 net/ipv6/ip6_fib.c:1516
Code: 00 48 8b 54 24 68 e8 42 22 00 00 48 85 c0 74 14 49 89 c6 e8 d5 d3 c2 f7 eb 5d e8 ce d3 c2 f7 e9 ca 00 00 00 e8 c4 d3 c2 f7 90 <0f> 0b 90 48 b8 00 00 00 00 00 fc ff df 48 8b 4c 24 38 80 3c 01 00
RSP: 0018:ffffc90003a8f740 EFLAGS: 00010293
RAX: ffffffff89cba5bc RBX: ffffc90003a8fab0 RCX: ffff88801a2f3b80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003a8f980 R08: ffffffff89cbca85 R09: 1ffff11002d74885
R10: dffffc0000000000 R11: ffffed1002d74886 R12: 00000000ffffffff
R13: 1ffff1100e132454 R14: ffff888016ba4400 R15: ffff8880709922a0
FS:  00005555562fe380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000561732b2ffe8 CR3: 000000007588d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ip6_ins_rt net/ipv6/route.c:1303 [inline]
 ip6_route_add+0x88/0x120 net/ipv6/route.c:3847
 ipv6_route_ioctl+0x525/0x7b0 net/ipv6/route.c:4467
 inet6_ioctl+0x21a/0x270 net/ipv6/af_inet6.c:575
 sock_do_ioctl+0x152/0x460 net/socket.c:1220
 sock_ioctl+0x615/0x8c0 net/socket.c:1339
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fa50e274d69
Code: d8 5b c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd7a7e7dd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffd7a7e7e00 RCX: 00007fa50e274d69
RDX: 0000000020000000 RSI: 000000000000890b RDI: 0000000000000005
RBP: 0000000000000001 R08: 00007ffd7a7e7b77 R09: 0000000000000001
R10: 0000000000000001 R11: 0000000000000246 R12: 00007ffd7a7e7e30
R13: 00007fa50e2c2004 R14: 00007ffd7a7e7e00 R15: 0000000000000003
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/22 19:58 upstream c2d5304e6c64 03e12510 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in fib6_add
2023/08/01 02:53 upstream 5d0c230f1de8 2a0d0f29 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in fib6_add
2023/06/27 14:34 upstream 1ef6663a587b 4cd5bb25 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in fib6_add
2023/06/27 14:23 net 8a9922e7be6d 4cd5bb25 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce WARNING in fib6_add
2023/09/05 23:15 linux-next c50216cfa084 8bc9053e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in fib6_add
2023/11/01 20:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in fib6_add
* Struck through repros no longer work on HEAD.