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.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 2CDB1C43464 for ; Fri, 18 Sep 2020 14:57:59 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2AA021973 for ; Fri, 18 Sep 2020 14:57:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E3YqFmlj"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="W3Tpv9wP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2AA021973 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m1Ddm7n7saV7I5YHw2PBh1E3OxfmWaVNg90+9f3ElwI=; b=E3YqFmljxBXoeem6g4/R4abOP zsqdpIOYGGQzzJhsYhoG7g+N2EMjnScbCWgVe2XgOIWp0aiwrXsdSnljn8wH88p1iBk4960tGW+cN aH+ztZAT3Tp/r4pXWEq37UqZfki6ABslO9UCgRPlWLdlfo+XwTJkKJ+WAnLFxSKf0SYgedjljbG4F RUO7ri1G6cL4G3r4XIcqGJwr/W9m2aXbRzWWhN3GghXnbh01sYPDlGhpsZk3I27AQ/04vr3jcffLY 0N/jYWMBJdpIQycO/tlkkY0HB2x76AGITJd2RZsbPHxIwn6Ibqkoa8BW1NwsyWgNdlsbVzdD9+hJZ 7P8eUhTLA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJHoW-0006NT-RX; Fri, 18 Sep 2020 14:56:40 +0000 Received: from mail-pj1-x1043.google.com ([2607:f8b0:4864:20::1043]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJHoU-0006M5-40 for linux-arm-kernel@lists.infradead.org; Fri, 18 Sep 2020 14:56:38 +0000 Received: by mail-pj1-x1043.google.com with SMTP id mm21so3303814pjb.4 for ; Fri, 18 Sep 2020 07:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=84mJPr8Gpr4/Tq1Lxh29BXusyQ2UCdZanSBlBtKi1cQ=; b=W3Tpv9wPrKPr2FuI5kSboSbfFrAviXfAq10rKNlEr5QMi7YEK6zpgtYA0SDH6noIVk 1TimskWwsw43RSLr7GlMZ7jsyWqLvpBx/5PekZYCvG5GQbvR2tjeek0TRTvBgVxFg6TI dvPUB5zrCNI0QS81Swllg3ZPa8mF+ztZx+G5Yykp8s18Ce0b+A4OsBbia67sPM6JvugV aPX+MldJLA2uOSBmYHFS2JhEiOQDTT0o8SEknH2I48gQUAdoJIrPraArbNFwKwmASD8J ugL70jCKfOqX8Dm4Cj2mp8h9sWTUV0s9TTQSVImQ0uqYgCnZlzO5kbyhZRtNIV3kPjrp O/vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=84mJPr8Gpr4/Tq1Lxh29BXusyQ2UCdZanSBlBtKi1cQ=; b=Y4QpD0cES+0iKqqNRiVHrv8eXxfpA6MWZj8rul+QsLHqc1aGuFhMtl09rhBYsAcDkA q5FIWwd7B+pMhdl7uCvqOPZE/2ezadvRjI7cGU8DOiXHZ3ajdiNLFC76ZWRT/qM0mRkV ccOl5O9GXNe6KplfQ5wy0fXwGrzPFyCUPIs6tsgZDy/mN5qAitEuiJDOofCwsUFd9TdA MC6Gx3qwfw34rmkN7VzSR7nUkgPIN3MW+28kfvZhk1mgNbRkzBYjsd4be3rRdAN6hj/I iDKHsJ/m5j5Xj+kXCdwt65X5hpLN/LnIw4JIJejcsGT+u6dmCKvvoh1hqsT0vrN7K6xp SBqQ== X-Gm-Message-State: AOAM533im9Migh0N4i6TZHs8kO6EWOQiUQhJMuVj8JY1fWKv79Erp82G JaauXiufcJ9pb3ZKLlFaLyzWhXYsC/jWg7saNLIA5g== X-Google-Smtp-Source: ABdhPJy4gRGHqzM1DVK6jgclHTM6k7zcc+JlhOQZI8hqLajfveJ0hHLmlzeGrvovDPdwwOPiC8qlJIeDpJffpp94I+g= X-Received: by 2002:a17:90a:81:: with SMTP id a1mr13066299pja.136.1600440996199; Fri, 18 Sep 2020 07:56:36 -0700 (PDT) MIME-Version: 1.0 References: <272b331db9919432cd6467a0bd5ce73ffc46fc97.1597425745.git.andreyknvl@google.com> <20200918145541.GA2458536@elver.google.com> In-Reply-To: <20200918145541.GA2458536@elver.google.com> From: Andrey Konovalov Date: Fri, 18 Sep 2020 16:56:25 +0200 Message-ID: Subject: Re: [PATCH 03/35] kasan: shadow declarations only for software modes To: Marco Elver X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_105638_174756_4775CD8D X-CRM114-Status: GOOD ( 19.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linux ARM , Branislav Rankov , Elena Petrova , Catalin Marinas , Kevin Brodsky , Will Deacon , LKML , kasan-dev , Linux Memory Management List , Alexander Potapenko , Evgenii Stepanov , Andrey Ryabinin , Andrew Morton , Vincenzo Frascino , Dmitry Vyukov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Sep 18, 2020 at 4:55 PM Marco Elver wrote: > > On Fri, Aug 14, 2020 at 07:26PM +0200, Andrey Konovalov wrote: > > This is a preparatory commit for the upcoming addition of a new hardware > > tag-based (MTE-based) KASAN mode. > > > > Group shadow-related KASAN function declarations and only define them > > for the two existing software modes. > > > > No functional changes for software modes. > > > > Signed-off-by: Andrey Konovalov > > --- > > include/linux/kasan.h | 44 ++++++++++++++++++++++++++----------------- > > 1 file changed, 27 insertions(+), 17 deletions(-) > > > > diff --git a/include/linux/kasan.h b/include/linux/kasan.h > > index bd5b4965a269..44a9aae44138 100644 > > --- a/include/linux/kasan.h > > +++ b/include/linux/kasan.h > [...] > > +static inline int kasan_add_zero_shadow(void *start, unsigned long size) > > +{ > > + return 0; > > +} > > +static inline void kasan_remove_zero_shadow(void *start, > > + unsigned long size) > > +{} > > Readability suggestion (latest checkpatch.pl allows up to 100 cols): > > -static inline void kasan_remove_zero_shadow(void *start, > - unsigned long size) > -{} > +static inline void kasan_remove_zero_shadow(void *start, unsigned long size) {} Will do in v3, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel