Re: [PATCH v8 0/4] Introduce mseal

From: Linus Torvalds
Date: Fri Feb 02 2024 - 18:36:47 EST


On Fri, 2 Feb 2024 at 13:18, Liam R. Howlett <Liam.Howlett@xxxxxxxxxx> wrote:
>
> There will be a larger performance cost to checking up front without
> allowing the partial completion.

I suspect that for mseal(), the only half-way common case will be
sealing an area that is entirely contained within one vma.

So the cost will be the vma splitting (if it's not the whole vma), and
very unlikely to be any kind of "walk the vma's to check that they can
all be sealed" loop up-front.

We'll see, but that's my gut feel, at least.

Linus