mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Reuben Farrelly <reuben-lkml@reub.net>
Cc: linux-kernel@vger.kernel.org, davej@redhat.com,
	Ingo Molnar <mingo@elte.hu>
Subject: Re: 2.6.16-rc1-mm1
Date: Wed, 18 Jan 2006 03:27:16 -0800	[thread overview]
Message-ID: <20060118032716.7f0d9b6a.akpm@osdl.org> (raw)
In-Reply-To: <43CE2210.60509@reub.net>

Reuben Farrelly <reuben-lkml@reub.net> wrote:
>
> My box came up first time lucky on this release, but I got a new oops:
> 
>  NET: Registered protocol family 1
>  NET: Registered protocol family 17
>  BUG: swapper/1, active lock [b19e6428(b19e6400-b19e6600)] freed!
>    [<b01040d1>] show_trace+0xd/0xf
>    [<b0104172>] dump_stack+0x17/0x19
>    [<b0131c6d>] mutex_debug_check_no_locks_freed+0xff/0x18e
>    [<b01544b3>] kfree+0x34/0x6a
>    [<b02a6109>] cpufreq_add_dev+0x127/0x379
>    [<b023abcb>] sysdev_driver_register+0x70/0xb0
>    [<b02a67df>] cpufreq_register_driver+0x68/0xfe
>    [<b03cc19d>] acpi_cpufreq_init+0xd/0xf
>    [<b01003cc>] init+0xff/0x325
>    [<b0100d25>] kernel_thread_helper+0x5/0xb
>    [b19e6428] {cpufreq_add_dev}
>  .. held by:           swapper:    1 [efe14ab0, 115]
>  ... acquired at:               cpufreq_add_dev+0x9d/0x379
>  p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available

Well yes, that code is kfree()ing a locked mutex.  It's somewhat weird to
take a lock on a still-private object but whatever.  The code's legal
enough.


--- devel/drivers/cpufreq/cpufreq.c~cpufreq-mutex-locking-fix	2006-01-18 03:25:33.000000000 -0800
+++ devel-akpm/drivers/cpufreq/cpufreq.c	2006-01-18 03:25:55.000000000 -0800
@@ -674,6 +674,7 @@ err_out_driver_exit:
 		cpufreq_driver->exit(policy);
 
 err_out:
+	mutex_unlock(&policy->lock);
 	kfree(policy);
 
 nomem_out:
_


  reply	other threads:[~2006-01-18 11:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-18  8:50 2.6.16-rc1-mm1 Andrew Morton
2006-01-18 10:45 ` [PATCH] mempolicy.c compile fix Dominik Karall
2006-01-18 10:55 ` 2.6.16-rc1-mm1 Dominik Karall
2006-01-18 13:19   ` snd_pcm_format_name() problems [Re: 2.6.16-rc1-mm1] Jiri Slaby
2006-01-18 11:10 ` 2.6.16-rc1-mm1 Reuben Farrelly
2006-01-18 11:27   ` Andrew Morton [this message]
2006-01-18 19:09     ` 2.6.16-rc1-mm1 Dave Jones
2006-01-18 21:40       ` 2.6.16-rc1-mm1 Andrew Morton
2006-01-18 21:56         ` 2.6.16-rc1-mm1 Dave Jones
2006-01-18 23:13       ` 2.6.16-rc1-mm1 Alan Cox
2006-01-18 23:37         ` 2.6.16-rc1-mm1 Dave Jones
2006-01-19  7:16         ` 2.6.16-rc1-mm1 Arjan van de Ven
2006-01-18 11:53 ` [PATCH] migrate_page_add mangled brackets during merge Andy Whitcroft
2006-01-18 12:00 ` 2.6.16-rc1-mm1 Grant Coady
2006-01-18 12:41 ` 2.6.16-rc1-mm1 Reuben Farrelly
2006-01-18 22:29 ` Wireless issues (was 2.6.16-rc1-mm1 Valdis.Kletnieks
2006-01-18 22:56   ` Andrew Morton
2006-01-19  7:33     ` Valdis.Kletnieks
2006-01-19  9:33       ` Wireless issues (was Re: 2.6.16-rc1-mm1) Dominik Brodowski
2006-01-19  1:05 ` [-mm patch] make pcmcia_release_{io,irq} static Adrian Bunk
2006-01-19 11:14   ` Dominik Brodowski
2006-01-19  3:11 ` 2.6.16-rc1-mm1: ia64 compile error Adrian Bunk
2006-01-19  3:27   ` Greg KH
2006-01-19  3:31   ` Mark Maule

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=20060118032716.7f0d9b6a.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=davej@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=reuben-lkml@reub.net \
    /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

all inboxes | Powered by JetHome®