syzbot


general protection fault in addrconf_add_ifaddr

Status: upstream: reported C repro on 2025/04/07 05:56
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+10d145ea96fc91185445@syzkaller.appspotmail.com
First crash: 4d00h, last: now
Cause bisection: introduced by (bisect log) :
commit 8965c160b8f7333df895321c8aa6bad4a7175f2b
Author: Stanislav Fomichev <sdf@fomichev.me>
Date: Tue Apr 1 16:34:44 2025 +0000

  net: use netif_disable_lro in ipv6_add_dev

Crash: BUG: unable to handle kernel NULL pointer dereference in addrconf_add_ifaddr (log)
Repro: C syz .config
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] net: get ops lock under dev valid 2 (2) 2025/04/07 14:12
[syzbot] [net?] general protection fault in addrconf_add_ifaddr 0 (1) 2025/04/07 05:56

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000198: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000cc0-0x0000000000000cc7]
CPU: 0 UID: 0 PID: 5838 Comm: syz-executor962 Not tainted 6.14.0-syzkaller-13305-g61f96e684edd #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:netdev_need_ops_lock include/net/netdev_lock.h:30 [inline]
RIP: 0010:netdev_lock_ops include/net/netdev_lock.h:41 [inline]
RIP: 0010:addrconf_add_ifaddr+0x23e/0x590 net/ipv6/addrconf.c:3157
Code: 03 00 00 8b b4 24 c4 00 00 00 48 8b 7c 24 18 e8 08 a4 25 ff 49 89 c5 48 8d 98 c5 0c 00 00 48 89 d8 48 c1 e8 03 48 89 44 24 38 <42> 0f b6 04 20 84 c0 0f 85 03 03 00 00 48 89 5c 24 28 0f b6 1b 31
RSP: 0018:ffffc90003f17a00 EFLAGS: 00010203
RAX: 0000000000000198 RBX: 0000000000000cc5 RCX: ffff8880305a5a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9ac53d00
RBP: ffffc90003f17b50 R08: ffffffff905fd677 R09: 1ffffffff20bface
R10: dffffc0000000000 R11: fffffbfff20bfacf R12: dffffc0000000000
R13: 0000000000000000 R14: 0000200000000000 R15: 1ffff920007e2f48
FS:  000055555b677380(0000) GS:ffff888124f96000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004585c0 CR3: 000000007bad8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 inet6_ioctl+0x148/0x280 net/ipv6/af_inet6.c:580
 sock_do_ioctl+0x15a/0x490 net/socket.c:1190
 sock_ioctl+0x644/0x900 net/socket.c:1311
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f90d012ca39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd8cd8f288 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f90d012ca39
RDX: 0000200000000000 RSI: 0000000000008916 RDI: 0000000000000003
RBP: 00007f90d019f5f0 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:netdev_need_ops_lock include/net/netdev_lock.h:30 [inline]
RIP: 0010:netdev_lock_ops include/net/netdev_lock.h:41 [inline]
RIP: 0010:addrconf_add_ifaddr+0x23e/0x590 net/ipv6/addrconf.c:3157
Code: 03 00 00 8b b4 24 c4 00 00 00 48 8b 7c 24 18 e8 08 a4 25 ff 49 89 c5 48 8d 98 c5 0c 00 00 48 89 d8 48 c1 e8 03 48 89 44 24 38 <42> 0f b6 04 20 84 c0 0f 85 03 03 00 00 48 89 5c 24 28 0f b6 1b 31
RSP: 0018:ffffc90003f17a00 EFLAGS: 00010203
RAX: 0000000000000198 RBX: 0000000000000cc5 RCX: ffff8880305a5a00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9ac53d00
RBP: ffffc90003f17b50 R08: ffffffff905fd677 R09: 1ffffffff20bface
R10: dffffc0000000000 R11: fffffbfff20bfacf R12: dffffc0000000000
R13: 0000000000000000 R14: 0000200000000000 R15: 1ffff920007e2f48
FS:  000055555b677380(0000) GS:ffff888124f96000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004585c0 CR3: 000000007bad8000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	03 00                	add    (%rax),%eax
   2:	00 8b b4 24 c4 00    	add    %cl,0xc424b4(%rbx)
   8:	00 00                	add    %al,(%rax)
   a:	48 8b 7c 24 18       	mov    0x18(%rsp),%rdi
   f:	e8 08 a4 25 ff       	call   0xff25a41c
  14:	49 89 c5             	mov    %rax,%r13
  17:	48 8d 98 c5 0c 00 00 	lea    0xcc5(%rax),%rbx
  1e:	48 89 d8             	mov    %rbx,%rax
  21:	48 c1 e8 03          	shr    $0x3,%rax
  25:	48 89 44 24 38       	mov    %rax,0x38(%rsp)
