Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756347AbYGZQ7c (ORCPT ); Sat, 26 Jul 2008 12:59:32 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753161AbYGZQ7Z (ORCPT ); Sat, 26 Jul 2008 12:59:25 -0400 Received: from casper.infradead.org ([85.118.1.10]:52632 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751946AbYGZQ7Y (ORCPT ); Sat, 26 Jul 2008 12:59:24 -0400 Date: Sat, 26 Jul 2008 09:59:01 -0700 From: Arjan van de Ven To: "H. Peter Anvin" Cc: Harvey Harrison , Olaf Hering , Andrew Morton , Ingo Molnar , LKML Subject: Re: asm-x86/byteorder.h, CONFIG_X86_BSWAP leaks to userland Message-ID: <20080726095901.4a06daf9@infradead.org> In-Reply-To: <488B555F.4090709@zytor.com> References: <20080726013931.bcc4682d.akpm@linux-foundation.org> <1217090446.5971.57.camel@brick> <488B555F.4090709@zytor.com> Organization: Intel X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1085 Lines: 29 On Sat, 26 Jul 2008 12:48:31 -0400 "H. Peter Anvin" w > > I'm not sure if it's time yet to make the bswap ones be exported, > > as they would no longer be usable for those early machines. X86 > > guys CC:d. > > On i386 we still default to i386-compatible binaries; I *think* gcc > has macros telling you if the user has used -march=i486 etc. It is also not the kernels job to provide this sort of functionality to userspace programs. At all. This is gcc/glibc/etc's job. Rule of thumb: the kernel does not provide code for compiling inside userspace programs. (As opposed to providing datastructures that userspace programs can use to talk to the kernel). -- If you want to reach me at my work email, use arjan@linux.intel.com For development, discussion and tips for power savings, visit http://www.lesswatts.org -- 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/