Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BAEEEFCA16E for ; Mon, 9 Mar 2026 18:28:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 206EF83A8C; Mon, 9 Mar 2026 19:28:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 919DD83F14; Mon, 9 Mar 2026 17:55:20 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 9F6D383A8C for ; Mon, 9 Mar 2026 17:55:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=meet.patel2@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A4E8C1570; Mon, 9 Mar 2026 09:55:11 -0700 (PDT) Received: from e137877.manchester.arm.com (e137877.arm.com [10.33.11.64]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7A41F3F7BD; Mon, 9 Mar 2026 09:55:16 -0700 (PDT) From: Meet Patel To: kavin.gunasekara@arm.com Cc: andre.przywara@arm.com, bmeng.cn@gmail.com, sjg@chromium.org, sughosh.ganu@linaro.org, trini@konsulko.com, u-boot@lists.denx.de, xypron.glpk@gmx.de Subject: [PATCH v2 0/2] virtio: rng: Handle oversized return buffers Date: Mon, 9 Mar 2026 16:55:03 +0000 Message-ID: <20260309165505.4001705-1-meet.patel2@arm.com> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 09 Mar 2026 19:28:38 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The virtio-rng test to verify effective handling of oversized return buffers checks that an (undocumented) error is raised, instead of the real concern, which is the surrounding buffer integrity following a rng function call. Update the test to check that the other contents of a buffer remain unchanged instead of looking for an error code. Changes in v2: - Avoid filling whole buffer just to overwrite in next line. Kavin Gunasekara (2): test: dm: virtio_rng: Update virtio-rng test virtio: rng: Handle oversized return buffers drivers/virtio/virtio_rng.c | 2 +- test/dm/virtio_rng.c | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) -- 2.53.0