From: Wolfgang Wander <wwc@rentec.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Wolfgang Wander <wwc@rentec.com>,
kenneth.w.chen@intel.com, mingo@elte.hu, arjanv@redhat.com,
linux-mm@kvack.org
Subject: Re: [PATCH] Avoiding mmap fragmentation (against 2.6.12-rc4) to
Date: Wed, 11 May 2005 21:33:40 -0400 [thread overview]
Message-ID: <17026.45684.442592.17147@gargle.gargle.HOWL> (raw)
In-Reply-To: <20050511175901.15fa7b95.akpm@osdl.org>
Andrew Morton writes:
> Wolfgang Wander <wwc@rentec.com> wrote:
> >
> > diff -rpu linux-2.6.12-rc4-vanilla/fs/binfmt_elf.c linux-2.6.12-rc4-wwc/fs/binfmt_elf.c
> > --- linux-2.6.12-rc4-vanilla/fs/binfmt_elf.c 2005-05-10 18:28:59.958415676 -0400
> > +++ linux-2.6.12-rc4-wwc/fs/binfmt_elf.c 2005-05-10 16:34:23.696894470 -0400
> > @@ -775,6 +775,7 @@ static int load_elf_binary(struct linux_
> > change some of these later */
> > set_mm_counter(current->mm, rss, 0);
> > current->mm->free_area_cache = current->mm->mmap_base;
> > + current->mm->cached_hole_size = current->mm->cached_hole_size;
>
> eh?
Outch! Good catch. Thanks Andrew!
Ken, when you post your revised version can you replace this line
with
+ current->mm->cached_hole_size = ~0UL;
Same problem in binfmt_aout.c!
Since we set free_area_cache to mmap_base the bug is hardly able to
cause any real harm but it looks more than silly.
Wolfgang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
next prev parent reply other threads:[~2005-05-12 1:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-09 13:30 Fw: [Bug 4520] New: /proc/*/maps fragments too quickly compared to Wolfgang Wander
2005-05-09 21:26 ` Andrew Morton
2005-05-09 21:30 ` Arjan van de Ven
2005-05-10 13:23 ` Wolfgang Wander
2005-05-10 15:35 ` Chen, Kenneth W
2005-05-10 18:58 ` Andrew Morton
2005-05-10 19:07 ` Arjan van de Ven
2005-05-10 19:34 ` Chen, Kenneth W
2005-05-10 19:43 ` Andrew Morton
2005-05-10 19:50 ` Wolfgang Wander
2005-05-10 19:57 ` Andrew Morton
2005-05-11 14:36 ` [PATCH] Avoiding mmap fragmentation (against 2.6.12-rc4) to Wolfgang Wander
2005-05-11 15:05 ` Chen, Kenneth W
2005-05-12 0:59 ` Andrew Morton
2005-05-12 1:33 ` Wolfgang Wander [this message]
2005-05-12 7:07 ` Ingo Molnar
2005-05-12 7:14 ` Ingo Molnar
2005-05-10 19:58 ` Fw: [Bug 4520] New: /proc/*/maps fragments too quickly compared to Ingo Molnar
2005-05-10 20:04 ` Wolfgang Wander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17026.45684.442592.17147@gargle.gargle.HOWL \
--to=wwc@rentec.com \
--cc=akpm@osdl.org \
--cc=arjanv@redhat.com \
--cc=kenneth.w.chen@intel.com \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox