]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390/vfio_ccw: Ensure index for read/write regions are within range
authorEric Farman <farman@linux.ibm.com>
Tue, 28 Jul 2026 03:30:18 +0000 (05:30 +0200)
committerChristian Borntraeger <borntraeger@linux.ibm.com>
Thu, 30 Jul 2026 17:50:24 +0000 (19:50 +0200)
commit9f5f9a78fedc45bc29d6a0a64e3a3472361afae5
treeaae7f8e7f4342ff4e26f3bdbb7f92afae94139d9
parent4f6fdc6e1a7fbfa36b945af33c65a417948feac0
s390/vfio_ccw: Ensure index for read/write regions are within range

The introduction of the capability chain rightly clamped the
region indexes to the range of the capabilities itself, but
neglected to do so for the existing read/write regions which
should also be enforced.

Fixes: db8e5d17ac03 ("vfio-ccw: add capabilities chain")
Cc: stable@vger.kernel.org
Cc: Cornelia Huck <cohuck@redhat.com>
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_async.c
drivers/s390/cio/vfio_ccw_chp.c
drivers/s390/cio/vfio_ccw_ops.c