From patchwork Thu Mar 16 22:47:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Elver X-Patchwork-Id: 13178380 Return-Path: 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 6B9FDC6FD1F for ; Thu, 16 Mar 2023 22:47:19 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E7F70900005; Thu, 16 Mar 2023 18:47:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E2F34900002; Thu, 16 Mar 2023 18:47:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1E01900005; Thu, 16 Mar 2023 18:47:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id C28FA900002 for ; Thu, 16 Mar 2023 18:47:18 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A0B94A155D for ; Thu, 16 Mar 2023 22:47:18 +0000 (UTC) X-FDA: 80576248956.20.0E97565 Received: from mail-ed1-f74.google.com (mail-ed1-f74.google.com [209.85.208.74]) by imf12.hostedemail.com (Postfix) with ESMTP id D3BE34001B for ; Thu, 16 Mar 2023 22:47:16 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=dG1Fj3EX; spf=pass (imf12.hostedemail.com: domain of 3c5wTZAUKCCICJTCPEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--elver.bounces.google.com designates 209.85.208.74 as permitted sender) smtp.mailfrom=3c5wTZAUKCCICJTCPEMMEJC.AMKJGLSV-KKIT8AI.MPE@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=1679006836; 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: references:dkim-signature; bh=mIMhApGgO8tdqBq7ln4mUoYAtVQfctnuG47znmR3Hdk=; b=txBSiaPcvFirM7Cv0ZOe85rsMOxulpXNotplU2AmDvCQeA8Dx5isZ8gnmP7pblRxSIujXY CLvRKDV0djexUmPscqBwEtXJz0QPqaLPvoXIFg8ZglisyObqxmgb45VJfUv9fOClcfFg68 45HvAtiYKcKRDUn2a0eqZmgKDt6P0bk= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=dG1Fj3EX; spf=pass (imf12.hostedemail.com: domain of 3c5wTZAUKCCICJTCPEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--elver.bounces.google.com designates 209.85.208.74 as permitted sender) smtp.mailfrom=3c5wTZAUKCCICJTCPEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--elver.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679006836; a=rsa-sha256; cv=none; b=6pycWvwPL1yCdThwPpl3S7pB6toPpxPVXvrIejRiH2f0ES39smIWSeuoSJlE5RQ3FUNzom RYroegnGlbpPBp2elq+OAUB/zXQLvPv+UyIdBg6ENJcOg8fRJK9AfzVs13L0AUYRu5Gjlu exrXvgX1JQoxwOof8mhxmxo/288E4qY= Received: by mail-ed1-f74.google.com with SMTP id er23-20020a056402449700b004fed949f808so4988480edb.20 for ; Thu, 16 Mar 2023 15:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1679006835; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=mIMhApGgO8tdqBq7ln4mUoYAtVQfctnuG47znmR3Hdk=; b=dG1Fj3EX4sgJuQwgp2UhU7BloxdGqfpKCXNsSUwcImn0Gtitsw4nucQeqec/zudYiq 79+GE640VKDtERe9UcudVnI3IJwjavox42UEIyWrax04lelN9sgHSInSVI7K9aXmCBdX 3bKG/P5pP+f95mS62WQEBleu1VD+z6Kc4FO3l8Au9P2St2CD7Y3WMAUG8ktwBnw1rHT9 s47xHUyBGN4xrFp7/wYWe3AHWZPTgCwyHNiYQrSSD6TBpgb67ltgdkb09LDw/PNSJBNO EJx4qe+cc5vCmCJcoRSeeT5kns/WNboi6XPBBAxi2836S2HBaG/P9Uwa9R6xiUbh5qNl Eyig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679006835; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=mIMhApGgO8tdqBq7ln4mUoYAtVQfctnuG47znmR3Hdk=; b=fA8VppwuHCb4Hn2G1fRgst24Q5eHXAmfoqNKpUO4PLwcBHUc4d5flnhSDHtv788+Wm HsKwMg2q9nlXXkOX/D4L6TnrU2lKWg7hMRrPad9tZYX2jPZQViMwyjdAjqXDntvuNSeW hTBNaeF6NiMgiROpwxTXiZvnVG6Y/Ce6gPa8ac1HDKahjYirBp/ctCLwsRnufs4UIpPf AZAgAvAw6RqgSAGdM2sz9G6yo3MUWdhkAsRAgkKqqCXul3X+hvQyno7woNA0qTNJPh4S IMRWZvAOGBzyyZ2YxWu2hX90WuuuGAmCGTzySftJ74WDfQrGgPH7sjcEdt9cbw6Ar1Yn 1M7g== X-Gm-Message-State: AO0yUKV+PTo9QesPC69e03MS9t7Shl8BEJpRL4/6ftfMSJUYPp/MwSvh JvCftDVnNeBQRgeZtNH4g2C/FvyPnA== X-Google-Smtp-Source: AK7set//hzRaf3817JCLhSDQAGvQzyZ1e2uHq6BrFdQ9Xuirr5ufy7yRaiJimwcfj+RKh9yiWLlx9PIgpQ== X-Received: from elver.muc.corp.google.com ([2a00:79e0:9c:201:f359:6b95:96e:1317]) (user=elver job=sendgmr) by 2002:a17:907:8a01:b0:92f:b8f1:7239 with SMTP id sc1-20020a1709078a0100b0092fb8f17239mr3202420ejc.4.1679006835449; Thu, 16 Mar 2023 15:47:15 -0700 (PDT) Date: Thu, 16 Mar 2023 23:47:04 +0100 Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog Message-ID: <20230316224705.709984-1-elver@google.com> Subject: [PATCH 1/2] kfence: avoid passing -g for test From: Marco Elver To: elver@google.com, Andrew Morton Cc: Alexander Potapenko , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Nathan Chancellor X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D3BE34001B X-Stat-Signature: u4h5dwfp8f5stk78b7aqrb7t4xac7owa X-HE-Tag: 1679006836-224852 X-HE-Meta: U2FsdGVkX1/x20RYRjLHFEfmdTazQ4Rdhauy2bNoAGab2e6tb0Z8qbIoK1FZuv/ZZNpkeOssFhUo7GZSxYqXlRZxRoy1vsX5r6mIME9JS+DoMg6xReLi8JqTktPZJ0etazfPjNWPSDMkd3mlagPrL1HKpJXz63NyidhNB/atPNGjuW5x5nYKeHf50CpAoA9IfWZyx3QzCR4jmdKoAYIMDR/2jV/8ElyH6YQvXxvGKxeBP5WoyOLXGe3zZl6r/mtUAte5Wmxtv6drcfHu4fbbpixpej4JECR2XdNf1q7Vz3XfQtZ52AO4BkBExHBapd0h+emdD8LDtE5N2R7TIG4p5RWYlVnXa2rmmnIGYG7lz5+0XeA7QMkOYslko6aZ5O+eQ8p+vdqkAIPWAMMbrRskxgRS3819ANJW9VYhWVpWvxa5b59VANZBp2FvLRYfiGXNBsLb4BANa3ZWXDT8+9KvRpQwXz9wk5OpF3TwwptgIx81s05fmkL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ow0GNgEP/NP7SJwQgyoYX3PsVdm3Hs0NVSbET5RU0qeF3MnMdgY6FlzMKP5QHlhNEI5OyZsbBK3zWKHbTyq0ql8wkoZh6lc6pv78D1cFvw= 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: Nathan reported that when building with GNU as and a version of clang that defaults to DWARF5: $ make -skj"$(nproc)" ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \ LLVM=1 LLVM_IAS=0 O=build \ mrproper allmodconfig mm/kfence/kfence_test.o /tmp/kfence_test-08a0a0.s: Assembler messages: /tmp/kfence_test-08a0a0.s:14627: Error: non-constant .uleb128 is not supported /tmp/kfence_test-08a0a0.s:14628: Error: non-constant .uleb128 is not supported /tmp/kfence_test-08a0a0.s:14632: Error: non-constant .uleb128 is not supported /tmp/kfence_test-08a0a0.s:14633: Error: non-constant .uleb128 is not supported /tmp/kfence_test-08a0a0.s:14639: 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: bc8fbc5f305a ("kfence: add test suite") Reported-by: Nathan Chancellor Signed-off-by: Marco Elver --- mm/kfence/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kfence/Makefile b/mm/kfence/Makefile index 0bb95728a784..2de2a58d11a1 100644 --- a/mm/kfence/Makefile +++ b/mm/kfence/Makefile @@ -2,5 +2,5 @@ obj-y := core.o report.o -CFLAGS_kfence_test.o := -g -fno-omit-frame-pointer -fno-optimize-sibling-calls +CFLAGS_kfence_test.o := -fno-omit-frame-pointer -fno-optimize-sibling-calls obj-$(CONFIG_KFENCE_KUNIT_TEST) += kfence_test.o From patchwork Thu Mar 16 22:47:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Elver X-Patchwork-Id: 13178381 Return-Path: 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 ; 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 ; 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 ; 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 ; 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 ; 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 To: elver@google.com, Andrew Morton Cc: Alexander Potapenko , Dmitry Vyukov , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Nathan Chancellor 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+Ipf7Kavqvz3afXU5ayDuBkkqNSUd4Y3xclQINt9WK5smjYUaoH4VLz/sDCL4LdnkmcMZSZ/36PmkQCHS5Sn6LVZe54rWR5oahcD2GGbTrPc6nCO9jBprfbqeYrXT58ODKtCdDPn9hKZuFEG4G3krZ1l1BgwGL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z7HUMPWzpzIXx1V42GvlKSAV5yNB65XPbxk4e3Xx3XpPSe5wQObKsS50ArIrDwCTfKvfs4dY7+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: 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 Signed-off-by: Marco Elver --- kernel/kcsan/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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