Re: 2.6.18-rc3-g3b445eea BUG: warning at /usr/src/linux-git/kernel/cpu.c:51/unlock_cpu_hotplug()



On Fri, Aug 04, 2006 at 12:24:57PM -0700, Linus Torvalds wrote:

On Fri, 4 Aug 2006, Michal Piotrowski wrote:
This was reported
http://www.ussg.iu.edu/hypermail/linux/kernel/0607.3/1867.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0608.0/0675.html

It's time to use git-bisect.

BUG: warning at /usr/src/linux-git/kernel/cpu.c:51/unlock_cpu_hotplug()

Ok, that really is a pretty scary thing. The warning happens if the lock
is released by somebody else than the person who took it. I don't _think_
that's supposed to happen, but with cpu hotplug locking being as
"creative" as it is, maybe it's valid.

I was planning on shutting the cpu hotplug warnings up for v2.6.18 - at
least the "lukewarm IQ" one for _taking_ the lock recursively. But I had
planned on leaving the unlock_cpu_hotplug() in place, since up until now
it hadn't triggered, and it really smells like a bug if it does.

[<c0132a04>] unlock_cpu_hotplug+0x2c/0x54
[<c013a2ec>] stop_machine_run+0x2e/0x34
[<c0135686>] sys_init_module+0x15a0/0x178a
[<c015b7b7>] do_sync_read+0xb6/0xf1
[<c0102d51>] sysenter_past_esp+0x56/0x79

DaveJ, any ideas?

Not really :-/
Whilst it's mentioned that the git-cpufreq.patch that was in -mm
made this happen, I really don't see anything in what you merged
yesterday that could explain any of this.

99% of the changes were to longhaul, so we can ignore those,
leaving just:

[CPUFREQ] return error when failing to set minfreq

Looks benign.

[CPUFREQ] Propagate acpi_processor_preregister_performance return value.

Shouldn't affect anything wrt hotplug

[CPUFREQ] [1/2] add __find_governor helper and clean up some error handling.
[CPUFREQ] [2/2] demand load governor modules.

Looks harmless to me, and those new functions don't show up
in any of those functions.

So I'm at a loss to explain why this made this bug suddenly appear, but
I don't think this is anything new. Fixing it however...
I'm looking at it, but I don't see anything obvious yet.

Dave

--
http://www.codemonkey.org.uk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: A critique of cgi.escape
    ... considered a bug. ... It isn't like there have never been backwards _in_compatible changes to ... unit tests which include specific tests for that behaviour, ... it doesn't need to be fixed *immediately* without warning; ...
    (comp.lang.python)
  • Re: Beta anti spyware
    ... The irony here is that I've installed the beta on three computers here. ... I've had only one 'bug' that wasn't the fault of the application. ... As I read in here, I don't post often, I find complaints and that's about ... The warning is clearly there in the ...
    (microsoft.public.security)
  • Warning: Possible Bug in BIOS DELL Latitude D400_A06 !
    ... Serious Warning - Possible Bug in BIOS update! ... that during both flashing operations no error or ... with DELL that the flashing operation had not been possible from XP. ...
    (Debian-User)
  • Re: huge gcc 4.1.{0,1} __weak problem
    ... We currently give a #warning for 4.1.0. ... The huge problem is that "empty __weak function in the same file and ... several new usages added during this merge window alone. ... least it was when I encountered a gcc bug with these symptoms last year ...
    (Linux-Kernel)
  • Re: [BUG] mtd redboot (also gcc 4.1 warning fix)
    ... warning, but not the bug. ... all your patch does is to hide a bug? ... He mentioned patches that fixed warnings but not the problem that they ...
    (Linux-Kernel)