Re: fix BUG: using smp_processor_id() in preemptible code (resend)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Maciej Rutecki
Date: Thursday, August 19, 2010 - 8:04 am

On środa, 18 sierpnia 2010 o 11:11:58 Sergey Senozhatsky wrote:

I got similar bug (during suspend to disk) on 2.6.36-rc1+ patch from:
https://bugzilla.kernel.org/show_bug.cgi?id=16615

[   89.141370] Enabling non-boot CPUs ...
[   89.142033] BUG: using smp_processor_id() in preemptible [00000000] code: 
pm-hibernate/2584
[   89.142147] caller is thermal_throttle_add_dev+0x10/0x7c
[   89.142200] Pid: 2584, comm: pm-hibernate Not tainted 2.6.36-rc1 #1
[   89.142248] Call Trace:
[   89.142274]  [<c03706ad>] ? printk+0xf/0x12
[   89.142312]  [<c02181d1>] debug_smp_processor_id+0xa5/0xbc
[   89.142357]  [<c036d13d>] thermal_throttle_add_dev+0x10/0x7c
[   89.142403]  [<c036d1f2>] thermal_throttle_cpu_callback+0x49/0x9c
[   89.142454]  [<c0141842>] notifier_call_chain+0x26/0x50
[   89.142496]  [<c01418c3>] __raw_notifier_call_chain+0xe/0x10
[   89.142544]  [<c012be4a>] __cpu_notify+0x15/0x29
[   89.142581]  [<c036ead6>] _cpu_up+0x59/0xdc
[   89.142617]  [<c0364953>] enable_nonboot_cpus+0x3d/0x94
[   89.142660]  [<c0151f94>] hibernation_snapshot+0x11d/0x1b9
[   89.142704]  [<c01520d5>] hibernate+0xa5/0x13f
[   89.142740]  [<c0151035>] ? state_store+0x0/0xa7
[   89.142778]  [<c0151089>] state_store+0x54/0xa7
[   89.142815]  [<c0151035>] ? state_store+0x0/0xa7
[   89.142854]  [<c020ee89>] kobj_attr_store+0x16/0x22
[   89.142894]  [<c01c9a9a>] sysfs_write_file+0xbc/0xe7
[   89.142936]  [<c018e5d3>] vfs_write+0x8a/0xfd
[   89.142972]  [<c01c99de>] ? sysfs_write_file+0x0/0xe7
[   89.143018]  [<c018e6dd>] sys_write+0x3b/0x60
[   89.143055]  [<c01026ec>] sysenter_do_call+0x12/0x22
[   89.143112] SMP alternatives: switching to SMP code

PS. Sorry for overlook previosus mail, already I created bug entry (because 
it's regression):
https://bugzilla.kernel.org/show_bug.cgi?id=16629

Regards
-- 
Maciej Rutecki
http://www.maciek.unixy.pl
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
fix BUG: using smp_processor_id() in preemptible code (resend), Sergey Senozhatsky, (Wed Aug 18, 2:11 am)
Re: fix BUG: using smp_processor_id() in preemptible code ..., Maciej Rutecki, (Thu Aug 19, 8:04 am)
[PATCH] fix BUG using smp_processor_id() in preemptible th ..., Sergey Senozhatsky, (Fri Aug 20, 12:36 am)
[tip:x86/urgent] x86, hwmon: Fix unsafe smp_processor_id() ..., tip-bot for Sergey S ..., (Fri Aug 20, 9:43 pm)