]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen/netfront: read response from backend only once
authorJuergen Gross <jgross@suse.com>
Mon, 29 Nov 2021 14:57:03 +0000 (15:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 07:44:06 +0000 (08:44 +0100)
commit4a963d074a6e88b6057713b7c9dec4f6065d0fd4
tree3e0cc45c023f837aa2578662746ff67a5b421e93
parent9dad969c4db2f9cb058e412d849645a471cdfa16
xen/netfront: read response from backend only once

commit 8446066bf8c1f9f7b7412c43fbea0fb87464d75b upstream.

In order to avoid problems in case the backend is modifying a response
on the ring page while the frontend has already seen it, just read the
response into a local buffer in one go and then operate on that buffer
only.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netfront.c