[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 3/5] hw/nvme: fix out-of-bounds reads
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v3 3/5] hw/nvme: fix out-of-bounds reads |
Date: |
Mon, 19 Jul 2021 09:50:24 +0100 |
On Wed, Jul 14, 2021 at 08:01:23AM +0200, Klaus Jensen wrote:
> From: Klaus Jensen <k.jensen@samsung.com>
>
> Peter noticed that mmio access may read into the NvmeParams member in
> the NvmeCtrl struct.
>
> Fix the bounds check.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
> ---
> hw/nvme/ctrl.c | 27 +++++++++++++++------------
> 1 file changed, 15 insertions(+), 12 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
signature.asc
Description: PGP signature
[PATCH v3 3/5] hw/nvme: fix out-of-bounds reads, Klaus Jensen, 2021/07/14
[PATCH v3 4/5] hw/nvme: fix mmio read, Klaus Jensen, 2021/07/14
[PATCH v3 5/5] tests/qtest/nvme-test: add mmio read test, Klaus Jensen, 2021/07/14
Re: [PATCH v3 0/5] hw/nvme: fix mmio read, Klaus Jensen, 2021/07/19