[PATCH v2 0/2] virtio: rng: Handle oversized return buffers
Meet Patel
meet.patel2 at arm.com
Mon Mar 9 17:55:03 CET 2026
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
More information about the U-Boot
mailing list