linux/samples/damon
SeongJae Park 964314344e samples/damon/mtier: support boot time enable setup
If 'enable' parameter of the 'mtier' DAMON sample module is set at boot
time via the kernel command line, memory allocation is tried before the
slab is initialized.  As a result kernel NULL pointer dereference BUG can
happen.  Fix it by checking the initialization status.

Link: https://lkml.kernel.org/r/20250706193207.39810-4-sj@kernel.org
Fixes: 82a08bde3c ("samples/damon: implement a DAMON module for memory tiering")
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
History 2025-07-13 16:38:34 -07:00
..
Kconfig samples/damon: implement a DAMON module for memory tiering 2025-05-12 23:50:30 -07:00
Makefile samples/damon: implement a DAMON module for memory tiering 2025-05-12 23:50:30 -07:00
mtier.c samples/damon/mtier: support boot time enable setup 2025-07-13 16:38:34 -07:00
prcl.c samples/damon/prcl: fix boot time enable crash 2025-07-13 16:38:34 -07:00
wsse.c samples/damon/wsse: fix boot time enable handling 2025-07-13 16:38:33 -07:00