Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev: prevent accessing NAPI instances from another namespace
commit d1cacd7 upstream. The NAPI IDs were not fully exposed to user space prior to the netlink API, so they were never namespaced. The netlink API must ensure that at the very least NAPI instance belongs to the same netns as the owner of the genl sock. napi_by_id() can become static now, but it needs to move because of dev_get_by_napi_id(). Cc: stable@vger.kernel.org Fixes: 1287c1a ("netdev-genl: Support setting per-NAPI config values") Fixes: 27f91aa ("netdev-genl: Add netlink framework functions for napi") Reviewed-by: Sridhar Samudrala <sridhar.samudrala@intel.com> Reviewed-by: Joe Damato <jdamato@fastly.com> Link: https://patch.msgid.link/20250106180137.1861472-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- linux-6.12.10-mpi
- linux-6.12.11-mpi
- linux-6.12.12-mpi
- linux-6.12.13-mpi
- linux-6.12.14-mpi
- linux-6.12.15-mpi
- linux-6.12.16-mpi
- linux-6.12.17-mpi
- linux-6.12.18-mpi
- linux-6.12.19-mpi
- linux-6.12.20-mpi
- linux-6.12.21-mpi
- linux-6.12.22-mpi
- linux-6.12.23-mpi
- linux-6.12.24-mpi
- linux-6.12.25-mpi
- linux-6.12.26-mpi
- linux-6.12.27-mpi
- linux-6.12.28-mpi
- linux-6.12.29-mpi
- linux-6.12.30-mpi
- linux-6.12.31-mpi
- linux-6.12.32-mpi
- linux-6.12.33-mpi
- linux-6.12.34-mpi
- linux-6.12.35-mpi
- linux-6.12.36-mpi
- linux-6.12.37-mpi