From: Andrew Morton <akpm@linux-foundation.org>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-kernel@vger.kernel.org, Andi Kleen <ak@suse.de>
Subject: Re: 2.6.21-rc7-mm2 hangs in boot (netconsole)
Date: Mon, 30 Apr 2007 18:08:21 -0700 [thread overview]
Message-ID: <20070430180821.eb269fe3.akpm@linux-foundation.org> (raw)
In-Reply-To: <46368DC3.5070503@oracle.com>
On Mon, 30 Apr 2007 17:45:55 -0700 Randy Dunlap <randy.dunlap@oracle.com> wrote:
> Andrew Morton wrote:
> > On Mon, 30 Apr 2007 16:51:01 -0700
> > Randy Dunlap <randy.dunlap@oracle.com> wrote:
> >
> >> On Mon, 30 Apr 2007 08:16:53 -0700 Randy Dunlap wrote:
> >>
> >>> On Sun, 29 Apr 2007 22:23:54 -0700 Andrew Morton wrote:
> >>>
> >>>> On Sun, 29 Apr 2007 22:01:32 -0700 Randy Dunlap <randy.dunlap@oracle.com> wrote:
> >>>>
> >>>>> On Wed, 25 Apr 2007 22:57:16 -0700 Andrew Morton wrote:
> >>>>>
> >>>>>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.21-rc7/2.6.21-rc7-mm2/
> >>>>> I'm getting a hang near the end of booting on x86_64 UP.
> >>>>> The last initcall_debug function varies. E.g.:
> >>>>>
> >>>>> 1/
> >>>>> [ 0.140257] Calling initcall 0xffffffff806f2fa8: init_misc_binfmt+0x0/0x3f()
> >>>>> [ 0.140266] initcall 0xffffffff806f2fa8: init_misc_binfmt+0x0/0x3f() returned 0.
> >>>>> [ 0.140275] initcall 0xffffffff806f2fa8 ran for 0 msecs: init_misc_binfmt+0x0/0x3f()
> >>>>> [ 0.140284] Calling initcall 0xffffffff806f2fe7: init_script_binfmt+0x0/0x12()
> >>>>> [ 0.140293] initcall 0xffffffff806f2fe7: init_script_binfmt+0x0/0x12() returned 0.
> >>>>> [ 0.140302] initcall 0xffffffff806f2fe7 ran for 0 msecs: init_script_binfmt+0x0/0x12()
> >>>>> [ 0.140310] Calling initcall 0xffffffff806f2ff9: init_elf_binfmt+0x0/0x12()
> >>>>> [ 0.140317] initcall 0xffffffff806f2ff9: init_elf_binfmt+0x0/0x12() returned 0.
> >>>>> [ 0.140326] initcall 0xffffffff806f2ff9 ran for 0 msecs: init_elf_binfmt+0x0/0x12()
> >>>>> [ 0.140335] Calling initcall 0xffffffff806f3de9: debugfs_init+0x0/0x4a()
> >>>>> [ 0.140344] initcall 0xffffffff806f3de9: debugfs_init+0x0/0x4a() returned 0.
> >>>>> [ 0.140351] initcall 0xffffffff806f3de9 ran for 0 msecs: debugfs_init+0x0/0x4a()
> >>>>>
> >>>>> 2/
> >>>>> [ 0.140206] Calling initcall 0xffffffff806efeb1: ksysfs_init+0x0/0x29()
> >>>>> [ 0.140215] initcall 0xffffffff806efeb1: ksysfs_init+0x0/0x29() returned 0.
> >>>>> [ 0.140222] initcall 0xffffffff806efeb1 ran for 0 msecs: ksysfs_init+0x0/0x29()
> >>>>> [ 0.140230] Calling initcall 0xffffffff806f25be: filelock_init+0x0/0x31()
> >>>>> [ 0.140242] initcall 0xffffffff806f25be: filelock_init+0x0/0x31() returned 0.
> >>>>> [ 0.140249] initcall 0xffffffff806f25be ran for 0 msecs: filelock_init+0x0/0x31()
> >>>>> [ 0.140258] Calling initcall 0xffffffff806f2fa8: init_misc_binfmt+0x0/0x3f()
> >>>>> [ 0.140266] initcall 0xffffffff806f2fa8: init_misc_binfmt+0x0/0x3f() returned 0.
> >>>>> [ 0.140276] initcall 0xffffffff806f2fa8 ran for 0 msecs: init_misc_binfmt+0x0/0x3f()
> >>>>> [ 0.140284] Calling initcall 0xffffffff806f2fe7: init_script_binfmt+0x0/0x12()
> >>>>> [ 0.140293] initcall 0xffffffff806f2fe7: init_script_binfmt+0x0/0x12() returned 0.
> >>>>>
> >>>> So perhaps it locks during a timer interrupt.
> >>>>
> >>>>> .config is attached.
> >>>>>
> >>>>> Any ideas/suggestions?
> >>>> Just the usual: nothing from sysrq or NMI watchdog?
> >>> Nothing from either of those. I'll jiggle some config options.
> >> config option changes didn't help, but removing
> >> netconsole=<params>
> >> from the kernel command line makes it all happy. :(
> >
> > argh.
> >
> >> Do we know of netconsole hang problems? (anyone?)
> >
> > You have "time" as well? I found on i386 uniproc that time+netconsole
> > caused hangs because the printk timestamping code was taking
> > xtime_lock for reading inside a write_seqlock. But I though that Andi
> > fixed that. Perhaps i386 got fixed but x86_64 did not.
>
> Yes, I have CONFIG_PRINTK_TIME=y and disabling it allows it to boot. Thanks.
>
> Maybe the patch isn't merged yet?
Could be. I don't recall whether Andi's statement was before or after
2.6.21-rc7-mm2 actually.
> Now if I can just remember this until the next time that I hit it...
Andi: unprocessor x86_64 running rc7-mm2 is hanging early in boot at
randomish times (presumably in the timer irq handler) when netconsole and
printk-time are enabled.
I was hitting the same thing on i386 uniprocessor, but I thought it got
fixed.
The problem was that the printable string which is newly passed to
mark_tsc_unstable() is printed out inside write_seqlock(xtime_lock) but
printk timestamping (and perhaps netconsole tx?) want to take xtime_lock
for reading, which will hang.
next prev parent reply other threads:[~2007-05-01 1:08 UTC|newest]
Thread overview: 116+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-26 5:57 2.6.21-rc7-mm2 Andrew Morton
2007-04-26 11:47 ` 2.6.21-rc7-mm2 Gabriel C
2007-04-26 20:37 ` 2.6.21-rc7-mm2 Andrew Morton
2007-04-26 20:46 ` 2.6.21-rc7-mm2 Randy Dunlap
2007-04-29 8:05 ` 2.6.21-rc7-mm2 Geert Uytterhoeven
2007-04-26 20:57 ` 2.6.21-rc7-mm2 Timur Tabi
2007-04-26 21:13 ` 2.6.21-rc7-mm2 Gabriel C
2007-04-26 21:33 ` 2.6.21-rc7-mm2 Andrew Morton
2007-04-26 12:16 ` 2.6.21-rc7-mm2 -- x86_64 VDSO compile error Andy Whitcroft
2007-04-26 13:27 ` Mel Gorman
2007-04-26 14:11 ` Andi Kleen
2007-04-26 14:31 ` Mel Gorman
2007-04-26 14:13 ` 2.6.21-rc7-mm2 -- x86_64 VDSO compile error II Andi Kleen
2007-04-26 14:39 ` Mel Gorman
2007-04-26 15:20 ` Mel Gorman
2007-04-26 15:24 ` Andi Kleen
2007-04-26 15:45 ` Mel Gorman
2007-04-27 0:39 ` Andi Kleen
2007-04-27 8:59 ` Mel Gorman
2007-04-27 15:50 ` [PATCH] Add vDSO for x86-64 with gettimeofday/clock_gettime/getcpu fix Mel Gorman
2007-04-27 16:34 ` Andi Kleen
2007-04-27 16:49 ` Mel Gorman
2007-04-26 12:30 ` 2.6.21-rc7-mm2 -- x86_64 blade hard hangs Andy Whitcroft
2007-04-26 13:51 ` Andi Kleen
2007-04-26 13:33 ` Mel Gorman
2007-04-26 14:46 ` Mel Gorman
2007-04-26 17:40 ` Mel Gorman
[not found] ` <20070426234002.GH5475@linux-os.sc.intel.com>
[not found] ` <20070427110709.GE3645@skynet.ie>
2007-04-27 17:54 ` Siddha, Suresh B
2007-04-27 23:59 ` Mel Gorman
2007-04-26 13:17 ` 2.6.21-rc7-mm2 Andy Whitcroft
2007-04-26 13:41 ` 2.6.21-rc7-mm2 -- PPC link failure Andy Whitcroft
2007-04-26 18:14 ` Andy Whitcroft
2007-04-26 18:27 ` Christoph Lameter
2007-04-26 18:40 ` Andy Whitcroft
2007-04-26 18:49 ` Christoph Lameter
2007-04-26 19:12 ` Christoph Lameter
2007-04-26 19:48 ` Andy Whitcroft
2007-04-26 20:23 ` Christoph Lameter
2007-04-27 16:55 ` Andy Whitcroft
2007-04-27 16:58 ` Christoph Lameter
2007-04-26 18:25 ` [PATCH] mm/memory.c: remove warning from an uninitialized spinlock. was: Re: 2.6.21-rc7-mm2 Borislav Petkov
2007-04-28 0:22 ` Andrew Morton
2007-04-28 0:27 ` Jeremy Fitzhardinge
2007-04-28 5:57 ` Borislav Petkov
2007-04-28 6:25 ` Borislav Petkov
2007-04-28 6:54 ` Andrew Morton
2007-04-28 7:03 ` Jeremy Fitzhardinge
2007-04-28 23:48 ` Andy Whitcroft
2007-04-29 3:25 ` Andrew Morton
2007-04-29 6:50 ` Borislav Petkov
2007-04-29 8:19 ` Andrew Morton
2007-04-29 9:24 ` Andrew Morton
2007-04-29 21:36 ` Dave Jones
2007-04-29 21:45 ` Andrew Morton
2007-11-07 19:20 ` Steven Rostedt
2007-11-08 5:15 ` Borislav Petkov
2007-04-26 23:47 ` [-mm patch] make drivers/hwmon/applesmc.c:backlight_work static Adrian Bunk
2007-04-26 23:47 ` [-mm patch] unexport highlevel_host_reset Adrian Bunk
2007-04-27 0:16 ` Stefan Richter
2007-04-27 2:31 ` 2.6.21-rc7-mm2 breaks 'lvm vgscan' Valdis.Kletnieks
2007-04-27 2:55 ` Andrew Morton
2007-05-05 18:04 ` Valdis.Kletnieks
2007-04-28 17:56 ` 2.6.21-rc7-mm2 crash: Eeek! page_mapcount(page) went negative! (-1) Tilman Schmidt
2007-04-28 21:10 ` Andrew Morton
2007-04-28 22:06 ` Hugh Dickins
2007-04-30 17:17 ` Tilman Schmidt
2007-04-30 18:21 ` Andrew Morton
2007-04-30 19:28 ` Tilman Schmidt
2007-04-30 19:46 ` Andrew Morton
2007-04-30 21:32 ` Tilman Schmidt
2007-05-01 11:26 ` Tilman Schmidt
2007-05-02 3:10 ` Greg KH
2007-05-02 7:01 ` Tilman Schmidt
2007-05-02 7:02 ` Greg KH
2007-05-02 7:10 ` Andrew Morton
2007-05-02 7:28 ` Greg KH
2007-05-02 7:43 ` Greg KH
2007-05-02 9:41 ` Tilman Schmidt
2007-05-02 22:06 ` Greg KH
2007-05-02 12:14 ` Kay Sievers
2007-05-02 7:52 ` Greg KH
2007-05-02 17:36 ` Tilman Schmidt
2007-05-02 20:07 ` Andrew Morton
2007-05-02 21:22 ` Tilman Schmidt
2007-05-02 7:10 ` Nick Piggin
2007-04-28 19:19 ` [-mm patch] make drivers/misc/thinkpad_acpi:fan_mutex static Adrian Bunk
2007-04-28 19:58 ` Henrique de Moraes Holschuh
2007-04-29 1:53 ` Len Brown
2007-04-29 2:50 ` Adrian Bunk
2007-04-29 4:09 ` Henrique de Moraes Holschuh
2007-04-28 19:19 ` [-mm patch] MMC: make tifm_sd_set_dma_data() static Adrian Bunk
2007-05-01 14:14 ` Pierre Ossman
2007-04-28 19:20 ` [-mm patch] drivers/rtc/rtc-dev.c should #include "rtc-core.h" Adrian Bunk
2007-04-28 19:20 ` [-mm patch] scsi/lpfc/lpfc_init.c: remove unused variable Adrian Bunk
2007-04-29 19:19 ` 2.6.21-rc7-mm2 Dan Kruchinin
2007-04-29 19:48 ` 2.6.21-rc7-mm2 Andrew Morton
2007-04-30 5:01 ` 2.6.21-rc7-mm2 hangs in boot Randy Dunlap
2007-04-30 5:23 ` Andrew Morton
2007-04-30 15:16 ` Randy Dunlap
2007-04-30 23:51 ` 2.6.21-rc7-mm2 hangs in boot (netconsole) Randy Dunlap
2007-05-01 0:12 ` Andrew Morton
2007-05-01 0:45 ` Randy Dunlap
2007-05-01 1:08 ` Andrew Morton [this message]
2007-05-01 3:43 ` Andi Kleen
2007-05-01 5:16 ` Randy Dunlap
2007-05-01 5:23 ` Andrew Morton
2007-05-01 6:24 ` Andi Kleen
2007-05-01 5:38 ` Andrew Morton
2007-05-01 16:15 ` Randy Dunlap
2007-05-01 6:22 ` Andi Kleen
2007-05-01 16:22 ` Randy Dunlap
2007-05-01 17:26 ` Randy Dunlap
2007-05-04 11:38 ` [PATCH] Re: 2.6.21-rc7-mm2 -- hvsi console driver registration failure Andy Whitcroft
2007-05-04 19:04 ` Linas Vepstas
2007-05-04 20:09 ` Andrew Morton
2007-05-04 21:21 ` Christoph Lameter
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=20070430180821.eb269fe3.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
/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