Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1331544 > unrolled thread

[PATCH 0/3] x86: Test and fix a minor compat entry regression

Started byAndy Lutomirski <luto@kernel.org>
First post2016-02-10 23:20 +0100
Last post2016-02-17 13:20 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/3] x86: Test and fix a minor compat entry regression Andy Lutomirski <luto@kernel.org> - 2016-02-10 23:20 +0100
    [PATCH 1/3] selftests/x86: Fix some error messages in ptrace_syscall Andy Lutomirski <luto@kernel.org> - 2016-02-10 23:20 +0100
      [tip:x86/asm] selftests/x86:   Fix some error messages in ptrace_syscall tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-02-17 13:20 +0100

#1331544 — [PATCH 0/3] x86: Test and fix a minor compat entry regression

FromAndy Lutomirski <luto@kernel.org>
Date2016-02-10 23:20 +0100
Subject[PATCH 0/3] x86: Test and fix a minor compat entry regression
Message-ID<r0Lh7-8gU-7@gated-at.bofh.it>
I broke certain cases of compat syscall restart under ptrace.  Here's
a test and a fix.

Andy Lutomirski (3):
  selftests/x86: Fix some error messages in ptrace_syscall
  selftests/x86: Add a test for syscall restart under ptrace
  x86/entry/compat: Keep TS_COMPAT set during signal delivery

 arch/x86/entry/common.c                      |  23 +++--
 tools/testing/selftests/x86/ptrace_syscall.c | 132 ++++++++++++++++++++++++++-
 2 files changed, 142 insertions(+), 13 deletions(-)

-- 
2.5.0

[toc] | [next] | [standalone]


#1331545 — [PATCH 1/3] selftests/x86: Fix some error messages in ptrace_syscall

FromAndy Lutomirski <luto@kernel.org>
Date2016-02-10 23:20 +0100
Subject[PATCH 1/3] selftests/x86: Fix some error messages in ptrace_syscall
Message-ID<r0Lh9-8gU-49@gated-at.bofh.it>
In reply to#1331544
I had some obvious typos.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 tools/testing/selftests/x86/ptrace_syscall.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/x86/ptrace_syscall.c b/tools/testing/selftests/x86/ptrace_syscall.c
index 5105b49cd8aa..c6a0acc0a632 100644
--- a/tools/testing/selftests/x86/ptrace_syscall.c
+++ b/tools/testing/selftests/x86/ptrace_syscall.c
@@ -187,7 +187,7 @@ static void test_ptrace_syscall_restart(void)
 
 	printf("[RUN]\tSYSEMU\n");
 	if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-		err(1, "PTRACE_SYSCALL");
+		err(1, "PTRACE_SYSEMU");
 	wait_trap(chld);
 
 	if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
@@ -218,7 +218,7 @@ static void test_ptrace_syscall_restart(void)
 		err(1, "PTRACE_SETREGS");
 
 	if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-		err(1, "PTRACE_SYSCALL");
+		err(1, "PTRACE_SYSEMU");
 	wait_trap(chld);
 
 	if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
@@ -250,7 +250,7 @@ static void test_ptrace_syscall_restart(void)
 		err(1, "PTRACE_SETREGS");
 
 	if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-		err(1, "PTRACE_SYSCALL");
+		err(1, "PTRACE_SYSEMU");
 	wait_trap(chld);
 
 	if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
-- 
2.5.0

[toc] | [prev] | [next] | [standalone]


#1336332 — [tip:x86/asm] selftests/x86: Fix some error messages in ptrace_syscall

Fromtip-bot for Andy Lutomirski <tipbot@zytor.com>
Date2016-02-17 13:20 +0100
Subject[tip:x86/asm] selftests/x86: Fix some error messages in ptrace_syscall
Message-ID<r39fm-6j5-35@gated-at.bofh.it>
In reply to#1331545
Commit-ID:  adcfd23ead69965e3ac3e69f56451dab5e39157a
Gitweb:     http://git.kernel.org/tip/adcfd23ead69965e3ac3e69f56451dab5e39157a
Author:     Andy Lutomirski <luto@kernel.org>
AuthorDate: Wed, 10 Feb 2016 14:15:25 -0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Wed, 17 Feb 2016 09:51:06 +0100

selftests/x86: Fix some error messages in ptrace_syscall

I had some obvious typos.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert O'Callahan <robert@ocallahan.org>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/e5e6772d4802986cf7df702e646fa24ac14f2204.1455142412.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 tools/testing/selftests/x86/ptrace_syscall.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/testing/selftests/x86/ptrace_syscall.c b/tools/testing/selftests/x86/ptrace_syscall.c
index 5105b49..c6a0acc 100644
--- a/tools/testing/selftests/x86/ptrace_syscall.c
+++ b/tools/testing/selftests/x86/ptrace_syscall.c
@@ -187,7 +187,7 @@ static void test_ptrace_syscall_restart(void)
 
 	printf("[RUN]\tSYSEMU\n");
 	if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-		err(1, "PTRACE_SYSCALL");
+		err(1, "PTRACE_SYSEMU");
 	wait_trap(chld);
 
 	if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
@@ -218,7 +218,7 @@ static void test_ptrace_syscall_restart(void)
 		err(1, "PTRACE_SETREGS");
 
 	if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-		err(1, "PTRACE_SYSCALL");
+		err(1, "PTRACE_SYSEMU");
 	wait_trap(chld);
 
 	if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
@@ -250,7 +250,7 @@ static void test_ptrace_syscall_restart(void)
 		err(1, "PTRACE_SETREGS");
 
 	if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
-		err(1, "PTRACE_SYSCALL");
+		err(1, "PTRACE_SYSEMU");
 	wait_trap(chld);
 
 	if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web