Bug 328611

Summary: BUG: sleeping function called from invalid context at kernel/mutex.c:86
Product: [Fedora] Fedora Reporter: Sami Farin <hvtaifwkbgefbaei>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 8CC: tglx, triage
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: bzcl34nup
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-09 04:56:51 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 Sami Farin 2007-10-11 21:57:58 UTC
Description of problem:
sysrq-Q produces BUG messages.

[10205.165616] SysRq : Show Pending Timers
[10205.165628] Timer List Version: v0.3
[10205.165636] HRTIMER_MAX_CLOCK_BASES: 2
[10205.165640] now at 10183591097643 nsecs
[10205.165644] 
[10205.165645] cpu: 0
[10205.165649]  clock 0:
[10205.165653]   .index:      0
[10205.165657]   .resolution: 1 nsecs
[10205.165664]   .get_time:   ktime_get_real
[10205.165679]   .offset:     1192128876880919236 nsecs
[10205.165684] active timers:
[10205.165689]  clock 1:
[10205.165693]   .index:      1
[10205.165698]   .resolution: 1 nsecs
[10205.165702]   .get_time:   ktime_get
[10205.165711]   .offset:     0 nsecs
[10205.165715] active timers:
[10205.165719]  #0: <3>BUG: sleeping function called from invalid context at
kernel/mutex.c:86
[10205.165730] in_atomic():1, irqs_disabled():1
[10205.165733] 
[10205.165734] Call Trace:
[10205.165737]  <IRQ>  [<ffffffff80234c30>] __might_sleep+0xb0/0xd0
[10205.165778]  [<ffffffff8065846d>] mutex_lock+0x1d/0x40
[10205.165797]  [<ffffffff80262719>] lookup_module_symbol_name+0x19/0xc0
[10205.165813]  [<ffffffff80262efd>] lookup_symbol_name+0x5d/0x60
[10205.165828]  [<ffffffff802581ff>] print_name_offset+0x2f/0xb0
[10205.165866]  [<ffffffff8025705a>] getnstimeofday+0x3a/0xa0
[10205.165880]  [<ffffffff802558f2>] ktime_get_ts+0x52/0x60
[10205.165911]  [<ffffffff80258b61>] timer_list_show+0x611/0x980
[10205.165953]  [<ffffffff8025a4c0>] tick_sched_timer+0x0/0x150
[10205.166003]  [<ffffffff80258edd>] sysrq_timer_list_show+0xd/0x10
[10205.166012]  [<ffffffff8048b659>] sysrq_handle_show_timers+0x9/0x10
[10205.166019]  [<ffffffff8048b50c>] __handle_sysrq+0x8c/0x150
[10205.166049]  [<ffffffff8048b600>] handle_sysrq+0x30/0x40
[10205.166064]  [<ffffffff80484912>] kbd_event+0x422/0x650
[10205.166102]  [<ffffffff8056c971>] input_event+0xf1/0x4d0
[10205.166134]  [<ffffffff80596ae6>] hidinput_hid_event+0x216/0x590
[10205.166164]  [<ffffffff80592b19>] hid_process_event+0x79/0x90
[10205.166194]  [<ffffffff80592da7>] hid_input_field+0x277/0x2e0
[10205.166254]  [<ffffffff80592eea>] hid_input_report+0xda/0x130
[10205.166285]  [<ffffffff80598987>] hid_irq_in+0x147/0x1a0
[10205.166308]  [<ffffffff80559522>] usb_hcd_giveback_urb+0x22/0x60
[10205.166334]  [<ffffffff88000cc7>] :uhci_hcd:uhci_giveback_urb+0xa7/0x220
[10205.166373]  [<ffffffff88001547>] :uhci_hcd:uhci_scan_schedule+0x5b7/0xa20
[10205.166435]  [<ffffffff88003811>] :uhci_hcd:uhci_irq+0x81/0x190
[10205.166465]  [<ffffffff8055983d>] usb_hcd_irq+0x2d/0x70
[10205.166481]  [<ffffffff8026edc5>] handle_IRQ_event+0x35/0x70
[10205.166504]  [<ffffffff8027080f>] handle_fasteoi_irq+0x8f/0x110
[10205.166527]  [<ffffffff8020eea0>] do_IRQ+0xc0/0x1b0
[10205.166534]  [<ffffffff8020ae80>] mwait_idle+0x0/0x50
[10205.166556]  [<ffffffff8020c1e1>] ret_from_intr+0x0/0xa
[10205.166562]  <EOI>  [<ffffffff8020aec6>] mwait_idle+0x46/0x50
[10205.166625]  [<ffffffff8020a542>] enter_idle+0x22/0x30
[10205.166631]  [<ffffffff8020ade0>] cpu_idle+0x70/0xc0
[10205.166648]  [<ffffffff8021f506>] start_secondary+0x256/0x360
[10205.166765] 
[10205.166768] BUG: scheduling while atomic: swapper/0x10010000/0
[10205.166770] 
[10205.166770] Call Trace:
[10205.166772]  <IRQ>  [<ffffffff802376a5>] __schedule_bug+0x35/0x40
[10205.166791]  [<ffffffff80656e6f>] thread_return+0x3c5/0x586
[10205.166836]  [<ffffffff8020d351>] show_trace+0x51/0x60
[10205.166866]  [<ffffffff802376dd>] __cond_resched+0x2d/0x60
[10205.166874]  [<ffffffff806570b2>] cond_resched+0x32/0x40
[10205.166881]  [<ffffffff80658472>] mutex_lock+0x22/0x40
[10205.166896]  [<ffffffff80262719>] lookup_module_symbol_name+0x19/0xc0
[10205.166911]  [<ffffffff80262efd>] lookup_symbol_name+0x5d/0x60
[10205.166927]  [<ffffffff802581ff>] print_name_offset+0x2f/0xb0
[10205.166964]  [<ffffffff8025705a>] getnstimeofday+0x3a/0xa0
[10205.166978]  [<ffffffff802558f2>] ktime_get_ts+0x52/0x60
[10205.167008]  [<ffffffff80258b61>] timer_list_show+0x611/0x980
[10205.167050]  [<ffffffff8025a4c0>] tick_sched_timer+0x0/0x150
[10205.167099]  [<ffffffff80258edd>] sysrq_timer_list_show+0xd/0x10
[10205.167106]  [<ffffffff8048b659>] sysrq_handle_show_timers+0x9/0x10
[10205.167113]  [<ffffffff8048b50c>] __handle_sysrq+0x8c/0x150
[10205.167143]  [<ffffffff8048b600>] handle_sysrq+0x30/0x40
[10205.167157]  [<ffffffff80484912>] kbd_event+0x422/0x650
[10205.167195]  [<ffffffff8056c971>] input_event+0xf1/0x4d0
[10205.167225]  [<ffffffff80596ae6>] hidinput_hid_event+0x216/0x590
[10205.167256]  [<ffffffff80592b19>] hid_process_event+0x79/0x90
[10205.167286]  [<ffffffff80592da7>] hid_input_field+0x277/0x2e0
[10205.167346]  [<ffffffff80592eea>] hid_input_report+0xda/0x130
[10205.167377]  [<ffffffff80598987>] hid_irq_in+0x147/0x1a0
[10205.167400]  [<ffffffff80559522>] usb_hcd_giveback_urb+0x22/0x60
[10205.167423]  [<ffffffff88000cc7>] :uhci_hcd:uhci_giveback_urb+0xa7/0x220
[10205.167462]  [<ffffffff88001547>] :uhci_hcd:uhci_scan_schedule+0x5b7/0xa20
[10205.167524]  [<ffffffff88003811>] :uhci_hcd:uhci_irq+0x81/0x190
[10205.167554]  [<ffffffff8055983d>] usb_hcd_irq+0x2d/0x70
[10205.167568]  [<ffffffff8026edc5>] handle_IRQ_event+0x35/0x70
[10205.167591]  [<ffffffff8027080f>] handle_fasteoi_irq+0x8f/0x110
[10205.167613]  [<ffffffff8020eea0>] do_IRQ+0xc0/0x1b0
[10205.167620]  [<ffffffff8020ae80>] mwait_idle+0x0/0x50
[10205.167642]  [<ffffffff8020c1e1>] ret_from_intr+0x0/0xa
[10205.167648]  <EOI>  [<ffffffff8020aec6>] mwait_idle+0x46/0x50
[10205.167710]  [<ffffffff8020a542>] enter_idle+0x22/0x30
[10205.167717]  [<ffffffff8020ade0>] cpu_idle+0x70/0xc0
[10205.167732]  [<ffffffff8021f506>] start_secondary+0x256/0x360
[10205.167849] 
[10205.168062] WARNING: at kernel/mutex.c:132 __mutex_lock_common()
[10205.168065] 
[10205.168066] Call Trace:
[10205.168068]  <IRQ>  [<ffffffff80658443>] __mutex_lock_slowpath+0x263/0x270
[10205.168089]  [<ffffffff8020d351>] show_trace+0x51/0x60
[10205.168134]  [<ffffffff8065847a>] mutex_lock+0x2a/0x40
[10205.168149]  [<ffffffff80262719>] lookup_module_symbol_name+0x19/0xc0
[10205.168165]  [<ffffffff80262efd>] lookup_symbol_name+0x5d/0x60
[10205.168180]  [<ffffffff802581ff>] print_name_offset+0x2f/0xb0
[10205.168218]  [<ffffffff8025705a>] getnstimeofday+0x3a/0xa0
[10205.168233]  [<ffffffff802558f2>] ktime_get_ts+0x52/0x60
[10205.168262]  [<ffffffff80258b61>] timer_list_show+0x611/0x980
[10205.168304]  [<ffffffff8025a4c0>] tick_sched_timer+0x0/0x150
[10205.168353]  [<ffffffff80258edd>] sysrq_timer_list_show+0xd/0x10
[10205.168361]  [<ffffffff8048b659>] sysrq_handle_show_timers+0x9/0x10
[10205.168368]  [<ffffffff8048b50c>] __handle_sysrq+0x8c/0x150
[10205.168398]  [<ffffffff8048b600>] handle_sysrq+0x30/0x40
[10205.168413]  [<ffffffff80484912>] kbd_event+0x422/0x650
[10205.168450]  [<ffffffff8056c971>] input_event+0xf1/0x4d0
[10205.168481]  [<ffffffff80596ae6>] hidinput_hid_event+0x216/0x590
[10205.168512]  [<ffffffff80592b19>] hid_process_event+0x79/0x90
[10205.168542]  [<ffffffff80592da7>] hid_input_field+0x277/0x2e0
[10205.168607]  [<ffffffff80592eea>] hid_input_report+0xda/0x130
[10205.168638]  [<ffffffff80598987>] hid_irq_in+0x147/0x1a0
[10205.168661]  [<ffffffff80559522>] usb_hcd_giveback_urb+0x22/0x60
[10205.168685]  [<ffffffff88000cc7>] :uhci_hcd:uhci_giveback_urb+0xa7/0x220
[10205.168724]  [<ffffffff88001547>] :uhci_hcd:uhci_scan_schedule+0x5b7/0xa20
[10205.168785]  [<ffffffff88003811>] :uhci_hcd:uhci_irq+0x81/0x190
[10205.168815]  [<ffffffff8055983d>] usb_hcd_irq+0x2d/0x70
[10205.168830]  [<ffffffff8026edc5>] handle_IRQ_event+0x35/0x70
[10205.168853]  [<ffffffff8027080f>] handle_fasteoi_irq+0x8f/0x110
[10205.168876]  [<ffffffff8020eea0>] do_IRQ+0xc0/0x1b0
[10205.168883]  [<ffffffff8020ae80>] mwait_idle+0x0/0x50
[10205.168905]  [<ffffffff8020c1e1>] ret_from_intr+0x0/0xa
[10205.168911]  <EOI>  [<ffffffff8020aec6>] mwait_idle+0x46/0x50
[10205.168973]  [<ffffffff8020a542>] enter_idle+0x22/0x30
[10205.168980]  [<ffffffff8020ade0>] cpu_idle+0x70/0xc0
[10205.168995]  [<ffffffff8021f506>] start_secondary+0x256/0x360
[10205.169113] 
[10205.169119] <ffff81003e5dbad8>, tick_sched_timer, S:01
[10205.169126]  # expires at 10183592000000 nsecs [in 902357 nsecs]
[10205.169129]  #1: <3>BUG: scheduling while atomic: swapper/0x10010000/0
[10205.169132] 
[10205.169133] Call Trace:
[10205.169134]  <IRQ>  [<ffffffff8023bf3c>] __call_console_drivers+0x6c/0x90
[10205.169145]  [<ffffffff802376a5>] __schedule_bug+0x35/0x40
[10205.169153]  [<ffffffff80656e6f>] thread_return+0x3c5/0x586
[10205.169161]  [<ffffffff8023bfae>] _call_console_drivers+0x4e/0x90
[10205.169176]  [<ffffffff8023c382>] release_console_sem+0x202/0x210
[10205.169230]  [<ffffffff802376dd>] __cond_resched+0x2d/0x60
[10205.169238]  [<ffffffff806570b2>] cond_resched+0x32/0x40
[10205.169245]  [<ffffffff80658472>] mutex_lock+0x22/0x40
[10205.169260]  [<ffffffff80262719>] lookup_module_symbol_name+0x19/0xc0
[10205.169275]  [<ffffffff80262efd>] lookup_symbol_name+0x5d/0x60
[10205.169291]  [<ffffffff802581ff>] print_name_offset+0x2f/0xb0
[10205.169328]  [<ffffffff8025705a>] getnstimeofday+0x3a/0xa0
[10205.169343]  [<ffffffff802558f2>] ktime_get_ts+0x52/0x60
[10205.169373]  [<ffffffff80258b61>] timer_list_show+0x611/0x980
[10205.169414]  [<ffffffff80254fa0>] hrtimer_wakeup+0x0/0x30
[10205.169463]  [<ffffffff80258edd>] sysrq_timer_list_show+0xd/0x10
[10205.169470]  [<ffffffff8048b659>] sysrq_handle_show_timers+0x9/0x10
[10205.169478]  [<ffffffff8048b50c>] __handle_sysrq+0x8c/0x150
[10205.169508]  [<ffffffff8048b600>] handle_sysrq+0x30/0x40
[10205.169522]  [<ffffffff80484912>] kbd_event+0x422/0x650
[10205.169559]  [<ffffffff8056c971>] input_event+0xf1/0x4d0
[10205.169590]  [<ffffffff80596ae6>] hidinput_hid_event+0x216/0x590
[10205.169623]  [<ffffffff80592b19>] hid_process_event+0x79/0x90
[10205.169653]  [<ffffffff80592da7>] hid_input_field+0x277/0x2e0
[10205.169712]  [<ffffffff80592eea>] hid_input_report+0xda/0x130
[10205.169742]  [<ffffffff80598987>] hid_irq_in+0x147/0x1a0
[10205.169765]  [<ffffffff80559522>] usb_hcd_giveback_urb+0x22/0x60
[10205.169789]  [<ffffffff88000cc7>] :uhci_hcd:uhci_giveback_urb+0xa7/0x220
[10205.169827]  [<ffffffff88001547>] :uhci_hcd:uhci_scan_schedule+0x5b7/0xa20
[10205.169889]  [<ffffffff88003811>] :uhci_hcd:uhci_irq+0x81/0x190
[10205.169919]  [<ffffffff8055983d>] usb_hcd_irq+0x2d/0x70
[10205.169934]  [<ffffffff8026edc5>] handle_IRQ_event+0x35/0x70
[10205.169956]  [<ffffffff8027080f>] handle_fasteoi_irq+0x8f/0x110
[10205.169979]  [<ffffffff8020eea0>] do_IRQ+0xc0/0x1b0
[10205.169986]  [<ffffffff8020ae80>] mwait_idle+0x0/0x50
[10205.170008]  [<ffffffff8020c1e1>] ret_from_intr+0x0/0xa
[10205.170014]  <EOI>  [<ffffffff8020aec6>] mwait_idle+0x46/0x50
[10205.170076]  [<ffffffff8020a542>] enter_idle+0x22/0x30
[10205.170082]  [<ffffffff8020ade0>] cpu_idle+0x70/0xc0
[10205.170098]  [<ffffffff8021f506>] start_secondary+0x256/0x360
[10205.170215] 
[10205.170302] <ffff81003e5dbad8>, hrtimer_wakeup, S:01
[10205.170309]  # expires at 10183598715242 nsecs [in 7617599 nsecs]
[10205.170312]  #2: <ffff81003e5dbad8>, hrtimer_wakeup, S:01
[10205.170323]  # expires at 10183603736299 nsecs [in 12638656 nsecs]
...

Version-Release number of selected component (if applicable):
2.6.23 + highres-timers.patch from kernel-2.6.23-5.fc8

How reproducible:
always

Steps to Reproduce:
1. press sysrq-Q
2.
3.
  
Actual results:
timers shown, alongside the BUGs

Expected results:
timers shown

Additional info:

Comment 1 Bug Zapper 2008-04-04 14:03:52 UTC
Based on the date this bug was created, it appears to have been reported
during the development of Fedora 8. In order to refocus our efforts as
a project we are changing the version of this bug to '8'.

If this bug still exists in rawhide, please change the version back to
rawhide.
(If you're unable to change the bug's version, add a comment to the bug
and someone will change it for you.)

Thanks for your help and we apologize for the interruption.

The process we're following is outlined here:
http://fedoraproject.org/wiki/BugZappers/F9CleanUp

We will be following the process here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this
doesn't happen again.

Comment 2 Bug Zapper 2008-11-26 07:58:01 UTC
This message is a reminder that Fedora 8 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 8.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '8'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 8's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 8 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Bug Zapper 2009-01-09 04:56:51 UTC
Fedora 8 changed to end-of-life (EOL) status on 2009-01-07. Fedora 8 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.