[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2879.1175345985@redhat.com>
Date: Sat, 31 Mar 2007 13:59:45 +0100
From: David Howells <dhowells@...hat.com>
To: Hugh Dickins <hugh@...itas.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Brian Pomerantz <bapper@...atehaven.org>,
viro@...iv.linux.org.uk, linux-kernel@...r.kernel.org,
Nick Piggin <nickpiggin@...oo.com.au>
Subject: Re: [PATCH] fix page leak during core dump
Hugh Dickins <hugh@...itas.com> wrote:
> No, I think that's wrong: whereas the binfmt_elf one did its
> page_cache_release down below at the bottom of the block, this
> version does it in each subblock,
All but the first, which is why there's not a common one post if-complex.
> so there you're removing the dump_seek success one. Can't we preserve that
> beauteous macro here and just do...
> ...
> - DUMP_SEEK(file->f_pos + PAGE_SIZE);
> page_cache_release(page);
> + DUMP_SEEK(file->f_pos + PAGE_SIZE);
Actually, that works just as well, I think. I like it better than my
suggestion (see email in response to Andrew).
David
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists