[PATCH] riscv: cpufeature: remove _RO from use_hcontext for KVM=m
Paul Walmsley
pjw at kernel.org
Mon Nov 30 17:31:35 PST 2026
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
More information about the linux-riscv
mailing list