syzbot


general protection fault in rtnl_fill_ifinfo

Status: closed as invalid on 2025/02/03 10:48
Subsystems: net
[Documentation on labels]
First crash: 247d, last: 232d

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 UID: 0 PID: 10700 Comm: syz.1.995 Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:rtnl_fill_alt_ifnames net/core/rtnetlink.c:1893 [inline]
RIP: 0010:rtnl_fill_prop_list net/core/rtnetlink.c:1911 [inline]
RIP: 0010:rtnl_fill_ifinfo.constprop.0+0x3558/0x4ad0 net/core/rtnetlink.c:2136
Code: ef 10 41 80 3c 24 00 0f 85 f4 0d 00 00 4d 3b be 30 01 00 00 0f 84 ae 05 00 00 e8 c3 fa 92 f8 49 8d 7f 28 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 c3 0d 00 00 4d 8b 6f 28 4c 89 ef e8 42 1d 10 02
RSP: 0018:ffffc90003b67068 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffc9000de6d000
RDX: 0000000000080000 RSI: ffffffff890654fd RDI: 0000000000000018
RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed1004789c26
R13: ffff888034409c80 R14: ffff888023c4e000 R15: fffffffffffffff0
FS:  00007fa5b87e76c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30510ff8 CR3: 0000000047fac000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rtnl_dump_ifinfo+0xbf5/0x10c0 net/core/rtnetlink.c:2476
 rtnl_dumpit+0x198/0x1f0 net/core/rtnetlink.c:6791
 netlink_dump+0x53c/0xd00 net/netlink/af_netlink.c:2317
 netlink_recvmsg+0xa0d/0xf30 net/netlink/af_netlink.c:1973
 sock_recvmsg_nosec net/socket.c:1033 [inline]
 ____sys_recvmsg+0x5f8/0x6b0 net/socket.c:2801
 ___sys_recvmsg+0x115/0x1a0 net/socket.c:2845
 do_recvmmsg+0x2f8/0x740 net/socket.c:2940
 __sys_recvmmsg net/socket.c:3014 [inline]
 __do_sys_recvmmsg net/socket.c:3037 [inline]
 __se_sys_recvmmsg net/socket.c:3030 [inline]
 __x64_sys_recvmmsg+0x239/0x290 net/socket.c:3030
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fa5b7985d29
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:00007fa5b87e7038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fa5b7b76080 RCX: 00007fa5b7985d29
RDX: 000000000000010a RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007fa5b7a01b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000008 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fa5b7b76080 R15: 00007fffb1ce8928
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:rtnl_fill_alt_ifnames net/core/rtnetlink.c:1893 [inline]
RIP: 0010:rtnl_fill_prop_list net/core/rtnetlink.c:1911 [inline]
RIP: 0010:rtnl_fill_ifinfo.constprop.0+0x3558/0x4ad0 net/core/rtnetlink.c:2136
Code: ef 10 41 80 3c 24 00 0f 85 f4 0d 00 00 4d 3b be 30 01 00 00 0f 84 ae 05 00 00 e8 c3 fa 92 f8 49 8d 7f 28 48 89 f8 48 c1 e8 03 <80> 3c 28 00 0f 85 c3 0d 00 00 4d 8b 6f 28 4c 89 ef e8 42 1d 10 02
RSP: 0018:ffffc90003b67068 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000000 RCX: ffffc9000de6d000
RDX: 0000000000080000 RSI: ffffffff890654fd RDI: 0000000000000018
RBP: dffffc0000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed1004789c26
R13: ffff888034409c80 R14: ffff888023c4e000 R15: fffffffffffffff0
FS:  00007fa5b87e76c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000004021000 CR3: 0000000047fac000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ef                   	out    %eax,(%dx)
   1:	10 41 80             	adc    %al,-0x80(%rcx)
   4:	3c 24                	cmp    $0x24,%al
   6:	00 0f                	add    %cl,(%rdi)
   8:	85 f4                	test   %esi,%esp
   a:	0d 00 00 4d 3b       	or     $0x3b4d0000,%eax
   f:	be 30 01 00 00       	mov    $0x130,%esi
  14:	0f 84 ae 05 00 00    	je     0x5c8
  1a:	e8 c3 fa 92 f8       	call   0xf892fae2
  1f:	49 8d 7f 28          	lea    0x28(%r15),%rdi
  23:	48 89 f8             	mov    %rdi,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1) <-- trapping instruction
  2e:	0f 85 c3 0d 00 00    	jne    0xdf7
  34:	4d 8b 6f 28          	mov    0x28(%r15),%r13
  38:	4c 89 ef             	mov    %r13,%rdi
  3b:	e8 42 1d 10 02       	call   0x2101d82

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/03 10:05 upstream 0bc21e701a6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in rtnl_fill_ifinfo
2024/12/19 00:57 upstream c061cf420ded 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in rtnl_fill_ifinfo
* Struck through repros no longer work on HEAD.