All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix devm_memremap_pages() mem hotplug locking
@ 2017-02-12 22:34 ` Dan Williams
  0 siblings, 0 replies; 16+ messages in thread
From: Dan Williams @ 2017-02-12 22:34 UTC (permalink / raw)
  To: akpm
  Cc: Michal Hocko, linux-nvdimm, Greg Kroah-Hartman, linux-kernel,
	stable, Ben Hutchings, Vlastimil Babka

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(+)
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2017-02-15  0:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-12 22:34 [PATCH 0/2] fix devm_memremap_pages() mem hotplug locking Dan Williams
2017-02-12 22:34 ` Dan Williams
2017-02-12 22:34 ` Dan Williams
2017-02-12 22:34 ` [PATCH 1/2] mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done} Dan Williams
2017-02-12 22:34   ` Dan Williams
2017-02-12 22:34   ` Dan Williams
2017-02-12 22:34 ` [PATCH 2/2] mm: validate device_hotplug is held for memory hotplug Dan Williams
2017-02-12 22:34   ` Dan Williams
2017-02-13  1:25 ` [PATCH 0/2] fix devm_memremap_pages() mem hotplug locking Masayoshi Mizuma
2017-02-13  1:25   ` Masayoshi Mizuma
2017-02-13  1:25   ` Masayoshi Mizuma
2017-02-13  1:35   ` Dan Williams
2017-02-13  1:35     ` Dan Williams
2017-02-13  1:35     ` Dan Williams
2017-02-15  0:24     ` Masayoshi Mizuma
2017-02-15  0:24       ` Masayoshi Mizuma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.