Re: *sigh* /proc/*/pagemap

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <torvalds@...>, <akpm@...>, <mpm@...>, <linux-kernel@...>
Date: Saturday, July 5, 2008 - 3:44 am

On 7/5/08, Andrew Morton <akpm@linux-foundation.org> wrote:


Below.


pagemap_read() contains two calls to ptrace_may_attach(),
second one looks unneeded.


kmalloc() in pagemap_read(). kmalloc(0)  and integer wraparound look possible.


Ha-ha!



No, can't have static here, two threads doing pagemap_read() will overwrite
each other's .mm and "out" at least. Like "pm" it shouldn't be global.

It doesn't oops here for unknown reasons, though.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
*sigh* /proc/*/pagemap, Alexey Dobriyan, (Fri Jul 4, 9:07 pm)
Re: *sigh* /proc/*/pagemap, Andrew Morton, (Fri Jul 4, 9:53 pm)
Re: *sigh* /proc/*/pagemap, Linus Torvalds, (Sat Jul 5, 1:40 pm)
Re: *sigh* /proc/*/pagemap, Matt Mackall, (Mon Jul 7, 2:23 pm)
Re: *sigh* /proc/*/pagemap, Linus Torvalds, (Mon Jul 7, 2:34 pm)
Re: *sigh* /proc/*/pagemap, Matt Mackall, (Mon Jul 7, 2:51 pm)
Re: *sigh* /proc/*/pagemap, Alexey Dobriyan, (Sat Jul 5, 3:44 am)
Re: *sigh* /proc/*/pagemap, Andrew Morton, (Sat Jul 5, 4:02 am)