From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754843Ab2EFXsZ (ORCPT ); Sun, 6 May 2012 19:48:25 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36971 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754471Ab2EFXsY (ORCPT ); Sun, 6 May 2012 19:48:24 -0400 References: <20120506.163243.1653904376439925642.davem@davemloft.net> <20120506.194037.1148847080889462521.davem@davemloft.net> User-Agent: K-9 Mail for Android In-Reply-To: <20120506.194037.1148847080889462521.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] broken TASK_SIZE for ia32_aout From: "H. Peter Anvin" Date: Sun, 06 May 2012 16:48:00 -0700 To: David Miller CC: viro@ZenIV.linux.org.uk, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, ralf@linux-mips.org Message-ID: <8c91e0ff-dc31-4f94-8008-33d8c3d3c8ef@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Why not just make it illegal to make the system calls you don't care about then, to prevent any security issue? David Miller wrote: >From: "H. Peter Anvin" >Date: Sun, 06 May 2012 13:51:30 -0700 > >> No. The input layer exports pointers in structures on the >> read/write paths, and bitmasks encoded in ASCII strings which depend >> on sizeof(long). The stupid... it burns... > >So there has to be a hack in every userland application wherein we >teach it no only about this issue, but add special code to teach it >how to make 64-bit system call traps. > >FOR EVERY CPU TYPE? > >I'd rather wait for a newer less broken input API to be added, rather >than go through the pain of having to support 64-bit system calls in >32-bit apps. > >Nobody on sparc has noticed this yet, and I doubt anyone is going to >care meanwhile. -- Sent from my mobile phone. Please excuse brevity and lack of formatting.