summaryrefslogtreecommitdiff
path: root/drivers/amba
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2021-08-24 13:28:09 +0300
committerDavid S. Miller <davem@davemloft.net>2021-08-25 12:43:21 +0300
commita884daa61a7d91650987e855464526aef219590f (patch)
tree78bec8033b05c8976faf0356bd48c12c94732c8f /drivers/amba
parent21631d2d741a64a073e167c27769e73bc7844a2f (diff)
downloadlinux-a884daa61a7d91650987e855464526aef219590f.tar.xz
xen/netfront: don't trust the backend response data blindly
Today netfront 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. Note that only the tx queue needs special id handling, as for the rx queue the id is equal to the index in the ring page. Introduce a new indicator for the device whether it is broken and let the device stop working when it is set. Set this indicator in case the backend sets any weird data. Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions