linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* /net/usb/ipheth.c incompatibility with Apple iOS 14
@ 2020-09-27 14:14 Kiran
  2020-09-28 17:50 ` Greg KH
  2020-11-19 17:24 ` [PATCH] usbnet: ipheth: fix connectivity with " Yves-Alexis Perez
  0 siblings, 2 replies; 13+ messages in thread
From: Kiran @ 2020-09-27 14:14 UTC (permalink / raw)
  To: linux-usb

Effect on end user: when a linux machine is connected via USB to an
iPhone that has been updated to iOS 14 and has personal hotspot mode
turned on, the user cannot connect to the internet.

Troubleshooting: DNS works, the linux machine can ping the iPhone
gateway, pinging google.com hangs. It appears that there is a change
to the USB packets that iOS expects.

Here is a link to what I think is the most relevant part of a Github
issue discussion with more specific details:

https://github.com/libimobiledevice/libimobiledevice/issues/1038#issuecomment-699630379

This is my first linux bug report and I'm not familiar with kernel
development. The other people in the Github post will be better to
talk to regarding a fix. But if I can provide more info, just let me
know.

Thanks,

Kiran

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [PATCH] usbnet: ipheth: fix connectivity with iOS 14
@ 2021-02-21 10:42 Sam Bingner
  2021-02-22 12:09 ` Oliver Neukum
  0 siblings, 1 reply; 13+ messages in thread
From: Sam Bingner @ 2021-02-21 10:42 UTC (permalink / raw)
  To: linux-usb
  Cc: David S. Miller, Martin Habets, Luc Van Oostenryck,
	Shannon Nelson, Michael S. Tsirkin, netdev, linux-kernel,
	Matti Vuorela, Jakub Kicinski, Yves-Alexis Perez

There seems to be a problem with this patch:

Whenever the iPhone sends a packet to the tethered device that is 1500 bytes long, it gets the error "ipheth 1-1:4.2: ipheth_rcvbulk_callback: urb status: -79" on the connected device and stops passing traffic.  I am able to bring it back up by shutting and unshutting the interface, but the same thing happens very quickly.   I noticed that this patch dropped the max USB packet size from 1516 to 1514 bytes, so I decided to try lowering the MTU to 1498; this made the connection reliable and no more errors occurred.

It appears to me that the iPhone is still sending out 1516 bytes over USB for a 1500 byte packet and this patch makes USB abort when that happens?  I could duplicate reliably by sending a ping from the iphone (ping -s 1472) to the connected device, or vice versa as the reply would then break it.

I apologize if this reply doesn't end up where it should - I tried to reply to the last message in this thread but I wasn't actually *on* the thread so I had to just build it as much as possible myself.

Sam

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-09-27 15:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-27 14:14 /net/usb/ipheth.c incompatibility with Apple iOS 14 Kiran
2020-09-28 17:50 ` Greg KH
2020-10-11  9:12   ` Yves-Alexis Perez
2020-11-19 17:24 ` [PATCH] usbnet: ipheth: fix connectivity with " Yves-Alexis Perez
2020-11-20  9:15   ` Sergei Shtylyov
2020-11-20 16:56     ` Yves-Alexis Perez
2020-11-21 22:03   ` Jakub Kicinski
2020-11-24 10:41     ` Yves-Alexis Perez
2020-11-24 16:39       ` Jakub Kicinski
2021-02-21 10:42 Sam Bingner
2021-02-22 12:09 ` Oliver Neukum
2021-09-22 20:11   ` Sam Bingner
2021-09-27 14:51     ` Yves-Alexis Perez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).