| To: | "Patrik, Kluba" <pkluba@dension.com> |
|---|---|
| Subject: | Re: bug: keep_bootcon and early printk together can lead to (invisible) kernel panic |
| From: | Aaro Koskinen <aaro.koskinen@iki.fi> |
| Date: | Thu, 21 Feb 2013 17:46:12 +0200 |
| Cc: | linux-mips@linux-mips.org, linux-kernel@vger.kernel.org |
| In-reply-to: | <20130221153717.31400a88.pkluba@dension.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <20130221153717.31400a88.pkluba@dension.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Thu, Feb 21, 2013 at 03:37:17PM +0100, Patrik, Kluba wrote:
> I had a silent lockup on one of our embedded system under development.
> It was not easy to track it down, so here's what I discovered, in case
> somebody runs into similar trouble.
> Using 'keep_bootcon' command line parameter, and enabling early printk
> can lead to a kernel panic. At least on MIPS, it does. The problem is
> that in arch/mips/kernel/early_printk.c everything is declared as
> __init and __initdata, so they are being freed, when the kernel
> frees .init.* sections. If 'keep_bootcon' is given, the early console
> does not get unregistered, and the entry in the console_drivers list
> can point (will, believe me) to garbage data. It's up to you to imagine
> the effects...
I also ran into this recently, this should fix it:
http://marc.info/?l=linux-kernel&m=136062078931024&w=2
A.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [PATCH v5] MIPS: Add option to disable software I/O coherency., Steven Hill |
|---|---|
| Next by Date: | Re: [GIT PULL] x86/mm changes for v3.9-rc1, Linus Torvalds |
| Previous by Thread: | [GIT PULL] x86/mm changes for v3.9-rc1, H. Peter Anvin |
| Next by Thread: | [PATCH] MIPS: Fix logic errors in bitops.c, David Daney |
| Indexes: | [Date] [Thread] [Top] [All Lists] |