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)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 09:45:59 +0000 (10:45 +0100)
commit71bec91ec426598cdf2509164e713675a32e1f5b
tree5633551caf721a89f9063b345bffcc7b189d02d8
parent136211c28496f8c7ca1f3e70e637cdbba7e491da
ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal

commit 7d64f82cceb21e6d95db312d284f5f195e120154 upstream.

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: 81e88fdc432a (ACPI, APEI, Generic Hardware Error Source POLL/IRQ/NMI notification type support)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/acpi/apei/ghes.c