Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp238314pxa; Wed, 26 Aug 2020 09:16:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5wIF5MAaO2fLPzMlb5leJ87knGBTQ/t1Gqypf5vS2lF83OKgYYuRgU+rhW0ik/zCdXKwl X-Received: by 2002:a17:906:d8ab:: with SMTP id qc11mr8021887ejb.55.1598458597474; Wed, 26 Aug 2020 09:16:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598458597; cv=none; d=google.com; s=arc-20160816; b=tXYU6lYFCt0lkjU6dGewDPQ8KXqOo8Q1EWDH7TWyG2yuNxjydXqA/lq/+VZJ7Qbre9 H28yIN8n/GTda9BGlEcMaFRhKTbybnfAuq7donqNzzX5Dn+s3sbOpA+5bBTNpBB99Ysk Nk9tmfhSi7wfHPVnmBHOgfW3wrdRF/qhz42sOh+AiJLDSxKpOST6pyNltSotf4XoQPnl XpPK/+z1YJgj7nSG49Uuow3VAoixPDrjUPrXdf/Ei7j/ZmkxDoauc6+XYneqQPiMpglS NQh7oME8gHdfVLk3910583ShFcu5YvwXrTxg+yuqgPyryUTAllrJPQ0H7IeOuWIgXNQP Am0Q== 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=t3DkmFYSh/PNi/jL2jKO8hC9605cQHihPLJZWMDyQs8=; b=zLQVPpw+QHf3ijgNin8HyH7mlO2kjF6yW3V3+405UiNrZS84nU5IaU9kz9JmDJxFDq bgmgEQKzI3VX93/m9RzejA5OuMk1pkT4pLhgeDQoSyTj1TY6QrVJVPl4mcwdjnEySepW AIdA0f0py83fy7UVVf3bOqolh8Yb/+YP8PC9x7f0/hGTLANVcrsb099AHRBSnLgr2A38 VdKadwWogj9D3Vk2rk4qkpB1ilGWN0u3GAAmbzI8Wq70+JxtsvImzG4tNJFJfKKOwk4L lv7j5ehbC9LMhHdKeFAQZAJVpeppFW5xwJBBffPG9hwgOwHk4/zaq3I4ocI5gRiy/1hY BVRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n9xvvuXc; 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 c18si1946428eje.555.2020.08.26.09.16.14; Wed, 26 Aug 2020 09:16:37 -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=n9xvvuXc; 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 S1727930AbgHZQOz (ORCPT + 99 others); Wed, 26 Aug 2020 12:14:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727020AbgHZQOX (ORCPT ); Wed, 26 Aug 2020 12:14:23 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13586C061574; Wed, 26 Aug 2020 09:14:23 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id t11so1116193plr.5; Wed, 26 Aug 2020 09:14:23 -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=t3DkmFYSh/PNi/jL2jKO8hC9605cQHihPLJZWMDyQs8=; b=n9xvvuXc029BaP+m2A9caFLFih9mwolooVPqJOvtbDN7lKiKTu5bM+QxK19FN0n4ot nIod6NdUhgAQ5nAv8sDGJNKAh97ezPxFx4chqfFxn/xsbOQntkqZh9o7w2LV5e99Z6ze bJN3bxEYJa6X5YRJp3KCSKa+Ph8TQGBqIAXm11gs0E1alvW996JTimLnGYWac98Xfl1y CEmHGHUj6xT+ZX1mjuftomrSJV1j04f+8rf96Y0lVfnoajVLZs7tYQdL6jkhcvAZvhwG x7utydffMXP0GUfqT4Mx4O8HPc/pN3y7QybqQO//crkZuAFo3dHQrhIn2W23fSho0eGV Y/3A== 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=t3DkmFYSh/PNi/jL2jKO8hC9605cQHihPLJZWMDyQs8=; b=Wq15kFSRel3Esh1ff0tDmyFuRIISsB6gSQrfdR4tJcyNSOlBkZyx/rF+clSgb4mNwT PeV9tBsdHN6ouh+Tt4D4jkd3g5X/u7BwK2kVM+faTSO5CV6vmgHunAIJAFJQvznIof91 qh9+fcnvTCeXKKR2ZQg6ISzx9T41v4abjRwAgE1i7y7hOzXXxzx90kiWPJRMzSEX/Cy4 fwF9RMHa0UbzLXZJWazMvWoYhS8vn9jzqR7oWsQWldlGTgLFCOSrTlAL+IV8JAGPWluf E8HYb9OE5BEIbqmT4CO5eV35wVtEGbrrVnf37PINkhc5+rOGFXHEQewN2HSaTOU3DNhT x5WQ== X-Gm-Message-State: AOAM5323sntNiUoXSZT/cbNnQIbS9yCaho6jbTzk/Ix9DDg9VPpDoApt y89MmSu2Nr//2WcVsH+du7CZ1vvmFBMuYO6RZr4= X-Received: by 2002:a17:90a:2c06:: with SMTP id m6mr6893582pjd.129.1598458462429; Wed, 26 Aug 2020 09:14:22 -0700 (PDT) MIME-Version: 1.0 References: <20200826134315.GA3882506@kroah.com> <1425ab4f-ef7e-97d9-238f-0328ab51eb35@samsung.com> <20200826153347.GB4187816@kroah.com> <202008260856.5DAEFCEFF@keescook> In-Reply-To: <202008260856.5DAEFCEFF@keescook> From: Andy Shevchenko Date: Wed, 26 Aug 2020 19:14:05 +0300 Message-ID: Subject: Re: [GIT PULL] USB fixes for 5.9-rc3 To: Kees Cook Cc: Greg KH , Marek Szyprowski , Brooke Basile , Linus Torvalds , Andrew Morton , Linux Kernel Mailing List , USB , Ilja Van Sprundel , Felipe Balbi , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 7:00 PM Kees Cook wrote: > On Wed, Aug 26, 2020 at 05:33:47PM +0200, 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: ... > > Why is slub.c erroring? How is this related to freeing memory? > > I assume this is related to the size calculations in the VLA macros... > nothing _looks_ wrong with that patch, but obviously something is. :) > Hmmm What about the idea I have shared above? (summary: different scope of two offset variables, and thus outer one is always 0) -- With Best Regards, Andy Shevchenko