diff options
| author | Aleksa Sarai <[email protected]> | 2023-08-05 16:11:58 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2023-08-06 13:08:35 +0000 |
| commit | a0fc452a5d7fed986205539259df1d60546f536c (patch) | |
| tree | 020cfc21ca401802c599f000db6d8757e01c7f5e /rust/helpers.c | |
| parent | Merge tag 'hyperv-fixes-signed-20230804' of git://git.kernel.org/pub/scm/linu... (diff) | |
| download | kernel-a0fc452a5d7fed986205539259df1d60546f536c.tar.gz kernel-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: [email protected] # v5.12+
Fixes: 99668f618062 ("fs: expose LOOKUP_CACHED through openat2() RESOLVE_CACHED")
Signed-off-by: Aleksa Sarai <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
