summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <fmancera@suse.de>2026-05-26 23:58:27 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2026-06-05 13:11:54 +0200
commit63d29ee95c4ab5976d660182d2e4733bb4a091d8 (patch)
tree375b3eea62e0509cd0eb068cd6db3f253ba473d3 /include/linux
parentf8bf5edf7157984bb8e288c8b04fdb041223b80c (diff)
netfilter: synproxy: drop packets if timestamp adjustment fails
If a packet was malformed or if skb_ensure_writable() failed, the synproxy_tstamp_adjust() function returned 0 indicating an error but it was ignored on the callers. Make the function return a boolean instead to clarify the result and drop the packet if synproxy_tstamp_adjust() failed due to ENOMEM from skb_ensure_writable(). In addition, if there are malformed options, skip the tstamp update but do not drop the packet as that should be done by the policy directly. Fixes: 48b1de4c110a ("netfilter: add SYNPROXY core/target") Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions