]> git.baikalelectronics.ru Git - kernel.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)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 11 Feb 2020 19:15:42 +0000 (20:15 +0100)
commit38e74c6e9e30d45a0b8f23a02253d1b37dd20306
tree58fa694de310f5e7a4eded85d3798b796e51beb2
parent5e9c6d6b3b4aa28f86a8360aef425e1efa24d489
s390/uv: Fix handling of length extensions

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: 722e01f17dce ("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>
arch/s390/boot/uv.c