Skip to contentSkip to conversation

Restartable Sequences selftests fixes

RFC PATCH New Mathieu Desnoyers 1 participant 3 messages Jun 16, 2018

Subsystems (3)
lore
Share & tools
lore

Mathieu Desnoyers

author maintainer
#0 lore raw

cover Restartable Sequences selftests fixes

Those are trivial restartable sequences selftest fixes for 4.18.

The executable flag of run_param_test.sh got lost in the merge of the rseq patchset.

On ARM, align the struct rseq_cs definition in the inline asm to match the alignment of that structure in the uapi headers.

Thanks,

Mathieu

Mathieu Desnoyers (2):
rseq/selftests: run_param_test.sh should be executable rseq/selftests: arm: align struct rseq_cs on 32 bytes

 tools/testing/selftests/rseq/rseq-arm.h        | 1 +
 tools/testing/selftests/rseq/run_param_test.sh | 0
 2 files changed, 1 insertion(+)
 mode change 100644 => 100755 tools/testing/selftests/rseq/run_param_test.sh
Signature · 1 line
2.11.0
author maintainer
#1 lore raw

RFC PATCH 1/2 rseq/selftests: run_param_test.sh should be executable

The executable bit of the run_param_test.sh script got lost in the merge.

Cc Thomas Gleixner <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dave Watson <[email protected]>
Cc Will Deacon <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Andi Kleen <[email protected]>
Cc "H . Peter Anvin" <[email protected]>
Cc Chris Lameter <[email protected]>
Cc Russell King <[email protected]>
Cc Andrew Hunter <[email protected]>
Cc Michael Kerrisk <[email protected]>
Cc "Paul E . McKenney" <[email protected]>
Cc Paul Turner <[email protected]>
Cc Boqun Feng <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Maurer <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
---
 tools/testing/selftests/rseq/run_param_test.sh | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 tools/testing/selftests/rseq/run_param_test.sh
tools/testing/selftests/rseq/run_param_test.sh +0 -0
old mode 100644
new mode 100755
Signature · 1 line
2.11.0
author maintainer
#2 lore raw

RFC PATCH 2/2 rseq/selftests: arm: align struct rseq_cs on 32 bytes

In reply to Mathieu Desnoyers

uapi/linux/rseq.h aligns struct rseq_cs on 32 bytes. Satisfy this alignment requirement in its definition within the rseq-arm.h inline assembly.

Cc Thomas Gleixner <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Dave Watson <[email protected]>
Cc Will Deacon <[email protected]>
Cc Shuah Khan <[email protected]>
Cc Andi Kleen <[email protected]>
Cc "H . Peter Anvin" <[email protected]>
Cc Chris Lameter <[email protected]>
Cc Russell King <[email protected]>
Cc Andrew Hunter <[email protected]>
Cc Michael Kerrisk <[email protected]>
Cc "Paul E . McKenney" <[email protected]>
Cc Paul Turner <[email protected]>
Cc Boqun Feng <[email protected]>
Cc Josh Triplett <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Ben Maurer <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Linus Torvalds <[email protected]>
---
 tools/testing/selftests/rseq/rseq-arm.h | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/rseq/rseq-arm.h +1 -0
index 3b055f9aeaab..3cea19877227 100644
@@ -57,6 +57,7 @@ do {									\
 #define __RSEQ_ASM_DEFINE_ABORT(table_label, label, teardown,		\
 				abort_label, version, flags,		\
 				start_ip, post_commit_offset, abort_ip)	\
+		".balign 32\n\t"					\
 		__rseq_str(table_label) ":\n\t"				\
 		".word " __rseq_str(version) ", " __rseq_str(flags) "\n\t" \
 		".word " __rseq_str(start_ip) ", 0x0, " __rseq_str(post_commit_offset) ", 0x0, " __rseq_str(abort_ip) ", 0x0\n\t" \
Signature · 1 line
2.11.0