[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251218155821.92454cbb7117c27c1b914ce0@linux-foundation.org>
Date: Thu, 18 Dec 2025 15:58:21 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: yuan linyu <yuanlinyu@...or.com>
Cc: Alexander Potapenko <glider@...gle.com>, Marco Elver <elver@...gle.com>,
Dmitry Vyukov <dvyukov@...gle.com>, Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>, <kasan-dev@...glegroups.com>,
<linux-mm@...ck.org>, <loongarch@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] kfence: allow change number of object by early
parameter
On Thu, 18 Dec 2025 09:58:49 +0800 yuan linyu <yuanlinyu@...or.com> wrote:
> when want to change the kfence pool size, currently it is not easy and
> need to compile kernel.
>
> Add an early boot parameter kfence.num_objects to allow change kfence
> objects number and allow increate total pool to provide high failure
> rate.
>
> ...
>
> include/linux/kfence.h | 5 +-
> mm/kfence/core.c | 122 +++++++++++++++++++++++++++++-----------
> mm/kfence/kfence.h | 4 +-
> mm/kfence/kfence_test.c | 2 +-
Can you please add some documentation in Documentation/dev-tools/kfence.rst?
Also, this should be described in
Documentation/admin-guide/kernel-parameters.txt. That file doesn't
mention kfence at all, which might be an oversight.
Meanwhile, I'll queue these patches in mm.git's mm-nonmm-unstable
branch for some testing. I'll await reviewer input before proceeding
further. Thanks.
Powered by blists - more mailing lists