diff options
author | Juergen Gross <[email protected]> | 2021-07-30 12:38:54 +0200 |
---|---|---|
committer | Juergen Gross <[email protected]> | 2021-08-30 12:01:59 +0200 |
commit | b94e4b147fd1992ad450e1fea1fdaa3738753373 (patch) | |
tree | d66c5592e6e2ebc8d0cad6adaf260072f7d3731c /net/lapb/lapb_iface.c | |
parent | 8f5a695d99000fc3aa73934d7ced33cfc64dcdab (diff) |
xen/blkfront: don't trust the backend response data blindly
Today blkfront will trust the backend to send only sane response data.
In order to avoid privilege escalations or crashes in case of malicious
backends verify the data to be within expected limits. Especially make
sure that the response always references an outstanding request.
Introduce a new state of the ring BLKIF_STATE_ERROR which will be
switched to in case an inconsistency is being detected. Recovering from
this state is possible only via removing and adding the virtual device
again (e.g. via a suspend/resume cycle).
Make all warning messages issued due to valid error responses rate
limited in order to avoid message floods being triggered by a malicious
backend.
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Jan Beulich <[email protected]>
Acked-by: Roger Pau Monné <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions