Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1003720pxb; Tue, 14 Sep 2021 13:50:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwds7f8muSusc16YfqetbV4at1qa2Zp1MNJ9YrSuADa79sx5rPqQRcOgMiQ7MbnqyIPesPr X-Received: by 2002:a05:6512:3194:: with SMTP id i20mr14618197lfe.241.1631652629651; Tue, 14 Sep 2021 13:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631652629; cv=none; d=google.com; s=arc-20160816; b=qXNU0YKWPy4QMr8LyEoaF7b0yI/qsDkkg9FEfRHHTaIlrs0ywGFEZ8qDlvKqTONigG ktyFiiTj53cvWKsi2si0UIxrJ1t4b68qQflGc1OeHJe+CF3mHF1DbEMnToUPFhxBW14c tZF7GurtVuPYs0lLhBBFvPFrPx1qwsKzvHqwdsGFROa/KSDvpEC/p8hpP+jnJabAfSwm GWCFgelDvV6qPXjkjSxRXQplkf87bQerF8BmLki/N7XXQ1Ie2MYxHbCIqApNFKvdHEY3 0GkCSQ655sRPcRiROIEe19fJ5+qXwHNFXHSgBB8/lcAEN8vKwz53wOIWA4Tl1s//QO5J lxwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=z6sjgsRXHAAZe5EpmfS0mxe4gOnh7qI8vZt4uYNXxzk=; b=wn+dH3uJ0p40CDgYj52RDZ6QjuY9QJ1CRYVy+jVtCY6hag9bBqCtEG9V/fEnEaDnnP rhbg6NTvckECE0KAKq5C1I6wY3qkEkPcrYbmzBdGHWLwHFQx+vCeFIEqVayWPW7eJkad FxLvrF83Q9loglcqB2qfp3p/XaEn0LSwnJNaEvqrq/cSMhj9H3rwAZqBbf4vVk1mFNQV YEV08Ullc0mn6wlJRPGHLXwWvzmfLtfJw14mNfYrhcZXQKNVnT3ulTlpWyFdK+hfJNNZ sNeEWA4bc6IufMUbktPp7TrkD807OPOniHbZlf9kNue1Jx6Zdx7NEhUZQJ/TTZstHxRD d6gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="E92+P6I/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si17277983lfv.274.2021.09.14.13.49.39; Tue, 14 Sep 2021 13:50:29 -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=@google.com header.s=20210112 header.b="E92+P6I/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233856AbhINUsZ (ORCPT + 99 others); Tue, 14 Sep 2021 16:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233863AbhINUsX (ORCPT ); Tue, 14 Sep 2021 16:48:23 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81B41C061762 for ; Tue, 14 Sep 2021 13:47:05 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id nn5-20020a17090b38c500b0019af1c4b31fso561816pjb.3 for ; Tue, 14 Sep 2021 13:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z6sjgsRXHAAZe5EpmfS0mxe4gOnh7qI8vZt4uYNXxzk=; b=E92+P6I/zl5VP9TVKRsNL+Ylr6HQVo9mHZ/GiiOaVcKvrSJhfz2YAqxKHcRoGPAouS gUGcTf+QgD5OqLQE/23Jw8K+0+WMHUd932I6GUprDEO7F4aRnU9rgIQ+STPts8y8nrv9 +cvBMgYAsIfDX5vZ2McLpy0jIVA/6UqgpnPzACepffwMZSCbdnbTWoUSGkr3F7wd3MGs pu6pcdii/cEFRINOc4mECjUQ1vyKgli82I/4Ckar4LaCEY3k1BMKRD+91ZCW8cIz9TZe 1HTM73axiD6zbYIBnfp1qs9U8f/hMloM0ZttGHMMvtvPCmCsD0E+IGUiO7V3L+nlyABu lvRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z6sjgsRXHAAZe5EpmfS0mxe4gOnh7qI8vZt4uYNXxzk=; b=dQ6gm3Sgll2QzuXx9ZTphKYe2H3El82irMpBwTdyhOpNk5v79fGxjltcXKaYQ5f3t+ MAlawGgJP4+n3mI8CKBFSs66T6xPGZl73hSH2aZ1SwU8C4hu9A994C5msY16RaMqdKX1 Ee2FAptOSfRfrc4rrv78PjRDZ6ChHewTHS6Bn8+F8zTtn+bW3obtGC3dIFbZbCIHMJY6 KLDvsjc+6ubJ7N9EZ6WBj1xfYr2huFtWfmpbGkCPCeY8xeGbF0rjBW8bRoUUumqvg2+i GzHlLUX7OgpP6nrFmeiZ66JZg4WSTWS4hP4O7imnn62XAZp1J/emtUFqQAJ4Q4h7YNY5 RTmQ== X-Gm-Message-State: AOAM532X2c1azx5G1tX32+OiTkNsn3lyMji8/uvdD+5I7/GcLe1+u1I/ QMO0cTlg/Es6fDwfRqf0t41d3MIAxSPo1+/7nLSWWQ== X-Received: by 2002:a17:90a:1d4c:: with SMTP id u12mr4095618pju.95.1631652424662; Tue, 14 Sep 2021 13:47:04 -0700 (PDT) MIME-Version: 1.0 References: <36aa5cb7-e3d6-33cb-9ac6-c9ff1169d711@linuxfoundation.org> <120389b9-f90b-0fa3-21d5-1f789b4c984d@linuxfoundation.org> <3bad5d2f-8ce7-d0b9-19ad-def68d4193dd@linuxfoundation.org> In-Reply-To: <3bad5d2f-8ce7-d0b9-19ad-def68d4193dd@linuxfoundation.org> From: Brendan Higgins Date: Tue, 14 Sep 2021 13:46:53 -0700 Message-ID: Subject: Re: ipv4/tcp.c:4234:1: error: the frame size of 1152 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] To: Shuah Khan Cc: Arnd Bergmann , Linus Torvalds , Naresh Kamboju , Mathias Nyman , Johannes Berg , Jakub Kicinski , Ariel Elior , GR-everest-linux-l2@marvell.com, Wei Liu , Linux ARM , open list , Netdev , lkft-triage@lists.linaro.org, "David S. Miller" , Greg Kroah-Hartman , Nick Desaulniers , Nathan Chancellor , Daniel Borkmann , Alexei Starovoitov , Eric Dumazet , KUnit Development Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 1:55 PM Shuah Khan wrote: > > On 9/8/21 3:24 PM, Brendan Higgins wrote: > > On Wed, Sep 8, 2021 at 10:16 AM Shuah Khan wrote: > >> > >> On 9/8/21 11:05 AM, Arnd Bergmann wrote: > >>> On Wed, Sep 8, 2021 at 4:12 PM Shuah Khan wrote: > >>>> On 9/7/21 5:14 PM, Linus Torvalds wrote: > >>>>> The KUNIT macros create all these individually reasonably small > >>>>> initialized structures on stack, and when you have more than a small > >>>>> handful of them the KUNIT infrastructure just makes the stack space > >>>>> explode. Sometimes the compiler will be able to re-use the stack > >>>>> slots, but it seems to be an iffy proposition to depend on it - it > >>>>> seems to be a combination of luck and various config options. > >>>>> > >>>> > >>>> I have been concerned about these macros creeping in for a while. > >>>> I will take a closer look and work with Brendan to come with a plan > >>>> to address it. > >>> > >>> I've previously sent patches to turn off the structleak plugin for > >>> any kunit test file to work around this, but only a few of those patches > >>> got merged and new files have been added since. It would > >>> definitely help to come up with a proper fix, but my structleak-disable > >>> hack should be sufficient as a quick fix. > >>> > >> > >> Looks like these are RFC patches and the discussion went cold. Let's pick > >> this back up and we can make progress. > >> > >> https://lore.kernel.org/lkml/CAFd5g45+JqKDqewqz2oZtnphA-_0w62FdSTkRs43K_NJUgnLBg@mail.gmail.com/ > > > > I can try to get the patch reapplying and send it out (I just figured > > that Arnd or Kees would want to send it out :-) since it was your > > idea). > > > > Brendan, > > Would you like to send me the fix with Suggested-by for Arnd or Kees? So it looks like Arnd's fix was accepted (whether by him or someone else) for property-entry-test and Linus already fixed thunderbolt, so the only remaining of Arnd's patches is for the bitfield test, so I'll resend that one in a bit. Also, I haven't actually tried Linus' suggestion yet, but the logic is sound and the change *should* be fairly unintrusive - I am going to give that a try and report back (but I will get the bitfield structleak disable patch out first since I already got that applying).