From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=dyhT4hvt; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 229D15A004E for ; Mon, 23 Feb 2026 15:10:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771855833; 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=vHsLUZS3MJbZsEM6BY78tMynmv2/0B0NIsabWnljnHg=; b=dyhT4hvtgZi8dRQV4TycrdrFCkOH6ctFWfq4BTj3knEvXxg8MkcTSJfF7/fTfTKy8GeROI M/h6TiUdonxhI9vp3EX7zRrlydLRJVlDYVknUPuknQGQW+qTMkmQtgPjZh84I/SvgtvvVJ XYxTAqZZNg3ZoMEOWkC8JdgF7+LFZeA= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-600-80_OkUgKMe2ykWqn8KnNpg-1; Mon, 23 Feb 2026 09:10:31 -0500 X-MC-Unique: 80_OkUgKMe2ykWqn8KnNpg-1 X-Mimecast-MFC-AGG-ID: 80_OkUgKMe2ykWqn8KnNpg_1771855830 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7927119560B2 for ; Mon, 23 Feb 2026 14:10:30 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.44.34.158]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 7A5013003D93; Mon, 23 Feb 2026 14:10:29 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH v2 0/2] Fix minimum frame size checks in vhost-user paths Date: Mon, 23 Feb 2026 15:10:25 +0100 Message-ID: <20260223141027.2205762-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: luJ1mi5Bp01Bf2jV9PPvgfIk43MICtzVLBoVquRQKhA_1771855830 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID-Hash: FDCN6ZMARRFAQZSX26UN6ZBAHOQGFOQV X-Message-ID-Hash: FDCN6ZMARRFAQZSX26UN6ZBAHOQGFOQV X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: In the vhost-user code paths, buffers from the virtio queue include=0D a virtio net header prepended to the Ethernet frame. The minimum=0D frame size checks (ETH_ZLEN, i.e. 60 bytes per IEEE 802.3) must=0D account for this extra header, otherwise the size requested from=0D vu_collect() and validated in ASSERT() is too small.=0D =0D v2:=0D - PATCH 1/2 is merged, rebase the series on top of master=0D - Add a patch to remove VNET_HLEN from l2len in vu_pad() callers=0D - Remove assert on ETH_ZLEN in tcp_vu_prepare() as the size is=0D trimmed to the actual data size=0D =0D Laurent Vivier (2):=0D tcp_vu: vu_pad() expects l2 length=0D tcp_vu, udp_vu: Account for virtio net header in minimum frame size=0D =0D tcp_vu.c | 17 ++++++++++-------=0D udp_vu.c | 2 +-=0D 2 files changed, 11 insertions(+), 8 deletions(-)=0D =0D --=20=0D 2.53.0=0D =0D