Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 characters

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Pearson <james-p@...>
Cc: <linux-kernel@...>, <aarapov@...>, <hpa@...>, Mel Gorman <mel@...>
Date: Thursday, September 20, 2007 - 7:46 pm

On Wed, 19 Sep 2007 14:35:29 +0100
"James Pearson" <james-p@moving-picture.com> wrote:


patch needs to be carefully reviewed from the security POV (ie: permissions)
as well as for correctness.  Does anyone have time to do that?


Now I wonder what inspired you to reach for GFP_TEMPORARY?  Perhaps the
fact that it is crappily named and undocumented.

This should be GFP_KERNEL - the page you're allocating here is not
reclaimable by the VM.


Now that's a funky loop.  Someone please convince me that there is no way
in which `count - retval' can ever go negative (ie: huge positive).


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

Messages in current thread:
Re: [PATCH -mm] Don't truncate /proc/PID/environ at 4096 cha..., Andrew Morton, (Thu Sep 20, 7:46 pm)