On Wed, 2007-03-07 at 14:41 -0800, Andrew Morton wrote:Darn, must've fell off of lkml... or I missed it catching up my 4000+ email backlog. Ah, but now I finally see the initial problem. My patch is bug compatible and doesn't free the head page when that becomes unused. This should do on top: Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> --- Index: linux-2.6/fs/exec.c =================================================================== --- linux-2.6.orig/fs/exec.c 2007-03-07 23:51:31.000000000 +0100 +++ linux-2.6/fs/exec.c 2007-03-07 23:50:41.000000000 +0100 @@ -1011,6 +1011,11 @@ void remove_arg_zero(struct linux_binprm ; kunmap_atomic(kaddr, KM_USER0); + + if (offset == PAGE_SIZE) { + __free_page(page); + bprm->page[(bprm->p >> PAGE_SHIFT) - 1] = NULL; + } } while (offset == PAGE_SIZE); bprm->p++; -
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Andrew Morton | 2.6.25-mm1 |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| David Miller | [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
