Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754734Ab2BWBHz (ORCPT ); Wed, 22 Feb 2012 20:07:55 -0500 Received: from terminus.zytor.com ([198.137.202.10]:53460 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463Ab2BWBHw (ORCPT ); Wed, 22 Feb 2012 20:07:52 -0500 Message-ID: <4F459139.8010603@zytor.com> Date: Wed, 22 Feb 2012 17:07:05 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120209 Thunderbird/10.0.1 MIME-Version: 1.0 To: Andrew Lutomirski CC: Indan Zupancic , Will Drewry , Ben Hutchings , 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, eparis@redhat.com, serge.hallyn@canonical.com, djm@mindrot.org, scarybeasts@gmail.com, pmoore@redhat.com, akpm@linux-foundation.org, corbet@lwn.net, eric.dumazet@gmail.com, markus@chromium.org, keescook@chromium.org Subject: Re: [PATCH v10 05/11] seccomp: add system call filtering using BPF References: <1329845435-2313-1-git-send-email-wad@chromium.org> <1329845435-2313-5-git-send-email-wad@chromium.org> <38d58caa17befe422065efe5dc451a34.squirrel@webmail.greenhost.nl> <1329920626.3258.174.camel@deadeye> <60d94ae06f380ff088f6270c3a536ee9.squirrel@webmail.greenhost.nl> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 29 On 02/22/2012 03:51 PM, Andrew Lutomirski wrote: > On Wed, Feb 22, 2012 at 3:46 PM, Indan Zupancic wrote: >> On Wed, February 22, 2012 20:47, Will Drewry wrote: >>> On Wed, Feb 22, 2012 at 8:23 AM, Ben Hutchings >>>> I would have thought the way to make sure the architecture is always >>>> checked is to pack it together with the syscall number. >> >> I missed that suggestion, putting the syscall number and arch in one >> data field would indeed make it harder to not check the arch. > > Is there enough room? On x86-64 at least, rax could conceivably be > extended to 64 bits some day. Bit 30 is already spoken for by x32. > No it couldn't, because we mask off the high 32 bits and thus it could (theoretically) break user space. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- 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/