diff options
author | Juergen Gross <jgross@suse.com> | 2022-04-28 10:53:23 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2022-05-19 15:02:49 +0300 |
commit | 6d1c2f48f3fcf5f42967938c8ba6b42ac6b44b43 (patch) | |
tree | 5eb2c927019c1208c8cccc97d9f2c2aeb7c2ad98 /drivers/xen | |
parent | a2f6751d5af44d8c1cab93c2c410fd334c460339 (diff) | |
download | linux-6d1c2f48f3fcf5f42967938c8ba6b42ac6b44b43.tar.xz |
xen/scsifront: harden driver against malicious backend
Instead of relying on a well behaved PV scsi backend verify all meta
data received from the backend and avoid multiple reads of the same
data from the shared ring page.
In case any illegal data from the backend is detected switch the
PV device to a new "error" state and deactivate it for further use.
Use the "lateeoi" variant for the event channel in order to avoid
event storms blocking the guest.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20220428075323.12853-5-jgross@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen')
0 files changed, 0 insertions, 0 deletions