syzbot


general protection fault in vsock_stream_has_data

Status: upstream: reported C repro on 2025/02/22 03:04
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+07f4ccf3fd227b883f78@syzkaller.appspotmail.com
First crash: 2d05h, last: 1d18h
Bug presence (2)
Date Name Commit Repro Result
2025/02/22 lts (merge base) c63962be84ef C [report] general protection fault in vsock_stream_has_data
2025/02/22 upstream (ToT) ff202c5028a1 C Failed due to an error; will retry later
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in vsock_stream_has_data net virt C done done 6 44d 40d 27/28 upstream: reported C repro on 2025/01/14 14:48

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc000000000c: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000060-0x0000000000000067]
CPU: 1 PID: 39 Comm: kworker/1:1 Not tainted 6.1.124-syzkaller-00018-g52a41f0bf15c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: vsock-loopback vsock_loopback_work
RIP: 0010:vsock_stream_has_data+0x46/0x70 net/vmw_vsock/af_vsock.c:869
Code: 8d 9e 60 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 18 c2 af fc 48 8b 1b 48 83 c3 60 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 fb c1 af fc 4c 89 f7 ff 13 5b 41
RSP: 0018:ffffc9000028f5b8 EFLAGS: 00010206
RAX: 000000000000000c RBX: 0000000000000060 RCX: ffff888100899440
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888110f6abc0
RBP: ffffc9000028f5d0 R08: dffffc0000000000 R09: ffffed10221ed585
R10: 0000000000000000 R11: dffffc0000000001 R12: fffff52000051ee8
R13: dffffc0000000000 R14: ffff888110f6abc0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb74b333f80 CR3: 00000001259a0000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 virtio_transport_do_close+0x67/0x3e0 net/vmw_vsock/virtio_transport_common.c:910
 virtio_transport_recv_disconnecting net/vmw_vsock/virtio_transport_common.c:1138 [inline]
 virtio_transport_recv_pkt+0x129f/0x3fc0 net/vmw_vsock/virtio_transport_common.c:1338
 vsock_loopback_work+0x37d/0x3f0 net/vmw_vsock/vsock_loopback.c:137
 process_one_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vsock_stream_has_data+0x46/0x70 net/vmw_vsock/af_vsock.c:869
Code: 8d 9e 60 03 00 00 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 18 c2 af fc 48 8b 1b 48 83 c3 60 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 fb c1 af fc 4c 89 f7 ff 13 5b 41
RSP: 0018:ffffc9000028f5b8 EFLAGS: 00010206
RAX: 000000000000000c RBX: 0000000000000060 RCX: ffff888100899440
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888110f6abc0
RBP: ffffc9000028f5d0 R08: dffffc0000000000 R09: ffffed10221ed585
R10: 0000000000000000 R11: dffffc0000000001 R12: fffff52000051ee8
R13: dffffc0000000000 R14: ffff888110f6abc0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb74b33f766 CR3: 000000010fee8000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	8d 9e 60 03 00 00    	lea    0x360(%rsi),%ebx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 18 c2 af fc       	call   0xfcafc234
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 83 c3 60          	add    $0x60,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 fb c1 af fc       	call   0xfcafc234
  39:	4c 89 f7             	mov    %r14,%rdi
  3c:	ff 13                	call   *(%rbx)
  3e:	5b                   	pop    %rbx
  3f:	41                   	rex.B

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/22 04:56 android14-6.1 52a41f0bf15c d34966d1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vsock_stream_has_data
2025/02/22 04:04 android14-6.1 52a41f0bf15c d34966d1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vsock_stream_has_data
2025/02/22 02:56 android14-6.1 52a41f0bf15c d34966d1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vsock_stream_has_data
2025/02/22 04:29 android14-6.1 52a41f0bf15c d34966d1 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vsock_stream_has_data
2025/02/21 18:48 android14-6.1 a5f88b652947 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 general protection fault in vsock_stream_has_data
* Struck through repros no longer work on HEAD.