On Fri, 2008-03-14 at 01:35 +0100, Tilman Schmidt wrote:Tim, thanks for the excellent debugging info. It's making this much easier. I actually booted your vmlinux in a kvm image and I got the same error. However, it is in a *completely* bogus place. Certainly before initcalls get run and before the lock you saw the BUG_ON() for got initialized. I'm going to go try and find a gcc-4.2 and compile on that. Andrew, I don't think this is an actual bug in the r/o bind mount code, but a random, way early call to populate_rootfs(), somehow. I'll keep looking into it, though. Notice in the dmesg that this all happens even before the first initcall is made? It isn't the SMP alternates freeing, at least. I booted this on SMP, too, with the same results. [ 0.074025] Intel machine check architecture supported. [ 0.075013] Intel machine check reporting enabled on CPU#0. [ 0.076010] Compat vDSO mapped to ffffe000. [ 0.078030] Checking 'hlt' instruction... OK. [ 0.083987] SMP alternatives: switching to UP code [ 0.084023] Freeing SMP alternatives: 9k freed [ 0.086006] BUG: spinlock bad magic on CPU#0, swapper/0 [ 0.087002] lock: c1754380, .magic: 00000000, .owner: swapper/0, .owner_cpu: 0 [ 0.088003] Pid: 0, comm: swapper Not tainted 2.6.25-rc5-mm1-testing #2 [ 0.089001] [<c01f728c>] spin_bug+0x7c/0x87 [ 0.091002] [<c01f72b0>] _raw_spin_unlock+0x19/0x71 [ 0.093001] [<c0301922>] _spin_unlock+0x1d/0x3c [ 0.095001] [<c01981aa>] mnt_want_write+0x62/0x88 [ 0.097000] [<c018c382>] sys_mkdirat+0x86/0xd6 [ 0.098695] [<c04260ab>] ? clean_path+0x16/0x4a [ 0.100000] [<c017fd6f>] ? kfree+0xd8/0xec [ 0.101999] [<c018c3e2>] sys_mkdir+0x10/0x12 [ 0.103999] [<c0426353>] do_name+0x112/0x1b3 [ 0.104999] [<c042558b>] write_buffer+0x1d/0x2c [ 0.106999] [<c04255fe>] flush_window+0x64/0xb3 [ 0.108998] [<c04272f5>] unpack_to_rootfs+0x62c/0x8b9 [ 0.111000] [<c0127d76>] ? printk+0x15/0x17 [ 0.112671] [<c0118982>] ? free_init_pages+0x82/0x8d [ 0.113998] [<c04275a2>] populate_rootfs+0x20/0x109 [ 0.115997] [<c0429ed2>] ? alternative_instructions+0x153/0x158 [ 0.117997] [<c04248f5>] start_kernel+0x343/0x355 [ 0.119997] [<c0424019>] i386_start_kernel+0x8/0xa [ 0.121996] ======================= [ 0.124073] Unpacking initramfs... done [ 0.732294] Freeing initrd memory: 8767k freed [ 0.732921] ACPI: Core revision 20070126 [ 0.734193] ACPI: Checking initramfs for custom DSDT [ 0.736621] Parsing all Control Methods: [ 0.737060] Table [DSDT](id 0001) - 170 Objects with 14 Devices 75 Methods 5 Regions [ 0.737904] tbxface-0598 [00] tb_load_namespace : ACPI Tables successfully acquired [ 0.740962] evxfevnt-0091 [00] enable : Transition to ACPI mode successful [ 0.744478] CPU0: Intel QEMU Virtual CPU version 0.9.1 stepping 03 [ 0.750695] Total of 1 processors activated (5393.60 BogoMIPS). [ 0.755342] ENABLING IO-APIC IRQs [ 0.757878] ..TIMER: vector=0x31 apic1=0 pin1=0 apic2=-1 pin2=-1 [ 0.768883] Brought up 1 CPUs [ 0.788092] CPU0 attaching sched-domain: [ 0.788887] domain 0: span 01 [ 0.790183] groups: 01 [ 0.791974] PM: Adding info for No Bus:platform [ 0.793050] khelper used greatest stack depth: 3236 bytes left [ 0.796000] calling init_cpufreq_transition_notifier_list+0x0/0x18() [ 0.797889] initcall init_cpufreq_transition_notifier_list+0x0/0x18() returned 0 after 0 msecs [ 0.800889] calling net_ns_init+0x0/0xdc() [ 0.801884] net_namespace: 620 bytes [ 0.803889] initcall net_ns_init+0x0/0xdc() returned 0 after 1 msecs [ 0.805896] calling cpufreq_tsc+0x0/0x11() -- Dave --
| Ryan Hope | reiser4 for 2.6.27-rc1 |
| Ingo Molnar | Re: 2.6.24-rc6-mm1 |
| Tejun Heo | [PATCHSET] CUSE: implement CUSE |
| Peter Zijlstra | Re: 2.6.24-rc8-mm1 (BUG: sched_rt) |
git: | |
| Shawn O. Pearce | Re: [PATCH/POLL] git-format-patch: the default suffix is now .patch, not .txt |
| Jakub Narebski | Re: What's cooking in git.git (topics) |
| Junio C Hamano | Maintaining "needswork" section of "What's (not) cooking" |
| Matthias Lederhofer | [PATCH] prune-packed: new option --min-age=N |
| Theo de Raadt | That whole "Linux stealing our code" thing |
| Karthik Kumar | Re: Real men don't attack straw men |
| Khalid Schofield | Configuring sendmail openbsd 4.2 |
| Ray Percival | Re: Real men don't attack straw men |
| RW | Re: forcefsck on booting stage |
| Vladimir Terziev | Video memory as swap under FreeBSD |
| Ivan Voras | Progress for 7.0 - the "what's cooking" page |
| Pietro Cerutti | Re: [patch] enhance powerd(8) to handle max temperature |
