]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
acpi/nfit: Fix race accessing memdev in nfit_get_smbios_id()
authorTony Luck <tony.luck@intel.com>
Fri, 11 Jan 2019 22:46:37 +0000 (14:46 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:09:47 +0000 (10:09 +0100)
commit26dcec00203f04797c135a5870c8bbc954669d83
tree29a4fc9bdc85b33a3ddbe17bf0f133a9b1e4b2f7
parent485db4ce0094125c99f8361095201cf1ec2bd7f5
acpi/nfit: Fix race accessing memdev in nfit_get_smbios_id()

[ Upstream commit 0919871ac37fdcf46c7657da0f1742efe096b399 ]

Possible race accessing memdev structures after dropping the
mutex. Dan Williams says this could race against another thread
that is doing:

 # echo "ACPI0012:00" > /sys/bus/acpi/drivers/nfit/unbind

Reported-by: Jane Chu <jane.chu@oracle.com>
Fixes: 23222f8f8dce ("acpi, nfit: Add function to look up nvdimm...")
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/nfit/core.c