mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: HID: protect hid_debug_list
@ 2013-05-08 21:42 Parag Warudkar
  2013-05-09  8:45 ` Jiri Kosina
  0 siblings, 1 reply; 2+ messages in thread
From: Parag Warudkar @ 2013-05-08 21:42 UTC (permalink / raw)
  To: jkosina; +Cc: linux-kernel

Hi Jiri

Commit 2353f2bea307390e015493118e425152b8a5a431 HID: protect 
hid_debug_list causes the below BUG due to mutex_lock being called in 
atomic context - does this need to be converted to a spin lock?

[ 5636.125330] BUG: sleeping function called from invalid context at 
kernel/mutex.c:95
[ 5636.125331] in_atomic(): 1, irqs_disabled(): 1, pid: 5489, name: 
pm-suspend
[ 5636.125333] CPU: 3 PID: 5489 Comm: pm-suspend Not tainted 3.9.0+ #13
[ 5636.125333] Hardware name: Apple Inc. iMac12,1/Mac-942B5BF58194151B, 
BIOS    IM121.88Z.0047.B1F.1201241648 01/24/12
[ 5636.125336]  ffff880843d96000 ffff88083ead1b88 ffffffff8150579f 
ffff88083ead1b98
[ 5636.125338]  ffffffff8107b600 ffff88083ead1bb8 ffffffff81507cfb 
ffff880843dc1400
[ 5636.125339]  ffff880843d96000 ffff88083ead1c00 ffffffff813c4352 
ffff880843d97e08
[ 5636.125340] Call Trace:
[ 5636.125345]  [<ffffffff8150579f>] dump_stack+0x19/0x1b
[ 5636.125349]  [<ffffffff8107b600>] __might_sleep+0xe0/0x100
[ 5636.125351]  [<ffffffff81507cfb>] mutex_lock+0x2b/0x50
[ 5636.125354]  [<ffffffff813c4352>] hid_debug_event+0x32/0x100
[ 5636.125356]  [<ffffffff813c4807>] hid_dump_input+0x67/0xa0
[ 5636.125358]  [<ffffffff813c6d10>] hid_set_field+0x50/0x120
[ 5636.125361]  [<ffffffff813d48ca>] usb_hidinput_input_event+0x9a/0x120
[ 5636.125363]  [<ffffffff813942f3>] input_dev_toggle+0x83/0x170
[ 5636.125365]  [<ffffffff8139672b>] input_reset_device+0x4b/0x80
[ 5636.125367]  [<ffffffff81396760>] ? input_reset_device+0x80/0x80
[ 5636.125368]  [<ffffffff81396775>] input_dev_resume+0x15/0x20
[ 5636.125372]  [<ffffffff81331168>] dpm_run_callback+0x58/0x90
[ 5636.125374]  [<ffffffff81331a2c>] device_resume+0xac/0x1a0
[ 5636.125376]  [<ffffffff813327c4>] dpm_resume+0x114/0x230
[ 5636.125378]  [<ffffffff81332b01>] dpm_resume_end+0x11/0x20
[ 5636.125381]  [<ffffffff81095d74>] suspend_devices_and_enter+0x144/0x490
[ 5636.125383]  [<ffffffff8109625a>] pm_suspend+0x19a/0x230
[ 5636.125385]  [<ffffffff81094eb7>] state_store+0x87/0xf0
[ 5636.125388]  [<ffffffff812584ff>] kobj_attr_store+0xf/0x20
[ 5636.125391]  [<ffffffff811e86bd>] sysfs_write_file+0xed/0x160
[ 5636.125394]  [<ffffffff81175e25>] vfs_write+0xc5/0x1f0
[ 5636.125395]  [<ffffffff81176312>] SyS_write+0x52/0xa0
[ 5636.125397]  [<ffffffff81512e01>] tracesys+0xd4/0xd9

Parag

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: HID: protect hid_debug_list
  2013-05-08 21:42 HID: protect hid_debug_list Parag Warudkar
@ 2013-05-09  8:45 ` Jiri Kosina
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2013-05-09  8:45 UTC (permalink / raw)
  To: Parag Warudkar; +Cc: linux-kernel

On Wed, 8 May 2013, Parag Warudkar wrote:

> Hi Jiri
> 
> Commit 2353f2bea307390e015493118e425152b8a5a431 HID: protect 
> hid_debug_list causes the below BUG due to mutex_lock being called in 
> atomic context - does this need to be converted to a spin lock?

Hi Parag,

I already have fix for that queued [1] and will be pushing it to Linus 
shortly.

[1] https://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/commit/?h=for-3.10/upstream-fixes&id=1deb9d341d475ff84262e927d6c0e36fecb9942e

-- 
Jiri Kosina
SUSE Labs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-09  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08 21:42 HID: protect hid_debug_list Parag Warudkar
2013-05-09  8:45 ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®