> 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