# Re: \[PATCH net 1/8\] ndisc: ndisc\_send\_redirect() must use dev\_get\_by\_index\_rcu()

- From: David Ahern \<dsahern@kernel.org\>
- Date: 2025-02-07 20:41:28 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/02/11318593
- Thread: https://ratatoskr.run/netdev/2025/02/11318509/t.md

```text
On 2/7/25 6:58 AM, Eric Dumazet wrote:
> ndisc_send_redirect() is called under RCU protection, not RTNL.
> 
> It must use dev_get_by_index_rcu() instead of __dev_get_by_index()
> 
> Fixes: 2f17becfbea5 ("vrf: check the original netdevice for generating redirect")
> Signed-off-by: Eric Dumazet <redacted>
> Cc: Stephen Suryaputra <redacted>
> ---
>  net/ipv6/ndisc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: David Ahern <dsahern@kernel.org>


```
