lkml.org 
[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [bigmem-patch] 4GB with Linux on IA32
On Mon, 16 Aug 1999, Alan Cox wrote:

>> a range of user pages that were in bigmem area? Also, debuggers
>> want to look at user memory, so they would also need to map the
>> pages. Are there any other cases where a driver might want to
>
>That is the tricky one. What occurs if I mmap a high memory page of
>another process via /proc/pid/mem ? then write it

IMO Kanoj was talking about another thing (ptrace).

About the /proc/pid/mem I noticed there are two kmap missing in mem_write
and mem_read (so to read and write from /proc/pid/mem).

The mmap over a /proc/pid/mem instead seems just fine. The only thing you
must care is when you write to the page _inside_ the kernel, if you touch
pages from userspace you'll be fine as usual. For userspace bigmem pages
are completly equal to regular pages and no kernel change is necessary in
such user-map places like mem_mmap in fs/proc/mem.c.

Andrea


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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