[lvc-project] [PATCH] xfrm: compat: change expression for switch in xfrm_xlate64

Steffen Klassert steffen.klassert at secunet.com
Mon Jan 16 16:01:14 MSK 2023


On Tue, Jan 10, 2023 at 12:14:50PM +0300, Anastasia Belova wrote:
> Compare XFRM_MSG_NEWSPDINFO (value from netlink
> configuration messages enum) with nlh_src->nlmsg_type
> instead of nlh_src->nlmsg_type - XFRM_MSG_BASE.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 4e9505064f58 ("net/xfrm/compat: Copy xfrm_spdattr_type_t atributes")
> Signed-off-by: Anastasia Belova <abelova at astralinux.ru>

Applied, thanks a lot Anastasia!



More information about the lvc-project mailing list