]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
proc: don't allow async path resolution of /proc/self components
authorJens Axboe <axboe@kernel.dk>
Fri, 13 Nov 2020 23:47:52 +0000 (16:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Dec 2020 07:48:09 +0000 (08:48 +0100)
commit49d04a6948825b309411d13e97109857e4f76de6
treed3078a07f6012e319bea1378b790c41f378d31c5
parente7daa8842205b5a2e7929c82390f7b377d37803b
proc: don't allow async path resolution of /proc/self components

[ Upstream commit 8d4c3e76e3be11a64df95ddee52e99092d42fc19 ]

If this is attempted by a kthread, then return -EOPNOTSUPP as we don't
currently support that. Once we can get task_pid_ptr() doing the right
thing, then this can go away again.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/proc/self.c