linux/tools/testing/selftests/futex/functional
Miles Krause d1c656df36 selftests/futex: Give circular-list nodes static storage
The registered robust-list head has static storage but points at three
automatic lock nodes. GCC warns about storing the address of a local
variable in the static head when building the selftest with -Wall.

Give the nodes static storage as well. This keeps every object in the
circular list alive through child exit without changing the list topology.

Signed-off-by: Miles Krause <mileskrause5200@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://patch.msgid.link/20260711-futex-robust-list-static-nodes-v1-1-723754d75cf5@gmail.com
2026-07-20 21:03:19 +02:00
..
.gitignore selftests/futex: Add FUTEX_LOCK_PI owner-exiting coverage 2026-07-05 21:49:18 +02:00
futex_lock_pi_exiting.c selftests/futex: Add FUTEX_LOCK_PI owner-exiting coverage 2026-07-05 21:49:18 +02:00
futex_numa_mpol.c selftests/futex: Dynamically skip unsupported tests 2026-07-05 21:49:18 +02:00
futex_numa.c selftests/futex: Drop logging.h include from futex_numa 2025-09-20 18:11:56 +02:00
futex_priv_hash.c selftests/futex: Dynamically skip unsupported tests 2026-07-05 21:49:18 +02:00
futex_requeue_pi_mismatched_ops.c selftests/futex: Migrate futex_requeue_pi_mismatched_ops to harness 2026-07-05 21:49:18 +02:00
futex_requeue_pi_signal_restart.c selftests/futex: Migrate futex_requeue_pi_signal_restart to harness 2026-07-05 21:49:18 +02:00
futex_requeue_pi.c selftests/futex: Migrate futex_requeue_pi to harness 2026-07-05 21:49:17 +02:00
futex_requeue.c selftests/futex: Use thread synchronization helpers instead of usleep() 2026-07-20 20:58:51 +02:00
futex_wait_private_mapped_file.c selftests/futex: Migrate futex_wait_private_mapped_file to harness 2026-07-05 21:49:17 +02:00
futex_wait_timeout.c selftests/futex: Migrate functional tests to harness 2026-07-05 21:49:17 +02:00
futex_wait_uninitialized_heap.c selftests/futex: Migrate futex_wait_uninitialized_heap to harness 2026-07-05 21:49:17 +02:00
futex_wait_wouldblock.c selftests/futex: Migrate functional tests to harness 2026-07-05 21:49:17 +02:00
futex_wait.c selftests/futex: Migrate futex_wait to harness 2026-07-05 21:49:17 +02:00
futex_waitv.c selftests/futex: Correct validation logic in waitv 2026-07-05 21:49:17 +02:00
Makefile selftests/futex: Provide thread creation and synchronization helpers 2026-07-20 20:58:51 +02:00
robust_list.c selftests/futex: Give circular-list nodes static storage 2026-07-20 21:03:19 +02:00
run.sh selftests/futex: Add FUTEX_LOCK_PI owner-exiting coverage 2026-07-05 21:49:18 +02:00