summaryrefslogtreecommitdiffstats
path: root/scripts/gcc-x86_32-has-stack-protector.sh
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2019-06-26 22:22:09 -0400
committerChristian Brauner <christian@brauner.io>2019-06-27 12:24:03 +0200
commit6fd2fe494b17bf2dec37b610d23a43a72b16923a (patch)
tree10373d534062579195279de454be72ad7c562147 /scripts/gcc-x86_32-has-stack-protector.sh
parentbee19cd8f241ab3cd1bf79e03884e5371f9ef514 (diff)
downloadlinux-6fd2fe494b17bf2dec37b610d23a43a72b16923a.tar.bz2
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>
Diffstat (limited to 'scripts/gcc-x86_32-has-stack-protector.sh')
0 files changed, 0 insertions, 0 deletions