]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mm: Fix TLB flush for not-first PFNMAP mappings in unmap_region()
authorJann Horn <jannh@google.com>
Thu, 15 Sep 2022 14:25:19 +0000 (16:25 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:11:23 +0000 (15:11 +0100)
commitbf05a7fe76f8d0a0a3982eb933b0921b0bb27e89
tree226a1fb1cd4c19d8db01fd7bfa68f98d607c43f4
parent145999626623a85fe707805c4e8ea9ae0876ae9a
mm: Fix TLB flush for not-first PFNMAP mappings in unmap_region()

BugLink: https://bugs.launchpad.net/bugs/1993010
This is a stable-specific patch.
I botched the stable-specific rewrite of
commit b67fbebd4cf98 ("mmu_gather: Force tlb-flush VM_PFNMAP vmas"):
As Hugh pointed out, unmap_region() actually operates on a list of VMAs,
and the variable "vma" merely points to the first VMA in that list.
So if we want to check whether any of the VMAs we're operating on is
PFNMAP or MIXEDMAP, we have to iterate through the list and check each VMA.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
mm/mmap.c