Skip to contentSkip to conversation

thread fixes v5.8-rc3

GIT PULL Merged Christian Brauner 2 participants 2 messages Jun 24, 2020

lore
Share & tools
lore
#0 lore raw

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:

[email protected]: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(-)
merge bot Merged
#1 lore raw
The pull request you sent on Wed, 24 Jun 2020 15:07:12 +0200:

The pull request you sent on Wed, 24 Jun 2020 15:07:12 +0200:

Quoted 1 line

[email protected]:pub/scm/linux/kernel/git/brauner/linux tags/for-linus-2020-06-24

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/fbb58011fdd9ca2e2f0e329d11085ddf46830c5a

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker