]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal
authorJames Morse <james.morse@arm.com>
Thu, 16 Mar 2017 14:30:39 +0000 (14:30 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Mar 2017 21:43:42 +0000 (23:43 +0200)
commit748e2fd3872d5021d035bd6667422e68d7eb3d0f
treee1e6b89815613fb875633fa5e86dfeb8305121f7
parent04db378bc38419431c40af65242beb366dba35ea
ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal

When removing a GHES device notified by SCI, list_del_rcu() is used,
ghes_remove() should call synchronize_rcu() before it goes on to call
kfree(ghes), otherwise concurrent RCU readers may still hold this list
entry after it has been freed.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: "Huang, Ying" <ying.huang@intel.com>
Fixes: b31d4eba749f (ACPI, APEI, Generic Hardware Error Source POLL/IRQ/NMI notification type support)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/ghes.c