[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <148693885124.16345.14319993365448440148.stgit@dwillia2-desk3.amr.corp.intel.com>
Date: Sun, 12 Feb 2017 14:34:11 -0800
From: Dan Williams <dan.j.williams@...el.com>
To: akpm@...ux-foundation.org
Cc: Michal Hocko <mhocko@...e.com>, Toshi Kani <toshi.kani@....com>,
Ben Hutchings <ben@...adent.org.uk>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-nvdimm@...ts.01.org, linux-kernel@...r.kernel.org,
stable@...r.kernel.org, Logan Gunthorpe <logang@...tatee.com>,
Vlastimil Babka <vbabka@...e.cz>
Subject: [PATCH 0/2] fix devm_memremap_pages() mem hotplug locking
Ben notes that commit f931ab479dd2 "mm: fix devm_memremap_pages crash,
use mem_hotplug_{begin, done}" is incomplete and broken. Writes to
mem_hotplug.active_writer need to be coordinated under the device
hotplug lock. Otherwise, we can potentially corrupt mem_hotplug.refcount
leading to soft lockups.
---
Dan Williams (2):
mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin,done}
mm: validate device_hotplug is held for memory hotplug
drivers/base/core.c | 5 +++++
include/linux/device.h | 1 +
kernel/memremap.c | 5 +++++
mm/memory_hotplug.c | 2 ++
4 files changed, 13 insertions(+)
Powered by blists - more mailing lists