[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191219154143.GA1969379@kroah.com>
Date: Thu, 19 Dec 2019 16:41:43 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Aviraj CJ <acj@...co.com>
Cc: peppe.cavallaro@...com, alexandre.torgue@...com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
xe-linux-external@...co.com
Subject: Re: [PATCH stable v4.14 1/2] net: stmmac: use correct DMA buffer
size in the RX descriptor
On Wed, Dec 18, 2019 at 05:17:19AM -0800, Aviraj CJ wrote:
> upstream 583e6361414903c5206258a30e5bd88cb03c0254 commit
>
> We always program the maximum DMA buffer size into the receive descriptor,
> although the allocated size may be less. E.g. with the default MTU size
> we allocate only 1536 bytes. If somebody sends us a bigger frame, then
> memory may get corrupted.
>
> Program DMA using exact buffer sizes.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@...ia.com>
> Signed-off-by: David S. Miller <davem@...emloft.net>
> Signed-off-by: Sasha Levin <sashal@...nel.org>
> [acj: backport v4.14 -stable
> - adjust context
> - skipped the section modifying non-existent functions in dwxgmac2_descs.c and
> hwif.h ]
> Signed-off-by: Aviraj CJ <acj@...co.com>
Thanks for all of the backports, all now queued up.
greg k-h
Powered by blists - more mailing lists