linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix S_ISDIR execve() errno
@ 2020-08-13 23:17 Kees Cook
  2020-08-13 23:17 ` [PATCH 1/2] exec: Restore EACCES of S_ISDIR execve() Kees Cook
  2020-08-13 23:17 ` [PATCH 2/2] selftests/exec: Add file type errno tests Kees Cook
  0 siblings, 2 replies; 6+ messages in thread
From: Kees Cook @ 2020-08-13 23:17 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Kees Cook, Marc Zyngier, Shuah Khan, Greg Kroah-Hartman,
	linux-kernel, linux-kselftest

Hi Andrew,

This fixes an errno change for execve() of directories, noticed by Marc
Zyngier[1]. Along with the fix, include a regression test to avoid seeing
this return in the future.

Thanks!

-Kees

[1] https://lore.kernel.org/lkml/20200813151305.6191993b@why

Kees Cook (2):
  exec: Restore EACCES of S_ISDIR execve()
  selftests/exec: Add file type errno tests

 fs/namei.c                                 |   4 +-
 tools/testing/selftests/exec/.gitignore    |   1 +
 tools/testing/selftests/exec/Makefile      |   5 +-
 tools/testing/selftests/exec/non-regular.c | 196 +++++++++++++++++++++
 4 files changed, 203 insertions(+), 3 deletions(-)
 create mode 100755 tools/testing/selftests/exec/non-regular.c

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-14  8:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 23:17 [PATCH 0/2] Fix S_ISDIR execve() errno Kees Cook
2020-08-13 23:17 ` [PATCH 1/2] exec: Restore EACCES of S_ISDIR execve() Kees Cook
2020-08-14  7:11   ` Greg Kroah-Hartman
2020-08-14  8:13     ` Greg Kroah-Hartman
2020-08-14  8:15   ` Marc Zyngier
2020-08-13 23:17 ` [PATCH 2/2] selftests/exec: Add file type errno tests Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).