From: Greg Kroah-Hartman Date: Fri, 28 Oct 2016 08:53:20 +0000 (-0400) Subject: 4.4-stable patches X-Git-Tag: v4.4.29~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce579b72745136054f9d2a6e7b8281a76569e1b0;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: xenbus-don-t-look-up-transaction-ids-for-ordinary-writes.patch --- diff --git a/queue-4.4/series b/queue-4.4/series index 9e542a8ef9f..23d8a6d20c2 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -9,3 +9,4 @@ drm-radeon-narrow-asic_init-for-virtualization.patch drm-radeon-si-dpm-fix-phase-shedding-setup.patch drm-radeon-change-vblank_time-s-calculation-method-to-reduce-computational-error.patch drm-vmwgfx-limit-the-user-space-command-buffer-size.patch +xenbus-don-t-look-up-transaction-ids-for-ordinary-writes.patch diff --git a/queue-4.4/xenbus-don-t-look-up-transaction-ids-for-ordinary-writes.patch b/queue-4.4/xenbus-don-t-look-up-transaction-ids-for-ordinary-writes.patch new file mode 100644 index 00000000000..36af26933b4 --- /dev/null +++ b/queue-4.4/xenbus-don-t-look-up-transaction-ids-for-ordinary-writes.patch @@ -0,0 +1,38 @@ +From 9a035a40f7f3f6708b79224b86c5777a3334f7ea Mon Sep 17 00:00:00 2001 +From: Jan Beulich +Date: Mon, 15 Aug 2016 09:02:38 -0600 +Subject: xenbus: don't look up transaction IDs for ordinary writes +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +From: Jan Beulich + +commit 9a035a40f7f3f6708b79224b86c5777a3334f7ea upstream. + +This should really only be done for XS_TRANSACTION_END messages, or +else at least some of the xenstore-* tools don't work anymore. + +Fixes: 0beef634b8 ("xenbus: don't BUG() on user mode induced condition") +Reported-by: Richard Schütz +Signed-off-by: Jan Beulich +Tested-by: Richard Schütz +Signed-off-by: David Vrabel +Cc: "M. Vefa Bicakci" +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/xen/xenbus/xenbus_dev_frontend.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/xen/xenbus/xenbus_dev_frontend.c ++++ b/drivers/xen/xenbus/xenbus_dev_frontend.c +@@ -316,7 +316,7 @@ static int xenbus_write_transaction(unsi + rc = -ENOMEM; + goto out; + } +- } else { ++ } else if (msg_type == XS_TRANSACTION_END) { + list_for_each_entry(trans, &u->transactions, list) + if (trans->handle.id == u->u.msg.tx_id) + break;