From patchwork Wed Sep 29 21:27:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Higgins X-Patchwork-Id: 514867 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:4087:0:0:0:0 with SMTP id m7csp432683jam; Wed, 29 Sep 2021 14:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkaaQ+2Na9kqajUPF/u5aRmzlizvWVhu8cudx+P3lxZdFIDc05gRsJbjZ0P3KadkPg/XyE X-Received: by 2002:a50:dacf:: with SMTP id s15mr2666466edj.385.1632950861174; Wed, 29 Sep 2021 14:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632950861; cv=none; d=google.com; s=arc-20160816; b=U6MTYKoHeOI2axypSk3q4WHkca2UKKk1dEU+BZk3QbT1P7G6OkXo0k0Ag37egvJJoS 9RPJ1F/12800m8CYEV0lrmkGRwTHCNpm0u/SzFh1Dw9A+DiIGD07/ebCjA9Neqz8K0dz VYBR0+p3Bbrb6/evQqEJZig+u9MY+Vq+i3I9KLejTORLeOQv6K1rVC7RO7yJgIb0pOVl Z7tkHc2pYgNqW6oqf/6K/Oa6QQosH2IVqIvNI0je5CQZXHq1/QLZkJcUxACpTxNogkYP Hvkv/9+dM3iLpwiHdLRTiIItFI41DxfcYUuF4jpCz6vBF2C95UalfuCswMrxuyGPbhUd DP2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=08MMqZQxkHJyz/VF+8d0XPyGY6ToAo0OA/OmmtaYHyg=; b=TNCy5ucOxQqYkTldnvt89Y9IJEZtozvuF+eU8Td/Y49EP2aro5GE8xqusmxN6NKY81 DjTydSmQcQ8L1B1gCC/eaD58AswoMNL2fq/YbgloL+58kCaFuhf9iuPp22hBDXZe+/Kk qyuKR8QAugFTcVV9oBvDVRKlt7RMDjv/GJ3V2kcE7nV3/Og+SdiWqmrc5w3r6vPsNXpf X0UkqCZs4mzL3huan68Uk09f3+aQRHwW/O8EcEndRe9ojtJ8DMQUafZLMbnQrsCw9xrH IjPxObEGTnOvSA9OJ9PrWuYpLkV6QfuRbSkLrlB55ZX34Mi1o+srt3RNRy6KvJDigpFE 22VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Xc0r7XDh; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-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 p16si1084122ejm.464.2021.09.29.14.27.41; Wed, 29 Sep 2021 14:27:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kselftest-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=Xc0r7XDh; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-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 S1346992AbhI2V3U (ORCPT + 5 others); Wed, 29 Sep 2021 17:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347005AbhI2V3M (ORCPT ); Wed, 29 Sep 2021 17:29:12 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 014CAC061776 for ; Wed, 29 Sep 2021 14:27:31 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id z2-20020a254c02000000b005b68ef4fe24so5248517yba.11 for ; Wed, 29 Sep 2021 14:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=08MMqZQxkHJyz/VF+8d0XPyGY6ToAo0OA/OmmtaYHyg=; b=Xc0r7XDhQk/RWJL3VJzgIR6Z34QQY3yA7gfvyI2MR/G/ctI7q+99DthyY5LlcWg2e7 yNZKWxRGgPdrPrKcdjVGfuLYpgUyyaxc9QM+cEdXLZO7cGIBk81SomjCOBT5pFHhS50s c6xbphtTxJebvIq+LQjYxHjM/EiPRt3x+0CttaNT3TVpxgt96Nx34le5hdAMHS1ggHKu uoCMduNUutZNaLiuUGpfAGsoSYuT04gWEbTvHxWTQXG9vA1xAV4uphxEGXqqwOYkP7G9 Czl8saVkvd0Wswmv2h2fMTdekMv294gEiwyuHMbzXc/Mvk4eKvpBG3Q+5f1Pbd2ghoD/ m3kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=08MMqZQxkHJyz/VF+8d0XPyGY6ToAo0OA/OmmtaYHyg=; b=h7J7hztxfDamS7Apbi98qivL/1i+sz4NfGxISdFqTPiu/HqGAgCULWxnunRuHv3buT V8khVrojFND+b1YAd99DnUGGJV6/nYhOnQ6BKseH4lXnYBnx3LZUj/1NMmaQYIxsEJ46 vQd87vGYCvQ4cpYHAJcXqWh8G216msMRD8O/zo0Jq0hfoWQlehtjkvA70j8mFL21qyT/ ZUv7Q7MuejN9lUYn4moyID+0urKaWnKdE0MoNedEM42cG9EjYfEnr7xaMfjwUJjPRgId n41kAVtza4jLufpQSYlZcho8Nul2hPPWcGzBPBJAv+8jsZv5XbGzDujQ42yZ+zjYkMTg S7Xg== X-Gm-Message-State: AOAM532MN18KeLGsaM6oItSwSZW6NxKhxLoEe/UjLvsjqgaSIEFzkSQY 09dz5ZPv/EnxeXoLu8IQ0dtNv3dc/6tlK9WK3fIo2g== X-Received: from mactruck.svl.corp.google.com ([2620:15c:2cb:201:83f4:ff43:90d6:efd3]) (user=brendanhiggins job=sendgmr) by 2002:a25:1584:: with SMTP id 126mr2372236ybv.126.1632950850186; Wed, 29 Sep 2021 14:27:30 -0700 (PDT) Date: Wed, 29 Sep 2021 14:27:13 -0700 In-Reply-To: <20210929212713.1213476-1-brendanhiggins@google.com> Message-Id: <20210929212713.1213476-6-brendanhiggins@google.com> Mime-Version: 1.0 References: <20210929212713.1213476-1-brendanhiggins@google.com> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog Subject: [PATCH v2 5/5] bitfield: build kunit tests without structleak plugin From: Brendan Higgins To: shuah@kernel.org, davidgow@google.com, arnd@arndb.de, keescook@chromium.org, rafael@kernel.org, jic23@kernel.org, lars@metafoo.de, ulf.hansson@linaro.org, andreas.noever@gmail.com, michael.jamet@intel.com, mika.westerberg@linux.intel.com, YehezkelShB@gmail.com, masahiroy@kernel.org, michal.lkml@markovi.net, ndesaulniers@google.com Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, linux-iio@vger.kernel.org, linux-mmc@vger.kernel.org, linux-usb@vger.kernel.org, linux-hardening@vger.kernel.org, linux-kbuild@vger.kernel.org, Brendan Higgins Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org 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 Reviewed-by: Kees Cook --- Changes since last revision: - Dropped -Wframe-larger-than=10240 from CFLAGS. --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.33.0.685.g46640cef36-goog diff --git a/lib/Makefile b/lib/Makefile index 5efd1b435a37c..a841be5244ac6 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 := $(DISABLE_STRUCTLEAK_PLUGIN) obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o