Skip to content

riscv: vdso: Implement __vdso_futex_robust_try_unlock()

Nam Cao linux-riscv lkml 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v35 patches 11 repliesSuperseded
  3. v25 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches4 repliesSuperseded

Changes in v4 from the cover letter

- fix minor whitespace issue
- stop touching -march in Makefile, instead use .option arch

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3riscv: compat_vdso: switch to standard kbuild rulearch/riscv/kernel/compat_vdso/Makefile+1 -70 replies
2/3riscv: compat_vdso: Allow *.c source filesarch/riscv/kernel/compat_vdso/Makefile+1 -00 replies
3/3riscv: vdso: Implement __vdso_futex_robust_try_unlock()arch/riscv/Kconfig arch/riscv/include/asm/cpufeature-macros.h arch/riscv/include/asm/futex_robust.h +7 more+204 -20 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchThomas Weißschuh
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] riscv: vdso: Implement __vdso_futex_robust_try_unlock()

This series adds new vdso futex entries, allowing user to address the robust futex race condition regarding clearing the robust_list_head::list_op_pending pointer.

Thomas wrote a summary of the problem:
https://lore.kernel.org/lkml/[email protected]/

The core infrastructure has been implemented along with x86 support. This series adds RISC-V support.

The first 4 patches prepare compat vdso Makefile. The final patch is the main show.

v4:
- fix minor whitespace issue
- stop touching -march in Makefile, instead use .option arch

v3:
- add missing include guard
- switch to if/else for compare-and-exchange vs load-reserved/store-conditional

v2:
- address Sashiko's comments

Nam Cao (3):
riscv: compat_vdso: switch to standard kbuild rule
riscv: compat_vdso: Allow *.c source files
riscv: vdso: Implement __vdso_futex_robust_try_unlock()

 arch/riscv/Kconfig                         |  1 +
 arch/riscv/include/asm/cpufeature-macros.h |  2 +
 arch/riscv/include/asm/futex_robust.h      | 16 ++++
 arch/riscv/include/asm/vdso/futex.h        | 14 ++++
 arch/riscv/kernel/compat_vdso/Makefile     | 16 ++--
 arch/riscv/kernel/compat_vdso/futex.c      |  3 +
 arch/riscv/kernel/vdso.c                   | 61 +++++++++++++++
 arch/riscv/kernel/vdso/Makefile            |  7 +-
 arch/riscv/kernel/vdso/futex.c             | 87 ++++++++++++++++++++++
 arch/riscv/kernel/vdso/vdso.lds.S          |  8 ++
 10 files changed, 206 insertions(+), 9 deletions(-)
 create mode 100644 arch/riscv/include/asm/futex_robust.h
 create mode 100644 arch/riscv/include/asm/vdso/futex.h
 create mode 100644 arch/riscv/kernel/compat_vdso/futex.c
 create mode 100644 arch/riscv/kernel/vdso/futex.c
Signature · 1 line
2.47.3