]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nft_payload: do not truncate csum_offset and csum_type
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 21 Aug 2022 09:55:19 +0000 (11:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2022 15:15:17 +0000 (17:15 +0200)
commitea358cfc8e25255b15305f14297e09e1defea4ca
treea771417c753f1592e828311db85f82c82944b61b
parent93a46d6c72b18be6c91b1d11f20310fec5daed37
netfilter: nft_payload: do not truncate csum_offset and csum_type

[ Upstream commit 7044ab281febae9e2fa9b0b247693d6026166293 ]

Instead report ERANGE if csum_offset is too long, and EOPNOTSUPP if type
is not support.

Fixes: 7ec3f7b47b8d ("netfilter: nft_payload: add packet mangling support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_payload.c