[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAVpQUCB+7F4rFffLXwzy9808bg6fwaR4mj=BsUtC10r=x7z2w@mail.gmail.com>
Date: Fri, 27 Jun 2025 10:51:53 -0700
From: Kuniyuki Iwashima <kuniyu@...gle.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>, David Ahern <dsahern@...nel.org>,
netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH net-next 04/10] net: dst: annotate data-races around dst->input
On Fri, Jun 27, 2025 at 4:25 AM Eric Dumazet <edumazet@...gle.com> wrote:
>
> dst_dev_put() can overwrite dst->input while other
> cpus might read this field (for instance from dst_input())
>
> Add READ_ONCE()/WRITE_ONCE() annotations to suppress
> potential issues.
>
> We will likely need full RCU protection later.
>
> Fixes: 4a6ce2b6f2ec ("net: introduce a new function dst_dev_put()")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@...gle.com>
Powered by blists - more mailing lists