linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] openat2: flag fixes
@ 2021-05-28  9:24 Christian Brauner
  2021-05-28  9:24 ` [PATCH v2 1/3] fcntl: remove unused VALID_UPGRADE_FLAGS Christian Brauner
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Christian Brauner @ 2021-05-28  9:24 UTC (permalink / raw)
  To: Christoph Hellwig, Al Viro
  Cc: Aleksa Sarai, Richard Guy Briggs, linux-fsdevel,
	Christian Brauner

From: Christian Brauner <christian.brauner@ubuntu.com>

Hey,

A few fixes and tests to openat2 to prevent silent truncation when
passing in flags in the upper 32 bits.
With the feedback from Richard worked in I picked this up so it can sit
in -next for a bit.

Thanks!
Christian

Christian Brauner (3):
  fcntl: remove unused VALID_UPGRADE_FLAGS
  open: don't silently ignore unknown O-flags in openat2()
  test: add openat2() test for invalid upper 32 bit flag value

 fs/open.c                                      | 14 +++++++++++---
 include/linux/fcntl.h                          |  4 ----
 tools/testing/selftests/openat2/openat2_test.c |  7 ++++++-
 3 files changed, 17 insertions(+), 8 deletions(-)


base-commit: c4681547bcce777daf576925a966ffa824edd09d
-- 
2.27.0


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

end of thread, other threads:[~2021-05-28 14:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-28  9:24 [PATCH v2 0/3] openat2: flag fixes Christian Brauner
2021-05-28  9:24 ` [PATCH v2 1/3] fcntl: remove unused VALID_UPGRADE_FLAGS Christian Brauner
2021-05-28  9:24 ` [PATCH v2 2/3] open: don't silently ignore unknown O-flags in openat2() Christian Brauner
2021-05-28 14:19   ` Richard Guy Briggs
2021-05-28  9:24 ` [PATCH v2 3/3] test: add openat2() test for invalid upper 32 bit flag value Christian Brauner
2021-05-28 14:20   ` Richard Guy Briggs

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).