aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorEli Cohen <[email protected]>2022-01-05 11:46:36 +0000
committerMichael S. Tsirkin <[email protected]>2022-01-14 23:50:53 +0000
commit30ef7a8ac8a07046b9ac9206d3a732a9f76b2e60 (patch)
treed352b3baea263b80673b06e56344aac1c6d9dfda /lib/test_overflow.c
parentvdpa: Sync calls set/get config/status with cf_mutex (diff)
downloadkernel-30ef7a8ac8a07046b9ac9206d3a732a9f76b2e60.tar.gz
kernel-30ef7a8ac8a07046b9ac9206d3a732a9f76b2e60.zip
vdpa: Read device configuration only if FEATURES_OK
Avoid reading device configuration during feature negotiation. Read device status and verify that VIRTIO_CONFIG_S_FEATURES_OK is set. Protect the entire operation, including configuration read with cf_mutex to ensure integrity of the results. Signed-off-by: Eli Cohen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions