[PATCH v2 0/3] kfence: fix pool allocation failure handling

Jackie Liu liu.yun at linux.dev
Thu Oct 29 22:55:21 PDT 2026


2026年10月30日 09:26, "Andrew Morton" <akpm at linux-foundation.org mailto:akpm at linux-foundation.org?to=%22Andrew%20Morton%22%20%3Cakpm%40linux-foundation.org%3E > 写到:


> 
> On Thu, 29 Oct 2026 10:57:40 +0800 Jackie Liu <liu.yun at linux.dev> wrote:
> 
> > 
> > Fix the cleanup address and page reuse window in failed late KFENCE
> >  initialization. Also let RISC-V boot if the early pool reservation fails.
> >  
> >  Patch 2 depends on patch 1. Patch 3 can be applied independently.
> > 
> Thanks.
> 
> We're all horridly busy with bugfixes at present and the first thing
> recipients think when presented with yet another is "why should I look
> at this".
> 
> So it really helps to start out with a succinct and punchy sentence
> which explains that thing.
> 
> LLM suggested to me
> 
> : KFENCE initialization failures can cause kernel crashes or memory
> : corruption, while a RISC-V failure can prevent the system from booting.
> : These fixes make the failure paths safe and allow systems to continue
> : running with KFENCE disabled.
> 
> How does that sound?

Hi Andrew,

Thanks for the suggestion. That wording sounds good to me. It makes
the impact of these bugs much clearer, and I'll keep this in mind
when writing future patch descriptions.

Also, Sashiko has reported an issue with patch 3/3.

Could you please apply only the first two patches and drop patch 3/3
for now? I'll address the reported issue and resend the third patch
separately once it's fixed.

Thanks,
Jackie


>



More information about the linux-riscv mailing list