]> git.baikalelectronics.ru Git - kernel.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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Aug 2022 05:43:21 +0000 (07:43 +0200)
commitc92be1c91876fbedef43caff1ac7d66a6ddf3dcd
tree8d40daa5aa8999594c4ec0f242cd5c9d50b1cedb
parentc2f2a90c6052be7a4bf3b6a0ea0bd4575c04ea29
netfilter: nft_payload: do not truncate csum_offset and csum_type

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

Fixes: 888e1a82e0db ("netfilter: nft_payload: add packet mangling support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_payload.c