Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp95191lkm; Wed, 8 Sep 2021 15:37:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyu8K1utbCsl3jO7n2bm9vmlVO0sUs3AR4oTyJ0DpG6Unqh7Pu++6UwEthCLvIvkR6ZwUix X-Received: by 2002:a6b:14f:: with SMTP id 76mr465184iob.211.1631140668042; Wed, 08 Sep 2021 15:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631140668; cv=none; d=google.com; s=arc-20160816; b=vTbNDxcEvqdrY55nJ4NevrFMMZcRwQQtDGYw0NGPQwF8zlQN+6NTP1PJ4QzEDiW63V S9nN+zq/JlgXAUYNhe3VGbtARM9mZw8H2mNR86DLXTyoXvH0yQBIQuE0E5ard3X48nFu KWI0oXuW8GWO9K0tn0iF7jG5KycRSKrpXkPSiaN83tr6TmQcK8t7ANJYIamUkP97CEHU /0vTXJlQKVHXkzKk1ionrjnUXMCTb9SdPVkjbhGwSonzxesC5qUkGwn0MG69Rvmywi9N c8CU/w8v15bdGe1ARndjJYhox53W2/+l5/4b2Id/irJoyRuTgMsaB+OS0XjBC32/sFwp T/VA== 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=HytL3xsN3IMbAtrWbKtS0/nCsgiMyvgWe9lZNEOySKA=; b=a7w9BsriQCZGaa1UHU6O1LmFzjEHOIgRWpC4zoqdGxkTHL+nQxObJK9xws4Po2dgMq c7Qj8XSQh7FewwejQrC1uiQTrAuKhznGtGZ4638SwoXlBxggkYfojUEDQSqB5n2W+T5N nwIrrP/P85gLr01HFHlA7TAcCZGuAiHXezwKl2zsoGW1nabp84UGOf+ayMsFBGPUIu2w YEo7MI0VbRpcmvNfge1pWG6fQsVuoEYVBOHc22iwRRn8aYCDIXIwexzfiquZObg++i0g vkDp/Ie9l0flOz+hu1Sj50eqTyXxGfMu62dHBTKw/hUsF+w45rxfgpsDCycYt3ny3uSd U2OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SJXzuSl0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si551949iow.65.2021.09.08.15.37.09; Wed, 08 Sep 2021 15:37:48 -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=@linux-foundation.org header.s=google header.b=SJXzuSl0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232385AbhIHWgk (ORCPT + 99 others); Wed, 8 Sep 2021 18:36:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbhIHWgi (ORCPT ); Wed, 8 Sep 2021 18:36:38 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EB59C061575 for ; Wed, 8 Sep 2021 15:35:30 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id m4so6040780ljq.8 for ; Wed, 08 Sep 2021 15:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HytL3xsN3IMbAtrWbKtS0/nCsgiMyvgWe9lZNEOySKA=; b=SJXzuSl05zhxWmOOxzrxPh7OyWUCJWmBdrtaUM4PikTlgdmjLPd/RVuMt8u2D9I6bT RMeoTQySffZUogvn6gYJOWzzTpsd+b3QH+x/GYCf4BNoTJcqc/2dIJ2d8ypfcYppmk5I 6Ere6VJaPGXH1QOd5jA2MTtAJ9xImqzIFObv8= 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=HytL3xsN3IMbAtrWbKtS0/nCsgiMyvgWe9lZNEOySKA=; b=Qs5aUEqcXLkjGhfQbNwMkV7qdg4LKd8u4Yw09ic46AVoNXZj5ofzXacKZZYaY5U0mP CptiYzW9Vxe/u7mzB+W+08V/rjAgdsdLl5HZa01X2u2wNa96jnnyErchBZ0rKOaNGR0x /xJwlsKakpRvQouqU9XdbTMCef2hXL/RpsH/eaehhE9luU4VqEY4puLkUaj2uGrBcPDr XR8iIOb3h8P875b0Ef7pGWRLN1tmSxuK0pk3hJRUefenoGoJlbojLjv1lihiTCia0ZQb g/VSZVKbNKk4jcYPDB2b6yTjn3hS16B9/6HQhaZxY+LX5vIsnJ5QFRsXQMovQpSjkVnE SWWQ== X-Gm-Message-State: AOAM530CpLCBPrkwPjrH7RlMGIM0SoIv3rgnJV3COoWppp2oWjnuallU zEnWjalFcm7pzPBlLHyKbJs8zcpaWqFUGvtYuNM= X-Received: by 2002:a2e:9205:: with SMTP id k5mr486058ljg.26.1631140528466; Wed, 08 Sep 2021 15:35:28 -0700 (PDT) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com. [209.85.167.51]) by smtp.gmail.com with ESMTPSA id b17sm38966ljj.35.2021.09.08.15.35.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Sep 2021 15:35:28 -0700 (PDT) Received: by mail-lf1-f51.google.com with SMTP id s10so7435358lfr.11 for ; Wed, 08 Sep 2021 15:35:28 -0700 (PDT) X-Received: by 2002:a2e:a7d0:: with SMTP id x16mr441752ljp.494.1631140088653; Wed, 08 Sep 2021 15:28:08 -0700 (PDT) MIME-Version: 1.0 References: <36aa5cb7-e3d6-33cb-9ac6-c9ff1169d711@linuxfoundation.org> <120389b9-f90b-0fa3-21d5-1f789b4c984d@linuxfoundation.org> In-Reply-To: From: Linus Torvalds Date: Wed, 8 Sep 2021 15:27:52 -0700 X-Gmail-Original-Message-ID: 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: Brendan Higgins Cc: Shuah Khan , Arnd Bergmann , 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 Wed, Sep 8, 2021 at 2:25 PM Brendan Higgins wrote: > > I definitely agree that in the cases where KUnit is not actually > contributing to blowing the stack - struct leak just thinks it is, > this is fine; however, it sounds like Linus' concerns with KUnit's > macros go deeper than this. I don't mind Kunit tests when they don't cause problems, but one very natural way to use the Kunit test infrastructure does seem to be to just put a lot of them into one function. And then the individually fairly small structures just add up. Probably mainly in some special configurations (ie together with CONFIG_KASAN_STACK as pointed out by Arnd, but there might be other cases that cause that issue too) where the compiler then doesn't merge stack slots. I wonder if those 'kunit_assert' structures could be split into two: one part that could be 'static const', and at least shrink the dynamic stack use that way. Because at a minimun, things like type/file/line/format-msg seem to be things that really are just static and const. Hmm? Linus