Bug 2159969

Summary: backport vsock fixes for RHEL-8.8
Product: Red Hat Enterprise Linux 8 Reporter: Stefano Garzarella <sgarzare>
Component: kernelAssignee: Stefano Garzarella <sgarzare>
kernel sub component: KVM QA Contact: Qinghua Cheng <qcheng>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: boyang, coli, jinzhao, juzhang, ldu, nilal, qcheng, virt-maint, yacao
Version: 8.8Keywords: Triaged
Target Milestone: rc   
Target Release: 8.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kernel-4.18.0-451.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-16 09:00:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefano Garzarella 2023-01-11 09:06:46 UTC
This is a preliminary list of vsock fixes we have in Linux 6.1-rc3 that we should backport into RHEL-8.8:

7a4efe182ca6 vhost/vsock: Fix error handling in vhost_vsock_init()
7e97cfed9929 vsock: Fix memory leak in vsock_connect()
a3e7b29e3085 vsock: Set socket state back to SS_UNCONNECTED in vsock_connect_timeout()
0e3f72931fc4 vhost/vsock: Use kvmalloc/kvfree for larger packets.
44aa5a6dba82 net: vmw_vsock: vmci: Check memcpy_from_msg()

Comment 2 Bo Yang 2023-01-16 10:52:03 UTC
Updated the result from Virt QE team - RHEL in ESXi.


Tested with 4.18.0-448.el8.4081_744511162.g8ec2 and passed the regression.


Test Environment
    Host: ESXi 7.0
    Guest: RHEL-8.8.0 with 4.18.0-448.el8.4081_744511162.g8ec2


Steps to Test
0. Upgraded the Guest with Repo URL based on above target Host.
1. Launched its regression with CI - https://ci-jenkins-csb-esxi.apps.ocp-c1.prod.psi.redhat.com/job/ESXi-Project/job/regression-trigger/30/, and checked cases status if failed.


If you have any specific cases or steps to try, let me know.

Comment 3 Qinghua Cheng 2023-01-19 13:28:24 UTC
Pre-verified on rhel 8.8

kernel: 4.18.0-448.el8.4081_744511162.g8ec2.x86_64
qemu: qemu-kvm-6.2.0-28.module+el8.8.0+17721+63bacee8.x86_64

Vsock regression test PASS.

Comment 7 Qinghua Cheng 2023-01-29 02:15:18 UTC
Verified on rhel 8.8

kernel: 4.18.0-452.el8.x86_64
qemu-kvm: qemu-kvm-6.2.0-28.module+el8.8.0+17721+63bacee8.x86_64

Vsock automation tests PASS.

Comment 9 errata-xmlrpc 2023-05-16 09:00:19 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: kernel security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:2951