6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Joe Damato <jdamato@xxxxxxxxxx> commit c53bf100f68619acf6cedcf4cf5249a1ca2db0b4 upstream. Hold rcu_read_lock in netdev_nl_napi_get_doit, which calls napi_by_id and is required to be called under rcu_read_lock. Cc: stable@xxxxxxxxxxxxxxx Fixes: 27f91aaf49b3 ("netdev-genl: Add netlink framework functions for napi") Signed-off-by: Joe Damato <jdamato@xxxxxxxxxx> Link: https://patch.msgid.link/20241114175157.16604-1-jdamato@xxxxxxxxxx Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- net/core/netdev-genl.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/core/netdev-genl.c +++ b/net/core/netdev-genl.c @@ -214,6 +214,7 @@ int netdev_nl_napi_get_doit(struct sk_bu return -ENOMEM; rtnl_lock(); + rcu_read_lock(); napi = napi_by_id(napi_id); if (napi) { @@ -223,6 +224,7 @@ int netdev_nl_napi_get_doit(struct sk_bu err = -ENOENT; } + rcu_read_unlock(); rtnl_unlock(); if (err)