]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_payload: report ERANGE for too long offset and length
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 21 Aug 2022 09:47:04 +0000 (11:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Aug 2022 05:43:20 +0000 (07:43 +0200)
commitc2f2a90c6052be7a4bf3b6a0ea0bd4575c04ea29
tree9b79807bd798c03ad5903c7a34c7773582e0e430
parentb3be30e74428cb2e2969deecc2e0e2d9a0416276
netfilter: nft_payload: report ERANGE for too long offset and length

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

Fixes: 4a4835e91e03 ("netfilter: add nftables")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_payload.c