Patch "usbnet: ipheth: drop RX URBs with no payload" has been added to the 6.6-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

    usbnet: ipheth: drop RX URBs with no payload

to the 6.6-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:
     usbnet-ipheth-drop-rx-urbs-with-no-payload.patch
and it can be found in the queue-6.6 subdirectory.

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



commit 8fad56e5506630d72fd858b57950d226ce8ebe38
Author: Foster Snowhill <forst@xxxxxx>
Date:   Tue Aug 6 19:28:07 2024 +0200

    usbnet: ipheth: drop RX URBs with no payload
    
    [ Upstream commit 94d7eeb6c0ef0310992944f0d0296929816a2cb0 ]
    
    On iPhone 15 Pro Max one can observe periodic URBs with no payload
    on the "bulk in" (RX) endpoint. These don't seem to do anything
    meaningful. Reproduced on iOS 17.5.1 and 17.6.
    
    This behaviour isn't observed on iPhone 11 on the same iOS version. The
    nature of these zero-length URBs is so far unknown.
    
    Drop RX URBs with no payload.
    
    Signed-off-by: Foster Snowhill <forst@xxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c
index 017255615508..f04c7bf79665 100644
--- a/drivers/net/usb/ipheth.c
+++ b/drivers/net/usb/ipheth.c
@@ -286,6 +286,12 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
 		return;
 	}
 
+	/* iPhone may periodically send URBs with no payload
+	 * on the "bulk in" endpoint. It is safe to ignore them.
+	 */
+	if (urb->actual_length == 0)
+		goto rx_submit;
+
 	/* RX URBs starting with 0x00 0x01 do not encapsulate Ethernet frames,
 	 * but rather are control frames. Their purpose is not documented, and
 	 * they don't affect driver functionality, okay to drop them.




[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