net: sched: act_mirred: drop dst for the direction from egress to ingress
stable inclusion form stable-v5.10.82 commit 381a30f7e31c473ae941eb78c4a0325abf4f2951 bugzilla: 185877 https://gitee.com/openeuler/kernel/issues/I4QU6V Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=381a30f7e31c473ae941eb78c4a0325abf4f2951 -------------------------------- [ Upstream commit f799ada6 ] Without dropping dst, the packets sent from local mirred/redirected to ingress will may still use the old dst. ip_rcv() will drop it as the old dst is for output and its .input is dst_discard. This patch is to fix by also dropping dst for those packets that are mirred or redirected from egress to ingress in act_mirred. Note that we don't drop it for the direction change from ingress to egress, as on which there might be a user case attaching a metadata dst by act_tunnel_key that would be used later. Fixes: b57dc7c1 ("net/sched: Introduce action ct") Signed-off-by: NXin Long <lucien.xin@gmail.com> Acked-by: NCong Wang <cong.wang@bytedance.com> Reviewed-by: NMarcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录