lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <174670042648.406.1017155963048464231.tip-bot2@tip-bot2>
Date: Thu, 08 May 2025 10:33:46 -0000
From: "tip-bot2 for Peter Zijlstra" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Peter Zijlstra (Intel)" <peterz@...radead.org>, x86@...nel.org,
 linux-kernel@...r.kernel.org
Subject: [tip: locking/futex] selftests/futex: Build without headers nonsense

The following commit has been merged into the locking/futex branch of tip:

Commit-ID:     8b4a5c2497fad653bc54ddb037d38eb5bf835857
Gitweb:        https://git.kernel.org/tip/8b4a5c2497fad653bc54ddb037d38eb5bf835857
Author:        Peter Zijlstra <peterz@...radead.org>
AuthorDate:    Fri, 02 May 2025 20:57:23 +02:00
Committer:     Peter Zijlstra <peterz@...radead.org>
CommitterDate: Sat, 03 May 2025 12:02:10 +02:00

selftests/futex: Build without headers nonsense

Make it build without relying on recent headers.

Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
---
 tools/testing/selftests/futex/include/futex2test.h | 18 +++++++++++++-
 1 file changed, 18 insertions(+)

diff --git a/tools/testing/selftests/futex/include/futex2test.h b/tools/testing/selftests/futex/include/futex2test.h
index 9d30552..9ee3592 100644
--- a/tools/testing/selftests/futex/include/futex2test.h
+++ b/tools/testing/selftests/futex/include/futex2test.h
@@ -8,6 +8,24 @@
 
 #define u64_to_ptr(x) ((void *)(uintptr_t)(x))
 
+#ifndef __NR_futex_waitv
+#define __NR_futex_waitv 449
+struct futex_waitv {
+	__u64 val;
+	__u64 uaddr;
+	__u32 flags;
+	__u32 __reserved;
+};
+#endif
+
+#ifndef FUTEX2_SIZE_U32
+#define FUTEX2_SIZE_U32 0x02
+#endif
+
+#ifndef FUTEX_32
+#define FUTEX_32 FUTEX2_SIZE_U32
+#endif
+
 /**
  * futex_waitv - Wait at multiple futexes, wake on any
  * @waiters:    Array of waiters

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