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)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Nov 2020 23:47:52 +0000 (16:47 -0700)
commit8d4c3e76e3be11a64df95ddee52e99092d42fc19
tree869d04ae6fffbe045a0f48ec5afc2775953e9222
parent88ec3211e46344a7d10cf6cb5045f839f7785f8e
proc: don't allow async path resolution of /proc/self components

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>
fs/proc/self.c