Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp189080pxa; Wed, 26 Aug 2020 08:06:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzphNHbZDuxdfm7s24pdMkee1JIID9eGi3P0XJbipVl/T/3zensWUzpyQzjG15ei7cWTN+f X-Received: by 2002:a17:906:3bc1:: with SMTP id v1mr16054491ejf.233.1598454360903; Wed, 26 Aug 2020 08:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598454360; cv=none; d=google.com; s=arc-20160816; b=wJB7Ha+A86PmmEGz0rZxPYMh9b79mPzH+LHeHgU0P47VZS2NjYwUEfo+5bd3nq9i/r iQcarkb7o47fGMEVXTScQcwEWIQ4qrT0mFPyA7/mx7zuCBjr0466xsCtJubLVbOKYj1S MZe7ZYyRHk8xKYUjQqO1inIxuiF9wJfZR5s9B6rBUEpVP+ECwNB5/6iPbwOl57d0+ZIO z7qTausKiVXWJYyrVPvedXsQCzCjk+WG/FlB1JC3xmIDXKkEECBJC3nAV27tGNl3avVw Hjw2+cq8QRS2bubGbefmU8XVN1NplK2kkmnfceL44E3ggediErIRmjTkGhYfPYGjnVED z5Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=AnqgXR1jaSuuRzSKvONAM2hbRlyOfZRnyduwYHQ+Y04=; b=XuCHnBC96kN8UE7/XF7BwnJwJf/405TVvpS39A66wWekS3eeGllanfoTPJDZA5ceBM G0hGc4XrJn621u+05u4MF1iaHfFCyv01gcH0JAtkEj6LbEz/A2Wd4q3HAkvXmr5wZ9RE KmpM0+KpX1bqa8D8AQ5ASvXISeF4WhRQ/6iwJlCBHV7KJo1CvAo3qxmkQe4reItDTLZb 1ydNJeW1QRmPMJ4t6UV4Cbk+XLmf93ixP7KrFnbALeH5NykATdwuTlQ3mToNJcN2b5WI 35pt8lNc8Fk2AacW9s8UYPEINinZiidpEOBESPg/9aTgSGpPtS7ALAh7kROWYMbxRZLr 8Vxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aZ2FKdnE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si1814055ejq.122.2020.08.26.08.05.35; Wed, 26 Aug 2020 08:06:00 -0700 (PDT) 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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=aZ2FKdnE; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727939AbgHZPCo (ORCPT + 99 others); Wed, 26 Aug 2020 11:02:44 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:52793 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727827AbgHZPCm (ORCPT ); Wed, 26 Aug 2020 11:02:42 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200826150240euoutp02e073690fc002f70610499b1eefd31fdf~u2Zb4yj1S0188101881euoutp021 for ; Wed, 26 Aug 2020 15:02:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200826150240euoutp02e073690fc002f70610499b1eefd31fdf~u2Zb4yj1S0188101881euoutp021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598454160; bh=AnqgXR1jaSuuRzSKvONAM2hbRlyOfZRnyduwYHQ+Y04=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=aZ2FKdnESBQCijAah/OInsG3Wj+Zj4w6znWg/VaVKRoWI934tX0ZrjLeU3YTha9IM G1I/pnnPpFflxAufGOv1+mok1LcCcliWrPffdfUsJJQAVjk1wr3Wh7c4xiwj9KJBeF GrDYlgIqqe3AI4sl+kxm+r1w6y2FEqV3RHftywWg= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200826150239eucas1p23d55fb1283b4f7a17777a041069efecb~u2ZbhSg0u2929429294eucas1p2h; Wed, 26 Aug 2020 15:02:39 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id D6.99.06456.F89764F5; Wed, 26 Aug 2020 16:02:39 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200826150239eucas1p24c59716cc31edfeb2eece84d97936b93~u2ZbEozfT2929429294eucas1p2g; Wed, 26 Aug 2020 15:02:39 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200826150239eusmtrp14fe134f37dcf3e4c3f8174afd0fad106~u2ZbD5L6t1852018520eusmtrp1o; Wed, 26 Aug 2020 15:02:39 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-13-5f46798f3c6e Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B2.11.06314.F89764F5; Wed, 26 Aug 2020 16:02:39 +0100 (BST) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200826150238eusmtip17a0afbc7db4bf0165e046b9bf806f665~u2ZaeJipO2285522855eusmtip14; Wed, 26 Aug 2020 15:02:38 +0000 (GMT) Subject: Re: [GIT PULL] USB fixes for 5.9-rc3 To: Greg KH , Linus Torvalds Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Ilja Van Sprundel , Kees Cook , Brooke Basile , Felipe Balbi , Bartlomiej Zolnierkiewicz From: Marek Szyprowski Message-ID: <1425ab4f-ef7e-97d9-238f-0328ab51eb35@samsung.com> Date: Wed, 26 Aug 2020 17:02:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200826134315.GA3882506@kroah.com> Content-Transfer-Encoding: 8bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFKsWRmVeSWpSXmKPExsWy7djPc7r9lW7xBh8ua1nMWb+GzWLjjPWs FsfanrBbLG29wGzRvHg9m8Wd21+ZLM5051pc3jWHzWLRslZmi0d9b9kduDxmN1xk8dg56y67 x/UD11g9Nq3qZPM4MeM3i8f+uWvYPfq2rGL0+LxJLoAjissmJTUnsyy1SN8ugSvj+YYLrAXN NhU/th5hbGBcot/FyMkhIWAi8WPpTeYuRi4OIYEVjBI/fv9igXC+MEr8PzEFKvOZUWJjczc7 TMu5O2uYIBLLGSVOv/sP1fKeUeLtnq1MIFXCAroSvYc7WEFsEYEoiU0vPjCCFDEL7GeS6Dv5 jw0kwSZgKNH1tgvM5hWwkzh17TnYChYBVYnTJ2cxgtiiAnESW49fZYKoEZQ4OfMJC4jNCdLb dx5sAbOAvETz1tnMELa4xK0n88HOkxC4xi7x4n8zC8TdLhLtVyezQtjCEq+Ob4H6R0bi9OQe FoiGZkaJh+fWskM4PYwSl5tmMEJUWUvcOfcL6FQOoBWaEut3QcPPUaLj3BUWkLCEAJ/EjbeC EEfwSUz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hTEiurUovy44tKc1KLDzGaAj03 kVlKNDkfmErySuINTQ3NLSwNzY3Njc0slMR5OwQOxggJpCeWpGanphakFsH0MXFwSjUw5k04 0f5vjsr9iIPGxdGHt1bH3dtX2fn8n1eN0aH8XM/ESway0tp1236eLZp6T6r4aqGsO3PO/dOn Z2ovmMjc4bPZ9dPj9PxP8pkSF+dzZqx+kvch7qv8urjk6spjC7Kd1ghue58jVOdhMO+zSM6e mdW5mvd/5t6rPNvP/X9x1F7Vgx3tXWJKSizFGYmGWsxFxYkAuELi+u0CAAA= X-CMS-MailID: 20200826150239eucas1p24c59716cc31edfeb2eece84d97936b93 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20200826150239eucas1p24c59716cc31edfeb2eece84d97936b93 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200826150239eucas1p24c59716cc31edfeb2eece84d97936b93 References: <20200826134315.GA3882506@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 26.08.2020 15:43, Greg KH wrote: > The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: > > Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.9-rc3 > > for you to fetch changes up to 23e26d0577535f5ffe4ff8ed6d06e009553c0bca: > > usb: typec: tcpm: Fix Fix source hard reset response for TDA 2.3.1.1 and TDA 2.3.1.2 failures (2020-08-25 16:02:35 +0200) > > ---------------------------------------------------------------- > USB fixes for 5.9-rc3 > > Here are a small set of USB fixes for 5.9-rc3. > > Like most set of USB bugfixes, they include the usual: > - usb gadget driver fixes > - xhci driver fixes > - typec fixes > - new qurks and ids > - fixes for USB patches merged in 5.9-rc1 > > Nothing huge, all of these have been in linux-next with no reported > issues: > > Signed-off-by: Greg Kroah-Hartman > > ---------------------------------------------------------------- > Alan Stern (1): > USB: yurex: Fix bad gfp argument > > Andy Shevchenko (1): > usb: hcd: Fix use after free in usb_hcd_pci_remove() > > Badhri Jagan Sridharan (1): > usb: typec: tcpm: Fix Fix source hard reset response for TDA 2.3.1.1 and TDA 2.3.1.2 failures > > Bastien Nocera (2): > USB: Also match device drivers using the ->match vfunc > USB: Fix device driver race > > Brooke Basile (2): > USB: gadget: u_f: add overflow checks to VLA macros Sorry, but the above patch breaks USB Ethernet Gadget operation. It also didn't get the proper testing in linux-next (next-20200826 is the first one with this patch). This is how it explodes on Samsung Exynos (ARM 32bit) based board with g_ether module loaded: ------------[ cut here ]------------ kernel BUG at mm/slub.c:4116! Internal error: Oops - BUG: 0 [#1] SMP ARM Modules linked in: usb_f_ecm g_ether(+) usb_f_rndis u_ether libcomposite panel_samsung_s6e8aa0 s5p_csis s5p_fimc exynos4_is_common v4l2_fwnode max8997_regulator rtc_max8997 leds_max8997 max8 emless mms114 governor_simpleondemand s5p_mfc lima gpu_sched s5p_jpeg v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common phy_exynos_usb2 exynosdrm analogix_dp  s3c2410_wdt CPU: 0 PID: 616 Comm: modprobe Not tainted 5.9.0-rc1-00026-gb1cd1b65afba #9023 Hardware name: Samsung Exynos (Flattened Device Tree) PC is at kfree+0x234/0x268 LR is at config_item_set_name+0x60/0xb0 ... Process modprobe (pid: 616, stack limit = 0x(ptrval)) ... [] (kfree) from [] (config_item_set_name+0x60/0xb0) [] (config_item_set_name) from [] (config_group_init_type_name+0x1c/0x50) [] (config_group_init_type_name) from [] (usb_os_desc_prepare_interf_dir+0x54/0x124 [libcomposite]) [] (usb_os_desc_prepare_interf_dir [libcomposite]) from [] (rndis_alloc_inst+0x100/0x150 [usb_f_rndis]) [] (rndis_alloc_inst [usb_f_rndis]) from [] (try_get_usb_function_instance+0x88/0xa4 [libcomposite]) [] (try_get_usb_function_instance [libcomposite]) from [] (usb_get_function_instance+0xc/0x44 [libcomposite]) [] (usb_get_function_instance [libcomposite]) from [] (eth_bind+0xdc/0x34c [g_ether]) [] (eth_bind [g_ether]) from [] (composite_bind+0x78/0x1a8 [libcomposite]) [] (composite_bind [libcomposite]) from [] (udc_bind_to_driver+0x60/0x108) [] (udc_bind_to_driver) from [] (usb_gadget_probe_driver+0x100/0x158) [] (usb_gadget_probe_driver) from [] (do_one_initcall+0x54/0x220) [] (do_one_initcall) from [] (do_init_module+0x60/0x210) [] (do_init_module) from [] (load_module+0x2078/0x24c0) [] (load_module) from [] (sys_finit_module+0xc8/0xd8) [] (sys_finit_module) from [] (ret_fast_syscall+0x0/0x54) Exception stack(0xedd1dfa8 to 0xedd1dff0) ... ---[ end trace 0dc21d79c1880545 ]--- I also didn't manage to find any mailing list, where this patch has been initially posted... > USB: gadget: f_ncm: add bounds checks to ncm_unwrap_ntb() > > Christophe JAILLET (1): > usb: gadget: f_tcm: Fix some resource leaks in some error paths > > Ding Hui (1): > xhci: Always restore EP_SOFT_CLEAR_TOGGLE even if ep reset failed > > Evgeny Novikov (1): > USB: lvtest: return proper error code in probe > > Greg Kroah-Hartman (1): > Merge tag 'fixes-for-v5.9-rc2' of git://git.kernel.org/.../balbi/usb into usb-linus > > Hans de Goede (4): > usb: typec: ucsi: Fix AB BA lock inversion > usb: typec: ucsi: Fix 2 unlocked ucsi_run_command calls > usb: typec: ucsi: Rework ppm_lock handling > usb: typec: ucsi: Hold con->lock for the entire duration of ucsi_register_port() > > Heikki Krogerus (1): > tools: usb: move to tools buildsystem > > JC Kuo (2): > usb: host: xhci-tegra: otg usb2/usb3 port init > usb: host: xhci-tegra: fix tegra_xusb_get_phy() > > Kai-Heng Feng (2): > USB: quirks: Add no-lpm quirk for another Raydium touchscreen > xhci: Do warm-reset when both CAS and XDEV_RESUME are set > > Li Jun (1): > usb: host: xhci: fix ep context print mismatch in debugfs > > M. Vefa Bicakci (1): > usbip: Implement a match function to fix usbip > > Thinh Nguyen (4): > usb: dwc3: gadget: Don't setup more than requested > usb: dwc3: gadget: Fix handling ZLP > usb: dwc3: gadget: Handle ZLP for sg requests > usb: uas: Add quirk for PNY Pro Elite > > Tom Rix (1): > USB: cdc-acm: rework notification_buffer resizing > > Vinod Koul (1): > usb: renesas-xhci: remove version check > > 周琰杰 (Zhou Yanjie) (1): > USB: PHY: JZ4770: Fix static checker warning. > > drivers/usb/class/cdc-acm.c | 22 ++++--- > drivers/usb/core/driver.c | 40 ++++++++++++- > drivers/usb/core/generic.c | 5 +- > drivers/usb/core/hcd-pci.c | 5 +- > drivers/usb/core/quirks.c | 2 + > drivers/usb/dwc3/gadget.c | 107 +++++++++++++++++++++++++++++------ > drivers/usb/gadget/function/f_ncm.c | 81 ++++++++++++++++++++++---- > drivers/usb/gadget/function/f_tcm.c | 7 ++- > drivers/usb/gadget/u_f.h | 38 +++++++++---- > drivers/usb/host/xhci-debugfs.c | 8 +-- > drivers/usb/host/xhci-hub.c | 19 ++++--- > drivers/usb/host/xhci-pci-renesas.c | 19 +------ > drivers/usb/host/xhci-tegra.c | 4 +- > drivers/usb/host/xhci.c | 3 +- > drivers/usb/misc/lvstest.c | 2 +- > drivers/usb/misc/yurex.c | 2 +- > drivers/usb/phy/phy-jz4770.c | 1 + > drivers/usb/storage/unusual_uas.h | 7 +++ > drivers/usb/typec/tcpm/tcpm.c | 28 ++++++++- > drivers/usb/typec/ucsi/displayport.c | 9 +-- > drivers/usb/typec/ucsi/ucsi.c | 103 +++++++++++++++++---------------- > drivers/usb/usbip/stub_dev.c | 6 ++ > tools/usb/Build | 2 + > tools/usb/Makefile | 53 ++++++++++++++--- > 24 files changed, 408 insertions(+), 165 deletions(-) > create mode 100644 tools/usb/Build > > Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland