Red Hat Bugzilla – Bug 131569
__might_sleep() bug on removal of device in bridge.
Last modified: 2015-01-04 17:09:27 EST
2.6.8-1.521 i686 UP Debug: sleeping function called from invalid context at include/asm/semaphore.h:119 in_atomic():1[expected: 0], irqs_disabled():0 [<0211b765>] __might_sleep+0x82/0x8c [<021a5eea>] sysfs_hash_and_remove+0x1c/0x1ce [<129a4f32>] br_sysfs_removeif+0x18/0x20 [bridge] [<129a1908>] br_del_if+0x23/0x10b [bridge] [<129a2b27>] br_device_event+0x11f/0x17c [bridge] [<0212ccf5>] notifier_call_chain+0x17/0x30 [<022a0550>] unregister_netdevice+0x178/0x2e9 [<0223a872>] unregister_netdev+0xf/0x15 [<129acad3>] bnep_session+0x697/0x6d2 [bnep] [<0211a8ee>] default_wake_function+0x0/0xc [<129ac43c>] bnep_session+0x0/0x6d2 [bnep] [<021041d9>] kernel_thread_helper+0x5/0xb
bad: scheduling while atomic! [<022f3d9d>] schedule+0x2d/0x5a0 [<0210659e>] dump_stack+0x11/0x13 [<0211b765>] __might_sleep+0x82/0x8c [<021a5ef5>] sysfs_hash_and_remove+0x27/0x1ce [<129a4f32>] br_sysfs_removeif+0x18/0x20 [bridge] [<129a1908>] br_del_if+0x23/0x10b [bridge] [<129a2b27>] br_device_event+0x11f/0x17c [bridge] [<0212ccf5>] notifier_call_chain+0x17/0x30 [<022a0550>] unregister_netdevice+0x178/0x2e9 [<0223a872>] unregister_netdev+0xf/0x15 [<129acad3>] bnep_session+0x697/0x6d2 [bnep] [<0211a8ee>] default_wake_function+0x0/0xc [<129ac43c>] bnep_session+0x0/0x6d2 [bnep] [<021041d9>] kernel_thread_helper+0x5/0xb device bnep0 left promiscuous mode net/bridge/br_if.c:105: spin_lock(net/bridge/br_if.c:0f020280) already locked by net/bridge/br_notify.c/44 pan0: port 1(bnep0) entering disabled state net/bridge/br_notify.c:82: spin_unlock(net/bridge/br_if.c:0f020280) not locked divert: freeing divert_blk for bnep0
Fix at http://oss.sgi.com/projects/netdev/archive/2004-09/msg00144.html
still relevant?
repeatable in b2 ? (or later?)
eyeballing the code shows that patch got integrated in b2. moving to modified
Closing this out since the patch has been in for some time and no negative feedback. Please reopen if there's still an issue with the latest code.