Re: [PATCH] mm: Allow userland to request that the kernel clear memory on release

From: Matthew Garrett
Date: Wed Apr 24 2019 - 16:22:47 EST


On Wed, Apr 24, 2019 at 1:20 PM Matthew Wilcox <willy@xxxxxxxxxxxxx> wrote:
> It depends on the semantics you want. There's no legacy code to
> worry about here. I was seeing this as the equivalent of an atexit()
> handler; userspace is saying "When this page is unmapped, zero it".
> So it doesn't matter that somebody else might be able to reference it --
> userspace could have zeroed it themselves.

Mm ok that seems reasonable. I'll rework with that in mind.