diff options
author | Alexey Kashavkin <akashavkin@gmail.com> | 2025-03-02 00:14:36 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2025-03-13 12:02:39 +0300 |
commit | 6edd78af9506bb182518da7f6feebd75655d9a0e (patch) | |
tree | 51283422b98da24ad7a9daa2f57d356e1e99e977 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 80b78c39eb86e6b55f56363b709eb817527da5aa (diff) | |
download | linux-6edd78af9506bb182518da7f6feebd75655d9a0e.tar.xz |
netfilter: nft_exthdr: fix offset with ipv4_find_option()
There is an incorrect calculation in the offset variable which causes
the nft_skb_copy_to_reg() function to always return -EFAULT. Adding the
start variable is redundant. In the __ip_options_compile() function the
correct offset is specified when finding the function. There is no need
to add the size of the iphdr structure to the offset.
Fixes: dbb5281a1f84 ("netfilter: nf_tables: add support for matching IPv4 options")
Signed-off-by: Alexey Kashavkin <akashavkin@gmail.com>
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions