summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorThorsten Blum <blum@kernel.org>2026-08-26 12:09:03 +0200
committerAndrew Morton <akpm@linux-foundation.org>2026-08-27 22:50:05 -0700
commitf18e9c154e303a81137204e62658f66e37c01256 (patch)
tree4e8dcf2b8415cc35724a0d671e491992e7f5270a /scripts/objdiff
parent62b7f79cc5f279807f116665d7392bc0095cee58 (diff)
downloadlinux-next-f18e9c154e303a81137204e62658f66e37c01256.tar.gz
linux-next-f18e9c154e303a81137204e62658f66e37c01256.zip
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> Cc: Dan Moulding <dmoulding@me.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions