]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfrm: provide message size for XFRM_MSG_MAPPING
authorRuijie Li <ruijieli51@gmail.com>
Tue, 28 Apr 2026 16:41:43 +0000 (00:41 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 29 Apr 2026 07:10:25 +0000 (09:10 +0200)
commit28465227c80fe417b4013c432be1f3737cb9f9a3
treed34dfd318fa270166e282074dcc2f1f733d41981
parentfa90a3145c0340c3f624206a81637c542254ea1d
xfrm: provide message size for XFRM_MSG_MAPPING

The compat 64=>32 translation path handles XFRM_MSG_MAPPING, but
xfrm_msg_min[] does not provide the native payload size for this
message type.

Add the missing XFRM_MSG_MAPPING entry so compat translation can size
and translate mapping notifications correctly.

Fixes: 5461fc0c8d9f ("xfrm/compat: Add 64=>32-bit messages translator")
Cc: stable@kernel.org
Reported-by: Yuan Tan <yuantan098@gmail.com>
Reported-by: Yifan Wu <yifanwucs@gmail.com>
Reported-by: Juefei Pu <tomapufckgml@gmail.com>
Reported-by: Xin Liu <bird@lzu.edu.cn>
Signed-off-by: Ruijie Li <ruijieli51@gmail.com>
Signed-off-by: Ren Wei <n05ec@lzu.edu.cn>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c