diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-12-07 18:38:12 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-12-09 20:07:59 +0100 |
commit | 7acd9378dc65296b2531758aa62ee9bcf55b371c (patch) | |
tree | 8b838e138eece4155a62755c08c1a473f5dcdbca /include | |
parent | netfilter: bridge: make sure to pull arp header in br_nf_forward_arp() (diff) | |
download | linux-7acd9378dc65296b2531758aa62ee9bcf55b371c.tar.xz linux-7acd9378dc65296b2531758aa62ee9bcf55b371c.zip |
netfilter: nf_flow_table_offload: Correct memcpy size for flow_overload_mangle()
In function 'memcpy',
inlined from 'flow_offload_mangle' at net/netfilter/nf_flow_table_offload.c:112:2,
inlined from 'flow_offload_port_dnat' at net/netfilter/nf_flow_table_offload.c:373:2,
inlined from 'nf_flow_rule_route_ipv4' at net/netfilter/nf_flow_table_offload.c:424:3:
./include/linux/string.h:376:4: error: call to '__read_overflow2' declared with attribute error: detected read beyond size of object passed as 2nd parameter
376 | __read_overflow2();
| ^~~~~~~~~~~~~~~~~~
The original u8* was done in the hope to make this more adaptable but
consensus is to keep this like it is in tc pedit.
Fixes: c29f74e0df7a ("netfilter: nf_flow_table: hardware offload support")
Reported-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions