Message ID | 20230316224705.709984-1-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 6B9FDC6FD1F for <linux-mm@archiver.kernel.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <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-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+vdqkAIPW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jAO3tSnkwW/gnP6nPrP+jw+rRsEnEzXM/frkTP1gFKh5/Z31S0GhBAOagH9LVN7r2FccB1Aowm1oeiD0z6hXRKc+XunGRDTy2Ow0GNgEP/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: <linux-mm.kvack.org> |
Series |
[1/2] kfence: avoid passing -g for test
|
expand
|
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
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 <nathan@kernel.org> Signed-off-by: Marco Elver <elver@google.com> --- mm/kfence/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)