Bug 795176

Summary: [abrt] kernel: BUG: sleeping function called from invalid context at kernel/workqueue.c:2547
Product: [Fedora] Fedora Reporter: hellojoker <hellojoker81>
Component: kernelAssignee: Stanislaw Gruszka <sgruszka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: gansalmon, itamar, jforbes, jonathan, kernel-maint, larry.finger, madhu.chinakonda, marcos.brito.carvalho, sgruszka
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:d0d7fd53e714c77310aaebf4372f756c8a385514
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-22 02:22:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hellojoker 2012-02-19 22:14:45 UTC
libreport version: 2.0.8
abrt_version:   2.0.7
cmdline:        BOOT_IMAGE=/boot/vmlinuz-3.3.0-0.rc3.git7.2.fc17.i686 root=UUID=9aa06ec5-180f-461f-bd83-48c6159fd095 ro rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True rd.luks=0 KEYTABLE=it LANG=en_US.UTF-8 rhgb quiet
kernel:         3.3.0-0.rc3.git5.1.fc17.i686
reason:         BUG: sleeping function called from invalid context at kernel/workqueue.c:2547
time:           dom 19 feb 2012 23:03:37 CET

backtrace:
:BUG: sleeping function called from invalid context at kernel/workqueue.c:2547
:in_atomic(): 1, irqs_disabled(): 0, pid: 629, name: wpa_supplicant
:2 locks held by wpa_supplicant/629:
: #0:  (rtnl_mutex){+.+.+.}, at: [<c08b2b84>] rtnl_lock+0x14/0x20
: #1:  (&trigger->leddev_list_lock){.+.?..}, at: [<c0867f41>] led_trigger_event+0x21/0x80
:Pid: 629, comm: wpa_supplicant Not tainted 3.3.0-0.rc3.git5.1.fc17.i686 #1
:Call Trace:
: [<c046a9f6>] __might_sleep+0x126/0x1d0
: [<c0457d6c>] wait_on_work+0x2c/0x1d0
: [<c049aa8c>] ? lock_release_holdtime.part.27+0xcc/0xf0
: [<c09bf0e6>] ? _raw_spin_unlock_irqrestore+0x36/0x70
: [<c049f4b4>] ? trace_hardirqs_on_caller+0xf4/0x180
: [<c049f54b>] ? trace_hardirqs_on+0xb/0x10
: [<c06ad519>] ? debug_object_assert_init+0xd9/0xf0
: [<c044ad7c>] ? del_timer+0x1c/0x150
: [<c045a09a>] __cancel_work_timer+0x6a/0x120
: [<c045a160>] cancel_delayed_work_sync+0x10/0x20
: [<f7dd3c22>] rtl8187_led_brightness_set+0x82/0xf0 [rtl8187]
: [<c0867f7c>] led_trigger_event+0x5c/0x80
: [<f7ff5e6d>] ieee80211_led_radio+0x1d/0x40 [mac80211]
: [<f7ff3583>] ieee80211_stop_device+0x13/0x230 [mac80211]
: [<f7fdd2b0>] ieee80211_do_stop+0x250/0x740 [mac80211]
: [<c09bf065>] ? _raw_spin_unlock_bh+0x35/0x40
: [<c08c1792>] ? dev_deactivate_many+0x1d2/0x270
: [<f7fdd7b7>] ieee80211_stop+0x17/0x20 [mac80211]
: [<c089ef71>] __dev_close_many+0x81/0xd0
: [<c049f54b>] ? trace_hardirqs_on+0xb/0x10
: [<c0442215>] ? local_bh_enable_ip+0x65/0xd0
: [<c089efed>] __dev_close+0x2d/0x50
: [<c08a77b1>] __dev_change_flags+0x81/0x160
: [<c08b2b84>] ? rtnl_lock+0x14/0x20
: [<c08a7931>] dev_change_flags+0x21/0x60
: [<c090ebb4>] devinet_ioctl+0x634/0x7e0
: [<c090f11d>] inet_ioctl+0x8d/0xb0
: [<c088c3ac>] sock_ioctl+0x6c/0x270
: [<c088c340>] ? sock_fasync+0xd0/0xd0
: [<c0573b6a>] do_vfs_ioctl+0x7a/0x590
: [<c0648182>] ? selinux_file_ioctl+0x62/0x120
: [<c05740e8>] sys_ioctl+0x68/0x80
: [<c09bf404>] syscall_call+0x7/0xb

