Linus Torvalds
0048fbb401
Merge tag 'locking-futex-2025-12-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
...
Pull futex updates from Ingo Molnar:
- Standardize on ktime_t in restart_block::time as well (Thomas
Weißschuh)
- Futex selftests:
- Add robust list testcases (André Almeida)
- Formatting fixes/cleanups (Carlos Llamas)
* tag 'locking-futex-2025-12-10' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
futex: Store time as ktime_t in restart block
selftests/futex: Create test for robust list
selftests/futex: Skip tests if shmget unsupported
selftests/futex: Add newline to ksft_exit_fail_msg()
selftests/futex: Remove unused test_futex_mpol()
2025-12-10 17:21:30 +09:00
Bala-Vignesh-Reddy
e6fbd1759c
selftests: complete kselftest include centralization
...
This follow-up patch completes centralization of kselftest.h and
ksefltest_harness.h includes in remaining seltests files, replacing all
relative paths with a non-relative paths using shared -I include path in
lib.mk
Tested with gcc-13.3 and clang-18.1, and cross-compiled successfully on
riscv, arm64, x86_64 and powerpc arch.
[reddybalavignesh9979@gmail.com: add selftests include path for kselftest.h]
Link: https://lkml.kernel.org/r/20251017090201.317521-1-reddybalavignesh9979@gmail.com
Link: https://lkml.kernel.org/r/20251016104409.68985-1-reddybalavignesh9979@gmail.com
Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com >
Suggested-by: Andrew Morton <akpm@linux-foundation.org >
Link: https://lore.kernel.org/lkml/20250820143954.33d95635e504e94df01930d0@linux-foundation.org/
Reviewed-by: Wei Yang <richard.weiyang@gmail.com >
Cc: David Hildenbrand <david@redhat.com >
Cc: David S. Miller <davem@davemloft.net >
Cc: Eric Dumazet <edumazet@google.com >
Cc: Günther Noack <gnoack@google.com >
Cc: Jakub Kacinski <kuba@kernel.org >
Cc: Liam Howlett <liam.howlett@oracle.com >
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com >
Cc: Michal Hocko <mhocko@suse.com >
Cc: Mickael Salaun <mic@digikod.net >
Cc: Ming Lei <ming.lei@redhat.com >
Cc: Paolo Abeni <pabeni@redhat.com >
Cc: Shuah Khan <shuah@kernel.org >
Cc: Simon Horman <horms@kernel.org >
Cc: Suren Baghdasaryan <surenb@google.com >
Cc: Vlastimil Babka <vbabka@suse.cz >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
2025-11-27 14:24:31 -08:00
Carlos Llamas
275498b881
selftests/futex: Skip tests if shmget unsupported
...
On systems where the shmget() syscall is not supported, tests like
anon_page and shared_waitv will fail. Skip these tests in such cases to
allow the rest of the test suite to run.
Signed-off-by: Carlos Llamas <cmllamas@google.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Link: https://patch.msgid.link/20251016162009.3270784-1-cmllamas@google.com
2025-11-14 14:39:36 +01:00
André Almeida
a91e8e372e
selftests/futex: Refactor futex_waitv with kselftest_harness.h
...
To reduce the boilerplate code, refactor futex_waitv test to use
kselftest_harness header instead of futex's logging header.
Signed-off-by: André Almeida <andrealmeid@igalia.com >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2025-09-20 18:11:55 +02:00
André Almeida
5e59c1d1c7
selftests: futex: Add sys_futex_waitv() test
...
Create a new file to test the waitv mechanism. Test both private and
shared futexes. Wake the last futex in the array, and check if the
return value from futex_waitv() is the right index.
Signed-off-by: André Almeida <andrealmeid@collabora.com >
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org >
Link: https://lore.kernel.org/r/20210923171111.300673-20-andrealmeid@collabora.com
2021-10-07 13:51:12 +02:00