Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp222788pxa; Wed, 26 Aug 2020 08:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEDHrZo0p+hnOcCS7sNfOGv0QDA70UI6f6YV+PcgPbmEG7SzDWMGbpGjjNSq3jiRbL7WfA X-Received: by 2002:a17:906:b286:: with SMTP id q6mr15420688ejz.99.1598457289125; Wed, 26 Aug 2020 08:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598457289; cv=none; d=google.com; s=arc-20160816; b=sf+AxLAoHx5qxeVSJxfH5Z+e5lK185oSdx5kJTcktws4XOh4yI0EXzVRyTBPZOsQhw 0S4RXeLt/cXMboID1hC4150OnrQQXa4xo3JJQf4KZz+1dopvdslgEYBdisON8qbxo+yL TBHGXFq12QOWvkT7QTjKiagKvxLm1f9o1kHs5MUiJzZ6UHVtl2t3yjJ0ELkingRBEkej 4WL59/Yfx1fx6q81fyDF9rmd8pIqkXqt4FvBEjnPu8JEhKpC3wXug2mbp7QYRzaY7rro Pww5LOAKjxrbl48rVPr66DPp/+R8zRomTaYPh1zjBO3YLp1zi/RcTCfr2t20fl+IBYR3 lPxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=78S0umpQdnvgfhSWaH9CauU9B+pmDgBIPnkk0g1yodA=; b=e+UWzysqMOxI4TOPvPOD/hWdrqiB/tKA0+ci6LjMBdcJL26doUDNzC7K2QcGagw21d 5+GnMEv0USRT/NNJK/zCk7JZK3ygzIkbp8l99fOKv9YXImJoOYDeeKhVkFgaAi1J3fkX ClWjdBJiESz8d+hiMpZMrr3BawpvmpKuvxz0SETk5vnuar+COn806AzSobPhW15hKc9J Cf0lYNd2aha9WuErd0y11YeOzWKtoxwZcxPxVuuScLKhOyfhjO65OsT5pcWARZX8/GLf 7/L9GOrBkZs896oWCG1GstjRn+npjP+9oCmZuNMfJ41bkXHKo+geDcHEK2LtoDsBqCMF fDhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GJuP+NUL; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si1860140ejc.596.2020.08.26.08.54.26; Wed, 26 Aug 2020 08:54:49 -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=@gmail.com header.s=20161025 header.b=GJuP+NUL; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728090AbgHZPx2 (ORCPT + 99 others); Wed, 26 Aug 2020 11:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727986AbgHZPxU (ORCPT ); Wed, 26 Aug 2020 11:53:20 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A816C061574; Wed, 26 Aug 2020 08:53:20 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id k1so1204764pfu.2; Wed, 26 Aug 2020 08:53:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=78S0umpQdnvgfhSWaH9CauU9B+pmDgBIPnkk0g1yodA=; b=GJuP+NULyow0TPoqdaHS5mo21Nes0g0fj07Zv3ukKJbBGZccDWZLDEXP6VimmtTjND 5lSl546o+SkWwatqhvzj0ATjIjdpyTboFFPEKkEnL5UB+W+TICbALf2tVdoQbyCIvR9U 7kvLnH7j+qBWfeOPqbW34RYTcgK8wGL5qhlTG8bl8obkXNBZTt4tYQCIecNhadEny5y/ nsemflhfTEOszODt5xGBFqYhxudW1yxWvAPBr7+iWgggvFHfhdo/vMcQUTMOqtWIcHyI gIbQZ11uVFSeORNyVuHunKng2ij2GCKYSpmx0B4Sr9ozsi9mFUOiz6ZjES4bOEBo2NZZ izGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=78S0umpQdnvgfhSWaH9CauU9B+pmDgBIPnkk0g1yodA=; b=Rzt5MHf36wL/r2YVPexgpIJ3A1qnqF2eJhlyeUm8U4r8c59//zMhq535zhB+JcIYQP AnICFVnznCLCd7OQxTDlWfcQJ3mmnxGn7DfRpJjefAtmzs+F6ksPhW4FcJG0LJQJxyDz 715yUga/i+SOtWhZl6XYbGN4PCSXjZ0U+EPgtkxx/mzvOwV2fFICCoMxkBciqxMjZyZs /yDFzR7WWIRc6cuwdcWqBsWdkLniB0zR50yMAzXbgf+0h+Fb9wNZ6fgecPX4213yKR0A tebhrEQF0Rwa5+VGWXCcDXoAKVGJMiekHLt0PGUcfhE3aeYP70Phqh6tQO1+h7pe4rBL QGyw== X-Gm-Message-State: AOAM531aj0r4crCtUD1ueFwh9pGsXFC+x991p+kwLGmrqvusqdf4oOze sJP7UE5v+ugoFu6XEjTdnX6SFBkwPOjq0rrFQKg= X-Received: by 2002:aa7:95b8:: with SMTP id a24mr12490280pfk.219.1598457199510; Wed, 26 Aug 2020 08:53:19 -0700 (PDT) MIME-Version: 1.0 References: <20200826134315.GA3882506@kroah.com> <1425ab4f-ef7e-97d9-238f-0328ab51eb35@samsung.com> <20200826153347.GB4187816@kroah.com> In-Reply-To: <20200826153347.GB4187816@kroah.com> From: Andy Shevchenko Date: Wed, 26 Aug 2020 18:53:02 +0300 Message-ID: Subject: Re: [GIT PULL] USB fixes for 5.9-rc3 To: Greg KH Cc: Marek Szyprowski , Brooke Basile , Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , USB , Ilja Van Sprundel , Kees Cook , Felipe Balbi , Bartlomiej Zolnierkiewicz Content-Type: multipart/mixed; boundary="00000000000090e62b05adc9d19e" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --00000000000090e62b05adc9d19e Content-Type: text/plain; charset="UTF-8" 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? -- With Best Regards, Andy Shevchenko --00000000000090e62b05adc9d19e Content-Type: text/x-patch; charset="US-ASCII"; name="1.diff" Content-Disposition: attachment; filename="1.diff" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kebk4tac0 ZGlmZiAtLWdpdCBhL2RyaXZlcnMvdXNiL2dhZGdldC91X2YuaCBiL2RyaXZlcnMvdXNiL2dhZGdl dC91X2YuaAppbmRleCBkZjRlMWRjYjM1N2QuLjBiNWM1ZjBkZDA3MyAxMDA2NDQKLS0tIGEvZHJp dmVycy91c2IvZ2F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