syzbot


general protection fault in __fib6_drop_pcpu_from (4)

Status: auto-closed as invalid on 2022/03/31 04:19
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 644d, last: 337d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in __fib6_drop_pcpu_from 4 1265d 1270d 0/24 auto-closed as invalid on 2019/10/25 08:50
upstream general protection fault in __fib6_drop_pcpu_from (2) 1 889d 889d 0/24 auto-closed as invalid on 2020/09/25 04:17
upstream general protection fault in __fib6_drop_pcpu_from (3) 1 745d 745d 0/24 auto-closed as invalid on 2021/02/15 21:07

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000016: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000b0-0x00000000000000b7]
CPU: 1 PID: 13107 Comm: syz-executor.0 Not tainted 5.16.0-rc6-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:__fib6_drop_pcpu_from.part.0+0x10b/0x390 net/ipv6/ip6_fib.c:978
Code: 48 c1 ea 03 80 3c 1a 00 0f 85 19 02 00 00 4c 8b 38 4d 85 ff 0f 84 7a ff ff ff e8 80 7e 8c f9 49 8d 7f 70 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 4b 02 00 00 49 8b 47 70 48 3b 04 24 0f 85 52 ff
RSP: 0018:ffffc90006f5f2e8 EFLAGS: 00010203
RAX: 0000000000000016 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff888018a01d00 RSI: ffffffff87eb2440 RDI: 00000000000000b6
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffffff8ff74ac7
R10: ffffffff87eb23d4 R11: 0000000000000000 R12: 0000000000000008
R13: ffff88801857dca0 R14: ffffed10030afb9e R15: 0000000000000046
FS:  0000000000000000(0000) GS:ffff88802cb00000(0063) knlGS:00000000572fc380
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000033535000 CR3: 0000000049143000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __fib6_drop_pcpu_from net/ipv6/ip6_fib.c:960 [inline]
 fib6_drop_pcpu_from net/ipv6/ip6_fib.c:1021 [inline]
 fib6_purge_rt+0x6b9/0x820 net/ipv6/ip6_fib.c:1032
 fib6_del_route net/ipv6/ip6_fib.c:1982 [inline]
 fib6_del+0xa28/0x15d0 net/ipv6/ip6_fib.c:2027
 fib6_clean_node+0x393/0x5c0 net/ipv6/ip6_fib.c:2189
 fib6_walk_continue+0x400/0x720 net/ipv6/ip6_fib.c:2111
 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2159
 fib6_clean_tree+0xdb/0x120 net/ipv6/ip6_fib.c:2239
 __fib6_clean_all+0x107/0x2a0 net/ipv6/ip6_fib.c:2255
 rt6_sync_down_dev net/ipv6/route.c:4907 [inline]
 rt6_disable_ip+0x844/0x940 net/ipv6/route.c:4912
 addrconf_ifdown.isra.0+0xf6/0x1630 net/ipv6/addrconf.c:3726
 addrconf_notify+0xeb/0x1bb0 net/ipv6/addrconf.c:3651
 notifier_call_chain+0xb5/0x200 kernel/notifier.c:83
 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2002
 call_netdevice_notifiers_extack net/core/dev.c:2014 [inline]
 call_netdevice_notifiers net/core/dev.c:2028 [inline]
 dev_close_many+0x2ff/0x620 net/core/dev.c:1603
 unregister_netdevice_many+0x3ff/0x1790 net/core/dev.c:11057
 unregister_netdevice_queue+0x2dd/0x3c0 net/core/dev.c:11014
 unregister_netdevice include/linux/netdevice.h:2989 [inline]
 __tun_detach+0x10ad/0x13d0 drivers/net/tun.c:670
 tun_detach drivers/net/tun.c:687 [inline]
 tun_chr_close+0xc4/0x180 drivers/net/tun.c:3402
 __fput+0x286/0x9f0 fs/file_table.c:280
 task_work_run+0xdd/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
 exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207
 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
 syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
 __do_fast_syscall_32+0x72/0xf0 arch/x86/entry/common.c:181
 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203
 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c
