mbox series

[0/1] s390x: Abort immediately on invalid loadparm

Message ID 20250117212235.1324063-1-jrossi@linux.ibm.com (mailing list archive)
Headers show
Series s390x: Abort immediately on invalid loadparm | expand

Message

Jared Rossi Jan. 17, 2025, 9:22 p.m. UTC
From: Jared Rossi <jrossi@linux.ibm.com>

This is a small fix to the IPL behavior in case the user has entered an invalid
loadparm.  The loadparm is a very specific value, which must be deliberately set
by the user. Therefore, if it is not valid, then it is a mistake in the guest 
configuration.

As such, we immediately terminate the IPL process if the loadparm is invalid,
either because it is too large or because it points to an empty boot entry.

Jared Rossi (1):
  pc-bios/s390-ccw: Abort IPL on invalid loadparm

 pc-bios/s390-ccw/bootmap.c | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)