Commit 7ec53ed2 authored by Aleksander Jan Bajkowski's avatar Aleksander Jan Bajkowski Committed by Zheng Zengkai
Browse files

lantiq: net: fix duplicated skb in rx descriptor ring



stable inclusion
from stable-5.10.46
commit 70c8418469fb22a679fe5015ebe60fe15011ea43
bugzilla: 168323
CVE: NA

--------------------------------

[ Upstream commit 7ea6cd16 ]

The previous commit didn't fix the bug properly. By mistake, it replaces
the pointer of the next skb in the descriptor ring instead of the current
one. As a result, the two descriptors are assigned the same SKB. The error
is seen during the iperf test when skb_put tries to insert a second packet
and exceeds the available buffer.

Fixes: c7718ee9 ("net: lantiq: fix memory corruption in RX ring ")
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>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 198e342b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment