lkml.org 
[lkml]   [2005]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Date
From
SubjectRe: [BUG?] x86_64 : Can not read /dev/kmem ?
Sorry for the late answer.

On Mon, Mar 14, 2005 at 11:37:19AM +0100, Eric Dumazet wrote:
>
> Hi Andi
>
> I tried to read /dev/kmem on x86_64 (linux-2.6.11) and got no success.
>
> read() or pread() returns EINVAL

Yes. I fixed this once for 2.4, but somehow the changes never made
it into 2.6. The VFS code doesn't like negative offsets, and the kernel
addresses are negative.

>
> I tried mmap() too : mmap() calls succeed, but as soon the user process
> dereference memory, we get :

Hmm, looks like a bug yes. I can reproduce it. Thanks for the report.
Will investigate later.

-Andi


-
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/

\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.109 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site