Al Viro 6fd2fe494b
copy_process(): don't use ksys_close() on cleanups
anon_inode_getfd() should be used *ONLY* in situations when we are
guaranteed to be past the last failure point (including copying the
descriptor number to userland, at that).  And ksys_close() should
not be used for cleanups at all.

anon_inode_getfile() is there for all nontrivial cases like that.
Just use that...

Fixes: b3e583825266 ("clone: add CLONE_PIDFD")
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Jann Horn <jannh@google.com>
Signed-off-by: Christian Brauner <christian@brauner.io>
2019-06-27 12:24:03 +02:00
..
2019-06-21 09:58:42 -07:00
2019-05-24 20:16:01 +02:00
2019-05-24 20:16:01 +02:00
2019-05-07 19:06:04 -07:00
2019-06-05 15:06:07 +02:00
2019-06-14 20:18:27 -07:00
2019-04-18 14:05:51 +02:00