A vulnerability in the Linux kernel's RISC-V architecture handling of BPF JIT execmem addresses was fixed. The issue involved incorrect assumptions about memory writability in the vmalloc area when CONFIG_STRICT_MODULE_RWX is disabled, causing BPF JIT compilation to fail due to page faults. This bug affects configurations where BPF text is read-only regardless of strict module RWX settings and can prevent BPF programs from being JIT-compiled. The fix aligns with similar corrections made on arm64 and involves proper handling of executable memory mappings in patch_map(). The vulnerability does not affect !CONFIG_MMU builds.