diff options
author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2019-11-28 13:33:57 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-11-29 09:16:02 +0100 |
commit | f24ec9feadfed032a91e06cb3c564db533d5ff11 (patch) | |
tree | 41b11a84548ce64765654a02c6cfffb40bebb11a /pc-bios/pxe-rtl8139.rom | |
parent | 1a61a081ac33ae6cb7dd2e38d119a572f416c7f7 (diff) | |
download | qemu-f24ec9feadfed032a91e06cb3c564db533d5ff11.zip qemu-f24ec9feadfed032a91e06cb3c564db533d5ff11.tar.gz qemu-f24ec9feadfed032a91e06cb3c564db533d5ff11.tar.bz2 |
pc-bios/s390-ccw: fix sclp_get_loadparm_ascii
The existing s390 bios gets the LOADPARM information from the system using
an SCLP call that specifies a buffer length too small to contain all the
output.
The recent fixes in the SCLP code have exposed this bug, since now the
SCLP call will return an error (as per architecture) instead of
writing partially and completing successfully.
The solution is simply to specify the full page length as the SCCB
length instead of a smaller size.
Fixes: 832be0d8a3bb ("s390x: sclp: Report insufficient SCCB length")
Fixes: 9a22473c70f3 ("pc-bios/s390-ccw: get LOADPARM stored in SCP Read Info")
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Message-Id: <1574944437-31182-1-git-send-email-imbrenda@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Tested-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'pc-bios/pxe-rtl8139.rom')
0 files changed, 0 insertions, 0 deletions