From: Jackie Liu <liu.yun@linux.dev>
To: akpm@linux-foundation.org
Cc: palmer@dabbelt.com, aou@eecs.berkeley.edu, glider@google.com,
dvyukov@google.com, elver@google.com, pjw@kernel.org,
alex@ghiti.fr, linux-riscv@lists.infradead.org,
linux-mm@kvack.org, kasan-dev@googlegroups.com
Subject: [PATCH 0/2] riscv: fix KFENCE pool initialization
Date: Fri, 30 Oct 2026 18:59:31 +0800 [thread overview]
Message-ID: <20261030105933.4180-1-liu.yun@linux.dev> (raw)
From: Jackie Liu <liuyun01@kylinos.cn>
RISC-V KFENCE pool reservation failures can prevent the system from
booting. These fixes allow boot to continue with KFENCE disabled and
prepare late pools with the page mappings KFENCE requires.
The first patch fixes P4D leaf detection in the linear-map splitter.
The second uses that splitter to prepare late KFENCE pools, while
retaining the early PTE mapping.
Built RV64 kernels and RV32 pageattr.o. QEMU KFENCE KUnit covered boot
and runtime enabling, pool reservation failure, and page-table allocation
failures.
Thanks,
Jackie
Jackie Liu (2):
riscv: Recognize P4D leaves when splitting the linear mapping
riscv: Prepare late KFENCE pools with PTE mappings
arch/riscv/include/asm/kfence.h | 4 +-
arch/riscv/include/asm/set_memory.h | 3 ++
arch/riscv/mm/init.c | 23 +++++++++--
arch/riscv/mm/pageattr.c | 59 ++++++++++++++++++++---------
4 files changed, 67 insertions(+), 22 deletions(-)
base-commit: c339f4010dea8b0d754f84ace70cd1b089878ef8
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
WARNING: multiple messages have this Message-ID (diff)
From: Jackie Liu <liu.yun@linux.dev>
To: akpm@linux-foundation.org
Cc: palmer@dabbelt.com, aou@eecs.berkeley.edu, glider@google.com,
dvyukov@google.com, elver@google.com, pjw@kernel.org,
alex@ghiti.fr, linux-riscv@lists.infradead.org,
linux-mm@kvack.org, kasan-dev@googlegroups.com
Subject: [PATCH 0/2] riscv: fix KFENCE pool initialization
Date: Fri, 30 Oct 2026 18:59:31 +0800 [thread overview]
Message-ID: <20261030105933.4180-1-liu.yun@linux.dev> (raw)
From: Jackie Liu <liuyun01@kylinos.cn>
RISC-V KFENCE pool reservation failures can prevent the system from
booting. These fixes allow boot to continue with KFENCE disabled and
prepare late pools with the page mappings KFENCE requires.
The first patch fixes P4D leaf detection in the linear-map splitter.
The second uses that splitter to prepare late KFENCE pools, while
retaining the early PTE mapping.
Built RV64 kernels and RV32 pageattr.o. QEMU KFENCE KUnit covered boot
and runtime enabling, pool reservation failure, and page-table allocation
failures.
Thanks,
Jackie
Jackie Liu (2):
riscv: Recognize P4D leaves when splitting the linear mapping
riscv: Prepare late KFENCE pools with PTE mappings
arch/riscv/include/asm/kfence.h | 4 +-
arch/riscv/include/asm/set_memory.h | 3 ++
arch/riscv/mm/init.c | 23 +++++++++--
arch/riscv/mm/pageattr.c | 59 ++++++++++++++++++++---------
4 files changed, 67 insertions(+), 22 deletions(-)
base-commit: c339f4010dea8b0d754f84ace70cd1b089878ef8
next reply other threads:[~2026-10-30 11:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-30 10:59 Jackie Liu [this message]
2026-10-30 10:59 ` [PATCH 0/2] riscv: fix KFENCE pool initialization Jackie Liu
2026-10-30 10:59 ` [PATCH 1/2] riscv: Recognize P4D leaves when splitting the linear mapping Jackie Liu
2026-10-30 10:59 ` Jackie Liu
2026-10-30 10:59 ` [PATCH 2/2] riscv: Prepare late KFENCE pools with PTE mappings Jackie Liu
2026-10-30 10:59 ` Jackie Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261030105933.4180-1-liu.yun@linux.dev \
--to=liu.yun@linux.dev \
--cc=akpm@linux-foundation.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=dvyukov@google.com \
--cc=elver@google.com \
--cc=glider@google.com \
--cc=kasan-dev@googlegroups.com \
--cc=linux-mm@kvack.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.