Re: [PATCH v2 11/24] file: Implement task_lookup_fd_rcu

2020-11-22 Thread Cyrill Gorcunov
On Sun, Nov 22, 2020 at 07:00:20AM -0600, Eric W. Biederman wrote: > Cyrill Gorcunov writes: ... > That is present in files_lookup_fd_rcu, so this code should > be good from the warning side. Indeed, thanks!

Re: [PATCH v2 11/24] file: Implement task_lookup_fd_rcu

2020-11-21 Thread Cyrill Gorcunov
On Fri, Nov 20, 2020 at 05:14:28PM -0600, Eric W. Biederman wrote: > > diff --git a/fs/file.c b/fs/file.c > index 5861c4f89419..6448523ca29e 100644 > --- a/fs/file.c > +++ b/fs/file.c > @@ -865,6 +865,21 @@ struct file *fget_task(struct task_struct *task, > unsigned int fd) > return file;

[PATCH v2 11/24] file: Implement task_lookup_fd_rcu

2020-11-20 Thread Eric W. Biederman
As a companion to lookup_fd_rcu implement task_lookup_fd_rcu for querying an arbitrary process about a specific file. Acked-by: Christian Brauner v1: https://lkml.kernel.org/r/20200818103713.aw46m7vprsy4vlve@wittgenstein Signed-off-by: "Eric W. Biederman" --- fs/file.c | 15