From: Rafael J. Wysocki Date: Tue, 6 Aug 2013 00:26:22 +0000 (+0200) Subject: ACPI / PM: Walk physical_node_list under physical_node_lock X-Git-Tag: v3.11-rc5~11^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623cf33cb055b1e81fa47e4fc16789b2c129e31e;p=pandora-kernel.git ACPI / PM: Walk physical_node_list under physical_node_lock The list of physical devices corresponding to an ACPI device object is walked by acpi_system_wakeup_device_seq_show() and physical_device_enable_wakeup() without taking that object's physical_node_lock mutex. Since each of those functions may be run at any time as a result of a user space action, the lack of appropriate locking in them may lead to a kernel crash if that happens during device hot-add or hot-remove involving the device object in question. Fix the issue by modifying acpi_system_wakeup_device_seq_show() and physical_device_enable_wakeup() to use physical_node_lock as appropriate. Signed-off-by: Rafael J. Wysocki Cc: All --- Reading git-diff-tree failed