diff options
author | Philo Lu <lulie@linux.alibaba.com> | 2025-02-22 11:35:18 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-02-25 13:15:17 +0100 |
commit | de2c211868b9424f9aa9b3432c4430825bafb41b (patch) | |
tree | 4b4e357010ea9ddd38d6b9ccd5ef3a34099cd598 /include/linux/fpga/fpga-bridge.h | |
parent | 29b036be1b0bfcfc958380d5931325997fddf08a (diff) |
ipvs: Always clear ipvs_property flag in skb_scrub_packet()
We found an issue when using bpf_redirect with ipvs NAT mode after
commit ff70202b2d1a ("dev_forward_skb: do not scrub skb mark within
the same name space"). Particularly, we use bpf_redirect to return
the skb directly back to the netif it comes from, i.e., xnet is
false in skb_scrub_packet(), and then ipvs_property is preserved
and SNAT is skipped in the rx path.
ipvs_property has been already cleared when netns is changed in
commit 2b5ec1a5f973 ("netfilter/ipvs: clear ipvs_property flag when
SKB net namespace changed"). This patch just clears it in spite of
netns.
Fixes: 2b5ec1a5f973 ("netfilter/ipvs: clear ipvs_property flag when SKB net namespace changed")
Signed-off-by: Philo Lu <lulie@linux.alibaba.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
Link: https://patch.msgid.link/20250222033518.126087-1-lulie@linux.alibaba.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions