From patchwork Tue Nov 6 17:30:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 10670907 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0611B1803 for ; Tue, 6 Nov 2018 17:30:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3F1B2ABA2 for ; Tue, 6 Nov 2018 17:30:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D354A2AB87; Tue, 6 Nov 2018 17:30:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, USER_IN_DEF_DKIM_WL autolearn=unavailable version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F4C12ABB2 for ; Tue, 6 Nov 2018 17:30:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CC0426B0354; Tue, 6 Nov 2018 12:30:49 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C0E876B0356; Tue, 6 Nov 2018 12:30:49 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A5FBB6B0355; Tue, 6 Nov 2018 12:30:49 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by kanga.kvack.org (Postfix) with ESMTP id 497B46B0353 for ; Tue, 6 Nov 2018 12:30:49 -0500 (EST) Received: by mail-wm1-f70.google.com with SMTP id d8-v6so9911665wmb.5 for ; Tue, 06 Nov 2018 09:30:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=uFXbDXBBL0TkI32ZOkP12VFoaipD/tLiCoQgwqz5odA=; b=A3OUV0VC/ZfV6csLOenMpRveoEMjIalaZaEkbsbfHJBLUsWc2AoTBe0wC9S+tF+E0O lRB7bDT5Guv8N/PpQtRInZwHu3qDjyNXr1Gpn0g7FaMRIWLzo+WLCBR/fkzx/2PRgp/i 3fMXEPN0UDZLfHT0px4Q9LxSWM4VHDCoaZPIb0RcklF79ot3ZL8H1NAwLwD6PZUceWY4 J9CAQIQ07cJkKeKs/DuVDk5v+q9UciTTyzxS8VQB5G5o5fjiypNLIVvguxyGsL4bsbdo 6h+UmVTmJY9NbW/VEuimrYl6/mzQgLnrLjK/728cSQr7IdlG7P6Zzb3QxbSGvZOCjyNw b+Fw== X-Gm-Message-State: AGRZ1gKmN4ON1GTWA/NO1btxwyBOYEFVywd5DH9sI5cTv95FJVNg5jEj 6RAYmzF4OwM5YYIO2aV8IEsTEHd5d5voZzuvL7azSNOnbzu9ZduDbMiiaXYvK9Zzia3E8AI/LY+ V6694oJj3fjFo73+CkLRAlgbs9T08aTlfX2w9Xtek9pqLxEohcgBcnC1yUG+wh8OJkTnTm/efa2 fEZ3CD8LCAHwrqU/8yljSk9+vNcjcW73MA7LOIyPtj9BxE+LC1WZsGwRGBJsSjkFFlurBV6TWCG ekiz3guDgSyFwWo/Ta1PduobDMUSbmfrXYIfbBqd9eTQrVZzPsoeuH6HtWklj3/FCnRuhdAA+Pt rouXo0Pt7BsPDGXFy6U4bq2EtNSKECHIutOMWDL0fipwKRuUAPPsjRKHOfH0hoR+5Ni7YvcFnav w X-Received: by 2002:adf:dc0d:: with SMTP id t13-v6mr9731763wri.107.1541525448845; Tue, 06 Nov 2018 09:30:48 -0800 (PST) X-Received: by 2002:adf:dc0d:: with SMTP id t13-v6mr9731719wri.107.1541525448054; Tue, 06 Nov 2018 09:30:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541525448; cv=none; d=google.com; s=arc-20160816; b=sS8j3//jasOeKlI/Fe7x5/hSwE5nNIxYlpTqF6Ri8v55yQP+1uAbYUmHtCVactG0Rt Bs7coocvLvqmZIX/ek8ffCUgvNtpNjMQtgAuVRSZjFC47YmRkHSc/KA2Whw8yuzcPQlZ fmLIJqmLyhfwD872uBSFwM8Eq1Qgkxa94IwlUdttQodXnGAizjWA9FkJ3uoIpbKgTKi1 nNF1HLfZN8N55iCudNxLl9S4w17G5JIi+JzV6UbDnLJAa1OFsZrOQy0iFPKbrSr2SbRM HhR92pGiv/SXcXsIxJMWzoG82cXj2HAxTAT+TW8PfRLzmL1jYEZNY+Cp9Nli/qfYERXn AOvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=uFXbDXBBL0TkI32ZOkP12VFoaipD/tLiCoQgwqz5odA=; b=suzMkKjZT0GrVGblQ0Gejaxdn1A18RoOS4YCUesobIh8/gTfLnijiG5DA8z5ChBKwm mEDK41wfoEX6Vq6f4UfyWai+uRXzaR3OqDQidLxh2VRUbjzUWeU8pTJUvNAIV27XeE50 hdjbYDKQLtIEKbXl2W+x3jSqujUk/o6XgWVjPSxZZjZuzAdhGXVBcZQAhjvuyo6KQ+ne 8xC4e59Xg3IWHKzZ7dHVdJ8XkDGGv/KfmeyslqhSynVXy5+KYwQX/uILj/WsFGjA5nO6 F8xg3idb8SNThaLqAVI6BenukMiPkXa7SsXqU8mz2qV/CnWYXMvpGlAe6g2yrxV4jfeT 0Z/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ml3obd1u; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id n2-v6sor3916219wri.6.2018.11.06.09.30.47 for (Google Transport Security); Tue, 06 Nov 2018 09:30:48 -0800 (PST) Received-SPF: pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ml3obd1u; spf=pass (google.com: domain of andreyknvl@google.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=andreyknvl@google.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uFXbDXBBL0TkI32ZOkP12VFoaipD/tLiCoQgwqz5odA=; b=Ml3obd1uR8RA+9+kPyhYpuUlNKibYa2CRfEbIgyyBjJQQsxI6O4jyB2v5aISRpt4Fb rj4kSRubmtB2gfIcZerb9slf7GTBlw5Tbp5c6iugUfnuzQC3XsITzLENuD6X3Z/YVueS bl9A1RcdoBcA5tpBEPGGsPvphoq47rYDLEthUDE1Hiqg/OBDYoq+iQomOZZipqa6qEqA gh6W9WBQf63nRue+Lp+Lr0m7GGRxT+OuaVzn4d2W9CtavCwPeOK+zHxnbC181eLpQfwB irf9RttaDlwEot1Pj/F6sKVqzuewyv/+3sbuY8ZQkS5ntsRoTJp/p4MtvWOF16tdHpIJ 9hKg== X-Google-Smtp-Source: AJdET5c+bHFl6qHCJUo73l2cQqmAl8DcYcsx+G0rN/ISh1Rrs2TxDP7+TGu2bV1DVX4z9B3j3X+3mQ== X-Received: by 2002:adf:a31c:: with SMTP id c28-v6mr24695147wrb.195.1541525447608; Tue, 06 Nov 2018 09:30:47 -0800 (PST) Received: from andreyknvl0.muc.corp.google.com ([2a00:79e0:15:10:84be:a42a:826d:c530]) by smtp.gmail.com with ESMTPSA id z17-v6sm16328416wrm.65.2018.11.06.09.30.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 09:30:46 -0800 (PST) From: Andrey Konovalov To: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Christoph Lameter , Andrew Morton , Mark Rutland , Nick Desaulniers , Marc Zyngier , Dave Martin , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A . Shutemov" , Greg Kroah-Hartman , Kate Stewart , Mike Rapoport , kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sparse@vger.kernel.org, linux-mm@kvack.org, linux-kbuild@vger.kernel.org Cc: Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Jann Horn , Mark Brand , Chintan Pandya , Vishwath Mohan , Andrey Konovalov Subject: [PATCH v10 04/22] kasan: rename source files to reflect the new naming scheme Date: Tue, 6 Nov 2018 18:30:19 +0100 Message-Id: <05fbfe73d79159af71bfded4d3b46f8055329e1a.1541525354.git.andreyknvl@google.com> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog In-Reply-To: References: MIME-Version: 1.0 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: X-Virus-Scanned: ClamAV using ClamSMTP We now have two KASAN modes: generic KASAN and tag-based KASAN. Rename kasan.c to generic.c to reflect that. Also rename kasan_init.c to init.c as it contains initialization code for both KASAN modes. Reviewed-by: Andrey Ryabinin Reviewed-by: Dmitry Vyukov Signed-off-by: Andrey Konovalov --- mm/kasan/Makefile | 8 ++++---- mm/kasan/{kasan.c => generic.c} | 0 mm/kasan/{kasan_init.c => init.c} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename mm/kasan/{kasan.c => generic.c} (100%) rename mm/kasan/{kasan_init.c => init.c} (100%) diff --git a/mm/kasan/Makefile b/mm/kasan/Makefile index a6df14bffb6b..d643530b24aa 100644 --- a/mm/kasan/Makefile +++ b/mm/kasan/Makefile @@ -1,14 +1,14 @@ # SPDX-License-Identifier: GPL-2.0 KASAN_SANITIZE := n UBSAN_SANITIZE_common.o := n -UBSAN_SANITIZE_kasan.o := n +UBSAN_SANITIZE_generic.o := n KCOV_INSTRUMENT := n -CFLAGS_REMOVE_kasan.o = -pg +CFLAGS_REMOVE_generic.o = -pg # Function splitter causes unnecessary splits in __asan_load1/__asan_store1 # see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533 CFLAGS_common.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -CFLAGS_kasan.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) +CFLAGS_generic.o := $(call cc-option, -fno-conserve-stack -fno-stack-protector) -obj-y := common.o kasan.o report.o kasan_init.o quarantine.o +obj-y := common.o generic.o report.o init.o quarantine.o diff --git a/mm/kasan/kasan.c b/mm/kasan/generic.c similarity index 100% rename from mm/kasan/kasan.c rename to mm/kasan/generic.c diff --git a/mm/kasan/kasan_init.c b/mm/kasan/init.c similarity index 100% rename from mm/kasan/kasan_init.c rename to mm/kasan/init.c