Re: [PATCH] xfrm: compat: change expression for switch in xfrm_xlate64
From: Steffen Klassert
Date: Mon Jan 16 2023 - 08:04:35 EST
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@xxxxxxxxxxxxx>
Applied, thanks a lot Anastasia!