[PATCH v3 0/3] platform/x86: hp-bioscfg: string buffer and password fixes

From: Muhammad Bilal

Date: Wed Sep 30 2026 - 17:17:05 EST


Fix string parsing in hp_get_string_from_buffer() and make over-length
password writes fail.

Changes in v3:
- Drop Suggested-by: Andy Shevchenko from patch 2, tidy its includes
and declarations (Andy)
- Return -E2BIG instead of -ERANGE in patch 3 (Andy)
- Drop a blank line in the declarations in patch 1 (Andy)

Changes in v2:
- Split the hp_get_string_from_buffer() fix in two (Ilpo)
- Drop the lib/string_helpers patch, use @only of string_escape_mem()
instead (Andy)
- Add patch 3

Muhammad Bilal (3):
platform/x86: hp-bioscfg: fix OOB reads in hp_get_string_from_buffer()
platform/x86: hp-bioscfg: fix non-ASCII truncation in
hp_get_string_from_buffer()
platform/x86: hp-bioscfg: return -E2BIG from validate_password_input()

drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 79 ++++++-------------
.../x86/hp/hp-bioscfg/passwdobj-attributes.c | 7 +-
2 files changed, 28 insertions(+), 58 deletions(-)

--
2.43.0