mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@redhat.com>
To: ppetru@ppetru.net (Petru Paler)
Cc: Jakub Jelinek <jakub@redhat.com>,
	Dawson Engler <engler@csl.Stanford.EDU>,
	linux-kernel@vger.kernel.org
Subject: Re: [CHECKER] amusing copy_from_user bug
Date: Tue, 10 Apr 2001 11:07:06 -0700 (PDT)	[thread overview]
Message-ID: <15059.19402.886297.342293@pizda.ninka.net> (raw)
In-Reply-To: <20010410135947.I3497@ppetru.net>
In-Reply-To: <200104101011.DAA29579@csl.Stanford.EDU> <20010410064128.C1169@devserv.devel.redhat.com> <20010410135947.I3497@ppetru.net>


Petru Paler writes:
 > On Tue, Apr 10, 2001 at 06:41:28AM -0400, Jakub Jelinek wrote:
 > > some architectures don't care at all, because verify_area is a noop
 > > (sparc64).
 > 
 > Why (and how) is this?

On sparc64, the user lives in an entirely different address space.
The user cannot even generate addresses in kernel space.  Basically,
addresses are prefix'd by an 8-bit tag called an ASI (Address Space
Identifier), which tells the cpu which TLB context to use etc.
When running in user space or accessing user space in kernel mode
we make the cpu use the special userspace ASI.

In fact the user can be given the complete 32-bit or 64-bit virtual
address space, the kernel takes up none of it.

Later,
David S. Miller
davem@redhat.com

  parent reply	other threads:[~2001-04-10 18:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-10 10:11 Dawson Engler
2001-04-10 10:41 ` Jakub Jelinek
2001-04-10 10:59   ` Petru Paler
2001-04-10 18:07   ` David S. Miller [this message]
2001-04-10 12:20 ` Andi Kleen

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=15059.19402.886297.342293@pizda.ninka.net \
    --to=davem@redhat.com \
    --cc=engler@csl.Stanford.EDU \
    --cc=jakub@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ppetru@ppetru.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®