[PATCH] riscv: Reset pmm when PR_TAGGED_ADDR_ENABLE is not set

Paul Walmsley pjw at kernel.org
Wed Mar 25 11:57:14 PDT 2026


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 at iscas.ac.cn>

Thanks, queued for v7.0-rc.


- Paul



More information about the linux-riscv mailing list