]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/uv: Fix handling of length extensions
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 10 Feb 2020 16:27:37 +0000 (11:27 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:53:04 +0000 (19:53 +0100)
commit9ea66515918e93aa9f38225d0b75fdf7c7f31a02
treeb8fd916798ab1728aec099df687b1625c3fe5ac2
parent9e6874da9446c5eb24328a9a46912bd109a27c06
s390/uv: Fix handling of length extensions

commit 27dc0700c3be7c681cea03c5230b93d02f623492 upstream.

The query parameter block might contain additional information and can
be extended in the future. If the size of the block does not suffice we
get an error code of rc=0x100.  The buffer will contain all information
up to the specified size and the hypervisor/guest simply do not need the
additional information as they do not know about the new data.  That
means that we can (and must) accept rc=0x100 as success.

Cc: stable@vger.kernel.org
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Fixes: 5abb9351dfd9 ("s390/uv: introduce guest side ultravisor code")
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/boot/uv.c