s390x/ipl: check kernel command line size
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Wed, 6 Oct 2021 09:26:30 +0000 (11:26 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 13 Oct 2021 14:20:55 +0000 (16:20 +0200)
commitf1420101023c7d170d802efc8daab686189ed1bf
treef5523db7b4fdea92fe6711e3037158fbd34cf7a3
parentbfd9a76f9c143d450ab5545dedfa74364b39fc56
s390x/ipl: check kernel command line size

Check if the provided kernel command line exceeds the maximum size of the s390x
Linux kernel command line size, which is 896 bytes.

Reported-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Message-Id: <20211006092631.20732-1-mhartmay@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
[thuth: Adjusted format specifier for size_t]
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/ipl.c