Skip to content

Restartable Sequences selftests updates

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12rseq/selftests: x86: Work-around bogus gcc-8 optimisationtools/testing/selftests/rseq/rseq-x86.h+70 -740 replies
2/12rseq/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
3/12rseq/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
4/12rseq/selftests: Use __rseq_handled symbol to coexist with glibctools/testing/selftests/rseq/rseq.c tools/testing/selftests/rseq/rseq.h+48 -80 replies
5/12rseq/selftests: s390: use jg instruction for jumps outside of the asmtools/testing/selftests/rseq/rseq-s390.h+2 -20 replies
6/12rseq/selftests: x86: use ud1 instruction as RSEQ_SIG opcodetools/testing/selftests/rseq/rseq-x86.h+11 -40 replies
7/12rseq/selftests: s390: use trap4 for RSEQ_SIGtools/testing/selftests/rseq/rseq-s390.h+8 -12 replies
8/12rseq/selftests: arm: use udf instruction for RSEQ_SIGtools/testing/selftests/rseq/rseq-arm.h+50 -23 replies
9/12rseq/selftests: aarch64 code signature: handle big-endian environmenttools/testing/selftests/rseq/rseq-arm64.h+15 -20 replies
10/12rseq/selftests: powerpc code signature: generate valid instructionstools/testing/selftests/rseq/rseq-ppc.h+9 -10 replies
11/12rseq/selftests: mips: use break instruction for RSEQ_SIGtools/testing/selftests/rseq/rseq-mips.h+33 -10 replies
12/12rseq/selftests: add -no-integrated-as for clangtools/testing/selftests/rseq/Makefile+7 -13 replies

Reviews trailers per patch

2 of 12 patches have a Reviewed-by or Acked-by.

PatchWill DeaconNick Desaulniers
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12A-b
10/12
11/12
12/12R-b

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

Read the v1 thread

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

Those rseq selftests updates are hereby submitted to Shuah Khan, maintainer of kernel selftests, for the next merge window (5.2).

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.

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 expose and use this symbol.

Support for compiling asm goto with clang is added with the "-no-integrated-as" compiler switch, similarly to the toplevel kernel Makefile.

Thanks,

Mathieu

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

Mathieu Desnoyers (11):
rseq/selftests: x86: Work-around bogus gcc-8 optimisation 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 rseq/selftests: add -no-integrated-as for clang

 tools/testing/selftests/rseq/Makefile     |   8 +-
 tools/testing/selftests/rseq/rseq-arm.h   | 132 +++++++++++++--
 tools/testing/selftests/rseq/rseq-arm64.h |  74 ++++++++-
 tools/testing/selftests/rseq/rseq-mips.h  | 115 +++++++++++--
 tools/testing/selftests/rseq/rseq-ppc.h   |  90 +++++++++-
 tools/testing/selftests/rseq/rseq-s390.h  |  78 ++++++++-
 tools/testing/selftests/rseq/rseq-x86.h   | 264 +++++++++++++++++++++---------
 tools/testing/selftests/rseq/rseq.c       |  55 ++++++-
 tools/testing/selftests/rseq/rseq.h       |   1 +
 9 files changed, 688 insertions(+), 129 deletions(-)
Signature · 1 line
2.11.0