Message ID | 20230316224705.709984-2-elver@google.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41CFDC74A5B for <linux-mm@archiver.kernel.org>; Thu, 16 Mar 2023 22:47:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9C64F900006; Thu, 16 Mar 2023 18:47:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 976F5900002; Thu, 16 Mar 2023 18:47:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 83CFB900006; Thu, 16 Mar 2023 18:47:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 77AF5900002 for <linux-mm@kvack.org>; Thu, 16 Mar 2023 18:47:21 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 4CA971A0647 for <linux-mm@kvack.org>; Thu, 16 Mar 2023 22:47:21 +0000 (UTC) X-FDA: 80576249082.03.B80F630 Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) by imf22.hostedemail.com (Postfix) with ESMTP id 781C0C000B for <linux-mm@kvack.org>; Thu, 16 Mar 2023 22:47:19 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=poi8gC8t; spf=pass (imf22.hostedemail.com: domain of 3dpwTZAUKCCUFMWFSHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--elver.bounces.google.com designates 209.85.208.73 as permitted sender) smtp.mailfrom=3dpwTZAUKCCUFMWFSHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--elver.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679006839; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=DKOoaD6Ra29v+G2EYQelA/9U1zSfLrdqKtsejRDWzBc=; b=wthSge4jB94cGUcFi8u6nDH37DJSGnruk7hbk7GzwvsWnbxJ1XdfOCKb1wnBak2jvnFeMq wJ+TKJhHtk1n24NDlRIVJvIQmYvMa9ycustplighAXLvOoBVUI4DYKOw657w5b2UftmSPm kjqUmkwFNehJ6vs0feP6/FzLgoO5Two= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=poi8gC8t; spf=pass (imf22.hostedemail.com: domain of 3dpwTZAUKCCUFMWFSHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--elver.bounces.google.com designates 209.85.208.73 as permitted sender) smtp.mailfrom=3dpwTZAUKCCUFMWFSHPPHMF.DPNMJOVY-NNLWBDL.PSH@flex--elver.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679006839; a=rsa-sha256; cv=none; b=RciOptQ31xhEvlyNZxiD639aDmPZ6urEDyODnaXPaUd7L0UoSthZh5mx9JYlY1gSS6dPFJ 2DGwmBdI+kZQiyQsTQbuLh1CN9secxadUXGVefmTIObxqJ+tsRZ4jtgoukrSo++0tLUaRZ VFHa4o64nKL+DGBpA188+dHI011RfBw= Received: by mail-ed1-f73.google.com with SMTP id e18-20020a056402191200b004fa702d64b3so5039287edz.23 for <linux-mm@kvack.org>; Thu, 16 Mar 2023 15:47:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679006838; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=DKOoaD6Ra29v+G2EYQelA/9U1zSfLrdqKtsejRDWzBc=; b=poi8gC8t1L69qGbvV3ks4+AtYYPqxKPowF0x6sr1KaWiMUjsX4yJbWzHEuFQwMGTCC a7vDGOPF9ZmWUYAEKqcXuGg3TH0I0ByS3it3T8iCMelyOoIoUHvnsD37tuy/eN/f8fgZ MOhWLEZtd3O1iIO5liKIZl+rOd00DGKRWzqCFt9cb4FP0WauXq3RGlanbszWSkS7PIsn 3nqOmi6gnlGBIz02VEBhfzUlvZI0++Z2V19sIEMasWeBhM3fLZntPYAgfU5woXjA+hM0 rBDgBHTT1bwY8Y8QQDo0Lj2HKJM539d9cPt6XQANsVd4KS01FOSCOJtESH1ZAHER6eb1 CyLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679006838; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DKOoaD6Ra29v+G2EYQelA/9U1zSfLrdqKtsejRDWzBc=; b=vI5y+nhY2fyso8bMFI7AEpm7fTBkBiFVZiJ+FVNPoOQrxn8ab61ke/Ji6JLBHSxHty 5fmxToaKUABXvaWKGy7NYXg5Hw2+sWSee8jiuEmmY9yI7Od0LNbseEGNdUsFrPWjElOT /rY2q+XTk3Q/mAtVtDe8QszqVtsXn32hg42Oz2VGaHbkCZfkY6N1xaC4Z8fCfxS5aYGo fGCG10CUlxGgNjG6/2/JrH6jKsYUjqxoHUCiLi1Jnw6SuhEdsK/L8ISItJeNAeVmdiX1 YdvEm3RjJ9bSpohzZ3cliHMxAMtL+3DrvAQgoL06FDOfP9jO8bFB7DUz94nBxO0Rz6nE +jlA== X-Gm-Message-State: AO0yUKXpXe1bzIVoLbSjQbnd2K4mWWuMcjKje30zvdIuiUQFbV0OG6CB hOoFE8jRKJn4ocvrlPZnkCs3qREUZw== X-Google-Smtp-Source: AK7set84vqzxuBmj5AgtGtjOmC56rRG8HcHnwMoT5tOHT4ppEJRc4UKAS6topCc1otARidzMsc5TwGO2Fg== X-Received: from elver.muc.corp.google.com ([2a00:79e0:9c:201:f359:6b95:96e:1317]) (user=elver job=sendgmr) by 2002:a17:907:7284:b0:931:6f5b:d27d with SMTP id dt4-20020a170907728400b009316f5bd27dmr669131ejc.0.1679006838228; Thu, 16 Mar 2023 15:47:18 -0700 (PDT) Date: Thu, 16 Mar 2023 23:47:05 +0100 In-Reply-To: <20230316224705.709984-1-elver@google.com> Mime-Version: 1.0 References: <20230316224705.709984-1-elver@google.com> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog Message-ID: <20230316224705.709984-2-elver@google.com> Subject: [PATCH 2/2] kcsan: avoid passing -g for test From: Marco Elver <elver@google.com> To: elver@google.com, Andrew Morton <akpm@linux-foundation.org> Cc: Alexander Potapenko <glider@google.com>, Dmitry Vyukov <dvyukov@google.com>, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Nathan Chancellor <nathan@kernel.org> Content-Type: text/plain; charset="UTF-8" X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 781C0C000B X-Stat-Signature: 9d1i9udwtotp6ba6uzir3hqbtp559uzu X-Rspam-User: X-HE-Tag: 1679006839-712835 X-HE-Meta: U2FsdGVkX18IsgRqLD5eXOkQedkVFE3DS8tK1/jmlkEqmyRzOD+crsG91R+bknir9gxH/wq6fdwm+tFf/8Mhl5YQT1a+0dDoEATsa/LLMqXDCElrZCpwr5EnjUgcIE6XPzRdL8qS70mHalQw5wGMxCMwYSzw8oS7GTS8CtXiiZRFO6hjXKDOEZmGPDFJNqlkcb5c4kx8gBaD5OKrne/yAHkx7zYtzVCAaNbIBgDq9tl32lHekKY+R+hV647uUK+uhWAOQS3JkizxGycGVrKNRKl9xJ8CwLWfjZ+Ipf7Kavqvz3afXU5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6kZp5GdvoDD8byWFEFUbeuhkrW2YcJh8e3k1c2Gtd01bO39QqovGsaalimH3kf5NJ0lzp8P2SOTRwY064tD/7ITryRXZqceMuRKV3OCmNuRCl/WcJ5FANO93foqA0pQzAZBgmLy2idLREBtrFRiz7HUMPWzpzIXx1V42GvlKSAV5yNB65XPbxk4e3Xx3XpPSe5wQObKsS50ArIrDwCTfKvfs4dY7+Tft8Ftyx/2yNbSKCZb8N73pyjvhlrwoSAONKE/ha4c/TNpHLIvEbpvWyA1ei/zjFR6+mNV8X7sKhRk= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[1/2] kfence: avoid passing -g for test
|
expand
|
diff --git a/kernel/kcsan/Makefile b/kernel/kcsan/Makefile index 8cf70f068d92..a45f3dfc8d14 100644 --- a/kernel/kcsan/Makefile +++ b/kernel/kcsan/Makefile @@ -16,6 +16,6 @@ obj-y := core.o debugfs.o report.o KCSAN_INSTRUMENT_BARRIERS_selftest.o := y obj-$(CONFIG_KCSAN_SELFTEST) += selftest.o -CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -g -fno-omit-frame-pointer +CFLAGS_kcsan_test.o := $(CFLAGS_KCSAN) -fno-omit-frame-pointer CFLAGS_kcsan_test.o += $(DISABLE_STRUCTLEAK_PLUGIN) obj-$(CONFIG_KCSAN_KUNIT_TEST) += kcsan_test.o
Nathan reported that when building with GNU as and a version of clang that defaults to DWARF5, the assembler will complain with: Error: non-constant .uleb128 is not supported This is because `-g` defaults to the compiler debug info default. If the assembler does not support some of the directives used, the above errors occur. To fix, remove the explicit passing of `-g`. All the test wants is that stack traces print valid function names, and debug info is not required for that. (I currently cannot recall why I added the explicit `-g`.) Fixes: 1fe84fd4a402 ("kcsan: Add test suite") Reported-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Marco Elver <elver@google.com> --- kernel/kcsan/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)