Patch-mainline: never (revert original patch due to kabi)
References: bsc#1179508 XSA-349 CVE-2020-29568
From: Juergen Gross <jgross@suse.com>
Date: Tue, 22 Dec 2020 10:24:55 +0100
Subject: [PATCH] xen: revert Disallow pending watch messages
Due to kabi changes revert original patch
"xenbus/xenbus_backend: Disallow pending watch messages"
(commit 9996bd494794a2fe393e97e7a982388c6249aa76 upstream).
The issue will be fixed differently in a followup patch.
Signed-off-by: Juergen Gross <jgross@suse.com>
---
drivers/xen/xenbus/xenbus_probe_backend.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/xen/xenbus/xenbus_probe_backend.c b/drivers/xen/xenbus/xenbus_probe_backend.c
index 4bb603051d5b..b0bed4faf44c 100644
--- a/drivers/xen/xenbus/xenbus_probe_backend.c
+++ b/drivers/xen/xenbus/xenbus_probe_backend.c
@@ -180,12 +180,6 @@ static int xenbus_probe_backend(struct xen_bus_type *bus, const char *type,
return err;
}
-static bool frontend_will_handle(struct xenbus_watch *watch,
- const char *path, const char *token)
-{
- return watch->nr_pending == 0;
-}
-
static void frontend_changed(struct xenbus_watch *watch,
const char *path, const char *token)
{
@@ -197,7 +191,6 @@ static struct xen_bus_type xenbus_backend = {
.levels = 3, /* backend/type/<frontend>/<id> */
.get_bus_id = backend_bus_id,
.probe = xenbus_probe_backend,
- .otherend_will_handle = frontend_will_handle,
.otherend_changed = frontend_changed,
.bus = {
.name = "xen-backend",
--
2.26.2