smolt_data:
:
:
:Generale
:=================================
:UUID: 0d0ca9d7-6fc3-4235-867d-9f29d2edc665
:OS: Fedora release 17 (Beefy Miracle)
:Run level predefinito: Unknown
:Linguaggio: it_IT.utf8
:Piattaforma: i686
:BogoMIPS: 4668.65
:Venditore CPU: GenuineIntel
:Modello CPU: Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz
:CPU Stepping: 11
:Famiglia della CPU: 6
:Numero modello CPU: 15
:Numero di CPU: 2
:Velocità CPU: 2333
:Memoria di sistema: 2005
:Swap di sistema: 1905
:Venditore: ASUSTEK COMPUTER INC
:Sistema: P5W DH Deluxe System Version
:Form factor: Desktop
:Kernel: 3.3.0-0.rc3.git7.2.fc17.i686
:SELinux abilitato: 1
:Politica di SELinux: targeted
:SELinux Enforce: Enforcing
:MythTV Remote: Unknown
:MythTV Role: Unknown
:MythTV Theme: Unknown
:MythTV Plugin: 
:MythTV Tuner: -1
:
:
:Dispositivi
:=================================
:(4523:17250:4163:33090) pci, sky2, ETHERNET, Marvell 88E8053 Gigabit Ethernet controller PCIe (Asus)
:(4523:17250:4163:33090) pci, sky2, ETHERNET, Marvell 88E8053 Gigabit Ethernet controller PCIe (Asus)
:(32902:10202:4163:33145) pci, None, SERIAL, P5KPL-VM Motherboard
:(32902:10198:4163:33145) pci, pcieport, PCI/PCI, N10/ICH 7 Family PCI Express Port 4
:(32902:10192:4163:33145) pci, pcieport, PCI/PCI, N10/ICH 7 Family PCI Express Port 1
:(32902:10168:4163:33145) pci, None, PCI/ISA, P5KPL-VM Motherboard
:(32902:10208:4163:33145) pci, pcieport, PCI/PCI, 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5
:(32902:10200:4163:33240) pci, snd_hda_intel, MULTIMEDIA, N10/ICH 7 Family High Definition Audio Controller
:(32902:10207:4163:33145) pci, ata_piix, STORAGE, P5KPL-VM Motherboard
:(32902:9294:4163:33145) pci, None, PCI/PCI, 82801 PCI Bridge
:(4318:403:4318:1057) pci, nouveau, VIDEO, G80 [GeForce 8800 GTS]
:(32902:10177:4163:9734) pci, ahci, STORAGE, N10/ICH7 Family SATA AHCI Controller
:(32902:10185:4163:33145) pci, uhci_hcd, USB, P5KPL-VM,P5LD2-VM Mainboard
:(32902:10184:4163:33145) pci, uhci_hcd, USB, P5KPL-VM,P5LD2-VM Mainboard
:(32902:10108:4163:33144) pci, None, HOST/PCI, P5WDG2 WS Professional motherboard
:(32902:10186:4163:33145) pci, uhci_hcd, USB, P5KPL-VM,P5LD2-VM Mainboard
:(32902:10187:4163:33145) pci, uhci_hcd, USB, P5KPL-VM,P5LD2-VM Mainboard
:(32902:10188:4163:33145) pci, ehci_hcd, USB, P5KPL-VM,P5LD2-VM Mainboard
:(32902:10109:32902:0) pci, pcieport, PCI/PCI, 82975X PCI Express Root Port
:
:
:Informazioni sul filesystem
:=================================
:device mtpt type bsize frsize blocks bfree bavail file ffree favail
:-------------------------------------------------------------------
:/dev/sda11 / ext4 4096 4096 3066736 2370438 2339724 770048 671426 671426
:

Comment 1 Josh Boyer 2012-02-20 14:31:04 UTC
John, Larry, this particular kernel still had compat-wireless-20120209 enabled.

Comment 2 Larry Finger 2012-02-20 19:18:01 UTC
Any ideas what changed in this kernel? Driver rtl8187 has not changed for some time, and I have never seen this problem. I would not expect any problems with compat-wireless, but who knows?

As this is a 3.3-rc3 kernel (probably from mainline), what happens when you do not enable any compat-wireless? Could such a test be done? For rtl8187, nothing would be missed.

Comment 3 Stanislaw Gruszka 2012-04-04 11:49:21 UTC
We take read_lock before ->led_brightness_set, I guess this bug was never triggered because _sync part of cancel_delayed_work_sync is very rarely used. I think changing to cancel_delayed_work() should be fine.

Comment 4 Justin M. Forbes 2012-05-11 13:21:38 UTC
Is this still happening with the shipping 3.3 kernels (compat-wireless was not in the 3.3 stable kernels)

Comment 5 Stanislaw Gruszka 2012-05-16 08:03:03 UTC
This bug is not fixed.

Comment 6 Stanislaw Gruszka 2012-05-16 09:26:57 UTC
I posted fix for this bug:
http://marc.info/?l=linux-wireless&m=133715936315740&w=2

Comment 7 Justin M. Forbes 2012-05-16 17:23:40 UTC
Thanks, applying

Comment 8 Fedora Update System 2012-05-17 13:45:40 UTC
kernel-3.3.6-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/kernel-3.3.6-3.fc16

Comment 9 Fedora Update System 2012-05-17 13:47:09 UTC
kernel-3.3.6-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/kernel-3.3.6-3.fc17

Comment 10 Fedora Update System 2012-05-17 22:56:19 UTC
Package kernel-3.3.6-3.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing kernel-3.3.6-3.fc17'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-7974/kernel-3.3.6-3.fc17
then log in and leave karma (feedback).

Comment 11 Fedora Update System 2012-05-22 02:22:09 UTC
kernel-3.3.6-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2012-05-26 08:07:51 UTC
kernel-3.3.6-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.