From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: Oleg Nesterov <oleg@redhat.com>
Cc: kosaki.motohiro@jp.fujitsu.com, Ingo Molnar <mingo@elte.hu>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Dmitry Adamushko <dmitry.adamushko@gmail.com>,
Max Krasnyansky <maxk@qualcomm.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Kernel Testers List <kernel-testers@vger.kernel.org>
Subject: Re: [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16
Date: Tue, 11 Nov 2008 11:10:33 +0900 (JST) [thread overview]
Message-ID: <20081111105706.6174.KOSAKI.MOTOHIRO@jp.fujitsu.com> (raw)
In-Reply-To: <20081110132208.GB10294@redhat.com>
> On 11/10, Ingo Molnar wrote:
> >
> > * Rafael J. Wysocki <rjw@sisk.pl> wrote:
> >
> > > This message has been generated automatically as a part of a report
> > > of regressions introduced between 2.6.26 and 2.6.27.
> > >
> > > The following bug entry is on the current list of known regressions
> > > introduced between 2.6.26 and 2.6.27. Please verify if it still should
> > > be listed and let me know (either way).
> > >
> > > Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=11380
> > > Subject : lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16
> > > Submitter : Ingo Molnar <mingo@elte.hu>
> > > Date : 2008-08-20 6:44 (82 days old)
> > > References : http://marc.info/?l=linux-kernel&m=121921480931970&w=4
> >
> > had a quick look again: i believe this one still triggers, and it's
> > caused by some interaction between input code and workqueue code. I
> > think it started triggering when Oleg's workqueue annotation patches
> > went upstream:
> >
> > 6af8bf3: workqueues: add comments to __create_workqueue_key()
> > 8448502: workqueues: do CPU_UP_CANCELED if CPU_UP_PREPARE fails
> > 8de6d30: workqueues: schedule_on_each_cpu() can use schedule_work_on()
> > ef1ca23: workqueues: queue_work() can use queue_work_on()
> > a67da70: workqueues: lockdep annotations for flush_work()
> > 3da1c84: workqueues: make get_online_cpus() useable for work->func()
> > 8616a89: workqueues: schedule_on_each_cpu: use flush_work()
> > db70089: workqueues: implement flush_work()
> > 1a4d9b0: workqueues: insert_work: use "list_head *" instead of "int tail"
>
> "make get_online_cpus() useable for work->func()" changed the locking.
> destroy_workqueue() was changed to take cpu_maps_update_begin() instead
> of get_online_cpus(). Other patches can't make any difference afaics.
>
> Currently I don't understand why lockdep complains, will try to do
> more grepping later.
I check original report.
Is this really cpu hotplug related warnings?
it seem simple ABBA lock, right?
-> #4 (&dev->mutex){--..}:
[<c0160f87>] validate_chain+0x831/0xaa2
[<c0161872>] __lock_acquire+0x67a/0x6e0
[<c0161933>] lock_acquire+0x5b/0x81
[<c0a660e4>] mutex_lock_interruptible_nested+0xde/0x2f8
[<c0782d02>] input_register_handle+0x26/0x7a dev->mutex
[<c04a62c9>] kbd_connect+0x64/0x8d
[<c0782842>] input_attach_handler+0x38/0x6b
[<c0784216>] input_register_handler+0x74/0xc3 input_mutex
[<c0f54e4b>] kbd_init+0x66/0x91
[<c0f54f7b>] vty_init+0xce/0xd7
[<c0f54952>] tty_init+0x193/0x197
[<c010112a>] do_one_initcall+0x42/0x133
[<c0f2d5cb>] kernel_init+0x16e/0x1d5
[<c0117c03>] kernel_thread_helper+0x7/0x10
[<ffffffff>] 0xffffffff
-> #3 (input_mutex){--..}:
[<c0160f87>] validate_chain+0x831/0xaa2
[<c0161872>] __lock_acquire+0x67a/0x6e0
[<c0161933>] lock_acquire+0x5b/0x81
[<c0a660e4>] mutex_lock_interruptible_nested+0xde/0x2f8
[<c0783fbe>] input_register_device+0xff/0x17f input_mutex
[<c048a889>] acpi_button_add+0x31e/0x429
[<c04889f4>] acpi_device_probe+0x43/0xde
[<c052c67f>] driver_probe_device+0xa5/0x120
[<c052c73c>] __driver_attach+0x42/0x64 dev->sem
[<c052be91>] bus_for_each_dev+0x43/0x65
[<c052c507>] driver_attach+0x19/0x1b
[<c052c251>] bus_add_driver+0x9e/0x1a1
[<c052c8de>] driver_register+0x76/0xd2
[<c0488dc3>] acpi_bus_register_driver+0x3f/0x41
[<c0f51bf2>] acpi_button_init+0x32/0x51
[<c010112a>] do_one_initcall+0x42/0x133
[<c0f2d201>] do_async_initcalls+0x1a/0x2a
[<c0150eec>] run_workqueue+0xc3/0x193
[<c015195d>] worker_thread+0xbb/0xc7
[<c0153e2a>] kthread+0x40/0x66
[<c0117c03>] kernel_thread_helper+0x7/0x10
[<ffffffff>] 0xffffffff
next prev parent reply other threads:[~2008-11-11 2:10 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-09 19:40 2.6.28-rc3-git6: Reported regressions 2.6.26 -> 2.6.27 Rafael J. Wysocki
2008-11-09 19:40 ` [Bug #11207] VolanoMark regression with 2.6.27-rc1 Rafael J. Wysocki
[not found] ` <1226343293.5498.5.camel@marge.simson.net>
[not found] ` <1226366822.2866.19.camel@ymzhang>
[not found] ` <1226394669.30025.72.camel@minggr.sh.intel.com>
[not found] ` <1226395210.7685.1324.camel@twins>
[not found] ` <1226395937.7685.1340.camel@twins>
[not found] ` <1226397807.30025.79.camel@minggr.sh.intel.com>
2008-11-11 10:52 ` [PATCH] sched: release buddies on yield Peter Zijlstra
2008-11-11 10:57 ` Ingo Molnar
2008-11-09 19:43 ` [Bug #11215] INFO: possible recursive locking detected ps2_command Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11209] 2.6.27-rc1 process time accounting Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11340] LTP overnight run resulted in unusable box Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11264] Invalid op opcode in kernel/workqueue Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11308] tbench regression on each kernel release from 2.6.22 -> 2.6.28 Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11404] BUG: in 2.6.23-rc3-git7 in do_cciss_intr Rafael J. Wysocki
2008-11-09 22:24 ` Randy Dunlap
2008-11-09 19:43 ` [Bug #11407] suspend: unable to handle kernel paging request Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-11-10 7:30 ` Ingo Molnar
2008-11-10 13:22 ` Oleg Nesterov
2008-11-11 2:10 ` KOSAKI Motohiro [this message]
2008-11-11 12:01 ` Oleg Nesterov
2008-11-11 11:07 ` Ingo Molnar
2008-11-11 13:47 ` Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11476] failure to associate after resume from suspend to ram Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11505] oltp ~10% regression with 2.6.27-rc5 on stoakley machine Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11543] kernel panic: softlockup in tick_periodic() ??? Rafael J. Wysocki
2008-11-10 16:18 ` Cyrill Gorcunov
2008-11-09 19:43 ` [Bug #11608] 2.6.27-rc6 BUG: unable to handle kernel paging request Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11664] acpi errors and random freeze on sony vaio sr Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11569] Panic stop CPUs regression Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11795] ks959-sir dongle no longer works under 2.6.27 (REGRESSION) Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11805] mounting XFS produces a segfault Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11820] 2.6.27: 0 MHz CPU and wrong system time on AMD Geode system Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11698] 2.6.27-rc7, freezes with > 1 s2ram cycle Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11829] Kernel 2.6.26.5 -> 2.6.27.2 [USB REGRESSION] (USB -> D_STATE) Rafael J. Wysocki
2008-11-11 7:13 ` Greg KH
2008-11-11 13:53 ` Rafael J. Wysocki
2008-11-11 15:41 ` Mike Isely
2008-11-11 16:38 ` Rafael J. Wysocki
2008-11-11 16:42 ` Alan Stern
2008-11-09 19:43 ` [Bug #11836] Scheduler on C2D CPU and latest 2.6.27 kernel Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11830] disk statistics issue in 2.6.27 Rafael J. Wysocki
2008-11-09 23:49 ` Miquel van Smoorenburg
2008-11-10 0:05 ` Rafael J. Wysocki
2008-11-10 0:13 ` James Bottomley
2008-11-10 0:19 ` Miquel van Smoorenburg
2008-11-09 19:43 ` [Bug #11843] usb hdd problems with 2.6.27.2 Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11876] RCU hang on cpu re-hotplug with 2.6.27rc8 Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11865] WOL for E100 Doesn't Work Anymore Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11983] iwlagn: wrong command queue 31, command id 0x0 Rafael J. Wysocki
2008-11-09 19:43 ` [Bug #11892] Battery information and status disappearing and wrong thermal status Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2008-11-02 16:47 2.6.28-rc2-git7: Reported regressions 2.6.26 -> 2.6.27 Rafael J. Wysocki
2008-11-02 16:49 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-10-25 21:04 2.6.28-rc1-git1: Reported regressions 2.6.26 -> 2.6.27 Rafael J. Wysocki
2008-10-25 21:07 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-10-04 17:28 2.6.27-rc8-git7: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-10-04 17:32 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-09-21 18:52 2.6.27-rc6-git6: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-09-21 18:54 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-09-12 18:59 2.6.27-rc6-git2: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-09-12 19:06 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-09-06 21:24 2.6.27-rc5-git8: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-09-06 21:30 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-08-30 19:46 2.6.27-rc5-git2: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-08-30 19:50 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
2008-08-23 18:07 2.6.27-rc4-git1: Reported regressions from 2.6.26 Rafael J. Wysocki
2008-08-23 18:10 ` [Bug #11380] lockdep warning: cpu_add_remove_lock at:cpu_maps_update_begin+0x14/0x16 Rafael J. Wysocki
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=20081111105706.6174.KOSAKI.MOTOHIRO@jp.fujitsu.com \
--to=kosaki.motohiro@jp.fujitsu.com \
--cc=dmitry.adamushko@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=kernel-testers@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maxk@qualcomm.com \
--cc=mingo@elte.hu \
--cc=oleg@redhat.com \
--cc=rjw@sisk.pl \
/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®