[PATCH 02/11] virtio: pci: Bounds check device config access

Bin Meng bmeng.cn at gmail.com
Thu Mar 24 15:07:30 CET 2022


On Sun, Mar 20, 2022 at 7:41 PM Andrew Scull <ascull at google.com> wrote:
>
> The device config is optional, so check it was present and mapped before
> trying to use the pointer. Bounds violations are an error, not just a
> warning, so bail if the checks fail.
>
> Signed-off-by: Andrew Scull <ascull at google.com>
> ---
>  drivers/virtio/virtio_pci_modern.c | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list