Re: [PATCH] EDAC, sb_edac: Fix out of bound in PCI multi segment env

From: Tony Luck
Date: Tue Jul 24 2018 - 13:02:02 EST


On Thu, Jul 19, 2018 at 7:07 AM, Masayoshi Mizuma <msys.mizuma@xxxxxxxxx> wrote:
> From: Masayoshi Mizuma <m.mizuma@xxxxxxxxxxxxxx>
>
> KASAN reported the following slab-out-of-bounds when sb_edac
> module was loaded on Broadwell machine which has two PCI segments.

Although you found this with KASAN as an out of bounds array reference,
the real problem is that the sb_edac.c driver didn't know about systems
with segmented PCI busses.

So the Subject: for the e-mail (and thus the commit message) should
be:

[PATCH] EDAC, sb_edac: Add support for systems with segmented PCI busses

Otherwise this looks fine.

Reviewed-by: Tony Luck <tony.luck@xxxxxxxxx>

-Tony