]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/vfio_ccw: Ensure first IDAW remains constant
authorEric Farman <farman@linux.ibm.com>
Tue, 28 Jul 2026 03:30:16 +0000 (05:30 +0200)
committerChristian Borntraeger <borntraeger@linux.ibm.com>
Thu, 30 Jul 2026 17:50:15 +0000 (19:50 +0200)
commit565bef268d75bf7df665bce6923a88cd0eb74592
tree55d8ead72ef4addc27a4834737dcc4418df8a6f7
parenta005b7f1a491ffda61bff0fd0f6548f8986fb977
s390/vfio_ccw: Ensure first IDAW remains constant

The first IDAW in a list does not need to be on a 2K/4K boundary
like all others, and so is read separately to accurately calculate
the size of the buffer needed to read the full IDAL.

Verify that the address found in the first IDAW is unchanged between
reads, to ensure a consistent set of IDAWs being worked with.

Fixes: 01aa26c672c0 ("s390/cio: Combine direct and indirect CCW paths")
Cc: stable@vger.kernel.org
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
drivers/s390/cio/vfio_ccw_cp.c
drivers/s390/cio/vfio_ccw_cp.h