mbox series

[v2,0/3] openat2: flag fixes

Message ID 20210528092417.3942079-1-brauner@kernel.org (mailing list archive)
Headers show
Series openat2: flag fixes | expand

Message

Christian Brauner May 28, 2021, 9:24 a.m. UTC
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