summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2026-04-09 18:15:59 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2026-05-04 14:16:11 +0200
commit7b894dac26e56eb1de7a8e198af4b994c5d6da82 (patch)
treef8d0e305856df6227d82bc201e2b994d331b5976 /scripts/Makefile.thinlto
parent7fd2df204f342fc17d1a0bfcd474b24232fb0f32 (diff)
x86/boot/compressed: Use boot_kstrtoul() for hugepages= parsing
Replace simple_strtoull() with boot_kstrtoul() for parsing the hugepages= boot parameter. Unlike simple_strtoull(), boot_kstrtoul() performs strict validation and returns an error on invalid inputs instead of silently accepting partial input. Use boot_kstrtoul() to reject and warn about invalid hugepages= values. boot_kstrtoul() also converts the input directly to an unsigned long and avoids implicit casting as max_gb_huge_pages *is* an unsigned long. [ bp: Massage commit message. ] Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://patch.msgid.link/20260409161600.152012-2-thorsten.blum@linux.dev
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions