syzbot


general protection fault in find_match

Status: premoderation: reported on 2025/05/12 10:56
Reported-by: syzbot+5e982906b6dce78ec6a4@syzkaller.appspotmail.com
First crash: 164d, last: 12d
Similar bugs (12)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in find_match net 2 C done error 10 2077d 2263d 0/29 closed as invalid on 2020/04/17 19:54
upstream general protection fault in find_match (3) net 2 2 1109d 1151d 0/29 auto-obsoleted due to no activity on 2023/01/16 14:40
upstream general protection fault in find_match (6) net 17 C 102 31d 37d 28/29 upstream: reported C repro on 2025/09/16 17:56
upstream general protection fault in find_match (4) net 2 1 793d 789d 0/29 auto-obsoleted due to no activity on 2023/11/20 22:29
upstream general protection fault in find_match (2) net 2 4 1700d 1766d 0/29 auto-closed as invalid on 2021/06/26 04:02
linux-5.15 BUG: unable to handle kernel paging request in find_match 8 5 153d 209d 0/3 auto-obsoleted due to no activity on 2025/08/31 04:44
android-5-15 general protection fault in find_match 2 7 101d 198d 0/2 auto-obsoleted due to no activity on 2025/10/12 06:00
upstream general protection fault in find_match (5) net 2 2 500d 501d 26/29 fixed on 2024/07/10 10:07
linux-4.19 general protection fault in find_match 2 C error 1 1494d 2192d 0/1 upstream: reported C repro on 2019/10/23 12:46
linux-5.15 general protection fault in find_match 2 4 24d 46d 0/3 upstream: reported on 2025/09/07 13:45
android-5-10 general protection fault in find_match 2 50 22d 202d 0/2 premoderation: reported on 2025/04/04 19:16
linux-6.1 BUG: unable to handle kernel paging request in find_match 8 20 29d 148d 0/3 upstream: reported on 2025/05/28 21:21

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000005b: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000002d8-0x00000000000002df]
CPU: 0 PID: 21152 Comm: syz.9.5285 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__in6_dev_get include/net/addrconf.h:355 [inline]
RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:446 [inline]
RIP: 0010:find_match+0xb7/0xf20 net/ipv6/route.c:781
Code: 7c 05 00 00 74 08 48 89 df e8 55 e3 5f fd 48 89 d8 bb d8 02 00 00 48 03 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 2b e3 5f fd 48 8b 1b 48 85 db 0f 84
RSP: 0018:ffffc900053cf0c0 EFLAGS: 00010202
RAX: 000000000000005b RBX: 00000000000002d8 RCX: dffffc0000000000
RDX: ffff888130755100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900053cf178 R08: ffffc900053cf4a0 R09: ffffc900053cf4b0
R10: 0000000000000000 R11: 1ffff92000a79eb6 R12: 0000000000000201
R13: 1ffff11025e7ce24 R14: 0000000000000000 R15: 0000000000000003
FS:  00007fbce78376c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbce7836f98 CR3: 0000000110afe000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rt6_nh_find_match+0xd9/0x140 net/ipv6/route.c:821
 nexthop_for_each_fib6_nh+0x107/0x200 net/ipv4/nexthop.c:1243
 __find_rr_leaf+0x50f/0x900 net/ipv6/route.c:862
 find_rr_leaf net/ipv6/route.c:890 [inline]
 rt6_select net/ipv6/route.c:934 [inline]
 fib6_table_lookup+0x2c1/0x9a0 net/ipv6/route.c:2223
 ip6_pol_route+0x14c/0x1110 net/ipv6/route.c:2259
 ip6_pol_route_output+0x51/0x80 net/ipv6/route.c:2634
 pol_lookup_func include/net/ip6_fib.h:589 [inline]
 fib6_rule_lookup+0x311/0x580 net/ipv6/fib6_rules.c:121
 ip6_route_output_flags_noref+0x283/0x340 net/ipv6/route.c:2666
 ip6_route_output_flags+0x3c/0x200 net/ipv6/route.c:2679
 ip6_route_output include/net/ip6_route.h:98 [inline]
 ip6_dst_lookup_tail+0x194/0x1460 net/ipv6/ip6_output.c:1124
 ip6_dst_lookup_flow+0x49/0xc0 net/ipv6/ip6_output.c:1255
 ip6_datagram_dst_update+0x556/0xa50 net/ipv6/datagram.c:94
 __ip6_datagram_connect+0xbeb/0x1150 net/ipv6/datagram.c:253
 ip6_datagram_connect net/ipv6/datagram.c:277 [inline]
 ip6_datagram_connect_v6_only+0x66/0xa0 net/ipv6/datagram.c:289
 inet_dgram_connect+0x212/0x450 net/ipv4/af_inet.c:589
 __sys_connect_file net/socket.c:2001 [inline]
 __sys_connect+0x398/0x420 net/socket.c:2018
 __do_sys_connect net/socket.c:2028 [inline]
 __se_sys_connect net/socket.c:2025 [inline]
 __x64_sys_connect+0x7a/0x90 net/socket.c:2025
 x64_sys_call+0x88d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:43
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fbce698eec9
Code: ff ff 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fbce7837038 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007fbce6be6090 RCX: 00007fbce698eec9
RDX: 000000000000001c RSI: 00002000000000c0 RDI: 0000000000000003
RBP: 00007fbce6a11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fbce6be6128 R14: 00007fbce6be6090 R15: 00007fff7fe37908
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__in6_dev_get include/net/addrconf.h:355 [inline]
RIP: 0010:ip6_ignore_linkdown include/net/addrconf.h:446 [inline]
RIP: 0010:find_match+0xb7/0xf20 net/ipv6/route.c:781
Code: 7c 05 00 00 74 08 48 89 df e8 55 e3 5f fd 48 89 d8 bb d8 02 00 00 48 03 18 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 2b e3 5f fd 48 8b 1b 48 85 db 0f 84
RSP: 0018:ffffc900053cf0c0 EFLAGS: 00010202
RAX: 000000000000005b RBX: 00000000000002d8 RCX: dffffc0000000000
RDX: ffff888130755100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900053cf178 R08: ffffc900053cf4a0 R09: ffffc900053cf4b0
R10: 0000000000000000 R11: 1ffff92000a79eb6 R12: 0000000000000201
R13: 1ffff11025e7ce24 R14: 0000000000000000 R15: 0000000000000003
FS:  00007fbce78376c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000ffffffff CR3: 0000000110afe000 CR4: 00000000003506a0
----------------
Code disassembly (best guess):
   0:	7c 05                	jl     0x7
   2:	00 00                	add    %al,(%rax)
   4:	74 08                	je     0xe
   6:	48 89 df             	mov    %rbx,%rdi
   9:	e8 55 e3 5f fd       	call   0xfd5fe363
   e:	48 89 d8             	mov    %rbx,%rax
  11:	bb d8 02 00 00       	mov    $0x2d8,%ebx
  16:	48 03 18             	add    (%rax),%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 2b e3 5f fd       	call   0xfd5fe363
  38:	48 8b 1b             	mov    (%rbx),%rbx
  3b:	48 85 db             	test   %rbx,%rbx
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/11 18:34 android14-6.1 1729ceebf41a ff1712fe .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in find_match
2025/08/09 17:12 android14-6.1 c750dc582629 32a0e5ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in find_match
2025/07/24 02:53 android14-6.1 96160a0e0aa1 0c1d6ded .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in find_match
2025/06/05 17:45 android14-6.1 d8780220fd00 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in find_match
2025/05/12 10:55 android14-6.1 646380b087a5 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in find_match
* Struck through repros no longer work on HEAD.