From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751519AbbLUTce (ORCPT ); Mon, 21 Dec 2015 14:32:34 -0500 Received: from 17.mo3.mail-out.ovh.net ([87.98.178.58]:34754 "EHLO 17.mo3.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbbLUTcb (ORCPT ); Mon, 21 Dec 2015 14:32:31 -0500 X-Greylist: delayed 1114 seconds by postgrey-1.27 at vger.kernel.org; Mon, 21 Dec 2015 14:32:31 EST From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Jonathan Corbet , Jeff Dike , Richard Weinberger , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, Kees Cook , Andy Lutomirski , Will Drewry , Shuah Khan , Chris Metcalf , Michael Ellerman , Andrew Morton , James Hogan , Thomas Meyer , Nicolas Iooss , Anton Ivanov , linux-doc@vger.kernel.org, user-mode-linux-devel@lists.sourceforge.net, user-mode-linux-user@lists.sourceforge.net, linux-api@vger.kernel.org, Meredydd Luff , David Drysdale Subject: [PATCH v2 0/4] um: Add seccomp support Date: Mon, 21 Dec 2015 20:29:19 +0100 Message-Id: <1450726163-8399-1-git-send-email-mic@digikod.net> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 5988661606368717081 X-Ovh-Remote: 94.23.54.103 (ns3096276.ip-94-23-54.eu) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrgeefucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrgeefgdegudcutefuodetggdotffvucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series add seccomp support to User-mode Linux (i386 and x86_64 subarchitectures) and fix ptrace issues. This apply on v4.4-rc4 and pass all the 48 tests from selftest/seccomp plus the UML ptsc test. Changes since v1; addressed Richard Weinberger's comments: * fix a new PTRACE_SETREGS bug on x86_64 [1/4] * fix an old PTRACE_SETREGS bug when updating orig_ax on i386 [1/4] Regards, Mickaël Mickaël Salaün (4): um: Fix ptrace GETREGS/SETREGS bugs selftests/seccomp: Remove the need for HAVE_ARCH_TRACEHOOK um: Add full asm/syscall.h support um: Add seccomp support .../seccomp/seccomp-filter/arch-support.txt | 2 +- arch/um/Kconfig.common | 1 + arch/um/Kconfig.um | 16 +++ arch/um/include/asm/syscall-generic.h | 138 +++++++++++++++++++++ arch/um/include/asm/thread_info.h | 2 + arch/um/kernel/skas/syscall.c | 30 +++-- arch/um/os-Linux/skas/process.c | 7 -- arch/x86/um/asm/syscall.h | 1 + arch/x86/um/ptrace_32.c | 8 +- tools/testing/selftests/seccomp/seccomp_bpf.c | 27 +++- 10 files changed, 205 insertions(+), 27 deletions(-) create mode 100644 arch/um/include/asm/syscall-generic.h -- 2.6.4