* 2a:	42 0f b6 04 20       	movzbl (%rax,%r12,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 03 03 00 00    	jne    0x33a
  37:	48 89 5c 24 28       	mov    %rbx,0x28(%rsp)
  3c:	0f b6 1b             	movzbl (%rbx),%ebx
  3f:	31                   	.byte 0x31

Crashes (14506):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/05 12:46 net 61f96e684edd 1c65791e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/04 11:12 net 8bc251e5d874 d7ae3a11 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 09:52 upstream 0af2f6be1b42 a775275d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 09:15 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in addrconf_add_ifaddr
2025/04/08 06:59 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in addrconf_add_ifaddr
2025/04/08 06:35 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 05:57 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 05:32 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root general protection fault in addrconf_add_ifaddr
2025/04/08 05:12 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in addrconf_add_ifaddr
2025/04/08 05:00 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 01:06 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in addrconf_add_ifaddr
2025/04/07 20:51 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root general protection fault in addrconf_add_ifaddr
2025/04/08 09:26 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in addrconf_add_ifaddr
2025/04/08 04:22 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in addrconf_add_ifaddr
2025/04/08 03:38 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 general protection fault in addrconf_add_ifaddr
2025/04/08 10:38 upstream 0af2f6be1b42 a775275d .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 08:48 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 08:02 upstream 0af2f6be1b42 a2ada0e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in addrconf_add_ifaddr
2025/04/08 07:54 upstream 0af2f6be1b42 a2ada0e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in addrconf_add_ifaddr
2025/04/08 07:36 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 07:23 upstream 0af2f6be1b42 a2ada0e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in addrconf_add_ifaddr
2025/04/08 07:05 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 06:50 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 06:43 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 06:20 upstream 0af2f6be1b42 a2ada0e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in addrconf_add_ifaddr
2025/04/08 06:12 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 05:19 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 04:30 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 04:13 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 03:29 upstream 0af2f6be1b42 a2ada0e7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in addrconf_add_ifaddr
2025/04/08 03:17 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 03:11 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in addrconf_add_ifaddr
2025/04/08 02:32 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 general protection fault in addrconf_add_ifaddr
2025/04/08 08:11 bpf 9bae8f4f2168 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 05:47 bpf 9bae8f4f2168 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/07 17:58 net 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 09:01 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 08:55 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 08:41 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 08:31 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 08:24 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 08:16 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 07:29 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 07:13 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 06:54 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 06:05 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 05:37 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 05:24 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 05:07 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 04:50 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 04:45 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 04:40 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 04:04 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 03:53 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 03:46 net-next 61f96e684edd a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce general protection fault in addrconf_add_ifaddr
2025/04/08 06:27 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64 BUG: unable to handle kernel paging request in addrconf_add_ifaddr
2025/04/08 04:55 upstream 0af2f6be1b42 a2ada0e7 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel NULL pointer dereference in addrconf_add_ifaddr
2025/04/07 17:28 upstream 0af2f6be1b42 2f0c9720 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-mte BUG: unable to handle kernel NULL pointer dereference in addrconf_add_ifaddr
2025/04/07 08:33 upstream 0af2f6be1b42 1c65791e .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-arm64-compat BUG: unable to handle kernel paging request in addrconf_add_ifaddr
2025/04/08 07:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in addrconf_add_ifaddr
2025/04/08 03:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0af2f6be1b42 a2ada0e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in addrconf_add_ifaddr
* Struck through repros no longer work on HEAD.