Skip to content

Commit cd91b50

Browse files
andrealmeidKAGA-KOKO
authored andcommitted
selftests/futex: Create test for robust list
Create a test for the robust list mechanism. Test the following uAPI operations: - Creating a robust mutex where the lock waiter is wake by the kernel when the lock owner died - Setting a robust list to the current task - Getting a robust list from the current task - Getting a robust list from another task - Using the list_op_pending field from robust_list_head struct to test robustness when the lock owner dies before completing the locking - Setting a invalid size for syscall argument `len` - Adding multiple elements to a robust list wait waiting for each of them - Creating a circular list and checking that the kernel does not get stuck in an infinity loop Signed-off-by: André Almeida <andrealmeid@igalia.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://patch.msgid.link/20251110224130.3044761-1-andrealmeid@igalia.com
1 parent 275498b commit cd91b50

3 files changed

Lines changed: 555 additions & 1 deletion

File tree

tools/testing/selftests/futex/functional/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ futex_wait_uninitialized_heap
1212
futex_wait_wouldblock
1313
futex_waitv
1414
futex_numa
15+
robust_list

tools/testing/selftests/futex/functional/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ TEST_GEN_PROGS := \
2222
futex_priv_hash \
2323
futex_numa_mpol \
2424
futex_waitv \
25-
futex_numa
25+
futex_numa \
26+
robust_list
2627

2728
TEST_PROGS := run.sh
2829

0 commit comments

Comments
 (0)