From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753979AbbL2UyX (ORCPT ); Tue, 29 Dec 2015 15:54:23 -0500 Received: from mo3.mail-out.ovh.net ([178.32.228.3]:45108 "EHLO mo3.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753729AbbL2UyU (ORCPT ); Tue, 29 Dec 2015 15:54:20 -0500 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?= , 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 , user-mode-linux-devel@lists.sourceforge.net, Meredydd Luff , David Drysdale Subject: [PATCH v3 0/4] um: Add seccomp support Date: Tue, 29 Dec 2015 21:35:43 +0100 Message-Id: <1451421347-9468-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: 17199809927079110937 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: gggruggvucftvghtrhhoucdtuddrfeekiedrheekucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekiedrheekgddufeeiucetufdoteggodftvfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd 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-rc7 and pass all the 48 tests from selftest/seccomp plus the UML ptsc test. Changes since v2: * remove get_syscall() from os.h and don't include it in syscall.c [1/4] * rebase to v4.4-rc7 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/include/shared/os.h | 1 - arch/um/kernel/skas/syscall.c | 31 +++-- 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 +++- 11 files changed, 205 insertions(+), 29 deletions(-) create mode 100644 arch/um/include/asm/syscall-generic.h -- 2.6.4