diff options
author | Phil Sutter <[email protected]> | 2023-10-17 11:39:06 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-10-18 11:09:55 +0100 |
commit | c4eee56e14fe001e1cff54f0b438a5e2d0dd7454 (patch) | |
tree | 65a716224c59aa46608692d49ff871b34bb5edd0 /drivers/net/wwan/iosm/iosm_ipc_mux.h | |
parent | 37fb1c81d210a5185c1f5399a0801719bba7f7c9 (diff) |
net: skb_find_text: Ignore patterns extending past 'to'
Assume that caller's 'to' offset really represents an upper boundary for
the pattern search, so patterns extending past this offset are to be
rejected.
The old behaviour also was kind of inconsistent when it comes to
fragmentation (or otherwise non-linear skbs): If the pattern started in
between 'to' and 'from' offsets but extended to the next fragment, it
was not found if 'to' offset was still within the current fragment.
Test the new behaviour in a kselftest using iptables' string match.
Suggested-by: Pablo Neira Ayuso <[email protected]>
Fixes: f72b948dcbb8 ("[NET]: skb_find_text ignores to argument")
Signed-off-by: Phil Sutter <[email protected]>
Reviewed-by: Florian Westphal <[email protected]>
Reviewed-by: Pablo Neira Ayuso <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_mux.h')
0 files changed, 0 insertions, 0 deletions