diff options
author | 2024-07-19 10:46:53 +0800 | |
---|---|---|
committer | 2024-07-25 11:50:14 +0200 | |
commit | fa5ef655615a01533035c6139248c5b33aa27028 (patch) | |
tree | 66603a87fa8f8580a21a182af1da71adab1bc9b7 /scripts/generate_rust_analyzer.py | |
parent | tools/resolve_btfids: Fix comparison of distinct pointer types warning in resolve_btfids (diff) | |
download | wireguard-linux-fa5ef655615a01533035c6139248c5b33aa27028.tar.xz wireguard-linux-fa5ef655615a01533035c6139248c5b33aa27028.zip |
bpf: Fix a segment issue when downgrading gso_size
Linearize the skb when downgrading gso_size because it may trigger a
BUG_ON() later when the skb is segmented as described in [1,2].
Fixes: 2be7e212d5419 ("bpf: add bpf_skb_adjust_room helper")
Signed-off-by: Fred Li <dracodingfly@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/all/20240626065555.35460-2-dracodingfly@gmail.com [1]
Link: https://lore.kernel.org/all/668d5cf1ec330_1c18c32947@willemb.c.googlers.com.notmuch [2]
Link: https://lore.kernel.org/bpf/20240719024653.77006-1-dracodingfly@gmail.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions