Re: [PATCH] riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set
From: Paul Walmsley
Date: Wed Mar 25 2026 - 14:57:20 EST
On Mon, 23 Mar 2026, Zishun Yi wrote:
> In set_tagged_addr_ctrl(), when PR_TAGGED_ADDR_ENABLE is not set, pmlen
> is correctly set to 0, but it forgets to reset pmm. This results in the
> CPU pmm state not corresponding to the software pmlen state.
>
> Fix this by resetting pmm along with pmlen.
>
> Fixes: 2e1743085887 ("riscv: Add support for the tagged address ABI")
> Signed-off-by: Zishun Yi <vulab@xxxxxxxxxxx>
Thanks, queued for v7.0-rc.
- Paul