LKML Archive on
help / color / mirror / Atom feed
* [PATCH v2] selftests: openat2: Fix testing failure for O_LARGEFILE flag
@ 2021-08-25  1:49 Baolin Wang
  0 siblings, 0 replies; only message in thread
From: Baolin Wang @ 2021-08-25  1:49 UTC (permalink / raw)
  To: shuah
  Cc: cyphar, christian.brauner,, linux-kselftest, linux-kernel

When running the openat2 test suite on ARM64 platform, we got below failure,
since the definition of the O_LARGEFILE is different on ARM64. So we can
set the correct O_LARGEFILE definition on ARM64 to fix this issue.

"openat2 unexpectedly returned # 3['.../tools/testing/selftests/openat2']
with 208000 (!= 208000)
not ok 102 openat2 with incompatible flags (O_PATH | O_LARGEFILE) fails
with -22 (Invalid argument)"

Signed-off-by: Baolin Wang <>
Reviewed-by: Aleksa Sarai <>
Acked-by: Christian Brauner <>
Changes from v1:
 - Add reviewed and acked tags from Aleksa and Christian.
 - Add failure logs in the commit log.
 tools/testing/selftests/openat2/openat2_test.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/openat2/openat2_test.c
index d7ec1e7..1bddbe9 100644
--- a/tools/testing/selftests/openat2/openat2_test.c
+++ b/tools/testing/selftests/openat2/openat2_test.c
@@ -22,7 +22,11 @@
  * XXX: This is wrong on {mips, parisc, powerpc, sparc}.
+#ifdef __aarch64__
+#define	O_LARGEFILE 0x20000
 #define	O_LARGEFILE 0x8000
 struct open_how_ext {
 	struct open_how inner;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-25  1:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25  1:49 [PATCH v2] selftests: openat2: Fix testing failure for O_LARGEFILE flag Baolin Wang

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