From: Bert Kenward <bkenw...@solarflare.com>
Date: Tue, 15 Aug 2017 14:55:32 +0100

> The MAC stats command takes a port ID, which doesn't exist on
> pre-ef10 NICs (5000- and 6000- series). This is extracted from the
> NIC specific data; we misinterpret this as the ef10 data structure,
> causing us to read potentially unallocated data. With a KASAN kernel
> this can cause errors with:
>    BUG: KASAN: slab-out-of-bounds in efx_mcdi_mac_stats
> 
> Fixes: 0a2ab4d988d7 ("sfc: set the port-id when calling MC_CMD_MAC_STATS")
> Reported-by: Stefano Brivio <sbri...@redhat.com>
> Tested-by: Stefano Brivio <sbri...@redhat.com>
> Signed-off-by: Bert Kenward <bkenw...@solarflare.com>

Applied, thanks.

Reply via email to