summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorThorsten Blum <blum@kernel.org>2026-08-26 12:09:03 +0200
committerAndrew Morton <akpm@linux-foundation.org>2026-10-06 19:02:52 -0700
commitb6bec5b63a5b812145e53aaad1e63661c7214f93 (patch)
tree6a6d304caddca8dbdf659297f0af4e2111a1b9ef /tools/perf/scripts/python/libxed.py
parent83d3d7618421b40730e268a94bab33151fa88417 (diff)
init: fix early boot crash with bare hostname parameter
When a bare hostname parameter is specified on the kernel command line without the '=' separator, early parameter parsing passes NULL to early_hostname(), which dereferences it in strscpy() and can crash the system during early boot. Reject NULL values in early_hostname() and return -EINVAL instead. Link: https://lore.kernel.org/20260826100904.296151-2-blum@kernel.org Fixes: 5a704629f2c1 ("init: add "hostname" kernel parameter") Signed-off-by: Thorsten Blum <blum@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Dan Moulding <dmoulding@me.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions