Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755863Ab2BPVdw (ORCPT ); Thu, 16 Feb 2012 16:33:52 -0500 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:46407 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752728Ab2BPVdt convert rfc822-to-8bit (ORCPT ); Thu, 16 Feb 2012 16:33:49 -0500 MIME-Version: 1.0 In-Reply-To: <4F3D7500.2070604@zytor.com> References: <1329422549-16407-1-git-send-email-wad@chromium.org> <1329422549-16407-5-git-send-email-wad@chromium.org> <4F3D7500.2070604@zytor.com> Date: Thu, 16 Feb 2012 15:33:47 -0600 Message-ID: Subject: Re: [PATCH v8 5/8] seccomp: Add SECCOMP_RET_TRAP From: Will Drewry To: "H. Peter Anvin" Cc: Markus Gutschke , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, kernel-hardening@lists.openwall.com, netdev@vger.kernel.org, x86@kernel.org, arnd@arndb.de, davem@davemloft.net, mingo@redhat.com, oleg@redhat.com, peterz@infradead.org, rdunlap@xenotime.net, mcgrathr@chromium.org, tglx@linutronix.de, luto@mit.edu, eparis@redhat.com, serge.hallyn@canonical.com, djm@mindrot.org, scarybeasts@gmail.com, indan@nul.nu, pmoore@redhat.com, akpm@linux-foundation.org, corbet@lwn.net, eric.dumazet@gmail.com, keescook@chromium.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1217 Lines: 24 On Thu, Feb 16, 2012 at 3:28 PM, H. Peter Anvin wrote: > On 02/16/2012 12:42 PM, Will Drewry wrote: >> On Thu, Feb 16, 2012 at 2:24 PM, Markus Gutschke wrote: >>> SIGTRAP might not be the ideal choice of signal number, as it can make it >>> very difficult to debug the program in gdb. >> >> True enough. ?In theory, we could use the lower 16-bits of the return >> value to let the bpf program set a signal, but not all signals are >> masked synchronous and those that are probably get gdb's attention, >> just not a severely :) (ILL, SEGV, BUS, TRAP, FPE). Perhaps SIGILL is >> a logically appropriate option -- or letting the api user decide from >> the SYNCHRONOUS_MASK set. ?I'm open to whatever makes sense, though. >> (I wasn't even sure if it was kosher to add a new TRAP_SECCOMP value.) >> > > There is a standard signal for this -- SIGSYS -- which happens to be > currently unused in Linux. Awesome. I'll respin using that. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/