netfilter: nft_payload: report ERANGE for too long offset and length

[ Upstream commit 94254f990c ]

Instead of offset and length are truncation to u8, report ERANGE.

Fixes: 96518518cc ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Pablo Neira Ayuso 2022-08-21 11:47:04 +02:00 • committed by Greg Kroah-Hartman
commit 0ee5c638e1