Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1034506pxb; Wed, 29 Sep 2021 15:27:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGnZ1pMdhC40J0DBDfwG8aXQlHvDXIJGNxmY5llIvD1ofoADfVjLAzem/QnQI0MezAQKjw X-Received: by 2002:a17:907:7f8e:: with SMTP id qk14mr2701799ejc.91.1632954468963; Wed, 29 Sep 2021 15:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632954468; cv=none; d=google.com; s=arc-20160816; b=eW9yzntbn5F9oCO5pZg4ySG4DOJHdoJg1K4gMG0zsi0460nLr+WIOHYVA5gI8hIvfm pBn8gtyVSlJoT3Fr877UXLI+NfGbg72PgkGuyeKeeUydVQ86wIaBBr7JVtR9Q4uOmd7X FRIkMTpiu4jUE90CN/4LhMhRkzt6tUP146+z+d/NVAaNNGEhnu+vr0zAdN6LNReC+IoH 3CdHjoUoGJ69RRbCxnmBLOVdXJaLw60jFPDE9pwdh3OSz7D8mvRLeO6fAoniD4jECtka UheCdLMCgZbbKhBto4mrZpLajmi6e000Mqbqip4JpMDdxiWQrW7n+pt7A4RXxNTmqopa Z9gg== 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=FurABvQrnW7SVwUVRUJVf5Azv+RVGAv+gR3wBDsauaI=; b=Do2iMN3X2gh38iiI170Esi8IFkmpV94qwtoUfqcbG3hqLdv3yVMzhiB1C30B11QDnh /713a+C48ZbT8V1rEAoeEt6zYxmrHesWJda963CcKssiQi1030SEeeJYuSaOQEVYmV// w2QKkQ3UDovB3Rde7Yc/r6jDd7Ll3LFmnl4NwjQTnagkYpvmiKwpCLQrvCwneq4rAM5+ hk09OPbQFNHcC0imvJota0YbwCKnez/o9i1AIrRpU/hhGPsg4Zxn6vQD8SnhyClZ0XtB GjYWxN+yPoHSBBmWlBiklTDmUl8LtqCj72nFAWH4iC2fAC6QpmlQRN6yYXIe8gM24OUR 6ueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=rpuh4Cn9; 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 w10si1447067edq.9.2021.09.29.15.27.20; Wed, 29 Sep 2021 15:27: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=@google.com header.s=20210112 header.b=rpuh4Cn9; 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 S237657AbhI2VGb (ORCPT + 99 others); Wed, 29 Sep 2021 17:06:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345032AbhI2VGY (ORCPT ); Wed, 29 Sep 2021 17:06:24 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1172AC061769 for ; Wed, 29 Sep 2021 14:04:42 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id d4-20020a17090ad98400b0019ece228690so5105326pjv.5 for ; Wed, 29 Sep 2021 14:04:42 -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=FurABvQrnW7SVwUVRUJVf5Azv+RVGAv+gR3wBDsauaI=; b=rpuh4Cn9psRPurHAZOwfwzZdIMhLn3EI2hZI6OkxWUQ9wr7PoYy17LA/S2hdC0molh x7naFVL8ORxyHvk6XU8Urpy4rEKfbkzmh/bHAXpJKlxN4aNQc9RA3Qz8rhTFdCkXHK11 6nHk0J9aEvF0lxamc/+wIh6SCR984r4cRANMeCx8ff/uH+27rSh6w7khjk1zI0WTGwvG eGJMmselLZ/VfaB1jkfuvALphegy0dJH9YWLozgw9tnU+rXQwegYkIkgiBnPsyPIYdbf Qyw7am/MQOgdU7U/vre/ki6YRt0cJ8Lp5QBk+d21tZ0+8atwOc3EPdtZNcc3cJBo1pkr m1hw== 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=FurABvQrnW7SVwUVRUJVf5Azv+RVGAv+gR3wBDsauaI=; b=zo8hDTAe8lRHdrMKSjTuDOonPf8DcWHce6ICdvRUpizWq7yt0wYB1v4tOFGiZfJsqv wQVeufjAGU2t6pLXGjto/yTBs/DJVvh/A6If9HpeN7Z0CeYvR2bfnKYANZfniZzux0VU sOO/28QigiX9V89YnJIZ1XtCEEhhlEAsstJKpS+hHjpll4stAJxXbAq4qrmrWbGBmlZo nOSMLwaRvh+4BwII7AVIGQuuIr+rxzlWMGiiqsmHd0DTHyMRkvpl2BYG15qH70W/VKox FHPzdZelN+/OHiUdzC/O3X5mTdXtSoZAF5ZITJEcpId6+ybnxJvo69YIkGFjL5Lkx1ex kEFg== X-Gm-Message-State: AOAM531nYyxxLYvAMRaAX7ylu6gnrMvXe87xZiGBwdksqCrpnTWheYdA D4Avht12I55NlDHDPRHZ8lJMwlCut6iquNPW5bGSnA== X-Received: by 2002:a17:90b:3108:: with SMTP id gc8mr8437024pjb.63.1632949481073; Wed, 29 Sep 2021 14:04:41 -0700 (PDT) MIME-Version: 1.0 References: <20210917061104.2680133-1-brendanhiggins@google.com> <20210917061104.2680133-7-brendanhiggins@google.com> In-Reply-To: From: Brendan Higgins Date: Wed, 29 Sep 2021 14:04:30 -0700 Message-ID: Subject: Re: [PATCH v1 6/6] bitfield: build kunit tests without structleak plugin To: Arnd Bergmann Cc: Shuah Khan , David Gow , Kees Cook , Rafael Wysocki , Jonathan Cameron , Lars-Peter Clausen , Ulf Hansson , andreas.noever@gmail.com, michael.jamet@intel.com, Mika Westerberg , yehezkelshb@gmail.com, Masahiro Yamada , Michal Marek , Nick Desaulniers , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List , Linus Torvalds , gregkh , linux-iio@vger.kernel.org, linux-mmc , USB list , linux-hardening@vger.kernel.org, Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 12:22 AM Arnd Bergmann wrote: > > On Fri, Sep 17, 2021 at 8:11 AM Brendan Higgins > wrote: > > > > From: Arnd Bergmann > > > > The structleak plugin causes the stack frame size to grow immensely: > > > > lib/bitfield_kunit.c: In function 'test_bitfields_constants': > > lib/bitfield_kunit.c:93:1: error: the frame size of 7440 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] > > > > Turn it off in this file. > > > > Signed-off-by: Arnd Bergmann > > Signed-off-by: Brendan Higgins > > --- > > lib/Makefile | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/lib/Makefile b/lib/Makefile > > index 5efd1b435a37c..c93c4b59af969 100644 > > --- a/lib/Makefile > > +++ b/lib/Makefile > > @@ -351,7 +351,7 @@ obj-$(CONFIG_OBJAGG) += objagg.o > > obj-$(CONFIG_PLDMFW) += pldmfw/ > > > > # KUnit tests > > -CFLAGS_bitfield_kunit.o := $(call cc-option,-Wframe-larger-than=10240) > > +CFLAGS_bitfield_kunit.o := $(call cc-option,-Wframe-larger-than=10240) $(DISABLE_STRUCTLEAK_PLUGIN) > > I think the $(call cc-option,-Wframe-larger-than=10240) needs to be dropped > here. This was not in my original patch and it is definitely broken on Ah, someone else put that there, so I just left it, but I can drop it. > all architectures > with 8KB stack size or less if the function needs that much. What is the amount > of actual stack usage you observe without this? Well STRUCTLEAK claims 7440 bytes, but I don't entirely believe that. Regardless, it is definitely less than 8KB. > If we still get a warning, then > I think this needs to be fixed in the code. > > Arnd Cheers