* [GIT PULL] kselftest fixes update for Linux-4.19-rc7
@ 2018-10-03 14:42 ` Shuah Khan
0 siblings, 0 replies; 6+ messages in thread
From: shuah @ 2018-10-03 14:42 UTC (permalink / raw)
Hi Greg,
Please pull the following kselftest for 4.19-rc7.
linux-kselftest-4.19-rc7
This fixes update for 4.19-rc7 consists one fix to rseq test to prevent
it from seg-faulting when compiled with -fpie.
diff is attached.
thanks,
-- Shuah
----------------------------------------------------------------
The following changes since commit 7876320f88802b22d4e2daf7eb027dd14175a0f8:
Linux 4.19-rc4 (2018-09-16 11:52:37 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-4.19-rc7
for you to fetch changes up to ce01a1575f45bf319e374592656441021a7f5823:
rseq/selftests: fix parametrized test with -fpie (2018-09-27 12:59:19 -0600)
----------------------------------------------------------------
linux-kselftest-4.19-rc7
This fixes update for 4.19-rc7 consists one fix to rseq test to prevent
it from seg-faulting when compiled with -fpie.
----------------------------------------------------------------
Mathieu Desnoyers (1):
rseq/selftests: fix parametrized test with -fpie
tools/testing/selftests/rseq/param_test.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-kselftest-4.19-rc7.diff
Type: text/x-patch
Size: 1450 bytes
Desc: not available
URL: <http://lists.linaro.org/pipermail/linux-kselftest-mirror/attachments/20181003/4ce5e752/attachment.bin>
^ permalink raw reply [flat|nested] 6+ messages in thread* [GIT PULL] kselftest fixes update for Linux-4.19-rc7 @ 2018-10-03 14:42 ` Shuah Khan 0 siblings, 0 replies; 6+ messages in thread From: Shuah Khan @ 2018-10-03 14:42 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Linus Torvalds, linux-kselftest, linux-kernel, mathieu.desnoyers, Shuah Khan [-- Attachment #1: Type: text/plain, Size: 1269 bytes --] Hi Greg, Please pull the following kselftest for 4.19-rc7. linux-kselftest-4.19-rc7 This fixes update for 4.19-rc7 consists one fix to rseq test to prevent it from seg-faulting when compiled with -fpie. diff is attached. thanks, -- Shuah ---------------------------------------------------------------- The following changes since commit 7876320f88802b22d4e2daf7eb027dd14175a0f8: Linux 4.19-rc4 (2018-09-16 11:52:37 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-4.19-rc7 for you to fetch changes up to ce01a1575f45bf319e374592656441021a7f5823: rseq/selftests: fix parametrized test with -fpie (2018-09-27 12:59:19 -0600) ---------------------------------------------------------------- linux-kselftest-4.19-rc7 This fixes update for 4.19-rc7 consists one fix to rseq test to prevent it from seg-faulting when compiled with -fpie. ---------------------------------------------------------------- Mathieu Desnoyers (1): rseq/selftests: fix parametrized test with -fpie tools/testing/selftests/rseq/param_test.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) ---------------------------------------------------------------- [-- Attachment #2: linux-kselftest-4.19-rc7.diff --] [-- Type: text/x-patch, Size: 1450 bytes --] diff --git a/tools/testing/selftests/rseq/param_test.c b/tools/testing/selftests/rseq/param_test.c index 642d4e12abea..eec2663261f2 100644 --- a/tools/testing/selftests/rseq/param_test.c +++ b/tools/testing/selftests/rseq/param_test.c @@ -56,15 +56,13 @@ unsigned int yield_mod_cnt, nr_abort; printf(fmt, ## __VA_ARGS__); \ } while (0) -#if defined(__x86_64__) || defined(__i386__) +#ifdef __i386__ #define INJECT_ASM_REG "eax" #define RSEQ_INJECT_CLOBBER \ , INJECT_ASM_REG -#ifdef __i386__ - #define RSEQ_INJECT_ASM(n) \ "mov asm_loop_cnt_" #n ", %%" INJECT_ASM_REG "\n\t" \ "test %%" INJECT_ASM_REG ",%%" INJECT_ASM_REG "\n\t" \ @@ -76,9 +74,16 @@ unsigned int yield_mod_cnt, nr_abort; #elif defined(__x86_64__) +#define INJECT_ASM_REG_P "rax" +#define INJECT_ASM_REG "eax" + +#define RSEQ_INJECT_CLOBBER \ + , INJECT_ASM_REG_P \ + , INJECT_ASM_REG + #define RSEQ_INJECT_ASM(n) \ - "lea asm_loop_cnt_" #n "(%%rip), %%" INJECT_ASM_REG "\n\t" \ - "mov (%%" INJECT_ASM_REG "), %%" INJECT_ASM_REG "\n\t" \ + "lea asm_loop_cnt_" #n "(%%rip), %%" INJECT_ASM_REG_P "\n\t" \ + "mov (%%" INJECT_ASM_REG_P "), %%" INJECT_ASM_REG "\n\t" \ "test %%" INJECT_ASM_REG ",%%" INJECT_ASM_REG "\n\t" \ "jz 333f\n\t" \ "222:\n\t" \ @@ -86,10 +91,6 @@ unsigned int yield_mod_cnt, nr_abort; "jnz 222b\n\t" \ "333:\n\t" -#else -#error "Unsupported architecture" -#endif - #elif defined(__s390__) #define RSEQ_INJECT_INPUT \ ^ permalink raw reply related [flat|nested] 6+ messages in thread
* [GIT PULL] kselftest fixes update for Linux-4.19-rc7 @ 2018-10-03 14:42 ` Shuah Khan 0 siblings, 0 replies; 6+ messages in thread From: Shuah Khan @ 2018-10-03 14:42 UTC (permalink / raw) Hi Greg, Please pull the following kselftest for 4.19-rc7. linux-kselftest-4.19-rc7 This fixes update for 4.19-rc7 consists one fix to rseq test to prevent it from seg-faulting when compiled with -fpie. diff is attached. thanks, -- Shuah ---------------------------------------------------------------- The following changes since commit 7876320f88802b22d4e2daf7eb027dd14175a0f8: Linux 4.19-rc4 (2018-09-16 11:52:37 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-4.19-rc7 for you to fetch changes up to ce01a1575f45bf319e374592656441021a7f5823: rseq/selftests: fix parametrized test with -fpie (2018-09-27 12:59:19 -0600) ---------------------------------------------------------------- linux-kselftest-4.19-rc7 This fixes update for 4.19-rc7 consists one fix to rseq test to prevent it from seg-faulting when compiled with -fpie. ---------------------------------------------------------------- Mathieu Desnoyers (1): rseq/selftests: fix parametrized test with -fpie tools/testing/selftests/rseq/param_test.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) ---------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: linux-kselftest-4.19-rc7.diff Type: text/x-patch Size: 1450 bytes Desc: not available URL: <http://lists.linaro.org/pipermail/linux-kselftest-mirror/attachments/20181003/4ce5e752/attachment.bin> ^ permalink raw reply [flat|nested] 6+ messages in thread
* [GIT PULL] kselftest fixes update for Linux-4.19-rc7 @ 2018-10-03 18:07 ` Greg Kroah-Hartman 0 siblings, 0 replies; 6+ messages in thread From: gregkh @ 2018-10-03 18:07 UTC (permalink / raw) On Wed, Oct 03, 2018 at 08:42:13AM -0600, Shuah Khan wrote: > Hi Greg, > > Please pull the following kselftest for 4.19-rc7. > > linux-kselftest-4.19-rc7 > > This fixes update for 4.19-rc7 consists one fix to rseq test to prevent > it from seg-faulting when compiled with -fpie. Now merged, thanks. greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [GIT PULL] kselftest fixes update for Linux-4.19-rc7 @ 2018-10-03 18:07 ` Greg Kroah-Hartman 0 siblings, 0 replies; 6+ messages in thread From: Greg Kroah-Hartman @ 2018-10-03 18:07 UTC (permalink / raw) To: Shuah Khan Cc: Linus Torvalds, linux-kselftest, linux-kernel, mathieu.desnoyers On Wed, Oct 03, 2018 at 08:42:13AM -0600, Shuah Khan wrote: > Hi Greg, > > Please pull the following kselftest for 4.19-rc7. > > linux-kselftest-4.19-rc7 > > This fixes update for 4.19-rc7 consists one fix to rseq test to prevent > it from seg-faulting when compiled with -fpie. Now merged, thanks. greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
* [GIT PULL] kselftest fixes update for Linux-4.19-rc7 @ 2018-10-03 18:07 ` Greg Kroah-Hartman 0 siblings, 0 replies; 6+ messages in thread From: Greg Kroah-Hartman @ 2018-10-03 18:07 UTC (permalink / raw) On Wed, Oct 03, 2018@08:42:13AM -0600, Shuah Khan wrote: > Hi Greg, > > Please pull the following kselftest for 4.19-rc7. > > linux-kselftest-4.19-rc7 > > This fixes update for 4.19-rc7 consists one fix to rseq test to prevent > it from seg-faulting when compiled with -fpie. Now merged, thanks. greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-10-03 18:07 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-10-03 14:42 [GIT PULL] kselftest fixes update for Linux-4.19-rc7 shuah 2018-10-03 14:42 ` Shuah Khan 2018-10-03 14:42 ` Shuah Khan 2018-10-03 18:07 ` gregkh 2018-10-03 18:07 ` Greg Kroah-Hartman 2018-10-03 18:07 ` Greg Kroah-Hartman
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.