All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Adrian Bunk <bunk@kernel.org>
Cc: Christoph Hellwig <hch@infradead.org>,
	Mike Frysinger <vapier@gentoo.org>,
	tglx@linutronix.de, mingo@redhat.com,
	Andi Kleen <andi@firstfloor.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: asm-x86/byteorder.h: clean up for userspace
Date: Tue, 01 Jan 2008 18:22:24 -0800	[thread overview]
Message-ID: <477AF560.1000002@zytor.com> (raw)
In-Reply-To: <20080102013126.GN27566@does.not.exist>

Adrian Bunk wrote:
> 
> Userspace either has to #define CONFIG_X86_BSWAP or it'll get the slow 
> versions of these functions...
> 
> Leaking CONFIG_ variables to userspace is not really funny - I remember 
> e.g. what tricks MySQL does (did?) for (ab)using asm-i386/atomic.h in 
> userspace.
> 

True.  CONFIG_X86_BSWAP isn't appropriate for userspace anyway, 
userspace needs to use the appropriate gcc intrinsics for 486+.

	-hpa

      reply	other threads:[~2008-01-02  2:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-31 18:12 asm-x86/byteorder.h: clean up for userspace Mike Frysinger
2008-01-01 15:22 ` Ingo Molnar
2008-01-01 17:47 ` Christoph Hellwig
2008-01-01 18:17   ` Mike Frysinger
2008-01-01 21:19   ` H. Peter Anvin
2008-01-02  1:31     ` Adrian Bunk
2008-01-02  2:22       ` H. Peter Anvin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=477AF560.1000002@zytor.com \
    --to=hpa@zytor.com \
    --cc=andi@firstfloor.org \
    --cc=bunk@kernel.org \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.