[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ea9b90d6-127c-46e1-8978-f984f77c57fc@intel.com>
Date: Mon, 6 Jan 2025 21:30:50 -0800
From: "Samudrala, Sridhar" <sridhar.samudrala@...el.com>
To: Jakub Kicinski <kuba@...nel.org>, <davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <edumazet@...gle.com>, <pabeni@...hat.com>,
<stable@...r.kernel.org>, <jdamato@...tly.com>, <almasrymina@...gle.com>,
<amritha.nambiar@...el.com>
Subject: Re: [PATCH net] netdev: prevent accessing NAPI instances from another
namespace
On 1/6/2025 10:01 AM, Jakub Kicinski wrote:
> 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@...r.kernel.org
> Fixes: 1287c1ae0fc2 ("netdev-genl: Support setting per-NAPI config values")
> Fixes: 27f91aaf49b3 ("netdev-genl: Add netlink framework functions for napi")
> Signed-off-by: Jakub Kicinski <kuba@...nel.org>
Reviewed-by: Sridhar Samudrala <sridhar.samudrala@...el.com>
Powered by blists - more mailing lists