linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2] mm/hmm/test: use after free in dmirror_allocate_chunk()
@ 2020-09-25 19:30 Markus Elfring
  2020-09-26 12:14 ` [PATCH v3] " Dan Carpenter
  0 siblings, 1 reply; 6+ messages in thread
From: Markus Elfring @ 2020-09-25 19:30 UTC (permalink / raw)
  To: Dan Carpenter, linux-mm, Andrew Morton, Stephen Rothwell, Dan Williams
  Cc: kernel-janitors, linux-kernel, Andy Lutomirski, Ard Biesheuvel,
	Ben Skeggs, Benjamin Herrenschmidt, Borislav Petkov,
	Brice Goglin, Catalin Marinas, Daniel Vetter, Dave Hansen,
	Dave Jiang, David Airlie, David Hildenbrand, Greg Kroah-Hartman,
	H. Peter Anvin, Ingo Molnar, Ira Weiny, Jason Gunthorpe,
	Jason Gunthorpe, Jeff Moyer, Jérôme Glisse, Jia He,
	Joao Martins, Jonathan Cameron, Michael Ellerman, Mike Rapoport,
	Paul Mackerras, Pavel Tatashin, Peter Zijlstra,
	Rafael J. Wysocki, Ralph Campbell, Thomas Gleixner, Tom Lendacky,
	Vishal Verma, Wei Yang, Wei Yongjun, Will Deacon

> Neither the allocation nor the call to request_free_mem_region() has to
> be done under the lock so I moved those to the start of the function.

Can this information become relevant for another update step?


> Fixes: b2ef9f5a5cb3 ("mm/hmm/test: add selftest driver for HMM")

I find this commit reference interesting somehow.
How do you think about the commit 786ae133e07f2a6b352a0efad16b555ee45a2898
("lib: fix test_hmm.c reference after free" from 2020-06-26)
and the commit 1f9c4bb986d978a5e39153b39a71c9d098b65c5c ("mm/memremap_pages:
convert to 'struct range'" from 2020-09-23) for your update suggestion?

Regards,
Markus


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

end of thread, other threads:[~2020-09-29  1:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 19:30 [PATCH v2] mm/hmm/test: use after free in dmirror_allocate_chunk() Markus Elfring
2020-09-26 12:14 ` [PATCH v3] " Dan Carpenter
2020-09-26 13:10   ` Markus Elfring
2020-09-26 22:17   ` Jason Gunthorpe
2020-09-29  0:52     ` Andrew Morton
2020-09-29  1:25       ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).