From patchwork Mon Jan 25 12:45:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 370642 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp5259027jam; Tue, 26 Jan 2021 11:09:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM0IrWw2kRynvPJtvgpE13Royy0vs+ueILOPT4d2ZC46OuatoPFfdmWK6n2fytceHd4C4G X-Received: by 2002:a17:906:c0cd:: with SMTP id bn13mr4162048ejb.368.1611688196188; Tue, 26 Jan 2021 11:09:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611688196; cv=none; d=google.com; s=arc-20160816; b=tVnKwQ0aMvD4Hn+67yu+i4F0w+nV73Ho9nG+cGPUWYJ1yzOkPSNpyjBGTkcl3dCCVY Py4j0OPu13GnBP4HCxkIj/vKqc5UBT+FdyW2LltlCGdldsaCl45PcMkXUGuzx6qL2k/X XBl/mT2hl6iQJiil8EtRLChYVUwjWjOg+0ftzozdxI0KfsUsUid5aYQTDyvOedc4N3fd W0xIIr0jrDKstb4etb1BUqN08AT82cojpdoRtS/ji2xwjZUggiA9B2C75kPyqmnrRKSw 76QAdWoxAOJOwRSswFqjZMM8kdY9jkuEPIv5/WmLlyH0HXKRcqrM1nls+R+/bB/GXH2m DCBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1/WHDrdBytsaDnFBZL5xWblchmoqdP7DRv2RHujQWAo=; b=fPgbXhxnRKq9mU54lwRh9Vpjs+LF+rbAX545X+ruEZXixQV4YVl5iyMuNAhNPLHJYj 0Nj2Dl+vbkhvYYxR53uWHtsMDADjWVsUBgpGkisA2VOHMRwznzv54JDbdKcCyz8sfJQ0 4RXysAL+n8h+EXpVL0+XMvzs+u8w1KvxXEc3swlvKV5tmx/OnRdviulwYg9wBgwCf5qS kW8siVtd+ZN00J9vOtMBPfQguZIOFb6FoRAQ3Jh4Jxg8sH5Yy2x1R269OgKv+W4+wgs9 r1pWZKxIZ0ASh//w33NrxzZgPz1eHcIx8GsgPIHYpQSC09wY3JfYb83Zdhy8pRlWQpgc XIyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UJbNzV0P; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si7153710ejt.469.2021.01.26.11.09.56; Tue, 26 Jan 2021 11:09:56 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=UJbNzV0P; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731339AbhAZF6V (ORCPT + 6 others); Tue, 26 Jan 2021 00:58:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:39552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728299AbhAYMqn (ORCPT ); Mon, 25 Jan 2021 07:46:43 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6868222A84; Mon, 25 Jan 2021 12:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611578761; bh=c1ESZ1aS34pGoP4FODnuFV3EEuoDWPCSVbwlqLba+wM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UJbNzV0PkXF7L4dtnJ3XXTVb5KqxyML1bOqWvfM18AFmy/942I+HDkwXp/+24n9Qp k76W9D77JlVdn2f/9xG+hcC44mhHBungtffaSl173frfAjcelo9R6SeDr5XY2Q2rc9 KqLlfqUP/sb8ltt6+F4Kt/kjSFmo3nuO875DH8jwJqWI8gwEzO6/m9GACge0OI2izJ L+MlIeZbKa426KistfPzlhYCwgWVctTXtFi3RBXskLO1R6Y61GrP1fBJgOB4+m3EFy 5xRW19AKq53J4TB7rzaSgKJE9yjU/O38UrK+CU1FY7jQ1kaZG0McdalkaTTUWQG1pd XjW8pOXXRXx6g== From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Kees Cook , Brendan Higgins , Shuah Khan , Geert Uytterhoeven , Alan Maguire , Dmitry Torokhov , Mika Westerberg , Vitor Massaru Iha , linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Subject: [RFC 1/3] bitfield: build kunit tests without structleak plugin Date: Mon, 25 Jan 2021 13:45:26 +0100 Message-Id: <20210125124533.101339-2-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210125124533.101339-1-arnd@kernel.org> References: <20210125124533.101339-1-arnd@kernel.org> MIME-Version: 1.0 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 --- lib/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/lib/Makefile b/lib/Makefile index b5307d3eec1a..6a7300f0f02f 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -348,6 +348,7 @@ obj-$(CONFIG_PLDMFW) += pldmfw/ # KUnit tests obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o +CFLAGS_REMOVE_bitfield_kunit.o += -fplugin-arg-structleak_plugin-byref -fplugin-arg-structleak_plugin-byref-all obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o obj-$(CONFIG_BITS_TEST) += test_bits.o From patchwork Mon Jan 25 12:45:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 370586 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4655356jam; Mon, 25 Jan 2021 21:58:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXpSbin3gNyD5CbxIg5pyb7xpgS4SeuyY5fbGQKVyvzou4QiNxuSMOPKe82/C6L5ht1bAO X-Received: by 2002:a50:852a:: with SMTP id 39mr3350862edr.114.1611640724284; Mon, 25 Jan 2021 21:58:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611640724; cv=none; d=google.com; s=arc-20160816; b=LSUZb2E+KBHYxq6RYqo7lGOoWNCRbZEcm39DnZ57O85DEXigkDNqcV/EnQfB2vHFyW DtOU5+CwLAb8zmAKcZ5BdpfKojdZDhO0tSO9ZShK8bu3SgvC1xN5y5OaEyc5fuUxziC5 8aDGd0KE61wah6EQYouC/kYGKDBzZ1+BKVg7Kj+AhyhYciCPCBekKqwRaZoil63edwJN chXkInpkzK02tuK/FP7Y6O/8CR4pnnK9MXgqzU3wreaaPu6YXh3KsG2d9wsi06KUp1lm J8KU0FlDYP5TEurVgyocZ5zuKqRImbCB9JigWgAndDPBcbWMpAFhiqn5xT8tj5rplbG0 5TOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rt6Pp9nqQyUqDGkSdRtFSQ+7937k+2jhCBdIcbCXd88=; b=QvAX3c+2DxNXUAqTM7tGKACcU8msp6NsDJpIXT+NR5cFMnbdmHi8WE9dksDW3PxsZx txfrej9IsW0WaDIHE9nCMj/FA2Vm3s5whYsk6Ya2fMlpRx5+Zv8CZshEpKDDiQWSjMmL HH1vrwsbVzt4Nhw4o4g4bPh82xENQuYRbFqhmVWD4AS+QFv5A6P1bRwoOr+hFHFbOMgO S4BtceViPwdQ0FDYc5i5xL1VDxItyKrnh2aFRLlFLXA++1JZbsHG/zeg5xeBrzcZ6URA XD2KtTDL72oEa7eIp5rtEjDWZkTskjq3ZbC0bB7fVWcIENlot7Wln+/b9vw9wMwnXwPO NwKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dbt1781s; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dv5si6843139ejb.231.2021.01.25.21.58.44; Mon, 25 Jan 2021 21:58:44 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=dbt1781s; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731421AbhAZF6Y (ORCPT + 6 others); Tue, 26 Jan 2021 00:58:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:39582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728248AbhAYMq6 (ORCPT ); Mon, 25 Jan 2021 07:46:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BE3B322AAC; Mon, 25 Jan 2021 12:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611578774; bh=ls2cUHUbFUJZ5qjE5yPv0cWaPnFNVfjXn2kCI4yqF5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dbt1781s8CYoMRuC3iRVY6S4Q8wyRMTGTV/uVaSH7xGTA7Sq50aR1Da+j0THyPwEN Lg/0vj9dgK/avaAqitMt7Qm3UQOBJe+fq8hL4781KwCvL0cW7we0f3l+LFO7hQ1MQ/ Z1nuF1wO4CSzefOqzW9XkBzBbo/NcEQ6DRit4gPwwM+evLGoJk5uys201GYs72UuX8 bOjzG5u/qjzWyf5WRdsybXJqkQ5QLrn5/8SByNFyiQ+VESNfqoNWsl04qhOXx1LKoW MM8LtQuNmCYfsCfwuFq46hHJJQlDsHsCspe8R+3y+6PI7RoPQGC9mSCq4sHqy2DUT5 arOSNYiKNVM2A== From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Kees Cook , Brendan Higgins , Shuah Khan , Geert Uytterhoeven , Alan Maguire , Dmitry Torokhov , Mika Westerberg , Vitor Massaru Iha , linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [RFC 2/3] drivers/base: build kunit tests without structleak plugin Date: Mon, 25 Jan 2021 13:45:27 +0100 Message-Id: <20210125124533.101339-3-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210125124533.101339-1-arnd@kernel.org> References: <20210125124533.101339-1-arnd@kernel.org> MIME-Version: 1.0 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: drivers/base/test/property-entry-test.c: In function 'pe_test_reference': drivers/base/test/property-entry-test.c:481:1: error: the frame size of 2640 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] 481 | } | ^ drivers/base/test/property-entry-test.c: In function 'pe_test_uints': drivers/base/test/property-entry-test.c:99:1: error: the frame size of 2592 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] Turn it off in this file. Signed-off-by: Arnd Bergmann --- drivers/base/test/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.29.2 diff --git a/drivers/base/test/Makefile b/drivers/base/test/Makefile index 3ca56367c84b..2f15fae8625f 100644 --- a/drivers/base/test/Makefile +++ b/drivers/base/test/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o obj-$(CONFIG_KUNIT_DRIVER_PE_TEST) += property-entry-test.o +CFLAGS_REMOVE_property-entry-test.o += -fplugin-arg-structleak_plugin-byref -fplugin-arg-structleak_plugin-byref-all From patchwork Mon Jan 25 12:45:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 371923 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B507C433E0 for ; Tue, 26 Jan 2021 05:58:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D1E6221EA for ; Tue, 26 Jan 2021 05:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732232AbhAZF61 (ORCPT ); Tue, 26 Jan 2021 00:58:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:39732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728292AbhAYMr1 (ORCPT ); Mon, 25 Jan 2021 07:47:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B8EB622D04; Mon, 25 Jan 2021 12:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611578806; bh=kXFZkQ9+v70aH3YVPuA5/lu+eenOiEeGF4vdN+dLFXQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DXTCMseCI/Zpe+8B3NRpfNUmZER45GKnjtDKktN9SOa5UxRqf7GzeMm26nh7vHuzB a1vxPTVpUEG3IS8mGE/i695PZBWod8q4jJKIcWH5d5wgIPBxbpGTJV/c8Gxh8k9oJR lZGpFG2I1enjOqDI7LYKBuArgdxcJcuN/jhMLEN0qt6b3GVquUJEDWlwQhWxNwIvis bubRTpFAdqO4LuM8OB2fmrZHyuOs4XhU4zCVbDYasw46qtiSq+2SEg3bMvH/5iCX8R ReLQ+Li7judC1UxCNTvdGb97OGiO+bLO1RK4szwMpzgfJULqIM5mYRMY+wUy4YNLgG EoeAvpQdDw+JA== From: Arnd Bergmann To: linux-kernel@vger.kernel.org Cc: Arnd Bergmann , Kees Cook , Brendan Higgins , Shuah Khan , Geert Uytterhoeven , Alan Maguire , Dmitry Torokhov , Mika Westerberg , Vitor Massaru Iha , linux-hardening@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, Andreas Noever , linux-usb@vger.kernel.org Subject: [RFC 3/3] thunderbolt: build kunit tests without structleak plugin Date: Mon, 25 Jan 2021 13:45:28 +0100 Message-Id: <20210125124533.101339-4-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210125124533.101339-1-arnd@kernel.org> References: <20210125124533.101339-1-arnd@kernel.org> MIME-Version: 1.0 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: drivers/thunderbolt/test.c:1529:1: error: the frame size of 1176 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] Turn it off in this file. Signed-off-by: Arnd Bergmann --- drivers/thunderbolt/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/thunderbolt/Makefile b/drivers/thunderbolt/Makefile index 7aa48f6c41d9..e571c0495a84 100644 --- a/drivers/thunderbolt/Makefile +++ b/drivers/thunderbolt/Makefile @@ -7,6 +7,7 @@ thunderbolt-objs += nvm.o retimer.o quirks.o thunderbolt-${CONFIG_ACPI} += acpi.o thunderbolt-$(CONFIG_DEBUG_FS) += debugfs.o thunderbolt-${CONFIG_USB4_KUNIT_TEST} += test.o +CFLAGS_REMOVE_test.o += -fplugin-arg-structleak_plugin-byref -fplugin-arg-structleak_plugin-byref-all thunderbolt_dma_test-${CONFIG_USB4_DMA_TEST} += dma_test.o obj-$(CONFIG_USB4_DMA_TEST) += thunderbolt_dma_test.o