Commit 819d7c33 authored by Christian Hopps's avatar Christian Hopps Committed by zhaoxiaoqiang11
Browse files

xfrm: fix bug with DSCP copy to v6 from v4 tunnel

stable inclusion
from stable-v5.10.168
commit 30fdf660356f708917b722a9aa01d70d27d96280
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=30fdf660356f708917b722a9aa01d70d27d96280



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

[ Upstream commit 6028da3f ]

When copying the DSCP bits for decap-dscp into IPv6 don't assume the
outer encap is always IPv6. Instead, as with the inner IPv4 case, copy
the DSCP bits from the correctly saved "tos" value in the control block.

Fixes: 227620e2 ("[IPSEC]: Separate inner/outer mode processing on input")
Signed-off-by: default avatarChristian Hopps <chopps@chopps.org>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 631b5b6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment