Re: [PATCH] net: stmmac: fix memory corruption with large MTUs

From: David Miller
Date: Tue Mar 19 2019 - 16:33:48 EST


From: Aaro Koskinen <aaro.koskinen@xxxxxx>
Date: Mon, 18 Mar 2019 23:36:08 +0200

> From: Aaro Koskinen <aaro.koskinen@xxxxxxxxx>
>
> When using 16K DMA buffers and ring mode, the DES3 refill is not working
> correctly as the function is using a bogus pointer for checking the
> private data. As a result stale pointers will remain in the RX descriptor
> ring, so DMA will now likely overwrite/corrupt some already freed memory.
>
> As simple reproducer, just receive some UDP traffic:
...
> Fixes: 54139cf3bb33 ("net: stmmac: adding multiple buffers for rx")
> Signed-off-by: Aaro Koskinen <aaro.koskinen@xxxxxxxxx>

Applied and queued up for -stable, thank you.