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


Groups > linux.kernel > #1322685 > unrolled thread

[PATCH 3/3] x86/syscalls/64: Mark sys_iopl as using ptregs

Started byAndy Lutomirski <luto@kernel.org>
First post2016-01-31 18:40 +0100
Last post2016-02-01 09:10 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/3] x86/syscalls/64: Mark sys_iopl as using ptregs Andy Lutomirski <luto@kernel.org> - 2016-01-31 18:40 +0100
    [tip:x86/asm] x86/syscalls/64: Mark sys_iopl() as using ptregs tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-02-01 09:10 +0100

#1322685 — [PATCH 3/3] x86/syscalls/64: Mark sys_iopl as using ptregs

FromAndy Lutomirski <luto@kernel.org>
Date2016-01-31 18:40 +0100
Subject[PATCH 3/3] x86/syscalls/64: Mark sys_iopl as using ptregs
Message-ID<qX48F-6C6-3@gated-at.bofh.it>
sys_iopl both reads and writes pt_regs->flags.  Mark it as using ptregs.

This isn't strictly necessary, as pt_regs->flags is available even
in the fast path, but this is very lightweight now that we have
syscall qualifiers and it could avoid some pain down the road.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
---
 arch/x86/entry/syscalls/syscall_64.tbl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl
index dcf107ce2cd4..2e5b565adacc 100644
--- a/arch/x86/entry/syscalls/syscall_64.tbl
+++ b/arch/x86/entry/syscalls/syscall_64.tbl
@@ -178,7 +178,7 @@
 169	common	reboot			sys_reboot
 170	common	sethostname		sys_sethostname
 171	common	setdomainname		sys_setdomainname
-172	common	iopl			sys_iopl
+172	common	iopl			sys_iopl/ptregs
 173	common	ioperm			sys_ioperm
 174	64	create_module
 175	common	init_module		sys_init_module
-- 
2.5.0

[toc] | [next] | [standalone]


#1322872 — [tip:x86/asm] x86/syscalls/64: Mark sys_iopl() as using ptregs

Fromtip-bot for Andy Lutomirski <tipbot@zytor.com>
Date2016-02-01 09:10 +0100
Subject[tip:x86/asm] x86/syscalls/64: Mark sys_iopl() as using ptregs
Message-ID<qXhIC-8c0-17@gated-at.bofh.it>
In reply to#1322685
Commit-ID:  bb56968a37a44070de92d5690c4b08dd98a5d3f1
Gitweb:     http://git.kernel.org/tip/bb56968a37a44070de92d5690c4b08dd98a5d3f1
Author:     Andy Lutomirski <luto@kernel.org>
AuthorDate: Sun, 31 Jan 2016 09:33:28 -0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 1 Feb 2016 08:53:25 +0100

x86/syscalls/64: Mark sys_iopl() as using ptregs

sys_iopl() both reads and writes pt_regs->flags.  Mark it as using ptregs.

This isn't strictly necessary, as pt_regs->flags is available
even in the fast path, but this is very lightweight now that we
have syscall qualifiers and it could avoid some pain down the
road.

Reported-and-tested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
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: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/3de0ca692fa8bf414c5e3d7afe3e6195d1a10e1f.1454261517.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/entry/syscalls/syscall_64.tbl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/entry/syscalls/syscall_64.tbl b/arch/x86/entry/syscalls/syscall_64.tbl
index dcf107c..2e5b565 100644
--- a/arch/x86/entry/syscalls/syscall_64.tbl
+++ b/arch/x86/entry/syscalls/syscall_64.tbl
@@ -178,7 +178,7 @@
 169	common	reboot			sys_reboot
 170	common	sethostname		sys_sethostname
 171	common	setdomainname		sys_setdomainname
-172	common	iopl			sys_iopl
+172	common	iopl			sys_iopl/ptregs
 173	common	ioperm			sys_ioperm
 174	64	create_module
 175	common	init_module		sys_init_module

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web