RIP: 0023:0xf6f2a549
Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000ffa235e0 EFLAGS: 00000286 ORIG_RAX: 0000000000000006
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 00000000f7061000 RDI: 0000000000082611
RBP: 00000000f70880a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 7c3fecd96e8124a7 ]---
RIP: 0010:__fib6_drop_pcpu_from.part.0+0x10b/0x390 net/ipv6/ip6_fib.c:978
Code: 48 c1 ea 03 80 3c 1a 00 0f 85 19 02 00 00 4c 8b 38 4d 85 ff 0f 84 7a ff ff ff e8 80 7e 8c f9 49 8d 7f 70 48 89 f8 48 c1 e8 03 <80> 3c 18 00 0f 85 4b 02 00 00 49 8b 47 70 48 3b 04 24 0f 85 52 ff
RSP: 0018:ffffc90006f5f2e8 EFLAGS: 00010203
RAX: 0000000000000016 RBX: dffffc0000000000 RCX: 0000000000000000
RDX: ffff888018a01d00 RSI: ffffffff87eb2440 RDI: 00000000000000b6
RBP: 0000000000000001 R08: 0000000000000001 R09: ffffffff8ff74ac7
R10: ffffffff87eb23d4 R11: 0000000000000000 R12: 0000000000000008
R13: ffff88801857dca0 R14: ffffed10030afb9e R15: 0000000000000046
FS:  0000000000000000(0000) GS:ffff88802cb00000(0063) knlGS:00000000572fc380
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 0000000033535000 CR3: 0000000049143000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 1a 00          	cmpb   $0x0,(%rdx,%rbx,1)
   8:	0f 85 19 02 00 00    	jne    0x227
   e:	4c 8b 38             	mov    (%rax),%r15
  11:	4d 85 ff             	test   %r15,%r15
  14:	0f 84 7a ff ff ff    	je     0xffffff94
  1a:	e8 80 7e 8c f9       	callq  0xf98c7e9f
  1f:	49 8d 7f 70          	lea    0x70(%r15),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	0f 85 4b 02 00 00    	jne    0x27f
  34:	49 8b 47 70          	mov    0x70(%r15),%rax
  38:	48 3b 04 24          	cmp    (%rsp),%rax
  3c:	0f                   	.byte 0xf
  3d:	85 52 ff             	test   %edx,-0x1(%rdx)

Crashes (23):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream-386 2021/12/20 08:33 upstream a7904a538933 021b36cb .config log report info general protection fault in __fib6_drop_pcpu_from
ci-qemu-upstream-386 2021/11/10 15:00 upstream cb690f5238d7 75b04091 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/12/23 03:07 bpf 819d11507f66 6caa12e4 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/10/24 08:34 bpf 04f8ef5643bc 282f03fb .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/10/04 19:11 bpf b0e875bac0fa ce697b49 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/06/27 07:37 bpf 3db6735f2ef4 9d2ab5df .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/04/24 07:03 bpf b02265429681 17f0b706 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/04/17 14:21 bpf d7a509135175 7e2b734b .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-kasan-gce 2021/04/09 20:41 bpf afd0be729953 6a81331a .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/12/31 04:15 bpf-next 4b443bc1785f 36bd2e48 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/12/23 17:50 bpf-next 4b443bc1785f 6caa12e4 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/12/20 05:13 bpf-next 4b443bc1785f 44068e19 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/12/19 17:06 bpf-next 4b443bc1785f 44068e19 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/11/06 22:25 bpf-next be2f2d1680df 4c1be0be .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/10/20 21:32 bpf-next 588cd7ef5382 418a00eb .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/09/27 21:04 bpf-next e7d5184b24fb 78494d16 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/09/23 13:01 bpf-next c86216bc96aa 8cac236e .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/08/14 22:32 bpf-next faff1cca3b8b 2489ab88 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/06/11 05:56 bpf-next 380afe720896 1ba81399 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/06/04 16:38 bpf-next 56b8b7f9533b 966a236b .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/05/28 04:40 bpf-next d6a6a55518c1 858ea628 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/02/26 15:01 bpf-next 9c8f21e6f885 4c37c133 .config log report info general protection fault in __fib6_drop_pcpu_from
ci-upstream-bpf-next-kasan-gce 2021/06/15 07:39 bpf-next ca16b429f39b 1ba81399 .config log report info KASAN: use-after-free Read in __fib6_drop_pcpu_from
* Struck through repros no longer work on HEAD.