[GIT PULL] thread fixes v5.8-rc3
From: Christian Brauner
Date: Wed Jun 24 2020 - 09:07:24 EST
Hey Linus,
This fixes a regression introduced with 303cc571d107 ("nsproxy: attach to
namespaces via pidfds"). The LTP testsuite reported a regression where users
would now see EBADF returned instead of EINVAL when an fd was passed that
referred to an open file but the file was not a namespace file. Fix this by
continuing to report EINVAL and add a regression test.
/* Testing */
All patches have seen exposure in linux-next and are based on v5.8-rc1.
/* Conflicts */
At the time of creating this pr no merge conflicts were reported.
The following changes since commit b3a9e3b9622ae10064826dccb4f7a52bd88c7407:
Linux 5.8-rc1 (2020-06-14 12:45:04 -0700)
are available in the Git repository at:
git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/brauner/linux tags/for-linus-2020-06-24
for you to fetch changes up to 86f56395feb2b106b125c47e72192e37da5dd088:
tests: test for setns() EINVAL regression (2020-06-17 00:48:54 +0200)
Please consider pulling these changes from the signed for-linus-2020-06-24 tag.
Thanks!
Christian
----------------------------------------------------------------
for-linus-2020-06-24
----------------------------------------------------------------
Christian Brauner (2):
nsproxy: restore EINVAL for non-namespace file descriptor
tests: test for setns() EINVAL regression
kernel/nsproxy.c | 2 +-
tools/testing/selftests/pidfd/pidfd.h | 5 +++++
tools/testing/selftests/pidfd/pidfd_getfd_test.c | 5 -----
tools/testing/selftests/pidfd/pidfd_setns_test.c | 12 ++++++++++++
4 files changed, 18 insertions(+), 6 deletions(-)