syzbot


general protection fault in tipc_udp_nl_dump_remoteip

Status: upstream: reported on 2024/01/23 09:11
Subsystems: tipc
[Documentation on labels]
Reported-by: syzbot+314c727eef32ba20b65d@syzkaller.appspotmail.com
First crash: 88d, last: 11d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [tipc?] general protection fault in tipc_udp_nl_dump_remoteip 0 (1) 2024/01/23 09:11

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 5864 Comm: syz-executor.4 Not tainted 6.8.0-syzkaller-08073-g480e035fc4c7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:tipc_udp_nl_dump_remoteip+0x5d0/0xd40
Code: 89 44 24 40 49 8d 84 24 d0 00 00 00 48 89 44 24 60 49 8d 84 24 c8 00 00 00 48 89 44 24 68 31 db 4c 89 e8 48 c1 e8 03 4d 89 f7 <42> 80 3c 30 00 74 08 4c 89 ef e8 01 ef e3 f6 4d 8b 75 00 89 df 89
RSP: 0018:ffffc9000359efe0 EFLAGS: 00010246

RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc9000359f0c2
RDX: ffffc9000359f0e2 RSI: 0000000000000c3b RDI: 0000000000000c3c
RBP: ffffc9000359f1d0 R08: ffffffff894fd5e6 R09: 1ffffffff1f0e59d
R10: dffffc0000000000 R11: fffffbfff1f0e59e R12: ffff88807c885500
R13: 0000000000000000 R14: dffffc0000000000 R15: dffffc0000000000
FS:  00007f8f9f6746c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9bf1c87140 CR3: 0000000064d56000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 genl_dumpit+0x107/0x1a0 net/netlink/genetlink.c:1025
 netlink_dump+0x6ff/0xe50 net/netlink/af_netlink.c:2269
 __netlink_dump_start+0x59d/0x780 net/netlink/af_netlink.c:2386
 genl_family_rcv_msg_dumpit net/netlink/genetlink.c:1074 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1190 [inline]
 genl_rcv_msg+0x88c/0xec0 net/netlink/genetlink.c:1208
 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2559
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1217
 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline]
 netlink_unicast+0x7ea/0x980 net/netlink/af_netlink.c:1361
 netlink_sendmsg+0x8e1/0xcb0 net/netlink/af_netlink.c:1905
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:745
 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2584
 ___sys_sendmsg net/socket.c:2638 [inline]
 __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2667
 do_syscall_64+0xfb/0x240
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7f8f9e87de69
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:00007f8f9f6740c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f8f9e9abf80 RCX: 00007f8f9e87de69
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007f8f9e8ca47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f8f9e9abf80 R15: 00007f8f9eacfa48
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tipc_udp_nl_dump_remoteip+0x5d0/0xd40
Code: 89 44 24 40 49 8d 84 24 d0 00 00 00 48 89 44 24 60 49 8d 84 24 c8 00 00 00 48 89 44 24 68 31 db 4c 89 e8 48 c1 e8 03 4d 89 f7 <42> 80 3c 30 00 74 08 4c 89 ef e8 01 ef e3 f6 4d 8b 75 00 89 df 89
RSP: 0018:ffffc9000359efe0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc9000359f0c2
RDX: ffffc9000359f0e2 RSI: 0000000000000c3b RDI: 0000000000000c3c
RBP: ffffc9000359f1d0 R08: ffffffff894fd5e6 R09: 1ffffffff1f0e59d
R10: dffffc0000000000 R11: fffffbfff1f0e59e R12: ffff88807c885500
R13: 0000000000000000 R14: dffffc0000000000 R15: dffffc0000000000
FS:  00007f8f9f6746c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31127000 CR3: 0000000064d56000 CR4: 00000000003506f0
DR0: 00000000fffffff1 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	89 44 24 40          	mov    %eax,0x40(%rsp)
   4:	49 8d 84 24 d0 00 00 	lea    0xd0(%r12),%rax
   b:	00
   c:	48 89 44 24 60       	mov    %rax,0x60(%rsp)
  11:	49 8d 84 24 c8 00 00 	lea    0xc8(%r12),%rax
  18:	00
  19:	48 89 44 24 68       	mov    %rax,0x68(%rsp)
  1e:	31 db                	xor    %ebx,%ebx
  20:	4c 89 e8             	mov    %r13,%rax
  23:	48 c1 e8 03          	shr    $0x3,%rax
  27:	4d 89 f7             	mov    %r14,%r15
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ef             	mov    %r13,%rdi
  34:	e8 01 ef e3 f6       	call   0xf6e3ef3a
  39:	4d 8b 75 00          	mov    0x0(%r13),%r14
  3d:	89 df                	mov    %ebx,%edi
  3f:	89                   	.byte 0x89

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/05 11:40 upstream 480e035fc4c7 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce general protection fault in tipc_udp_nl_dump_remoteip
2024/04/05 04:32 net f99c5f563c17 0ee3535e .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/01/19 03:49 net 39369c9a6e09 239abf84 .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.