* + loongarch-kfence-avoid-use-config_kfence_num_objects.patch added to mm-new branch
@ 2025-12-18 23:59 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-12-18 23:59 UTC (permalink / raw)
To: mm-commits, kernel, glider, elver, dvyukov, chenhuacai, yuanlinyu,
akpm
The patch titled
Subject: LoongArch: kfence: avoid use CONFIG_KFENCE_NUM_OBJECTS
has been added to the -mm mm-new branch. Its filename is
loongarch-kfence-avoid-use-config_kfence_num_objects.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/loongarch-kfence-avoid-use-config_kfence_num_objects.patch
This patch will later appear in the mm-new branch at
git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Note, mm-new is a provisional staging ground for work-in-progress
patches, and acceptance into mm-new is a notification for others take
notice and to finish up reviews. Please do not hesitate to respond to
review feedback and post updated versions to replace or incrementally
fixup patches in mm-new.
The mm-new branch of mm.git is not included in linux-next
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next via various
branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
and is updated there most days
------------------------------------------------------
From: yuan linyu <yuanlinyu@honor.com>
Subject: LoongArch: kfence: avoid use CONFIG_KFENCE_NUM_OBJECTS
Date: Thu, 18 Dec 2025 09:58:47 +0800
Patch series "kfence: allow change objects number".
patch01 use common KFENCE_POOL_SIZE for LoongArch
patch02 always create kfence debugfs dir/file
patch03 allow change objects number
This patch (of 3):
Use common kfence macro KFENCE_POOL_SIZE for KFENCE_AREA_SIZE definition
Link: https://lkml.kernel.org/r/20251218015849.1414609-1-yuanlinyu@honor.com
Link: https://lkml.kernel.org/r/20251218015849.1414609-2-yuanlinyu@honor.com
Signed-off-by: yuan linyu <yuanlinyu@honor.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Marco Elver <elver@google.com>
Cc: WANG Xuerui <kernel@xen0n.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/loongarch/include/asm/pgtable.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/arch/loongarch/include/asm/pgtable.h~loongarch-kfence-avoid-use-config_kfence_num_objects
+++ a/arch/loongarch/include/asm/pgtable.h
@@ -10,6 +10,7 @@
#define _ASM_PGTABLE_H
#include <linux/compiler.h>
+#include <linux/kfence.h>
#include <asm/addrspace.h>
#include <asm/asm.h>
#include <asm/page.h>
@@ -96,7 +97,7 @@ extern unsigned long empty_zero_page[PAG
#define MODULES_END (MODULES_VADDR + SZ_256M)
#ifdef CONFIG_KFENCE
-#define KFENCE_AREA_SIZE (((CONFIG_KFENCE_NUM_OBJECTS + 1) * 2 + 2) * PAGE_SIZE)
+#define KFENCE_AREA_SIZE (KFENCE_POOL_SIZE + (2 * PAGE_SIZE))
#else
#define KFENCE_AREA_SIZE 0
#endif
_
Patches currently in -mm which might be from yuanlinyu@honor.com are
loongarch-kfence-avoid-use-config_kfence_num_objects.patch
kfence-allow-create-debugfs-dir-file-unconditionally.patch
kfence-allow-change-number-of-object-by-early-parameter.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-18 23:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18 23:59 + loongarch-kfence-avoid-use-config_kfence_num_objects.patch added to mm-new branch Andrew Morton
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.