Skip to content

[s390] s390/sclp: fix Secure-IPL facility detection

Claudio Imbrenda requested to merge cimbrend/centos-stream-9:bz2034116 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2034116 Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Build info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=42325069 Tested: by IBM Conflicts: None

commit d76b14f3971a0638b6cd0da289f8b48acee287d0 Author: Alexander Egorenkov egorenar@linux.ibm.com Date: Thu Sep 9 12:20:56 2021 +0200

s390/sclp: fix Secure-IPL facility detection

Prevent out-of-range access if the returned SCLP SCCB response is smaller
in size than the address of the Secure-IPL flag.

Fixes: c9896acc7851 ("s390/ipl: Provide has_secure sysfs attribute")
Cc: stable@vger.kernel.org # 5.2+
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

Signed-off-by: Claudio Imbrenda cimbrend@redhat.com

Edited by Claudio Imbrenda

Merge request reports