From: Andrew Morton <akpm@osdl.org>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-arch@vger.kernel.org, Adrian Bunk <bunk@stusta.de>
Subject: Re: Double free of initramfs
Date: Mon, 21 Mar 2005 18:21:46 -0800 [thread overview]
Message-ID: <20050321182146.32a20ebf.akpm@osdl.org> (raw)
In-Reply-To: <20050316184932.GB16712@linux-mips.org>
Ralf Baechle <ralf@linux-mips.org> wrote:
>
> In all linker scripts we currently have something like this:
>
> __init_begin = .;
> ...
> . = ALIGN(4096);
> __initramfs_start = .;
> .init.ramfs : { *(.init.ramfs) }
> __initramfs_end = .;
> ...
> __init_end = .;
>
> It seems all 25 linker scripts in the current bk tree are suffering from
> this. Which mean with CONFIG_BLK_DEV_INITRD enabled first free_initrd_mem
> may be called to free the initram disk and just a little later
> free_initmem will try to free the entire range again, so either the
> linker scripts would need fixing or free_initrd_mem has become obsolete.
>
Hard call. I'd be 51% inclined to change the linker scripts so that the
freeing of the initram disk happens explicitly, rather than having it
magically hidden inside the main initmem segment.
Any objections from anyone?
(cc'ed Adrian, who might be interested in raising a patch ;))
next prev parent reply other threads:[~2005-03-22 2:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 18:49 Double free of initramfs Ralf Baechle
2005-03-22 2:21 ` Andrew Morton [this message]
2005-03-22 22:10 ` Adrian Bunk
2005-03-22 22:41 ` Ralf Baechle
2005-03-22 22:57 ` Sam Ravnborg
2005-03-22 23:24 ` Sam Ravnborg
-- strict thread matches above, loose matches on Subject: below --
2005-03-22 23:07 Luck, Tony
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=20050321182146.32a20ebf.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=bunk@stusta.de \
--cc=linux-arch@vger.kernel.org \
--cc=ralf@linux-mips.org \
/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