syzbot


general protection fault in fib6_nh_init (2)

Status: fixed on 2024/07/09 19:14
Subsystems: net
[Documentation on labels]
Fix commit: 2eab4543a220 ipv6: prevent possible NULL deref in fib6_nh_init()
First crash: 85d, last: 81d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in fib6_nh_init net 7 1907d 1922d 0/27 auto-closed as invalid on 2019/10/25 08:38

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc00000000bc: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x00000000000005e0-0x00000000000005e7]
CPU: 0 PID: 10346 Comm: syz-executor.1 Not tainted 6.10.0-rc3-syzkaller-00044-g2ccbdf43d5e7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:fib6_nh_init+0x640/0x2160 net/ipv6/route.c:3606
Code: 00 00 fc ff df 4c 8b 64 24 58 48 8b 44 24 28 4c 8b 74 24 30 48 89 c1 48 89 44 24 28 48 8d 98 e0 05 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 b3 17 00 00 8b 1b 31 ff 89 de e8 48 79
RSP: 0018:ffffc900033ff5a0 EFLAGS: 00010212
RAX: 00000000000000bc RBX: 00000000000005e0 RCX: 0000000000000000
RDX: 0000000000000010 RSI: ffffc900033ffa64 RDI: ffff888020f2a8e8
RBP: ffffc900033ff8b0 R08: ffff888020f2a8e7 R09: 1ffff110041e551c
R10: dffffc0000000000 R11: ffffed10041e551d R12: ffff888020f2a8b8
R13: 1ffff9200067fec8 R14: ffffc900033ffa00 R15: dffffc0000000000
FS:  00007f76671816c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32d22000 CR3: 000000007f71e000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ip6_route_info_create+0x99e/0x12b0 net/ipv6/route.c:3809
 ip6_route_add+0x28/0x160 net/ipv6/route.c:3853
 ipv6_route_ioctl+0x588/0x870 net/ipv6/route.c:4483
 inet6_ioctl+0x21a/0x280 net/ipv6/af_inet6.c:579
 sock_do_ioctl+0x15a/0x460 net/socket.c:1222
 sock_ioctl+0x629/0x8e0 net/socket.c:1341
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:907 [inline]
 __se_sys_ioctl+0xfe/0x170 fs/ioctl.c:893
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f766647cf29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f76671810c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f76665b3f80 RCX: 00007f766647cf29
RDX: 0000000020000140 RSI: 000000000000890b RDI: 0000000000000009
RBP: 00007f76664ec074 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f76665b3f80 R15: 00007ffd60b57948
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:fib6_nh_init+0x640/0x2160 net/ipv6/route.c:3606
Code: 00 00 fc ff df 4c 8b 64 24 58 48 8b 44 24 28 4c 8b 74 24 30 48 89 c1 48 89 44 24 28 48 8d 98 e0 05 00 00 48 89 d8 48 c1 e8 03 <42> 0f b6 04 38 84 c0 0f 85 b3 17 00 00 8b 1b 31 ff 89 de e8 48 79
RSP: 0018:ffffc900033ff5a0 EFLAGS: 00010212
RAX: 00000000000000bc RBX: 00000000000005e0 RCX: 0000000000000000
RDX: 0000000000000010 RSI: ffffc900033ffa64 RDI: ffff888020f2a8e8
RBP: ffffc900033ff8b0 R08: ffff888020f2a8e7 R09: 1ffff110041e551c
R10: dffffc0000000000 R11: ffffed10041e551d R12: ffff888020f2a8b8
R13: 1ffff9200067fec8 R14: ffffc900033ffa00 R15: dffffc0000000000
FS:  00007f76671816c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f75538e6290 CR3: 000000007f71e000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 4 bytes skipped:
   0:	df 4c 8b 64          	fisttps 0x64(%rbx,%rcx,4)
   4:	24 58                	and    $0x58,%al
   6:	48 8b 44 24 28       	mov    0x28(%rsp),%rax
   b:	4c 8b 74 24 30       	mov    0x30(%rsp),%r14
  10:	48 89 c1             	mov    %rax,%rcx
  13:	48 89 44 24 28       	mov    %rax,0x28(%rsp)
  18:	48 8d 98 e0 05 00 00 	lea    0x5e0(%rax),%rbx
  1f:	48 89 d8             	mov    %rbx,%rax
  22:	48 c1 e8 03          	shr    $0x3,%rax
* 26:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax <-- trapping instruction
  2b:	84 c0                	test   %al,%al
  2d:	0f 85 b3 17 00 00    	jne    0x17e6
  33:	8b 1b                	mov    (%rbx),%ebx
  35:	31 ff                	xor    %edi,%edi
  37:	89 de                	mov    %ebx,%esi
  39:	e8                   	.byte 0xe8
  3a:	48                   	rex.W
  3b:	79                   	.byte 0x79

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/18 20:59 upstream 2ccbdf43d5e7 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in fib6_nh_init
2024/06/14 05:20 net be27b8965297 a9616ff5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in fib6_nh_init
* Struck through repros no longer work on HEAD.