Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp239982pxa; Wed, 26 Aug 2020 09:19:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPaCu6dtkd4ZAUjnbynSR+55Optlnldzu7xa7KBGJrRnDwnVvsQLaJdg94qkdr9ukrIPIt X-Received: by 2002:a17:906:1404:: with SMTP id p4mr16309741ejc.256.1598458748524; Wed, 26 Aug 2020 09:19:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598458748; cv=none; d=google.com; s=arc-20160816; b=XETXme02VC7RAqze8GR/NCkqGcsyBNJpKJ9dybWxj7IMkWzNy8OkVp/Kl6a9UsaPik TbbImdBm/Ghq+YDwE6tgAcfOPoX2S1eu3seEa/xP+7rTVH0DIHCF5L/v7+tOBwUWYL1t 1xDbbjC4BlWkYbrkUUNXeRa3LR+Wtpv/o/fxVX2HKglPx//Rfrh/UnEuFHmPhHl09IyT 55rjyQ0klVlspknxG5E2w3MH3KpmNZ9kie7L4u5unVT4qlUGi5zIe3LHRyBf7NPCmZQQ PnDu54g4M5id7uhySwNIgnoC/9YciboZtMf0Fe8J++KLJIWErYq/CfYPKdVpaK9tuMV4 zrWg== 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=GpJGAq70vOGSpz7J1rewomRYAlKup8ySSp2DpUocRJg=; b=R7B9y4nqiRAqw4QICTHu1otmVESGU08LDc8zicVqOvx8dRMDqyZbGDS54sJpeGsv2A sjUZYLAHfulydodqc8xRd/sFc5lJTggSf8l8OMOis3gvdpgQZJOSq8euZqooW0Edymv9 skzmcW7ShNlo8en6ppEG6kj21EeOJdHr0aTRETAkWpWdrYxp+X9Gla/G5T/Zv7e60fzP FToA/Lb3dijoLueyd+NHH0snJ62SB3bKd/Ib1M3sHSM3ugvfU6q4SdH1+hoUDuik2cZa WX7rVhlSGb5qIMHfcVU+eh2GDHz2vlHRaKd7pov6mrKlesJEQBr4XFko7XVFMgHEJQg4 u8Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=r8MSmZIE; 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 b20si1902751ejk.275.2020.08.26.09.18.45; Wed, 26 Aug 2020 09:19:08 -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=r8MSmZIE; 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 S1727903AbgHZQRj (ORCPT + 99 others); Wed, 26 Aug 2020 12:17:39 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:45609 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbgHZQR3 (ORCPT ); Wed, 26 Aug 2020 12:17:29 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200826161727euoutp02061cd5bebbf6000932cf381272545fad~u3aukV2Nl1312413124euoutp02Z for ; Wed, 26 Aug 2020 16:17:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200826161727euoutp02061cd5bebbf6000932cf381272545fad~u3aukV2Nl1312413124euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598458647; bh=GpJGAq70vOGSpz7J1rewomRYAlKup8ySSp2DpUocRJg=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=r8MSmZIExlrJ2+qY9z63FBkSuUUVKdbwVmyB6kxfe7aohdHLWc8/7+Crmdr9TRYa9 QQTG1MuPo8ubvp6PA6e466bnHQ3WSaAFBcYVyAXC3wz6gG5lhjKIEUDJqkBhmm0fJK nqTGWFzxI0dPVdlQ/5KT5lZ3u2WivjCQALT/Gn9Y= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200826161726eucas1p1805c273ce35a3cdfb8266afc2b4a0543~u3at0_Jdm0093800938eucas1p1_; Wed, 26 Aug 2020 16:17:26 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 5C.CD.05997.61B864F5; Wed, 26 Aug 2020 17:17:26 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200826161725eucas1p2116574868253c5d9f8d61be9ff4cd79f~u3atNoBpx1073210732eucas1p2C; Wed, 26 Aug 2020 16:17:25 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200826161725eusmtrp27cac6b5d820740d8a2add7526903a9d7~u3atM3OWl0613006130eusmtrp2H; Wed, 26 Aug 2020 16:17:25 +0000 (GMT) X-AuditID: cbfec7f4-65dff7000000176d-0f-5f468b16511a Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 30.D8.06314.51B864F5; Wed, 26 Aug 2020 17:17:25 +0100 (BST) Received: from [106.210.88.143] (unknown [106.210.88.143]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200826161724eusmtip12f009372a0ac291f14a451c70a0e9293~u3asoHXHB0451704517eusmtip1V; Wed, 26 Aug 2020 16:17:24 +0000 (GMT) Subject: Re: [GIT PULL] USB fixes for 5.9-rc3 To: Andy Shevchenko , Greg KH Cc: Brooke Basile , Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , USB , Ilja Van Sprundel , Kees Cook , Felipe Balbi , Bartlomiej Zolnierkiewicz From: Marek Szyprowski Message-ID: Date: Wed, 26 Aug 2020 18:17:24 +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: Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsWy7djPc7pi3W7xBkdOc1jMWb+GzeLlhMOM FhtnrGe1ONb2hN1iaesFZovmxevZLO7c/spkcaY71+LyrjlsFouWtTJbPOp7y+7A7TG74SKL x85Zd9k9rh+4xuqxaVUnm8eJGb9ZPPbPXcPu0bdlFaPH501yARxRXDYpqTmZZalF+nYJXBnz O96wFDRxVnw6+52pgXEGexcjJ4eEgInE80fdLF2MXBxCAisYJVY09TFBOF8YJa52TmGEcD4z Sjxccg+u5fTttSwgtpDAckaJTzerIYreM0pc6z/FBpIQFtCV6D3cwQpiiwiES1zvWgu2g1lg MrPElaerwSaxCRhKdL3tAmvgFbCTuHAPooFFQFXiSOtxsA2iAnESW49fZYKoEZQ4OfMJWJxT IFDiYXc/WJxZQF5i+9s5zBC2uMStJ/PBfpAQeMQuMXHqC2aIs10kbr7rZYKwhSVeHd8C9Y6M xP+dMA3NQH+eW8sO4fQwSlxumsEIUWUtcefcL6BTOYBWaEqs36UPEXaU6Dh3hQUkLCHAJ3Hj rSDEEXwSk7ZNZ4YI80p0tAlBVKtJzDq+Dm7twQuXmCcwKs1C8tosJO/MQvLOLIS9CxhZVjGK p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H0xJLU7NTUgtQimD4m Dk6pBkbfGpf2v9cPB/32frST2WVxkXvxmQlLG14ErphWb/ZB8kxzyKQHvVGBp6Z9OreGQ6vx 1ATN5QeOq2RtTVm48O7V3WnMxqaH2PuC/dkqeSflvOh/MXtf0rSPXo5LDpTu+71NzmZpRqQu 38FZ348FbdBmvXSE8ySj8139neVyE6pXyJYduWejKMCtxFKckWioxVxUnAgARO/XePQCAAA= X-CMS-MailID: 20200826161725eucas1p2116574868253c5d9f8d61be9ff4cd79f 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> <1425ab4f-ef7e-97d9-238f-0328ab51eb35@samsung.com> <20200826153347.GB4187816@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On 26.08.2020 17:53, Andy Shevchenko wrote: > On Wed, Aug 26, 2020 at 6:36 PM Greg KH wrote: >> On Wed, Aug 26, 2020 at 05:02:38PM +0200, Marek Szyprowski wrote: >>> On 26.08.2020 15:43, Greg KH wrote: >>> >>>> 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: >> Odd, for a "normal" descriptor, the logic should have remained the same >> as without this patch. >> Brooke, any ideas? > I have an idea. > > Does below fix this? Yep, that's it. I've also moved offset assignment in the first part after size_t size = array_size(n, sizeof(type)); Feel free to add: Reported-by: Marek Szyprowski Tested-by: Marek Szyprowski Thanks! Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland