[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <90a599d3-fb7e-4b99-b25b-dfbd44018f8b@kernel.org>
Date: Fri, 7 Feb 2025 13:45:33 -0700
From: David Ahern <dsahern@...nel.org>
To: Eric Dumazet <edumazet@...gle.com>, "David S . Miller"
<davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, Kuniyuki Iwashima <kuniyu@...zon.com>,
Simon Horman <horms@...nel.org>, eric.dumazet@...il.com
Subject: Re: [PATCH net 6/8] vrf: use RCU protection in l3mdev_l3_out()
On 2/7/25 6:58 AM, Eric Dumazet wrote:
> l3mdev_l3_out() can be called without RCU being held:
>
> raw_sendmsg()
> ip_push_pending_frames()
> ip_send_skb()
> ip_local_out()
> __ip_local_out()
> l3mdev_ip_out()
>
> Add rcu_read_lock() / rcu_read_unlock() pair to avoid
> a potential UAF.
>
> Fixes: a8e3e1a9f020 ("net: l3mdev: Add hook to output path")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> ---
> include/net/l3mdev.h | 2 ++
> 1 file changed, 2 insertions(+)
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists