Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp620329pxb; Thu, 19 Nov 2020 09:30:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvzaLenttgXE6urd0Ss+H6O/CKBzgdT4i9BnhYwYf9jTYOiUG+yB2VKkKPnNOzwjOUTKXx X-Received: by 2002:a17:906:f14c:: with SMTP id gw12mr3299659ejb.261.1605807006819; Thu, 19 Nov 2020 09:30:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605807006; cv=none; d=google.com; s=arc-20160816; b=r8dUtcf5YH/c3xuMni1pwKY+ae7wU5FhwJBl2DMth10R0iUv1XNtuTadOeyBjjZYc/ aelWZd7kcG9XF9hQCbMW8DOz8Lnpq5KOfRv539N/krsfTLUTR9Zi3qSymN/Bs41dtNox 1cXM1QBNUgOuB7ehuvokytBT/TBmJKHg539EhxwSczHd2V4NNd35FJoJGrgRdBeCPUyt jxrdS9PnD+CFJ+Da11nurMxiq3YV6AvpJ9k5fT77cpGyLOdRJztj+9qMuHN49wWDOJp5 h1th3iPG84N4hXxLuq+5r55fUjRWDUDLzXOys/QttOm1BPOmxGRb/4SjhOLto9IO2SgU ZXvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=eDiMASA5el0ORbbdxg1T9n44lKcfbKgBXrJtRcDArQU=; b=jG19QnTCg8HWRtrwRzMaj2tantrj4UQ9efj7nGK3QmrQXO49DvxuWgg0S3LAK0IWXP PwQFwEXCDMU3xxOWjsMachLzQIBs3EUh+Z6mgsS3d+qCxegulNd9N7Ke62oF9gGx/iGZ 2DYxr3+wkhadD0j91gHAtRzAnSvDRvgSukA24cFJFXuqTbBf3pR+TGndr/IYSowWhbP1 DO2wkNy1b21nddqSRxoRddbE6OpjD3x5NdzWJTy1u3MpYlML8by/XSnj3+E//JLSR7b5 gste7cVwkqH4Ermjgy+iMChYl/OLTr4m5uTChs7anRNU/e46016FcobbU6fasB1BrKys TCoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si177431eji.419.2020.11.19.09.29.42; Thu, 19 Nov 2020 09:30:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728564AbgKSRZh (ORCPT + 99 others); Thu, 19 Nov 2020 12:25:37 -0500 Received: from smtp6-g21.free.fr ([212.27.42.6]:27206 "EHLO smtp6-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728568AbgKSRZf (ORCPT ); Thu, 19 Nov 2020 12:25:35 -0500 Received: from mail.corsac.net (unknown [IPv6:2a01:e34:ec2f:4e20::5]) by smtp6-g21.free.fr (Postfix) with ESMTPS id A6992780310 for ; Thu, 19 Nov 2020 18:25:32 +0100 (CET) Received: from scapa.corsac.net (unknown [IPv6:2a01:e34:ec2f:4e20:6af7:28ff:fe8d:2119]) by mail.corsac.net (Postfix) with ESMTPS id 97A33A0 for ; Thu, 19 Nov 2020 18:24:55 +0100 (CET) Received: from corsac (uid 1000) (envelope-from corsac@corsac.net) id a024c by scapa.corsac.net (DragonFly Mail Agent v0.12); Thu, 19 Nov 2020 18:24:55 +0100 From: Yves-Alexis Perez To: "David S. Miller" , Jakub Kicinski , Martin Habets , Luc Van Oostenryck , Shannon Nelson , "Michael S. Tsirkin" , linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yves-Alexis Perez , Matti Vuorela , stable@vger.kernel.org Subject: [PATCH] usbnet: ipheth: fix connectivity with iOS 14 Date: Thu, 19 Nov 2020 18:24:39 +0100 Message-Id: <20201119172439.94988-1-corsac@corsac.net> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 Signed-off-by: Yves-Alexis Perez Link: https://lore.kernel.org/linux-usb/CAAn0qaXmysJ9vx3ZEMkViv_B19ju-_ExN8Yn_uSefxpjS6g4Lw@mail.gmail.com/ Link: https://github.com/libimobiledevice/libimobiledevice/issues/1038 Cc: stable@vger.kernel.org --- drivers/net/usb/ipheth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index b09b45382faf..207e59e74935 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c @@ -59,7 +59,7 @@ #define IPHETH_USBINTF_SUBCLASS 253 #define IPHETH_USBINTF_PROTO 1 -#define IPHETH_BUF_SIZE 1516 +#define IPHETH_BUF_SIZE 1514 #define IPHETH_IP_ALIGN 2 /* padding at front of URB */ #define IPHETH_TX_TIMEOUT (5 * HZ) -- 2.29.2