[PATCH 10/11] virtio: rng: Check length before copying

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:45 CEST 2022


On Thu, 31 Mar 2022 at 04:10, Andrew Scull <ascull at google.com> wrote:
>
> Check the length of data written by the device is consistent with the
> size of the buffers to avoid out-of-bounds memory accesses in case
> values aren't consistent.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> Cc: Sughosh Ganu <sughosh.ganu at linaro.org>
> ---
>  drivers/virtio/virtio_rng.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list