From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE6418635D for ; Fri, 8 May 2026 16:44:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778258662; cv=none; b=CA/abeT83chTk4uCVBP8aPj+a8vtj3Q+p0RBMgD91O0NoqYAcxnHwPiUwZvGW0LmFyxk9gr5vwVHckB+CXgVgOlEh0Ozyd6GN/S5gFiTiUWnWX5/rtlnBS8pFcBsIkxoy7PspUiU79HhLbX72dlgHuL5jRJixj9G5Cw/+cQ5Wa4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778258662; c=relaxed/simple; bh=6HxONNuo9hUowvo/qEANYYQGQ+cuOD5myJfGdZBXDF8=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ofOuwo0R7eqXu3bOXUEx8Ssf2Qfz2iQxeo5yrBf8xrQEyyPpSguWaEgvGK39h6wjL8yUtgN+xyFM15nlZouIyK1qiEeGFR2YT5+zvZDfyk9qrQXdZPTV2tk2pvBdb39eEEciZzdlDohCR5XOlSCZDtNB6HtwkQyt33QEHLYc5rA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=QrGfBMlx; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=bUexNmdl; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="QrGfBMlx"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="bUexNmdl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778258659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N/FCT893ObSbmlIhFuQ0JD4F9cxfAK4253dqNQw9BmM=; b=QrGfBMlxB8m8wiXdD2U6+T517Q0tQueLMbMxmuAlNo4vRCMFzr2Mp+FDw5kxXGZqGZm6PC 5Ueo+w/GT/sT9e0Lhla/kWXjqu1I/ItphE7imktG1RESI/TtwJtQEt4PBUkNZOoBUKi+Qv n8xn4PGxe5s+OXQpMiz9LFqDWBrSsg8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-376-Ty_NhPN5Owylbab9hFudaw-1; Fri, 08 May 2026 12:44:16 -0400 X-MC-Unique: Ty_NhPN5Owylbab9hFudaw-1 X-Mimecast-MFC-AGG-ID: Ty_NhPN5Owylbab9hFudaw_1778258655 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-48a589c7879so23945185e9.1 for ; Fri, 08 May 2026 09:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778258654; x=1778863454; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=N/FCT893ObSbmlIhFuQ0JD4F9cxfAK4253dqNQw9BmM=; b=bUexNmdlCUJ6U+DktvZ31WindfrKANQcOt6MhGztcZ7uVrUct/1W71mbdRjVfKFQbN X8KksjEOkjEKvocYuFi6UPzYUgvoulOXHA6R90N5FE46aew7+rPgkHYBq/BwdEUcjEkr z1g90VIWXKl59JMOIO85nBi4/Lp5vd7Rj7XT13Pf49BvXoT0ROZcqwoSfM5Ej9aFLx4H KacZJZvR5XXH3gai/Z4mbLSTXZvBxtY54AlTEVIRWooMKuW4IUNybAMxA6rAPrKEy3r6 zbzuJsWkes8Rt4laEsRS90tHFVt6J3bI5bxsj0ErikRIHT7nyxtT4KrObAbKEwFeuKTt g1Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778258654; x=1778863454; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=N/FCT893ObSbmlIhFuQ0JD4F9cxfAK4253dqNQw9BmM=; b=VeE9Qm6c06fnyup1GZ61B2QRgoj5fteegRqzMtJ02QEB9g2xaAHdUb0LsztvIh/e2/ yJXy+UFxeQB/l9B0cwj7Gc47ClWJ8E5qJbVSz28cbGDUfdQTbpfYsomciNqoTnvZTJmr 1SIHQueE1c7wskxBXWA+c8UhTwViQeroUWbPIBzTbA7yg78z2RZfXj0/HXSVAa9b7aqy zKyT2UgndqVMMPv0j2sqDE2Q+SxOFWxAOT5kH54hgNG2BaEA4K9Tcd/HtsiLlHbl+CaN dsII7qd/ms7DW/lF+xiE3umVD4m2x2ySNuX3pd52SJczO5I0lxqNAF1Rz2BDhVi+nlty dq3g== X-Forwarded-Encrypted: i=1; AFNElJ/YAM+bHz2Oz8MJVoUDk9x0geViYOK7msnaLCg/o65bCh0H8gQhf2435Lm0GH4T4dz59tEPMs4WJM3eDEo=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0TtCwL4aV6mabNDb6Wp6IKG766gfWf2VabDa/0JJLddS9aYei Pd/kzjdTO2susUCbbrlWPt6b8ZkUhJJ3Q1Ruqj+9PSigIZBar11ARAPieSggOeH9Z4H245z7yOr DYrCzSvkm4SAad7PGwq+14LI9rZ4zqU7aRH4Px/YcxSOXg+VaCdlDE2f21umA8UYRjw== X-Gm-Gg: AeBDieuu2Cc1MQeSQNvqB3hRd2zsFtoTjIdg8MHinv3IUwqP83455AiwaZ3uqzQnqFu 4tm8s3goWdAoAB6awDKv5r7v+9iaXgWO/ix/FqcJJJWQPnWV9RWA42SNwIDCrYhpwRdD+VM1NnP EKCuvsl1pP+UHfD+CztwTyL4umbuzPNPPkqSGc/CMFkV1qCzi9vyy/Q3xf0Hd0Hargej/gT5lE7 fB3qXHoT6N+eGOwhZEXcLFvly2b653mv5V03X9EJAKixMC7mJwSNR+8XhD/n7oFY0/7MnYVmFXi FPN56RvDN5OefqRNdaxmE4Y52m6vCqIE1z/ZA8b6GykY322er6EWehrbNGQ423rw+vh/rtGSF0Z 7qYeORfCBoC/unFazVch0kY0RvEcIG6iu+igkVQhlFoYHmrYrnkiNS2itkFuffjKB/A== X-Received: by 2002:a05:600c:c0d8:b0:486:faa8:9e4 with SMTP id 5b1f17b1804b1-48e5e000c1cmr89000835e9.12.1778258654654; Fri, 08 May 2026 09:44:14 -0700 (PDT) X-Received: by 2002:a05:600c:c0d8:b0:486:faa8:9e4 with SMTP id 5b1f17b1804b1-48e5e000c1cmr89000315e9.12.1778258654041; Fri, 08 May 2026 09:44:14 -0700 (PDT) Received: from stex1.redhat.corp (host-87-11-6-2.retail.telecomitalia.it. [87.11.6.2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e6dd3b31bsm6561025e9.10.2026.05.08.09.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 May 2026 09:44:13 -0700 (PDT) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: Yiqi Sun , Stefano Garzarella , linux-kernel@vger.kernel.org, Xuan Zhuo , "Michael S. Tsirkin" , Stefan Hajnoczi , kvm@vger.kernel.org, Simon Horman , Bobby Eshleman , Jason Wang , Jakub Kicinski , "David S. Miller" , virtualization@lists.linux.dev, Eric Dumazet , Paolo Abeni , Arseniy Krasnov , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Bobby Eshleman Subject: [PATCH net 0/2] vsock/virtio: fix vsockmon tap skb construction Date: Fri, 8 May 2026 18:44:09 +0200 Message-ID: <20260508164411.261440-1-sgarzare@redhat.com> X-Mailer: git-send-email 2.54.0 Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit While reviewing the patch posted by Yiqi Sun [1] to fix an issue in virtio_transport_build_skb(), I discovered another issue related to the offset and length of the payload to be copied in the new skb. This was introduced when we did the skb conversion, and fixed by patch 1. Patch 2 fixes the issue found by Yiqi Sun in a different way: using iov_iter_kvec() to properly initialize all the iov_iter fields and removing the linear vs non-linear split like we alredy do in vhost-vsock. It could have been a single patch, but since there were two affected commits, I decided to keep the fixes separate. [1] https://lore.kernel.org/netdev/20260430071110.380509-1-sunyiqixm@gmail.com/ Stefano Garzarella (2): vsock/virtio: fix length and offset in tap skb for split packets vsock/virtio: fix empty payload in tap skb for non-linear buffers net/vmw_vsock/virtio_transport_common.c | 47 +++++++++---------------- 1 file changed, 16 insertions(+), 31 deletions(-) -- 2.54.0