]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/ipl: Clear SBP flag when bootprog is set
authorSven Schnelle <svens@linux.ibm.com>
Fri, 5 Dec 2025 09:58:57 +0000 (10:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:25 +0000 (10:14 +0100)
commitb56975f463417a295e28e70f6deff50eb6e7ae19
tree7cd9fc0832380739a04fe9b6ef890318f796171e
parentd478f50727c3ee46d0359f0d2ae114f70191816e
s390/ipl: Clear SBP flag when bootprog is set

commit b1aa01d31249bd116b18c7f512d3e46b4b4ad83b upstream.

With z16 a new flag 'search boot program' was introduced for
list-directed IPL (SCSI, NVMe, ECKD DASD). If this flag is set,
e.g. via selecting the "Automatic" value for the "Boot program
selector" control on an HMC load panel, it is copied to the reipl
structure from the initial ipl structure. When a user now sets a
boot prog via sysfs, the flag is not cleared and the bootloader
will again automatically select the boot program, ignoring user
configuration.

To avoid that, clear the SBP flag when a bootprog sysfs file is
written.

Cc: stable@vger.kernel.org
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/uapi/asm/ipl.h
arch/s390/kernel/ipl.c