syzbot


general protection fault in __fib6_drop_pcpu_from (5)

Status: fixed on 2024/06/18 11:11
Subsystems: net
[Documentation on labels]
Fix commit: b01e1c030770 ipv6: fix possible race in __fib6_drop_pcpu_from()
First crash: 77d, last: 32d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __fib6_drop_pcpu_from net 4 1861d 1866d 0/27 auto-closed as invalid on 2019/10/25 08:50
upstream general protection fault in __fib6_drop_pcpu_from (2) net 1 1484d 1484d 0/27 auto-closed as invalid on 2020/09/25 04:17
upstream general protection fault in __fib6_drop_pcpu_from (3) net 1 1341d 1341d 0/27 auto-closed as invalid on 2021/02/15 21:07
upstream general protection fault in __fib6_drop_pcpu_from (4) net 23 932d 1240d 0/27 auto-closed as invalid on 2022/03/31 04:19

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000012: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000090-0x0000000000000097]
CPU: 1 PID: 9586 Comm: kworker/u8:28 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: netns cleanup_net
RIP: 0010:__fib6_drop_pcpu_from+0x1fd/0x3d0 net/ipv6/ip6_fib.c:987
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 ef e8 3a 42 cc f7 48 8b 6d 00 48 85 ed 74 30 48 81 c5 90 00 00 00 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 ef e8 14 42 cc f7 48 8b 45 00 4c 39 f0
RSP: 0018:ffffc90004c86a60 EFLAGS: 00010216
RAX: 0000000000000012 RBX: ffffffff8ddbc9e0 RCX: ffff88805330bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000093 R08: ffffffff8a2fa8d8 R09: 1ffffffff25f56b0
R10: dffffc0000000000 R11: fffffbfff25f56b1 R12: dffffc0000000000
R13: ffff88805bd77110 R14: ffff88805bd77000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc8a91ded58 CR3: 000000007daa6000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 fib6_drop_pcpu_from net/ipv6/ip6_fib.c:1031 [inline]
 fib6_purge_rt+0x193/0x890 net/ipv6/ip6_fib.c:1042
 fib6_del_route net/ipv6/ip6_fib.c:2002 [inline]
 fib6_del+0xe77/0x1600 net/ipv6/ip6_fib.c:2047
 fib6_clean_node+0x2f7/0x5e0 net/ipv6/ip6_fib.c:2209
 fib6_walk_continue+0x65a/0x8f0 net/ipv6/ip6_fib.c:2131
 fib6_walk+0x168/0x2b0 net/ipv6/ip6_fib.c:2179
 fib6_clean_tree net/ipv6/ip6_fib.c:2259 [inline]
 __fib6_clean_all+0x31f/0x4b0 net/ipv6/ip6_fib.c:2275
 rt6_sync_down_dev net/ipv6/route.c:4908 [inline]
 rt6_disable_ip+0x170/0x880 net/ipv6/route.c:4913
 addrconf_ifdown+0x15d/0x1bc0 net/ipv6/addrconf.c:3855
 addrconf_notify+0x3cb/0x1020
 notifier_call_chain+0x1a1/0x3e0 kernel/notifier.c:93
 call_netdevice_notifiers_extack net/core/dev.c:2030 [inline]
 call_netdevice_notifiers net/core/dev.c:2044 [inline]
 dev_close_many+0x33c/0x4c0 net/core/dev.c:1585
 unregister_netdevice_many_notify+0x544/0x16b0 net/core/dev.c:11194
 unregister_netdevice_many net/core/dev.c:11277 [inline]
 unregister_netdevice_queue+0x303/0x370 net/core/dev.c:11156
 unregister_netdevice include/linux/netdevice.h:3119 [inline]
 nsim_destroy+0x180/0x5c0 drivers/net/netdevsim/netdev.c:777
 __nsim_dev_port_del+0x14b/0x1b0 drivers/net/netdevsim/dev.c:1425
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1437 [inline]
 nsim_dev_reload_destroy+0x28a/0x490 drivers/net/netdevsim/dev.c:1658
 nsim_dev_reload_down+0x98/0xd0 drivers/net/netdevsim/dev.c:965
 devlink_reload+0x18d/0x870 net/devlink/dev.c:461
 devlink_pernet_pre_exit+0x1f3/0x440 net/devlink/core.c:509
 ops_pre_exit_list net/core/net_namespace.c:163 [inline]
 cleanup_net+0x617/0xcc0 net/core/net_namespace.c:620
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__fib6_drop_pcpu_from+0x1fd/0x3d0 net/ipv6/ip6_fib.c:987
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 48 89 ef e8 3a 42 cc f7 48 8b 6d 00 48 85 ed 74 30 48 81 c5 90 00 00 00 48 89 e8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 ef e8 14 42 cc f7 48 8b 45 00 4c 39 f0
RSP: 0018:ffffc90004c86a60 EFLAGS: 00010216
RAX: 0000000000000012 RBX: ffffffff8ddbc9e0 RCX: ffff88805330bc00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000093 R08: ffffffff8a2fa8d8 R09: 1ffffffff25f56b0
R10: dffffc0000000000 R11: fffffbfff25f56b1 R12: dffffc0000000000
R13: ffff88805bd77110 R14: ffff88805bd77000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc8a91ded58 CR3: 000000007daa6000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess):
   0:	48 c1 e8 03          	shr    $0x3,%rax
   4:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1)
   9:	74 08                	je     0x13
   b:	48 89 ef             	mov    %rbp,%rdi
   e:	e8 3a 42 cc f7       	call   0xf7cc424d
  13:	48 8b 6d 00          	mov    0x0(%rbp),%rbp
  17:	48 85 ed             	test   %rbp,%rbp
  1a:	74 30                	je     0x4c
  1c:	48 81 c5 90 00 00 00 	add    $0x90,%rbp
  23:	48 89 e8             	mov    %rbp,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 20 00       	cmpb   $0x0,(%rax,%r12,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 ef             	mov    %rbp,%rdi
  34:	e8 14 42 cc f7       	call   0xf7cc424d
  39:	48 8b 45 00          	mov    0x0(%rbp),%rax
  3d:	4c 39 f0             	cmp    %r14,%rax

Crashes (467):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/16 03:07 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in __fib6_drop_pcpu_from
2024/05/28 16:22 upstream 2bfcfd584ff5 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in __fib6_drop_pcpu_from
2024/05/12 16:59 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in __fib6_drop_pcpu_from
2024/05/20 19:54 upstream 6e51b4b5bbc0 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in __fib6_drop_pcpu_from
2024/06/18 08:53 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/18 05:50 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/18 04:11 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 23:20 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 22:51 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 21:47 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 18:14 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 16:57 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 14:18 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 13:17 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 11:53 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 10:46 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 09:20 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 06:58 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 05:34 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 03:08 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 01:42 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/17 00:23 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 18:14 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 16:57 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 15:44 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 13:04 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 10:13 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 07:43 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/16 00:45 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 21:48 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 20:39 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 19:17 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 18:12 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 16:46 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 13:37 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 06:27 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 05:21 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/15 02:51 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 23:53 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 22:36 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 21:04 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 19:19 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 14:43 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 11:30 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 08:21 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 07:08 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 05:30 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/14 04:26 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/06/13 23:51 upstream 2ccbdf43d5e7 c2e07261 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in __fib6_drop_pcpu_from
2024/05/13 00:29 linux-next 75fa778d74b7 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in __fib6_drop_pcpu_from
2024/05/23 20:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c 8f98448e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in __fib6_drop_pcpu_from
2024/05/16 08:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fda5695d692c ef5d53ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in __fib6_drop_pcpu_from
* Struck through repros no longer work on HEAD.