Article View: linux.kernel.netdev
Article #10472Re: [PATCH] vhost/vringh: reject zero-length indirect descriptor tables
From: Fang Xieyan
Date: Tue, 03 Nov 2026 14:29
Date: Tue, 03 Nov 2026 14:29
17 lines
8935 bytes
8935 bytes
Hi Michael, Thanks. I checked the applied v2 (60a792b97933) in your vhost branch and it looks good. One small thing on top of it: vringh_bad() there still passes the raw desc->len, so the reported length reads wrong when the vring byte order differs from the CPU byte order. The October 21 posting had this right; the rest is fine as is. Happy to send a one-line follow-up on top of your branch if you want it; otherwise fine to leave as is. Thanks, Fang
Technical Details
Message-ID:
<20261103142932.65745-1-fangxy@xiaopeng.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355725-linux-kernel-netdev=dewy.ruReferences:
<20261103055650-mutt-send-email-mst@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355725-linux-kernel-netdev=dewy.ru
From: fangxy@xiaopeng.com (Fang Xieyan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] vhost/vringh: reject zero-length indirect descriptor tables
Date: Tue, 3 Nov 2026 22:29:32 +0800
Organization: Usenet Network
Message-ID: <20261103142932.65745-1-fangxy@xiaopeng.com>
References: <20261103055650-mutt-send-email-mst@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="3192074"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:fAJbhy52Ejq1CIdH1xrayA3xJyQ= sha256:LT9n3ej6uHMh05MG2sDMKMRNwN/NPuiIL9aNXEgG3zw=
sha1:ICOWh6dC88hlhrlXdzixOpoqZJs= sha256:StY61jb7/IJBEPbR67vzt77GREVLkrL/BkDgMpvdruk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 7BB6E11290E; Tue, 3 Nov 2026 17:57:26 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
header.d=xiaopeng.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id HJHrJG9k_Fid;
Tue, 3 Nov 2026 17:57:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-355725-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=xiaopeng.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id B46AB1127FE; Tue, 3 Nov 2026 17:57:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 05145339C1; Tue, 3 Nov 2026 14:29:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793716187;
b=pVroOK6MeanbN3N6YJQeJbSM7uI7uY+hpzobGNK27PPyvfXp7tHd618Ib5aF1gf3NzTW
F4RLZyEca4EHIrFk6QWGphFKwiOrmWjlQ3eDn9LtN+RYkRMPpmsA84admCIr1xMEuMgf1
4pzEVHLtlU6RoOi0FC7bZH/Tr/ppTHkf0U9MOlrY2havx4QueTKrFXIvt4UrEO1yzIxTE
YikQd3nH9vhSBemqLP3eooMRFAL3ycL8hEMn+mf4DBnOFedJRHztA/FKQkRu5TAnX/f8U
VkTMuYJRHI9QGJL9g9sFIslZocZSFwiWVdLQlBqtjqKvkVgbce8BJbAy/KIbSiFAeOQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793716187;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:
X-Alimail-AntiSpam:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Transfer-Encoding;
bh=n/GZUP2ZsjOuhhEd/klWEvvXLu7voLybiNnp082YBt8=;
b=QjZ2Hn2r3Qb+1FVbWStBCWBKSDZZGaQqVlrm25MRtfrFH2WsZOsORwCF++9lxm+KBCW4
SWb85S8WQXUcA/lu6N9YaYudlJQ+D3a5JTwZAhjmpZw26Kn9JPW2ZPT7AKPXzDokdiALy
tjgEEmKLnNbhRWaidW7Mcxp3Bs68HraRBb+ri3NVoNnXGI9G6ayuhWUsTf5NspkD9lPe9
5TAkTPtUs0G83A8EJlXVCdkJdHoybarSKlLfRU6/gObmhlPGCSqYBSGRXuYWQ7O9bIJKE
EFtNVq4t/UHUnUxMUyw+3Sep0/kprn9fzRziGqN1ofkOBWZLl8q9YleScoBj7ETWKEQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=lycISWbw;
dmarc=none header.from=xiaopeng.com;
spf=pass smtp.mailfrom=xiaopeng.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id F1CEB606A33B;
Tue, 3 Nov 2026 14:29:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key, unprotected) header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=lycISWbw
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=115.124.28.122
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793716186;
b=h2hbHC4AA+fUm5j/Z4z/d5SN544hm4y7xAbIGazEQfRiX+8PdhK41yOpZhaotucDpq8e
CdkkihXFO+NdbjTXaxRCCxk+ORO82Vq0HIM5E3q7/f6LJPA9yX1m8aaTeWZ9rJSXogk1K
C6Xn51XLFl7G2AU84+0jTPpK20hsdJNUAyUTXFdh06gUZd+4Td1U/F62hXl2/Aw94HPav
N3xhBueizu08x4ES0I+Inwm89C6wP9AiGCRADPCOslDvpkFC3qa3G6KWoTdL+mOXot8T5
yF1k5zXzsEiF/fyyhm19k+Nsu6ZV6WFkL8aJMc48T2UTXHe1I1657jP0KT/ZC3Ih2Uw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793716186;
h=DMARC-Filter:DKIM-Signature:X-Alimail-AntiSpam:Received:From:To:Cc:
Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=n/GZUP2ZsjOuhhEd/klWEvvXLu7voLybiNnp082YBt8=;
b=ULF6mYSHZC1cqhi956tZVUwzghYWxa/BLcgdYBWRD1OGRVb1DNGOYfsG+C9NjLZSfIbZ
iSJFn/ahUpUa1dv3KCvlx09J3HPPTYODova/RraZ0woAhLtOuJEXZivkO3YCiaRiwS9CG
p5AAYeKwIJ1STIo3MObismv96bowWnWdqqnoCCk+ZsllMOBaMn9cKTX8jd7dprFhy0agB
A4PcVnliF7x0ZpwANxgceJxRaqYYKY1qP5Eb41WaUBMxiOEeC+eGITeK+EHmSLVzCm0tQ
DqhFDALtS3QU8fC2TOwEuK/IDxYXF+hwuA/nIt2ERyUmSaLFUyzrpOWSI6AW+EevH6w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=xiaopeng.com;
spf=pass smtp.mailfrom=xiaopeng.com;
dkim=pass header.d=xiaopeng.com header.i=@xiaopeng.com header.a=rsa-sha256 header.s=default header.b=lycISWbw;
arc=none smtp.remote-ip=115.124.28.122
X-Received: from out28-122.mail.aliyun.com (out28-122.mail.aliyun.com [115.124.28.122])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16726606A324;
Tue, 3 Nov 2026 14:29:43 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 16726606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xiaopeng.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=xiaopeng.com; s=default;
t=1793716175; h=From:To:Subject:Date:Message-ID:MIME-Version;
bh=n/GZUP2ZsjOuhhEd/klWEvvXLu7voLybiNnp082YBt8=;
b=lycISWbw5HzTTpeAPheAB7FhQf0XGx9b+yFlGISP2Y46AoBMnFJ8sHgJ2fP+s6b2ufndj9SFDFWfDCeqUCiv+yufbWudAImvL0C/RA770TBSUO0gd2QttzkZ7wjLHWLrW61pcs4bplaJdbwuuu5Yh1gmpn4xzBgYNkrGdEtEAgQ=
X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1085895|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_social|0.0253143-0.00086085-0.973825;FP=3442595331818532187|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037034138;MF=fangxy@xiaopeng.com;NM=1;PH=DS;RN=10;RT=10;SR=0;TI=SMTPD_---.jvr1CsY_1793716173;
X-Received: from localhost.localdomain(mailfrom:fangxy@xiaopeng.com fp:SMTPD_---.jvr1CsY_1793716173 cluster:ay29)
by smtp.aliyun-inc.com;
Tue, 03 Nov 2026 22:29:34 +0800
X-Cc: Jason Wang <jasowangio@gmail.com>,
Eugenio PΓ©rez <eperezma@redhat.com>,
Stefano Garzarella <sgarzare@redhat.com>,
virtualization@lists.linux.dev,
kvm@vger.kernel.org,
netdev@vger.kernel.org,
linux-kernel@vger.kernel.org,
stable@vger.kernel.org,
Guanglei Zhu <zhugl3@xiaopeng.com>
X-Mailer: git-send-email 2.50.1
X-In-Reply-To: <20261103055650-mutt-send-email-mst@kernel.org>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list