Re: [PATCH 0/5] mm/hmm: HMM documentation updates and code fixes

From: Jason Gunthorpe
Date: Thu Jun 06 2019 - 10:57:12 EST

On Mon, May 06, 2019 at 04:29:37PM -0700, rcampbell@xxxxxxxxxx wrote:
> From: Ralph Campbell <rcampbell@xxxxxxxxxx>
> I hit a use after free bug in hmm_free() with KASAN and then couldn't
> stop myself from cleaning up a bunch of documentation and coding style
> changes. So the first two patches are clean ups, the last three are
> the fixes.
> Ralph Campbell (5):
> mm/hmm: Update HMM documentation
> mm/hmm: Clean up some coding style and comments

I applied these two to hmm.git

> mm/hmm: hmm_vma_fault() doesn't always call hmm_range_unregister()

This one needs revision

> mm/hmm: Use mm_get_hmm() in hmm_range_register()
> mm/hmm: Fix mm stale reference use in hmm_free()

I belive we all agreed that the approach in the RFC series I sent is
preferred, so these are superseded by that series.