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

From: Li Pengfei

Date: Mon Sep 14 2026 - 02:11:07 EST


From: Pengfei Li <lipengfei28@xxxxxxxxxx>

> 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