All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Yoav Etsion <etsman@cs.huji.ac.il>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Tsafrir Dan <dants@cs.huji.ac.il>
Subject: [BUG] bug in mmap_kmem
Date: Tue, 19 Jun 2001 13:34:25 +0300 (IDT)	[thread overview]
Message-ID: <Pine.LNX.4.20_heb2.08.0106191305060.1005-100000@pomela2.cs.huji.ac.il> (raw)

Hi,

The problem is that mmaping a segment <addr,len> from /dev/kmem gives
differnet results than reading the same <addr,len>.

It seems that the bug is that mmap_kmem is a macro for mmap_mem (for
/dev/mem).
mmap_mem maps a _physical_ offset into a vm area vma, while mmap_kmem
should map a _virtual_ offset into a vm area. 

I hacked it to work by copying mmap_mem to mmap_kmem and adding __pa() in
the proper assginment, but I don't know how to check if the offset is
valid in the kernel virtual memory. Maybe someone who knows the mm code
better can fix this?

Thanks,

Yoav Etsion


             reply	other threads:[~2001-06-19 10:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-19 10:34 Yoav Etsion [this message]
2001-06-19 11:00 ` Scsi Dead2

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=Pine.LNX.4.20_heb2.08.0106191305060.1005-100000@pomela2.cs.huji.ac.il \
    --to=etsman@cs.huji.ac.il \
    --cc=dants@cs.huji.ac.il \
    --cc=linux-kernel@vger.kernel.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.