Re: [PATCH 7/8] xen/netfront: don't trust the backend response data blindly

2021-05-17 Thread Jan Beulich
On 13.05.2021 12:03, Juergen Gross wrote: > @@ -429,6 +453,12 @@ static void xennet_tx_buf_gc(struct netfront_queue > *queue) > } while (more_to_do); > > xennet_maybe_wake_tx(queue); > + > + return; > + > + err: > + queue->info->broken = true; > + dev_alert(dev, "Disabled

[PATCH 7/8] xen/netfront: don't trust the backend response data blindly

2021-05-13 Thread Juergen Gross
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