linux-stable/samples
SeongJae Park dd1f0f4bfb samples/damon/mtier: support boot time enable setup
commit 964314344e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-20 18:41:35 +02:00
..
acrn
auxdisplay
binderfs
bpf Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-05-01 15:11:38 -07:00
cgroup
check-exec
configfs
connector
coresight
damon samples/damon/mtier: support boot time enable setup 2025-08-20 18:41:35 +02:00
fanotify
fprobe
ftrace tracing: samples: Initialize trace_array_printk() with the correct function 2025-05-12 13:07:22 -04:00
hid
hidraw
hung_task samples: extend hung_task detector test with semaphore support 2025-05-11 17:54:08 -07:00
hw_breakpoint
kdb
kfifo
kmemleak
kobject
kprobes
landlock
livepatch samples/livepatch: add module descriptions 2025-04-11 17:32:38 -07:00
mei samples: mei: Fix building on musl libc 2025-08-15 16:38:34 +02:00
nitro_enclaves
pfsm
pidfd
pktgen
qmi
rpmsg
rust drm for 6.16-rc1 2025-05-28 09:46:39 -07:00
seccomp
timers
trace_events
trace_printk
tsm-mr sample/tsm-mr: Fix missing static for sample_report 2025-05-12 22:15:57 -07:00
uhid
user_events
v4l
vfio-mdev
vfs
watch_queue
watchdog
Kconfig - The 3 patch series "hung_task: extend blocking task stacktrace dump to 2025-05-31 19:12:53 -07:00
Makefile - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00