From mboxrd@z Thu Jan 1 00:00:00 1970 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=-12.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 39250C55179 for ; Thu, 29 Oct 2020 19:26:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A777920782 for ; Thu, 29 Oct 2020 19:26:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="OW/hMHsO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A777920782 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 078346B009B; Thu, 29 Oct 2020 15:26:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F1D206B009C; Thu, 29 Oct 2020 15:26:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D71E96B009D; Thu, 29 Oct 2020 15:26:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0098.hostedemail.com [216.40.44.98]) by kanga.kvack.org (Postfix) with ESMTP id 99B646B009B for ; Thu, 29 Oct 2020 15:26:48 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 3EF29181AC9B6 for ; Thu, 29 Oct 2020 19:26:48 +0000 (UTC) X-FDA: 77425945296.23.lunch26_0b021eb2728f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin23.hostedemail.com (Postfix) with ESMTP id 2171737606 for ; Thu, 29 Oct 2020 19:26:48 +0000 (UTC) X-HE-Tag: lunch26_0b021eb2728f X-Filterd-Recvd-Size: 5130 Received: from mail-qk1-f201.google.com (mail-qk1-f201.google.com [209.85.222.201]) by imf38.hostedemail.com (Postfix) with ESMTP for ; Thu, 29 Oct 2020 19:26:47 +0000 (UTC) Received: by mail-qk1-f201.google.com with SMTP id d124so2458971qke.4 for ; Thu, 29 Oct 2020 12:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=Sy6BvWdNS0zjXQiflbFd/HmI5xZS6ylM1lYk0zN7bgc=; b=OW/hMHsOZ0adIHS2LRlrAUjGHayhf2Zi6X2Qq/iT51QqJ73q4yiP0XsdaLKeQMRFik K8l49sp5s44JOy02Nga95Ioxh4RFk6BsOFzNJ8vw/PIw1a191ki52IwBcYULuMVJZ/Be xBFYrhBN5RNaqjDaxtS+HKg2K0yGkYL08sq38zNpxUmME10qqU63EuCCjNgs94eLTYzC l50znZoxpTQZqoUWOYpWRoyI2vB3z6tQG/S05xpEsCBdl2VqherUR8JlutZiV1WvybHx WmUPGf0YonXq+tw4lo7DTAoiePEzQvyKxuFlvZngGUEQFd6jHEGfhXOGGcWFX6IoTdeE 1IsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Sy6BvWdNS0zjXQiflbFd/HmI5xZS6ylM1lYk0zN7bgc=; b=Q0AtllRSLSZ+w20gK7MJ1PMpNDBsV25T6Ok6MRKP4YTcWScsJ2vLSghW08y0ou5KFS SRdJY5GSLWt4ffSxinsq9fDlZrDd9LV8PKJG9U8256X08kuhu2U1TXSlGa9iaX3EFzHF m3PVgvLa+OM34E7sKocZmGdvmiiZcCLf4fIcFV54CrLJw1fnMRrScY5v/pVnqvEpL1f8 4tKQSj2j7im2CP+tfXc/iwMH4Zo0qRa5ap4csmw+hZ/oz2pnMICxeCbUrZBFm0wE/ocL lfsGfQRvf7DrEi6B9E2ZBfY16W1VGLsL8w9VTLLO5Q8z8VTkX39LNRF6sliHqri6AhIb 36/w== X-Gm-Message-State: AOAM533ZO/+bt5fnAyU7apl+58JQVKnicLZixgwr26MOs0/UohZHtleP XZyGgxSVpCRbzZMGHMguDC5dxG0jGE1gv11U X-Google-Smtp-Source: ABdhPJz944jCjazxHDzCdJN2EhcUY88WV5UHKhoVawW7KB77krmq68SzNc+6gTHrLd+wSkLIlI+SpCkHvd8b8asS X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:ad4:4770:: with SMTP id d16mr3853281qvx.61.1603999606977; Thu, 29 Oct 2020 12:26:46 -0700 (PDT) Date: Thu, 29 Oct 2020 20:25:37 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.1.341.ge80a0c044ae-goog Subject: [PATCH v6 16/40] kasan: only build init.c for software modes From: Andrey Konovalov To: Catalin Marinas , Will Deacon Cc: Vincenzo Frascino , kasan-dev@googlegroups.com, Dmitry Vyukov , Andrey Ryabinin , Alexander Potapenko , Marco Elver , Evgenii Stepanov , Elena Petrova , Branislav Rankov , Kevin Brodsky , Andrew Morton , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000168, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. The new mode won't be using shadow memory, so only build init.c that contains shadow initialization code for software modes. No functional changes for software modes. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: I8d68c47345afc1dbedadde738f34a874dcae5080 --- mm/kasan/Makefile | 6 +++--- mm/kasan/init.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mm/kasan/Makefile b/mm/kasan/Makefile index 370d970e5ab5..7cf685bb51bd 100644 --- a/mm/kasan/Makefile +++ b/mm/kasan/Makefile @@ -29,6 +29,6 @@ CFLAGS_report.o := $(CC_FLAGS_KASAN_RUNTIME) CFLAGS_tags.o := $(CC_FLAGS_KASAN_RUNTIME) CFLAGS_tags_report.o := $(CC_FLAGS_KASAN_RUNTIME) -obj-$(CONFIG_KASAN) := common.o init.o report.o -obj-$(CONFIG_KASAN_GENERIC) += generic.o generic_report.o quarantine.o -obj-$(CONFIG_KASAN_SW_TAGS) += tags.o tags_report.o +obj-$(CONFIG_KASAN) := common.o report.o +obj-$(CONFIG_KASAN_GENERIC) += init.o generic.o generic_report.o quarantine.o +obj-$(CONFIG_KASAN_SW_TAGS) += init.o tags.o tags_report.o diff --git a/mm/kasan/init.c b/mm/kasan/init.c index dfddd6c39fe6..1a71eaa8c5f9 100644 --- a/mm/kasan/init.c +++ b/mm/kasan/init.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * This file contains some kasan initialization code. + * This file contains KASAN shadow initialization code. * * Copyright (c) 2015 Samsung Electronics Co., Ltd. * Author: Andrey Ryabinin -- 2.29.1.341.ge80a0c044ae-goog