]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/sclp: Prevent release of buffer in I/O
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Thu, 20 Jun 2024 12:20:27 +0000 (14:20 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 1 Jul 2024 15:47:01 +0000 (17:47 +0200)
commitbf365071ea92b9579d5a272679b74052a5643e35
tree8620628c8a32de390466518634fe616ff1ce5c88
parentecec74bbfc6fb1885355aa0337f3452146e8caff
s390/sclp: Prevent release of buffer in I/O

When a task waiting for completion of a Store Data operation is
interrupted, an attempt is made to halt this operation. If this attempt
fails due to a hardware or firmware problem, there is a chance that the
SCLP facility might store data into buffers referenced by the original
operation at a later time.

Handle this situation by not releasing the referenced data buffers if
the halt attempt fails. For current use cases, this might result in a
leak of few pages of memory in case of a rare hardware/firmware
malfunction.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/char/sclp_sd.c