From: Wang Shanker <hidden> Date: 2021-06-21 15:17:41
When doing source address validation, the flowi4 struct used for
fib_lookup should be in the reverse direction to the given skb.
fl4_dport and fl4_sport returned by fib4_rules_early_flow_dissect
should thus be swapped.
Fixes: 5a847a6 ("net/ipv4: Initialize proto and ports in flow struct")
Signed-off-by: Miao Wang <redacted>
---
net/ipv4/fib_frontend.c | 2 ++
1 file changed, 2 insertions(+)
From: David Ahern <hidden> Date: 2021-06-22 01:23:49
On 6/21/21 9:17 AM, Wang Shanker wrote:
When doing source address validation, the flowi4 struct used for
fib_lookup should be in the reverse direction to the given skb.
fl4_dport and fl4_sport returned by fib4_rules_early_flow_dissect
should thus be swapped.
Fixes: 5a847a6 ("net/ipv4: Initialize proto and ports in flow struct")
I believe the hash should be 12 chars: 5a847a6e1477
From: Miao Wang <hidden> Date: 2021-06-22 02:39:38
2021年06月22日 09:23,David Ahern [off-list ref] 写道:
On 6/21/21 9:17 AM, Wang Shanker wrote:
quoted
When doing source address validation, the flowi4 struct used for
fib_lookup should be in the reverse direction to the given skb.
fl4_dport and fl4_sport returned by fib4_rules_early_flow_dissect
should thus be swapped.
Fixes: 5a847a6 ("net/ipv4: Initialize proto and ports in flow struct")
I believe the hash should be 12 chars: 5a847a6e1477
From: Miao Wang <hidden> Date: 2021-06-22 04:25:00
When doing source address validation, the flowi4 struct used for
fib_lookup should be in the reverse direction to the given skb.
fl4_dport and fl4_sport returned by fib4_rules_early_flow_dissect
should thus be swapped.
Fixes: 5a847a6e1477 ("net/ipv4: Initialize proto and ports in flow struct")
Signed-off-by: Miao Wang <redacted>
Reviewed-by: David Ahern <dsahern@kernel.org>
---
net/ipv4/fib_frontend.c | 2 ++
1 file changed, 2 insertions(+)
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
On Tue, 22 Jun 2021 12:24:50 +0800 you wrote:
When doing source address validation, the flowi4 struct used for
fib_lookup should be in the reverse direction to the given skb.
fl4_dport and fl4_sport returned by fib4_rules_early_flow_dissect
should thus be swapped.
Fixes: 5a847a6e1477 ("net/ipv4: Initialize proto and ports in flow struct")
Signed-off-by: Miao Wang <redacted>
Reviewed-by: David Ahern <dsahern@kernel.org>
[...]