Re: [PATCH] riscv: cpufeature: remove _RO from use_hcontext for KVM=m

From: Paul Walmsley

Date: Mon Nov 30 2026 - 20:31:42 EST


On Tue, 9 Jun 2026, Jun Sun wrote:

> use_hcontext is in __ro_after_init but only referenced from KVM's
> __jump_table. With KVM=m, jump_label_init_ro() never sees it, so
> it is never sealed. Module load then tries to write to the RO key
> in jump_label_add_module() and oopses.

Looks like this isn't against mainline?


- Paul