linux/arch/x86/tools
Thomas Gleixner 61cfc8e372 x86/vdso: Prepare for robust futex unlock support
There will be a VDSO function to unlock non-contended robust futexes in
user space. The unlock sequence is racy vs. clearing the list_pending_op
pointer in the task's robust list head. To plug this race the kernel needs
to know the critical section window so it can clear the pointer when the
task is interrupted within that race window. The window is determined by
labels in the inline assembly.

Add these symbols to the vdso2c generator and use them in the VDSO VMA code
to update the critical section addresses in mm_struct::futex on (re)map().

The symbols are not exported to user space, but available in the debug
version of the vDSO.

Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: André Almeida <andrealmeid@igalia.com>
Link: https://patch.msgid.link/20260602090535.828312645@kernel.org
2026-06-03 11:38:52 +02:00
..
.gitignore x86/entry/vdso: Add vdso2c to .gitignore 2026-01-27 23:27:51 +01:00
cpufeaturemasks.awk x86/cpufeatures: Use AWK to generate {REQUIRED|DISABLED}_MASK_BIT_SET in <asm/cpufeaturemasks.h> 2025-03-19 11:15:12 +01:00
gen-insn-attr-x86.awk x86/insn: Add XOP prefix instructions decoder support 2025-08-18 17:15:02 +02:00
insn_decoder_test.c x86/tools: insn_decoder_test.c: Emit standard build success messages 2025-07-14 17:04:38 +02:00
insn_sanity.c x86/tools: insn_sanity.c: Emit standard build success messages 2025-07-14 17:04:43 +02:00
Makefile x86/entry/vdso: Move vdso2c to arch/x86/tools 2026-01-13 15:33:20 -08:00
objdump_reformat.awk x86/tools: objdump_reformat.awk: Skip bad instructions from llvm-objdump 2024-01-04 10:04:02 +01:00
relocs_32.c
relocs_64.c
relocs_common.c
relocs.c x86/boot: Revert "Reject absolute references in .head.text" 2025-09-03 17:59:56 +02:00
relocs.h x86/tools/relocs: Mark die() with the printf function attr format 2021-08-23 05:58:02 +02:00
vdso2c.c x86/vdso: Prepare for robust futex unlock support 2026-06-03 11:38:52 +02:00
vdso2c.h x86/entry/vdso: Move vdso2c to arch/x86/tools 2026-01-13 15:33:20 -08:00