]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: ipheth: fix connectivity with iOS 14
authorYves-Alexis Perez <corsac@corsac.net>
Thu, 19 Nov 2020 17:24:39 +0000 (18:24 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Nov 2020 22:01:34 +0000 (14:01 -0800)
commitcaca5f97a62cd5e0160d827c78531f11c1923d9c
treed2137e0f1e151df7589b702256963339c1062677
parent7bee0bceeff7a02ab6002a2f46c72d07a11c8a41
usbnet: ipheth: fix connectivity with iOS 14

Starting with iOS 14 released in September 2020, connectivity using the
personal hotspot USB tethering function of iOS devices is broken.

Communication between the host and the device (for example ICMP traffic
or DNS resolution using the DNS service running in the device itself)
works fine, but communication to endpoints further away doesn't work.

Investigation on the matter shows that no UDP and ICMP traffic from the
tethered host is reaching the Internet at all. For TCP traffic there are
exchanges between tethered host and server but packets are modified in
transit leading to impossible communication.

After some trials Matti Vuorela discovered that reducing the URB buffer
size by two bytes restored the previous behavior. While a better
solution might exist to fix the issue, since the protocol is not
publicly documented and considering the small size of the fix, let's do
that.

Tested-by: Matti Vuorela <matti.vuorela@bitfactor.fi>
Signed-off-by: Yves-Alexis Perez <corsac@corsac.net>
Link: https://lore.kernel.org/linux-usb/CAAn0qaXmysJ9vx3ZEMkViv_B19ju-_ExN8Yn_uSefxpjS6g4Lw@mail.gmail.com/
Link: https://github.com/libimobiledevice/libimobiledevice/issues/1038
Link: https://lore.kernel.org/r/20201119172439.94988-1-corsac@corsac.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/ipheth.c