syzbot


general protection fault in tipc_udp_nl_dump_remoteip (3)

Status: upstream: reported on 2025/01/03 10:04
Subsystems: tipc
[Documentation on labels]
Reported-by: syzbot+a9a9a6bca76550defd42@syzkaller.appspotmail.com
First crash: 99d, last: 5d00h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] general protection fault in tipc_udp_nl_dump_remoteip (3) 0 (1) 2025/01/03 10:04
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tipc_udp_nl_dump_remoteip tipc 5 301d 441d 0/28 auto-obsoleted due to no activity on 2024/09/19 16:07
upstream general protection fault in tipc_udp_nl_dump_remoteip (2) net 1 146d 146d 0/28 closed as invalid on 2024/12/17 17:57

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 6746 Comm: syz.2.227 Not tainted 6.14.0-syzkaller-00685-g3ba7dfb8da62 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:tipc_udp_nl_dump_remoteip+0x3c7/0xa60 net/tipc/udp_media.c:516
Code: 48 c1 ea 03 80 3c 02 00 0f 85 e3 05 00 00 48 8b 9b 98 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 7b c8 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 6f 06 00 00 48 8b 03 48 39 d9 4c 8d 70 c8 0f 84
RSP: 0018:ffffc900040bf218 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880272e4098
RDX: 0000000000000000 RSI: ffffffff8afd6ed9 RDI: 0000000000000001
RBP: ffff888026b1b900 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000004 R12: 0000000000000001
R13: ffffc900040bf298 R14: ffff888026b1b900 R15: ffffffffffffffc8
FS:  00007fceb7e516c0(0000) GS:ffff88806a600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ed5ffff CR3: 000000004c1ea000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 genl_dumpit+0x122/0x230 net/netlink/genetlink.c:1027
 netlink_dump+0x53c/0xd00 net/netlink/af_netlink.c:2308
 __netlink_dump_start+0x6ca/0x970 net/netlink/af_netlink.c:2423
 genl_family_rcv_msg_dumpit+0x1e1/0x2e0 net/netlink/genetlink.c:1076
 genl_family_rcv_msg net/netlink/genetlink.c:1192 [inline]
 genl_rcv_msg+0x470/0x800 net/netlink/genetlink.c:1210
 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2533
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1219
 netlink_unicast_kernel net/netlink/af_netlink.c:1312 [inline]
 netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1338
 netlink_sendmsg+0x8cb/0xd70 net/netlink/af_netlink.c:1882
 sock_sendmsg_nosec net/socket.c:718 [inline]
 __sock_sendmsg net/socket.c:733 [inline]
 ____sys_sendmsg+0xa87/0xc70 net/socket.c:2573
 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2627
 __sys_sendmsg+0x16e/0x220 net/socket.c:2659
 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:0x7fceb6f8d169
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:00007fceb7e51038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fceb71a5fa0 RCX: 00007fceb6f8d169
RDX: 0000000000000000 RSI: 00002000000001c0 RDI: 0000000000000003
RBP: 00007fceb700e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fceb71a5fa0 R15: 00007fffc600ace8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tipc_udp_nl_dump_remoteip+0x3c7/0xa60 net/tipc/udp_media.c:516
Code: 48 c1 ea 03 80 3c 02 00 0f 85 e3 05 00 00 48 8b 9b 98 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 7b c8 48 89 da 48 c1 ea 03 <80> 3c 02 00 0f 85 6f 06 00 00 48 8b 03 48 39 d9 4c 8d 70 c8 0f 84
RSP: 0018:ffffc900040bf218 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff8880272e4098
RDX: 0000000000000000 RSI: ffffffff8afd6ed9 RDI: 0000000000000001
RBP: ffff888026b1b900 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000004 R12: 0000000000000001
R13: ffffc900040bf298 R14: ffff888026b1b900 R15: ffffffffffffffc8
FS:  00007fceb7e516c0(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055598bba2068 CR3: 000000004c1ea000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 e3 05 00 00    	jne    0x5f1
   e:	48 8b 9b 98 00 00 00 	mov    0x98(%rbx),%rbx
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	4c 8d 7b c8          	lea    -0x38(%rbx),%r15
  23:	48 89 da             	mov    %rbx,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 6f 06 00 00    	jne    0x6a3
  34:	48 8b 03             	mov    (%rbx),%rax
  37:	48 39 d9             	cmp    %rbx,%rcx
  3a:	4c 8d 70 c8          	lea    -0x38(%rax),%r14
  3e:	0f                   	.byte 0xf
  3f:	84                   	.byte 0x84

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/25 15:13 upstream 3ba7dfb8da62 875573af .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream general protection fault in tipc_udp_nl_dump_remoteip
2025/04/03 20:41 net 3a0a3ff6593d d7ae3a11 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
2025/03/29 20:46 net 2ea396448f26 d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
2025/03/21 12:46 net 5fc319360819 62330552 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
2025/03/13 17:11 net d2b9d97e89c7 44be8b44 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
2025/03/02 03:24 net a466fd7e9faf c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
2024/12/30 09:36 net a024e377efed d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
* Struck through repros no longer work on HEAD.