Skip to content

RFC Restartable Sequences selftests updates

Mathieu Desnoyers linux-api linux-kselftest linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10rseq/selftests: Add __rseq_exit_point_array section for debuggerstools/testing/selftests/rseq/rseq-arm.h tools/testing/selftests/rseq/rseq-arm64.h tools/testing/selftests/rseq/rseq-mips.h +3 more+372 -00 replies
2/10rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to __rseq_cstools/testing/selftests/rseq/rseq-arm.h tools/testing/selftests/rseq/rseq-arm64.h tools/testing/selftests/rseq/rseq-mips.h +3 more+81 -510 replies
3/10rseq/selftests: Use __rseq_handled symbol to coexist with glibctools/testing/selftests/rseq/rseq.c tools/testing/selftests/rseq/rseq.h+48 -80 replies
4/10rseq/selftests: s390: use jg instruction for jumps outside of the asmtools/testing/selftests/rseq/rseq-s390.h+2 -20 replies
5/10rseq/selftests: x86: use ud1 instruction as RSEQ_SIG opcodetools/testing/selftests/rseq/rseq-x86.h+11 -40 replies
6/10rseq/selftests: s390: use trap4 for RSEQ_SIGtools/testing/selftests/rseq/rseq-s390.h+8 -10 replies
7/10rseq/selftests: arm: use udf instruction for RSEQ_SIGtools/testing/selftests/rseq/rseq-arm.h+50 -20 replies
8/10rseq/selftests: aarch64 code signature: handle big-endian environmenttools/testing/selftests/rseq/rseq-arm64.h+15 -27 replies
9/10rseq/selftests: powerpc code signature: generate valid instructionstools/testing/selftests/rseq/rseq-ppc.h+9 -10 replies
10/10rseq/selftests: mips: use break instruction for RSEQ_SIGtools/testing/selftests/rseq/rseq-mips.h+5 -16 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchWill Deacon
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10A-b
9/10
10/10

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

Read the v1 thread

Cover letter [RFC PATCH for 5.2 00/10] Restartable Sequences selftests updates

Those rseq selftests updates are hereby submitted for feedback.

They change the per-architecture pre-abort signatures to ensure those are valid trap instructions.

The way exit points are presented to debuggers is enhanced, ensuring all exit points are present, so debuggers don't have to disassemble rseq critical section to properly skip over them.

Also, discussions with the glibc community is reaching a concensus of exposing a __rseq_handled symbol from glibc to coexist with rseq early adopters. Update the rseq selftest code to use this symbol.

Feedback is welcome.

Thanks,

Mathieu

Martin Schwidefsky (1):
rseq/selftests: s390: use trap4 for RSEQ_SIG

Mathieu Desnoyers (9):
rseq/selftests: Add __rseq_exit_point_array section for debuggers rseq/selftests: Introduce __rseq_cs_ptr_array, rename __rseq_table to

    __rseq_cs

rseq/selftests: Use __rseq_handled symbol to coexist with glibc rseq/selftests: s390: use jg instruction for jumps outside of the asm rseq/selftests: x86: use ud1 instruction as RSEQ_SIG opcode rseq/selftests: arm: use udf instruction for RSEQ_SIG rseq/selftests: aarch64 code signature: handle big-endian environment rseq/selftests: powerpc code signature: generate valid instructions rseq/selftests: mips: use break instruction for RSEQ_SIG

 tools/testing/selftests/rseq/rseq-arm.h   | 132 ++++++++++++++++++++++++++----
 tools/testing/selftests/rseq/rseq-arm64.h |  74 ++++++++++++++++-
 tools/testing/selftests/rseq/rseq-mips.h  |  87 +++++++++++++++++---
 tools/testing/selftests/rseq/rseq-ppc.h   |  90 ++++++++++++++++++--
 tools/testing/selftests/rseq/rseq-s390.h  |  78 ++++++++++++++++--
 tools/testing/selftests/rseq/rseq-x86.h   | 120 +++++++++++++++++++++++++--
 tools/testing/selftests/rseq/rseq.c       |  55 +++++++++++--
 tools/testing/selftests/rseq/rseq.h       |   1 +
 8 files changed, 583 insertions(+), 54 deletions(-)
Signature · 1 line
2.11.0