Re: [GIT pull] core/urgent for v5.18-rc6

From: Linus Torvalds
Date: Sun May 08 2022 - 15:06:04 EST


On Sun, May 8, 2022 at 11:00 AM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> I suspect it's related to mmu_notifiers or something, but I really
> would have liked a more exact "this is where things go wrong".

Looks like it is

->(*sva_bind)()
-> intel_svm_bind_mm()
-> mmu_notifier_register(&svm->notifier, mm)

and yes, the mmu notifiers annoyingly end up doing an mmgrab, because
they actually don't want to affect the state of mm teardown, they just
want to be notified about it.

Annoying, but it seems to explain the issue if I followed this right.

Unlike the commit message.

Linus