Thread (15 messages) 15 messages, 2 authors, 4d ago

Re: [RFC PATCH v7 05/10] trace: make the stackmap capacity settable on the kernel command line

From: Li Pengfei <hidden>
Date: 2026-09-14 06:08:54
Also in: linux-doc, linux-kselftest, lkml

From: Pengfei Li <redacted>
Does passing this NULL pointer directly to kstrtoul() cause an immediate NULL
pointer dereference and kernel panic, since kstrtoul() does not check for a
NULL pointer before dereferencing it?
Yes. Booting with a bare "ftrace_stackmap.bits" panics. Will fix in v8:

	if (!str)
		return -EINVAL;

Thanks.

Pengfei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help