syzbot


general protection fault in ip6_create_rt_rcu

Status: premoderation: reported on 2025/05/13 02:39
Reported-by: syzbot+cacfe9ea50d05d3d3717@syzkaller.appspotmail.com
First crash: 47d, last: 47d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in ip6_create_rt_rcu net 2 53d 58d 0/29 upstream: reported on 2025/05/01 14:38

Sample crash report:
blk_update_request: I/O error, dev loop3, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
FAT-fs (loop3): unable to read boot sector
general protection fault, probably for non-canonical address 0xdffffc000000009f: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000004f8-0x00000000000004ff]
CPU: 0 PID: 24593 Comm: syz.1.7237 Tainted: G        W         5.10.237-syzkaller-00309-g7e2543346ff7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:read_pnet include/net/net_namespace.h:335 [inline]
RIP: 0010:dev_net include/linux/netdevice.h:2396 [inline]
RIP: 0010:ip6_create_rt_rcu+0x1e2/0x520 net/ipv6/route.c:1185
Code: b6 04 28 84 c0 0f 85 31 03 00 00 41 0f b6 06 89 c1 83 e1 02 83 e0 04 44 8d 34 88 49 8d bc 24 f8 04 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 82 ae a9 fd 4d 8b ac 24 f8 04 00 00 49 8d
RSP: 0018:ffffc90000fdf180 EFLAGS: 00010206
RAX: 000000000000009f RBX: ffffc90000fdf300 RCX: 0000000000000000
RDX: ffff88810d3bbb40 RSI: 0000000000000001 RDI: 00000000000004f8
RBP: ffffc90000fdf230 R08: 0000000000000004 R09: 0000000000000003
R10: fffff520001fbe38 R11: 1ffff920001fbe38 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88810d57482c
FS:  00007f00f98186c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2cd3a7 CR3: 000000012450a000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ip6_pol_route_lookup+0x145d/0x17d0 net/ipv6/route.c:1245
 pol_lookup_func include/net/ip6_fib.h:594 [inline]
 __fib6_rule_action net/ipv6/fib6_rules.c:232 [inline]
 fib6_rule_action+0x1c7/0x710 net/ipv6/fib6_rules.c:270
 fib_rules_lookup+0x489/0x8d0 net/core/fib_rules.c:318
 fib6_rule_lookup+0x179/0x560 net/ipv6/fib6_rules.c:107
 rt6_lookup+0x116/0x1d0 net/ipv6/route.c:1279
 vti6_link_config+0x2a9/0x550 net/ipv6/ip6_vti.c:680
 vti6_dev_init+0x210/0x250 net/ipv6/ip6_vti.c:950
 register_netdevice+0x351/0x13c0 net/core/dev.c:9986
 vti6_tnl_create2+0xbe/0x2f0 net/ipv6/ip6_vti.c:189
 vti6_tnl_create net/ipv6/ip6_vti.c:228 [inline]
 vti6_locate+0x590/0x640 net/ipv6/ip6_vti.c:276
 vti6_ioctl+0x764/0xe10 net/ipv6/ip6_vti.c:839
 dev_do_ioctl net/core/dev_ioctl.c:206 [inline]
 dev_ifsioc+0x69b/0xa50 net/core/dev_ioctl.c:312
 dev_ioctl+0x5ea/0xb80 net/core/dev_ioctl.c:506
 sock_ioctl+0x6a0/0x710 net/socket.c:1121
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0x121/0x1a0 fs/ioctl.c:739
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f00fb1af969
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:00007f00f9818038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f00fb3d6fa0 RCX: 00007f00fb1af969
RDX: 0000200000000000 RSI: 00000000000089f1 RDI: 0000000000000006
RBP: 00007f00fb231ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f00fb3d6fa0 R15: 00007ffd2dc6d268
Modules linked in:
---[ end trace ff1330fe7754eee1 ]---
RIP: 0010:read_pnet include/net/net_namespace.h:335 [inline]
RIP: 0010:dev_net include/linux/netdevice.h:2396 [inline]
RIP: 0010:ip6_create_rt_rcu+0x1e2/0x520 net/ipv6/route.c:1185
Code: b6 04 28 84 c0 0f 85 31 03 00 00 41 0f b6 06 89 c1 83 e1 02 83 e0 04 44 8d 34 88 49 8d bc 24 f8 04 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 05 e8 82 ae a9 fd 4d 8b ac 24 f8 04 00 00 49 8d
RSP: 0018:ffffc90000fdf180 EFLAGS: 00010206
RAX: 000000000000009f RBX: ffffc90000fdf300 RCX: 0000000000000000
RDX: ffff88810d3bbb40 RSI: 0000000000000001 RDI: 00000000000004f8
RBP: ffffc90000fdf230 R08: 0000000000000004 R09: 0000000000000003
R10: fffff520001fbe38 R11: 1ffff920001fbe38 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88810d57482c
FS:  00007f00f98186c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e0cc8dd58 CR3: 000000012450a000 CR4: 00000000003526b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	b6 04                	mov    $0x4,%dh
   2:	28 84 c0 0f 85 31 03 	sub    %al,0x331850f(%rax,%rax,8)
   9:	00 00                	add    %al,(%rax)
   b:	41 0f b6 06          	movzbl (%r14),%eax
   f:	89 c1                	mov    %eax,%ecx
  11:	83 e1 02             	and    $0x2,%ecx
  14:	83 e0 04             	and    $0x4,%eax
  17:	44 8d 34 88          	lea    (%rax,%rcx,4),%r14d
  1b:	49 8d bc 24 f8 04 00 	lea    0x4f8(%r12),%rdi
  22:	00
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 05                	je     0x36
  31:	e8 82 ae a9 fd       	call   0xfda9aeb8
  36:	4d 8b ac 24 f8 04 00 	mov    0x4f8(%r12),%r13
  3d:	00
  3e:	49                   	rex.WB
  3f:	8d                   	.byte 0x8d

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/13 02:38 android13-5.10-lts 7e2543346ff7 f6671af7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in ip6_create_rt_rcu
* Struck through repros no longer work on HEAD.