Skip to content
Commit 8bb10774 authored by Aleksander Jan Bajkowski's avatar Aleksander Jan Bajkowski Committed by Greg Kroah-Hartman
Browse files

net: lantiq: fix memory corruption in RX ring

[ Upstream commit c7718ee9 ]

In a situation where memory allocation or dma mapping fails, an
invalid address is programmed into the descriptor. This can lead
to memory corruption. If the memory allocation fails, DMA should
reuse the previous skb and mapping and drop the packet. This patch
also increments rx drop counter.

Fixes: fe1a5642

 ("net: lantiq: Add Lantiq / Intel VRX200 Ethernet driver ")
Signed-off-by: default avatarAleksander Jan Bajkowski <olek2@wp.pl>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fda8f74d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment