Re: [PATCH] udp6: Fix race condition in udp6_sendmsg & connect

From: Eric Dumazet
Date: Fri May 26 2023 - 12:00:19 EST


On Fri, May 26, 2023 at 5:58 PM Ефанов Владислав Александрович
<vefanov@xxxxxxxxx> wrote:
>
> Paolo,
>
>
> I don't think that we can just move sk_dst_set() call.
>
> I think we can destroy dst of sendmsg task in this case.
>

dst are RCU protected, it should be easy to make sure we respect all the rules.