mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Linux stable kernels can reach greater than 256 sublevels [1], which can cause the cpi tooling to generate an invalid string that gets passed to the firmware and causes unusual responses: $ uname -r 5.4.255 $ cat /sys/firmware/cpi/system_level 0x04260000000504ff --reboot-- $ uname -r 5.4.256 $ cat /sys/firmware/cpi/system_level 0x4260000000504100 The first sublevel field is defined as one byte, so ensure that a value larger than that isn't included. [1] https://lore.kernel.org/lkml/1612534196241236@kroah.com/ Signed-off-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>