From patchwork Mon Oct 24 21:21:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 13018171 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 BEF1DC67871 for ; Mon, 24 Oct 2022 21:22:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 58957940009; Mon, 24 Oct 2022 17:22:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 538B1940007; Mon, 24 Oct 2022 17:22:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 42890940009; Mon, 24 Oct 2022 17:22:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 380DD940007 for ; Mon, 24 Oct 2022 17:22:01 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 021CA1606C7 for ; Mon, 24 Oct 2022 21:22:00 +0000 (UTC) X-FDA: 80057115642.15.AFE0D08 Received: from mail-lj1-f202.google.com (mail-lj1-f202.google.com [209.85.208.202]) by imf09.hostedemail.com (Postfix) with ESMTP id 15B19140015 for ; Mon, 24 Oct 2022 21:21:58 +0000 (UTC) Received: by mail-lj1-f202.google.com with SMTP id x7-20020a2ea7c7000000b002770aeb6d15so1635186ljp.13 for ; Mon, 24 Oct 2022 14:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=h1brEJBipb7gPKmBCB4iwvDw2G6SbkIMFGPFK60cCqY=; b=QrB2Fv9LJDXRdkYo1W6sAUZYFUSBeG66/qzzdNhF4QszBRYGVKofytU+Xl1qy6Rz4I I8Yiy0O6Aibk99xbAG3sK5grh6C8aHbcfosiscsjIQNfEklGhC3c96zp/HDNoYLx9+KJ hPMWl1sJhW2LUnPXauuud99OpqjZJBiwQMEQL9D2FwX4DgKLGzq9iGY0t0D9opbdb5+D zWvcc8t93kpL3shnq/n4C9Q8SmbywVo6gn4tT2ZCdtPTJK9UyQd08jpWSQ/e2t74qO1G KyFnztlBqXN3ZwWi/fNbkJaHHAQkZtBZZXoMgXzgEHtGas2KrLoVoiZza/P/b5smYnEl soPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=h1brEJBipb7gPKmBCB4iwvDw2G6SbkIMFGPFK60cCqY=; b=yHw5fpMRipUSD4Jb72/0Nh9ke9rx4EXXuq3wdCRhuFPtZcI2UgiNd98fxuQ2xpYKDJ fOwWeJ44Geo/AYHvki02HjSaV4Lo+leM+wRxacLD0i+9pWW49uxmIVT4q/lUwcTwNOkJ b1OmLMaf7CMdRH8HxhPl6NFktLOKlwn53oe9IgnkgBLQ318Lz/+CaqFlVtzC9RjVfOO5 xIBjFBal6Mnmd4E7L5VLqRzAQ88tXcB+g2q4u/gSL+F6TG+hvG0me9qslXvNnhQ3Y8IO 9Kj/Ua0egCLXaL+qlLCGZYA/OpkF4v8WgRVz1hTbWavSlOXCbS7UNYWDmAxtuAooqz/8 x6GQ== X-Gm-Message-State: ACrzQf2s/1fw3VgAbj6cAJ+wfFTDBR+7oXA0cmldyuPQcD/ZIRJ3BaYS 4Jnlnpl/QDYA/Lq3Z1l/RMkGwcKJHkE= X-Google-Smtp-Source: AMsMyM71innvLamIkBMpwiwhUw/yYthw7zM8NGpJq9LhH+G7pZpYkhGY54RKQfT1VYVKSQ9sih3hlGce8Og= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:8695:7c88:66ed:f9d1]) (user=glider job=sendgmr) by 2002:a05:6512:3c8b:b0:4a2:6e64:7049 with SMTP id h11-20020a0565123c8b00b004a26e647049mr13241229lfv.196.1666646517702; Mon, 24 Oct 2022 14:21:57 -0700 (PDT) Date: Mon, 24 Oct 2022 23:21:41 +0200 In-Reply-To: <20221024212144.2852069-1-glider@google.com> Mime-Version: 1.0 References: <20221024212144.2852069-1-glider@google.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog Message-ID: <20221024212144.2852069-2-glider@google.com> Subject: [PATCH 2/5] x86/purgatory: disable KMSAN instrumentation From: Alexander Potapenko To: glider@google.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Thomas Gleixner , Ingo Molnar , x86@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1666646519; a=rsa-sha256; cv=none; b=nq0sAWCBkwTFYz1AAiPChm/rzbp9jKRio3CN0Csb8ONXpsHvZFyX5Xe5llQw7S2r0oWENu 6IYdM5bx3EWIM9F/+DmrAvu4w4kqFP1O/yGZOfedD59xEGzu3ixo4p/S14jqXEcOVWX/je pjI0IDv5WX5Ni7HhE+S95Uq2slvZBL4= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=QrB2Fv9L; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf09.hostedemail.com: domain of 39QFXYwYKCHYafcXYlaiiafY.Wigfchor-ggepUWe.ila@flex--glider.bounces.google.com designates 209.85.208.202 as permitted sender) smtp.mailfrom=39QFXYwYKCHYafcXYlaiiafY.Wigfchor-ggepUWe.ila@flex--glider.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666646519; 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=h1brEJBipb7gPKmBCB4iwvDw2G6SbkIMFGPFK60cCqY=; b=2t3uAvPK7V2ditXe5Yu17wRnM7p+/hniY3Y1Nb4ZEg5gSlcIxWSvAaG3OeMuatrZSmoV7m Pa09wtBo/O8p0lxd6sUCAb+NRkQUp9XlOyr9ZLR3mEYVIw9g7eBJ6VoGoeqooWiZwbAb8e m8EjmPk4Tz3zzX1e/dmsD72l81Ztwq0= X-Rspam-User: Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=QrB2Fv9L; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf09.hostedemail.com: domain of 39QFXYwYKCHYafcXYlaiiafY.Wigfchor-ggepUWe.ila@flex--glider.bounces.google.com designates 209.85.208.202 as permitted sender) smtp.mailfrom=39QFXYwYKCHYafcXYlaiiafY.Wigfchor-ggepUWe.ila@flex--glider.bounces.google.com X-Rspamd-Server: rspam11 X-Stat-Signature: 3oecaxcqt5boh3qjcy8ud9qhzetygnqm X-Rspamd-Queue-Id: 15B19140015 X-HE-Tag: 1666646518-289886 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: The stand-alone purgatory.ro does not contain the KMSAN runtime, therefore it can't be built with KMSAN compiler instrumentation. Cc: Andrew Morton Cc: Thomas Gleixner Cc: Ingo Molnar Cc: x86@kernel.org Link: https://github.com/google/kmsan/issues/89 Signed-off-by: Alexander Potapenko --- arch/x86/purgatory/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile index 58a200dc762d6..17f09dc263811 100644 --- a/arch/x86/purgatory/Makefile +++ b/arch/x86/purgatory/Makefile @@ -26,6 +26,7 @@ GCOV_PROFILE := n KASAN_SANITIZE := n UBSAN_SANITIZE := n KCSAN_SANITIZE := n +KMSAN_SANITIZE := n KCOV_INSTRUMENT := n # These are adjustments to the compiler flags used for objects that