Re: 2.6.26-rc2-mm1: possible circular locking dependency detected

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Tuesday, May 20, 2008 - 3:22 am

On Tue, 20 May 2008 12:01:34 +0200 Mariusz Kozlowski <m.kozlowski@tuxland.pl> wrote:


OK, three locks are involved here.


	cls->mutex
	  socket->skt_mutex


	rtnl_lock
	  cls->mutex


	cls->mutex
	  rtnl_lock


This bug has always been there, and is now exposed by the conversion
of cls->mutex from a semaphore to a mutex.  Because lockdep doesn't
check semaphores.

I don't know how to get this fixed, sorry.  I'll just push
struct-class-sem-to-mutex-converting.patch at Greg until it sticks,
then it will go into mainline, then we'll get a shower of bug reports,
including this one, then someone someday will do soemthing about it.

Fun.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-rc2-mm1, Andrew Morton, (Wed May 14, 1:01 am)
Re: [BUG] 2.6.26-rc2-mm1 - kernel bug while bootup at __al ..., Kamalesh Babulal, (Wed May 14, 11:21 am)
Re: 2.6.26-rc2-mm1: sparc64 - possible recursive locking d ..., Mariusz Kozlowski, (Wed May 14, 11:29 am)
Re: 2.6.26-rc2-mm1: sparc64 - possible recursive locking d ..., Mariusz Kozlowski, (Wed May 14, 11:50 am)
Re: 2.6.26-rc2-mm1, Torsten Kaiser, (Wed May 14, 12:12 pm)
Re: 2.6.26-rc2-mm1, Andrew Morton, (Wed May 14, 12:35 pm)
Re: 2.6.26-rc2-mm1 (WARN() build error), Randy Dunlap, (Wed May 14, 1:39 pm)
Re: 2.6.26-rc2-mm1 (CONFIG_*FD build errors), Randy Dunlap, (Wed May 14, 1:43 pm)
Re: 2.6.26-rc2-mm1, Zan Lynx, (Wed May 14, 1:49 pm)
Re: 2.6.26-rc2-mm1, Andrew Morton, (Wed May 14, 2:00 pm)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), Randy Dunlap, (Wed May 14, 2:13 pm)
Re: 2.6.26-rc2-mm1, me, (Wed May 14, 2:14 pm)
2.6.26-rc2-mm1: sloooow mkfs.ext2, Alexey Dobriyan, (Wed May 14, 2:16 pm)
Re: 2.6.26-rc2-mm1 (p9 build error when 9P_FS=n), Randy Dunlap, (Wed May 14, 2:16 pm)
Re: 2.6.26-rc2-mm1: sloooow mkfs.ext2, Alexey Dobriyan, (Wed May 14, 2:33 pm)
Re: 2.6.26-rc2-mm1, Rafael J. Wysocki, (Wed May 14, 2:54 pm)
Re: 2.6.26-rc2-mm1, Zan Lynx, (Wed May 14, 3:06 pm)
Re: 2.6.26-rc2-mm1 (p9 build error when 9P_FS=n), Eric Van Hensbergen, (Wed May 14, 5:00 pm)
Re: 2.6.26-rc2-mm1 (p9 build error when 9P_FS=n), Andrew Morton, (Wed May 14, 5:05 pm)
Re: [BUG] 2.6.26-rc2-mm1 - kernel bug while bootup at __al ..., KAMEZAWA Hiroyuki, (Wed May 14, 6:54 pm)
Re: 2.6.26-rc2-mm1 (p9 build error when 9P_FS=n), Eric Van Hensbergen, (Wed May 14, 7:29 pm)
Re: 2.6.26-rc2-mm1 (p9 build error when 9P_FS=n), Andrew Morton, (Wed May 14, 8:04 pm)
Re: 2.6.26-rc2-mm1 (p9 build error when 9P_FS=n), Eric Van Hensbergen, (Wed May 14, 8:53 pm)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), James Bottomley, (Thu May 15, 7:46 am)
Re: 2.6.26-rc2-mm1, Torsten Kaiser, (Thu May 15, 10:44 am)
[PATCH] Re: 2.6.26-rc2-mm1 - fix parenthesis in include/as ..., Mariusz Kozlowski, (Thu May 15, 10:58 am)
[PATCH] Re: 2.6.26-rc2-mm1 - fix parenthesis in include/as ..., Mariusz Kozlowski, (Thu May 15, 10:59 am)
[PATCH] Re: 2.6.26-rc2-mm1 - fix parenthesis in include/as ..., Mariusz Kozlowski, (Thu May 15, 11:01 am)
[BUG] Re: 2.6.26-rc2-mm1 - x86_32 oops on modprobe wusbcore, Mariusz Kozlowski, (Thu May 15, 11:21 am)
Re: 2.6.26-rc2-mm1, Andrew Morton, (Thu May 15, 11:49 am)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), Chandra Seetharaman, (Thu May 15, 12:56 pm)
Re: [BUG] Re: 2.6.26-rc2-mm1 - x86_32 oops on modprobe wus ..., Inaky Perez-Gonzalez, (Thu May 15, 1:05 pm)
Re: 2.6.26-rc2-mm1: sloooow mkfs.ext2, Jiri Slaby, (Thu May 15, 2:41 pm)
Re: 2.6.26-rc2-mm1: high speed something, Andrew Morton, (Fri May 16, 2:31 pm)
Re: 2.6.26-rc2-mm1: high speed something, Greg KH, (Fri May 16, 3:00 pm)
2.6.26-rc2-mm1: high speed something, Alexey Dobriyan, (Fri May 16, 3:17 pm)
Re: 2.6.26-rc2-mm1: possible circular locking dependency d ..., Mariusz Kozlowski, (Tue May 20, 3:01 am)
Re: 2.6.26-rc2-mm1: possible circular locking dependency d ..., Andrew Morton, (Tue May 20, 3:22 am)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), Andrew Morton, (Thu May 22, 8:25 pm)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), Chandra Seetharaman, (Fri May 23, 12:39 pm)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), Randy Dunlap, (Fri May 23, 1:28 pm)
Re: 2.6.26-rc2-mm1 (SCSI_DH build errors), Chandra Seetharaman, (Fri May 23, 6:16 pm)