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

- From: Kuniyuki Iwashima \<hidden\>
- Date: 2025-02-10 01:09:14 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/02/11318704
- Thread: https://ratatoskr.run/netdev/2025/02/11318509/t.md

```text
From: Eric Dumazet <redacted>
Date: Fri,  7 Feb 2025 13:58:33 +0000
> 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>

Reviewed-by: Kuniyuki Iwashima <redacted>
```
