Re: [PATCH net-next v4 4/5] ipv6: add ip6_dst_lookup_flow_cookie

From: Ralf Lici

Date: Tue Nov 24 2026 - 11:23:14 EST


On Tue, 24 Nov 2026 10:26:54 +0000, netdev-bot+sashiko@xxxxxxxxxx wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential
> issue(s) to consider.
>
> Critical: 0 · High: 2 · Medium: 0 · Low: 0
>
> If you believe none of the issues are legitimate, please reply to each
> issue of Medium severity or higher and explain why the AI is wrong.
> If any of them are legitimate and you plan to respin, please let patchwork
> know by including "pw-bot: cr" as a separate line at the end of your reply
> (one such reply per series is enough).
>
> - [High] ip6_dst_lookup_flow_cookie() (net/ipv6/ip6_output.c) only closes
> the lookup/cookie race when the returned dst is a plain route.
> - [High] The generation check in ip6_dst_lookup_flow_cookie() is only
> sound if every writer publishes its full routing/policy change before…
>

Both points are addressed in the next revision, which drops
ip6_dst_lookup_flow_cookie and moves the validation into the dst:

- The route and path dsts of xfrm bundles are now validated against
their own lookup stamp, so the late route_cookie and path_cookie no
longer matter.
- The xfrm_policy_insert ordering will be fixed separately in the ipsec
tree.

pw-bot: cr

--
Ralf Lici
Mandelbit Srl