diff options
author | 2023-07-04 08:53:49 +0800 | |
---|---|---|
committer | 2023-07-10 11:57:28 +0200 | |
commit | 57010b8ece2821a1fdfdba2197d14a022f3769db (patch) | |
tree | 7b6414a61b50bf4c48a0e7b42ba641ffbbc78c31 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | net: xfrm: Amend XFRMA_SEC_CTX nla_policy structure (diff) | |
download | wireguard-linux-57010b8ece2821a1fdfdba2197d14a022f3769db.tar.xz wireguard-linux-57010b8ece2821a1fdfdba2197d14a022f3769db.zip |
xfrm: Silence warnings triggerable by bad packets
After the elimination of inner modes, a couple of warnings that
were previously unreachable can now be triggered by malformed
inbound packets.
Fix this by:
1. Moving the setting of skb->protocol into the decap functions.
2. Returning -EINVAL when unexpected protocol is seen.
Reported-by: Maciej Żenczykowski<maze@google.com>
Fixes: 5f24f41e8ea6 ("xfrm: Remove inner/outer modes from input path")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions