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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211209235857.423773-6-alistair.francis@opensource.wdc.com>
Date:   Fri, 10 Dec 2021 09:58:57 +1000
From:   Alistair Francis <alistair.francis@...nsource.wdc.com>
To:     linux-kernel@...r.kernel.org
Cc:     dave@...olabs.net, dvhart@...radead.org, arnd@...db.de,
        alistair23@...il.com, namhyung@...nel.org, acme@...nel.org,
        jolsa@...hat.com, linux-perf-users@...r.kernel.org,
        alexander.shishkin@...ux.intel.com, mark.rutland@....com,
        mingo@...hat.com, peterz@...radead.org, tglx@...utronix.de,
        Alistair Francis <alistair.francis@....com>
Subject: [PATCH v5 6/6] selftests: futex: Use futex_waitv helper function

From: Alistair Francis <alistair.francis@....com>

Use the publically exposed __kernel_futex_syscall_waitv() helper
function for the futex_waitv tests.

Signed-off-by: Alistair Francis <alistair.francis@....com>
---
 tools/testing/selftests/futex/include/futex2test.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/futex/include/futex2test.h b/tools/testing/selftests/futex/include/futex2test.h
index 9d305520e849..fdc0a0a270cd 100644
--- a/tools/testing/selftests/futex/include/futex2test.h
+++ b/tools/testing/selftests/futex/include/futex2test.h
@@ -5,6 +5,7 @@
  * Copyright 2021 Collabora Ltd.
  */
 #include <stdint.h>
+#include <linux/futex_syscall.h>
 
 #define u64_to_ptr(x) ((void *)(uintptr_t)(x))
 
@@ -18,5 +19,5 @@
 static inline int futex_waitv(volatile struct futex_waitv *waiters, unsigned long nr_waiters,
 			      unsigned long flags, struct timespec *timo, clockid_t clockid)
 {
-	return syscall(__NR_futex_waitv, waiters, nr_waiters, flags, timo, clockid);
+	return __kernel_futex_syscall_waitv(waiters, nr_waiters, flags, timo, clockid);
 }
-- 
2.31.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