diff options
author | 2023-08-06 02:11:58 +1000 | |
---|---|---|
committer | 2023-08-06 15:08:35 +0200 | |
commit | a0fc452a5d7fed986205539259df1d60546f536c (patch) | |
tree | 020cfc21ca401802c599f000db6d8757e01c7f5e /scripts/generate_rust_analyzer.py | |
parent | Merge tag 'hyperv-fixes-signed-20230804' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux (diff) | |
download | wireguard-linux-a0fc452a5d7fed986205539259df1d60546f536c.tar.xz wireguard-linux-a0fc452a5d7fed986205539259df1d60546f536c.zip |
open: make RESOLVE_CACHED correctly test for O_TMPFILE
O_TMPFILE is actually __O_TMPFILE|O_DIRECTORY. This means that the old
fast-path check for RESOLVE_CACHED would reject all users passing
O_DIRECTORY with -EAGAIN, when in fact the intended test was to check
for __O_TMPFILE.
Cc: stable@vger.kernel.org # v5.12+
Fixes: 99668f618062 ("fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Message-Id: <20230806-resolve_cached-o_tmpfile-v1-1-7ba16308465e@cyphar.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions