Thread (6 messages) flat view 6 messages, 3 authors, 2022-10-04

Re: [PATCH v3 4/4] powerpc/64s: Enable KFENCE on book3s64

From: Russell Currey <hidden>
Date: 2022-09-27 00:31:31

On Mon, 2022-09-26 at 07:57 +0000, Nicholas Miehlbradt wrote:
KFENCE support was added for ppc32 in commit 90cbac0e995d
("powerpc: Enable KFENCE for PPC32").
Enable KFENCE on ppc64 architecture with hash and radix MMUs.
It uses the same mechanism as debug pagealloc to
protect/unprotect pages. All KFENCE kunit tests pass on both
MMUs.

KFENCE memory is initially allocated using memblock but is
later marked as SLAB allocated. This necessitates the change
to __pud_free to ensure that the KFENCE pages are freed
appropriately.

Based on previous work by Christophe Leroy and Jordan Niethe.

Signed-off-by: Nicholas Miehlbradt <redacted>
LGTM.  For the whole series:

Reviewed-by: Russell Currey <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help