alistair23-linux/drivers/acpi
Rafael J. Wysocki cf860be639 ACPI / scan: Prevent device add uevents from racing with user space
ACPI core adds sysfs device files after the given devices have been
registered with device_register(), which is not appropriate, because
it may lead to race conditions with user space tools using those
files.

Fix the problem by delaying the KOBJ_ADD uevent for ACPI devices
until after all of the devices' sysfs files have been created.

This also fixes a use-after-free in acpi_device_unregister().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-24 12:49:49 +01:00
..
acpica ACPICA: Remove useless mini-C library. 2013-01-03 13:09:10 +01:00
apei ACPI / APEI: Fix the returned value in erst_dbg_read 2013-01-03 13:10:20 +01:00
ac.c
acpi_i2c.c i2c / ACPI: add ACPI enumeration support 2012-11-23 12:23:40 +01:00
acpi_ipmi.c
acpi_memhotplug.c Merge branch 'acpi-scan' into acpi-pm 2013-01-17 14:10:27 +01:00
acpi_pad.c ACPI: strict_strtoul() and printk() cleanup in acpi_pad 2012-11-15 00:16:00 +01:00
acpi_platform.c ACPI / platform: include missed header into acpi_platform.c 2012-11-27 13:44:58 +01:00
battery.c ACPI / battery: Correct battery capacity values on Thinkpads 2012-11-16 22:28:58 +01:00
bgrt.c
blacklist.c
bus.c ACPI / PM: Move device power management functions to device_pm.c 2013-01-19 22:09:22 +01:00
button.c
cm_sbs.c
container.c ACPI: Make acpi_bus_scan() and acpi_bus_add() take only one argument 2013-01-03 13:09:40 +01:00
custom_method.c
debugfs.c
device_pm.c ACPI / PM: Fix device power state value after transitions to D3cold 2013-01-22 12:56:35 +01:00
dock.c ACPI / scan: Drop the second argument of acpi_bus_trim() 2013-01-15 13:23:53 +01:00
ec.c ACPI / EC: Don't count a SCI interrupt as a false one 2012-11-15 00:15:59 +01:00
ec_sys.c
event.c
fan.c
glue.c Merge branch 'acpi-scan' into acpi-pm 2013-01-17 14:10:27 +01:00
hed.c Driver core updates for 3.8-rc1 2012-12-11 13:13:55 -08:00
internal.h ACPI / scan: Prevent device add uevents from racing with user space 2013-01-24 12:49:49 +01:00
Kconfig Merge branch 'x86-acpi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-12-14 10:03:23 -08:00
Makefile ACPI / PCI: Move the _PRT setup and cleanup code to pci-acpi.c 2013-01-03 13:09:41 +01:00
numa.c
nvs.c
osl.c Merge branch 'x86-acpi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-12-14 10:03:23 -08:00
pci_irq.c PCI changes for the v3.8 merge window: 2012-12-13 12:14:47 -08:00
pci_link.c
pci_root.c ACPI / PCI: Move the _PRT setup and cleanup code to pci-acpi.c 2013-01-03 13:09:41 +01:00
pci_slot.c
power.c ACPI / scan: Prevent device add uevents from racing with user space 2013-01-24 12:49:49 +01:00
proc.c ACPI: drop unnecessary local variable from acpi_system_write_wakeup_device() 2012-11-22 23:20:31 +01:00
processor_core.c
processor_driver.c ACPI: update ej_event interface to take acpi_device 2013-01-15 13:24:59 +01:00
processor_idle.c cpuidle: Measure idle state durations with monotonic clock 2012-11-27 14:17:58 +01:00
processor_perflib.c
processor_thermal.c
processor_throttling.c
reboot.c
resource.c ACPI: remove unnecessary INIT_LIST_HEAD 2012-11-27 13:49:36 +01:00
sbs.c
sbshc.c
sbshc.h
scan.c ACPI / scan: Prevent device add uevents from racing with user space 2013-01-24 12:49:49 +01:00
sleep.c ACPI / PM: Consolidate suspend-specific and hibernate-specific code 2013-01-19 22:09:23 +01:00
sleep.h ACPI: Drop power resources driver 2013-01-17 14:11:06 +01:00
sysfs.c ACPICA: Fix AcpiSrc caused divergences. 2012-11-15 00:31:23 +01:00
tables.c
thermal.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux 2012-12-12 07:57:13 -08:00
utils.c ACPI: Add acpi_handle_<level>() interfaces 2012-11-21 23:20:22 +01:00
video.c ACPI / video: ignore BIOS initial backlight value for HP Folio 13-2000 2012-12-04 23:30:19 +01:00
video_detect.c ACPI / video: Add "Asus UL30VT" to ACPI video detect blacklist 2012-11-30 13:02:50 +01:00
wakeup.c