Re: [PATCH v2 net-next 1/2] ipv6: guard against possible NULL deref in __in6_dev_stats_get()
From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-05-27 07:44:18
From: Ido Schimmel <idosch@nvidia.com>
Date: 2026-05-27 07:44:18
On Tue, May 26, 2026 at 02:55:28PM +0000, Eric Dumazet wrote:
dev_get_by_index_rcu() could return NULL if the original physical
device is unregistered.
Found by Sashiko.
Fixes: e1ae5c2ea478 ("vrf: Increment Icmp6InMsgs on the original netdev")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Stephen Suryaputra <redacted>Reviewed-by: Ido Schimmel <idosch@nvidia.com>