Patch "Revert "usb: cdc-wdm: close race between read and workqueue"" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "usb: cdc-wdm: close race between read and workqueue"

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-usb-cdc-wdm-close-race-between-read-and-workqueue.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 1607830dadeefc407e4956336d9fcd9e9defd810 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Apr 2024 16:33:28 +0200
Subject: Revert "usb: cdc-wdm: close race between read and workqueue"
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

commit 1607830dadeefc407e4956336d9fcd9e9defd810 upstream.

This reverts commit 339f83612f3a569b194680768b22bf113c26a29d.

It has been found to cause problems in a number of Chromebook devices,
so revert the change until it can be brought back in a safe way.

Link: https://lore.kernel.org/r/385a3519-b45d-48c5-a6fd-a3fdb6bec92f@xxxxxxxxxxxx
Reported-by:: Aleksander Morgado <aleksandermj@xxxxxxxxxxxx>
Fixes: 339f83612f3a ("usb: cdc-wdm: close race between read and workqueue")
Cc: stable <stable@xxxxxxxxxx>
Cc: Oliver Neukum <oneukum@xxxxxxxx>
Cc: Bjørn Mork <bjorn@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 drivers/usb/class/cdc-wdm.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -485,7 +485,6 @@ out_free_mem:
 static int service_outstanding_interrupt(struct wdm_device *desc)
 {
 	int rv = 0;
-	int used;
 
 	/* submit read urb only if the device is waiting for it */
 	if (!desc->resp_count || !--desc->resp_count)
@@ -500,10 +499,7 @@ static int service_outstanding_interrupt
 		goto out;
 	}
 
-	used = test_and_set_bit(WDM_RESPONDING, &desc->flags);
-	if (used)
-		goto out;
-
+	set_bit(WDM_RESPONDING, &desc->flags);
 	spin_unlock_irq(&desc->iuspin);
 	rv = usb_submit_urb(desc->response, GFP_KERNEL);
 	spin_lock_irq(&desc->iuspin);


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-5.15/revert-tracing-trigger-fix-to-return-error-if-failed-to-alloc-snapshot.patch
queue-5.15/thunderbolt-avoid-notify-pm-core-about-runtime-pm-resume.patch
queue-5.15/kvm-x86-pmu-do-not-mask-lvtpc-when-handling-a-pmi-on-amd-platforms.patch
queue-5.15/comedi-vmk80xx-fix-incomplete-endpoint-checking.patch
queue-5.15/arm64-hibernate-fix-level3-translation-fault-in-swsusp_save.patch
queue-5.15/usb-serial-option-add-support-for-fibocom-fm650-fg650.patch
queue-5.15/usb-serial-option-add-telit-fn920c04-rmnet-compositions.patch
queue-5.15/usb-dwc2-host-fix-dereference-issue-in-ddma-completion-flow.patch
queue-5.15/bpf-generalize-check_ctx_reg-for-reuse-with-other-types.patch
queue-5.15/bpf-generally-fix-helper-register-offset-check.patch
queue-5.15/selftests-ftrace-limit-length-in-subsystem-enable-tests.patch
queue-5.15/usb-serial-option-add-fibocom-fm135-gl-variants.patch
queue-5.15/init-main.c-fix-potential-static_command_line-memory-overflow.patch
queue-5.15/speakup-avoid-crash-on-very-long-word.patch
queue-5.15/bpf-fix-ringbuf-memory-type-confusion-when-passing-to-helpers.patch
queue-5.15/usb-disable-usb3-lpm-at-shutdown.patch
queue-5.15/bpf-extend-kfunc-with-ptr_to_ctx-ptr_to_mem-argument-support.patch
queue-5.15/thunderbolt-fix-wake-configurations-after-device-unplug.patch
queue-5.15/kvm-x86-snapshot-if-a-vcpu-s-vendor-model-is-amd-vs.-intel-compatible.patch
queue-5.15/serial-pmac_zilog-remove-flawed-mitigation-for-rx-irq-flood.patch
queue-5.15/usb-serial-option-add-lonsung-u8300-u9300-product.patch
queue-5.15/usb-serial-option-support-quectel-em060k-sub-models.patch
queue-5.15/revert-lockd-introduce-safe-async-lock-op.patch
queue-5.15/usb-gadget-f_ncm-fix-uaf-ncm-object-at-re-bind-after-usb-ep-transport-error.patch
queue-5.15/fs-sysfs-fix-reference-leak-in-sysfs_break_active_protection.patch
queue-5.15/binder-check-offset-alignment-in-binder_get_object.patch
queue-5.15/revert-usb-cdc-wdm-close-race-between-read-and-workqueue.patch
queue-5.15/usb-serial-option-add-rolling-rw101-gl-and-rw135-gl-support.patch
queue-5.15/bpf-fix-out-of-bounds-access-for-ringbuf-helpers.patch
queue-5.15/sunrpc-fix-rpcgss_context-trace-event-acceptor-field.patch
queue-5.15/mei-me-disable-rpl-s-on-sps-and-ign-firmwares.patch
queue-5.15/kprobes-fix-possible-use-after-free-issue-on-kprobe-registration.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux