On Thu, Sep 26, 2024 at 06:51:46PM +0200, Christian Brauner wrote:
When we access a no-current task's pid namespace we need check that the task hasn't been reaped in the meantime and it's pid namespace isn't accessible anymore.
The user namespace is fine because it is only released when the last reference to struct task_struct is put and exit_creds() is called.
Fixes: 5b08bd408534 ("pidfs: allow retrieval of namespace file descriptors") CC: stable@vger.kernel.org # v6.11 Signed-off-by: Christian Brauner brauner@kernel.org
Reviewed-by: Josef Bacik josef@toxicpanda.com
Thanks,
Josef