Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp90584pxu; Thu, 10 Dec 2020 19:24:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyw9obZBMWtxsltgvtnyhEBcjln/MEWuMbb+v1UnwUYa8eWrSZZTE4F9Q1Ia0qOI3lqGUIx X-Received: by 2002:a17:907:2061:: with SMTP id qp1mr8891467ejb.222.1607657075160; Thu, 10 Dec 2020 19:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607657075; cv=none; d=google.com; s=arc-20160816; b=OzlbbYe4dyEl43yq20IfumIK6GavdmayHRDwhvBqZXB9ogt8jtV/h0MUqORbru60b9 T7irPWp1MOGDMaqmnaEfgix/hXh1vdmqYu0jreUUL8vNU35jeDlGRTnnH0cfZNmyBXsa L9XKE3Fd2qWTZFo5Jjqbbag84/NHzUzLIpjaob6VyTam/CNZf3ZTuB+G27E/KjQoqXX1 CKUZrsb5A3ygHPUM9BclWjlbrGSUsX/Gia24P5Y522kvj/GVnOWSYJHpwx9b+8RJGU5G 5hC0om7rWq9RPbqNa2Vf6TFm+fyVImkTGESBC6hesIVMcUS7QO84eT3I4o/gvr3IFn7z GobQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=4UQas+nzJ7+UJHjLum85F2qAaKzmVI+gpJdFUN0lB/g=; b=ycembz6NzFzj33kklvBI9dqevF8j0sIgoKU5DuniwiL3HvY3eq8+oolctjnxiUf6CU oRv2WsVD5h9uEPAaoR6J/DHTUHBP2paMmTAklQQZQwlrVg5EU3TXKMULnnyUcEngY6SM XIa0kMs5ApstCy+IfTlWHGplnLsnpO8pU+gkpDCML8neiPRIF+w758mGHDYWhEQ+lNt6 HvU+1t2qozfwkvCfZ+Zn5ZA9PFfv3IT9PjdMiJaDJ+nORUrrgH8Sq0ZRDgP2bC0WYZoO ineoD9grhfkVte4aHKqsYjeNWx0YvFI6MttWv2Xdsq1FDuePujtn6hMYmaSG+/LUnmid 5H+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r22si3858554eji.295.2020.12.10.19.24.12; Thu, 10 Dec 2020 19:24:35 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390188AbgLJO3B (ORCPT + 99 others); Thu, 10 Dec 2020 09:29:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:36560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390097AbgLJO2O (ORCPT ); Thu, 10 Dec 2020 09:28:14 -0500 From: Greg Kroah-Hartman Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matti Vuorela , Yves-Alexis Perez , Jakub Kicinski Subject: [PATCH 4.4 03/39] usbnet: ipheth: fix connectivity with iOS 14 Date: Thu, 10 Dec 2020 15:26:14 +0100 Message-Id: <20201210142601.063588939@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201210142600.887734129@linuxfoundation.org> References: <20201210142600.887734129@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yves-Alexis Perez [ Upstream commit f33d9e2b48a34e1558b67a473a1fc1d6e793f93c ] 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 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 Link: https://lore.kernel.org/r/20201119172439.94988-1-corsac@corsac.net Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/ipheth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c @@ -70,7 +70,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)