diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-20 20:47:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-11-20 20:47:22 +0100 |
commit | fa5fca78bb2fe7a58ae7297407dcda1914ea8353 (patch) | |
tree | 229a19aafdbcf3692e60e14162d6c208758c1c9d /fs/proc | |
parent | Merge tag 'for-linus-5.10b-rc5-tag' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
parent | io_uring: order refnode recycling (diff) | |
download | linux-fa5fca78bb2fe7a58ae7297407dcda1914ea8353.tar.xz linux-fa5fca78bb2fe7a58ae7297407dcda1914ea8353.zip |
Merge tag 'io_uring-5.10-2020-11-20' of git://git.kernel.dk/linux-block
Pull io_uring fixes from Jens Axboe:
"Mostly regression or stable fodder:
- Disallow async path resolution of /proc/self
- Tighten constraints for segmented async buffered reads
- Fix double completion for a retry error case
- Fix for fixed file life times (Pavel)"
* tag 'io_uring-5.10-2020-11-20' of git://git.kernel.dk/linux-block:
io_uring: order refnode recycling
io_uring: get an active ref_node from files_data
io_uring: don't double complete failed reissue request
mm: never attempt async page lock if we've transferred data already
io_uring: handle -EOPNOTSUPP on path resolution
proc: don't allow async path resolution of /proc/self components
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/self.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/proc/self.c b/fs/proc/self.c index 72cd69bcaf4a..cc71ce3466dc 100644 --- a/fs/proc/self.c +++ b/fs/proc/self.c @@ -16,6 +16,13 @@ static const char *proc_self_get_link(struct dentry *dentry, pid_t tgid = task_tgid_nr_ns(current, ns); char *name; + /* + * Not currently supported. Once we can inherit all of struct pid, + * we can allow this. + */ + if (current->flags & PF_KTHREAD) + return ERR_PTR(-EOPNOTSUPP); + if (!tgid) return ERR_PTR(-ENOENT); /* max length of unsigned int in decimal + NULL term */ |