]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
riscv: mm: Fix incorrect ASID argument when flushing TLB
authorDylan Jhong <dylan@andestech.com>
Mon, 13 Mar 2023 03:49:06 +0000 (11:49 +0800)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:40 +0000 (13:33 +0200)
commit914a90ab3528c2ac7b503e333fc8bf2a91df2e1f
treeccd22c599e724c0b8f989b771bb19dd8526b99a7
parent2829dde78fe91fadfa527c5496718c85058ea342
riscv: mm: Fix incorrect ASID argument when flushing TLB

BugLink: https://bugs.launchpad.net/bugs/2016877
commit 9a801afd3eb95e1a89aba17321062df06fb49d98 upstream.

Currently, we pass the CONTEXTID instead of the ASID to the TLB flush
function. We should only take the ASID field to prevent from touching
the reserved bit field.

Fixes: 3f1e782998cd ("riscv: add ASID-based tlbflushing methods")
Signed-off-by: Dylan Jhong <dylan@andestech.com>
Reviewed-by: Sergey Matyukevich <sergey.matyukevich@syntacore.com>
Link: https://lore.kernel.org/r/20230313034906.2401730-1-dylan@andestech.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/riscv/include/asm/tlbflush.h
arch/riscv/mm/context.c
arch/riscv/mm/tlbflush.c