Re: [BUG?] x86_64 : Can not read /dev/kmem ?

2005-03-22 Thread Andi Kleen
On Mon, Mar 14, 2005 at 11:37:19AM +0100, Eric Dumazet wrote: > > Hi Andi > > I tried to mmap /dev/kmem on x86_64 (linux-2.6.11) and got no success. > Here's a patch that fixes the problem to me. Fix mmap of /dev/kmem. It cannot ever have worked before. vmalloc is still not supported because

Re: [BUG?] x86_64 : Can not read /dev/kmem ?

2005-03-21 Thread Andi Kleen
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.

[BUG?] x86_64 : Can not read /dev/kmem ?

2005-03-14 Thread Eric Dumazet
Hi Andi I tried to read /dev/kmem on x86_64 (linux-2.6.11) and got no success. read() or pread() returns EINVAL I tried mmap() too : mmap() calls succeed, but as soon the user process dereference memory, we get : tinfo: Corrupted page table at address 2aabf800 PGD 8a983067 PUD c7e5a067 PMD 91