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=-11.2 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,USER_AGENT_SANE_1 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 6DC4FC4727E for ; Thu, 1 Oct 2020 17:48:22 +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 185F920759 for ; Thu, 1 Oct 2020 17:48:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xKg8QUND"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="IT5todeM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 185F920759 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:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ee6KL+XKDNcbGi7GLJPU33YpHZm0V3Gw1XPw2CrcMNo=; b=xKg8QUNDCZ988bJNsjXFTJRle XgCcWj28Xn0JOKkVr1qlp442o5saHguzZz8n/NeGBjo59xk89/sm16rOQuT+ruhlW1q8hJ/1B0OLx +eljd4HKInpbsVd2EKC6XWX/JjE7zSCWKaoB4wo7QwdDqwUoM3zzB4xmrgQgOnpMuM0CP4KtkJ9gs 0PXwAET1TkQ8BJSyFNrlgwqPEDH1Nyb8PTfemV1nt30o5mGpuBNC/KtnJqf6oHq0FaMK/ZE3lNLjp EyZ4edV6Htf+xESEjt4znrDFduklBoX6MDZbPcL9FQm5ki111DVKuO0NT15OkzV0lpF76j3bIpIsP PB/IdeQzg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kO2ff-0005N6-Vy; Thu, 01 Oct 2020 17:47:12 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kO2fd-0005Kh-6l for linux-arm-kernel@lists.infradead.org; Thu, 01 Oct 2020 17:47:10 +0000 Received: by mail-wr1-x444.google.com with SMTP id w5so6790630wrp.8 for ; Thu, 01 Oct 2020 10:47:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7E5ey4NET4LMVLLkb7YG6DyEEKXE4OLZrVX+Ejvtxuk=; b=IT5todeM+6Ef3KBOJjNaDfGdR6swf3PWlcQXXCMXq9Cf3SqeomknzgGa0+7uMMb3Ls WiogPGuF2CR0aIhImDE7FoZm5zcmDyhxDC0wrmqP39hWk8sttOUCjtLUVHHXchd9m1iQ YTmQGmUL5TXPKOG3pUQ9Ycz54HjUoLnsMNV/7daTUMpK6ShFTjtqUDiE27QS5L9zg/6l fZjK5qIvQP1Zuwkv3EN4TtP4CW58emlnenOePJp+YjtiopUqbxgJ6/FE6SLa7ve4zQMJ M7zg+MvPHjwRla7x1OC873Ekr+96Gb4i1u3mwb6z5Ifl0qcBn2tP8I9WTZNxM8Rdi4aG dcdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7E5ey4NET4LMVLLkb7YG6DyEEKXE4OLZrVX+Ejvtxuk=; b=DmcjZ/G/I9Rp3EPgbctMTX6c9EaFsdNkTd56n35xcrvg4aoVLeXxZ51iNlW4RXxYtn MDcDQLiMjCtxuhJ4Rfbv6gOykHmJgmXhpB1uVHjvW9LYvnWL+CJBz6+nviG8uiGHU0YA mbGB6ECYaLHwCd8NHYrdCbXMC5topKwTJ0ysnaB0TsNvJweR5r7iDQTytPa8jgSigh9T h0taHAnEceVFUClE+BZ1eKNXzFeAIDavgE8SzPObZFUCm5fr5Y1a20lxka991ngTtZdp zrZgaCUP8EOvseqyeAcG117padqDVBDDVHHi+hSp6wtu/+a7AgqiccblBvdUb+7gByj2 Lh/Q== X-Gm-Message-State: AOAM532w9w6XwCqdkewSAgSo+akdFWFP0vrJMXNgCRtqASoN4ctSEd43 06cwbVIlZ+Oq7ni0ssuGmaMFHw== X-Google-Smtp-Source: ABdhPJybJ7izNLo5pBqz7NnZrOv9UdPeP5GTyxL7MxTx78gRIYJ8CitZKE7bn0eKShoDi0zlix53SQ== X-Received: by 2002:adf:f10a:: with SMTP id r10mr9953039wro.86.1601574427998; Thu, 01 Oct 2020 10:47:07 -0700 (PDT) Received: from elver.google.com ([100.105.32.75]) by smtp.gmail.com with ESMTPSA id m13sm10484423wrr.74.2020.10.01.10.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 10:47:07 -0700 (PDT) Date: Thu, 1 Oct 2020 19:47:01 +0200 From: elver@google.com To: Andrey Konovalov Subject: Re: [PATCH v3 18/39] kasan: kasan_non_canonical_hook only for software modes Message-ID: <20201001174701.GN4162920@elver.google.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.14.5 (2020-06-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201001_134709_280937_8A88C2F7 X-CRM114-Status: GOOD ( 20.44 ) 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-kernel@lists.infradead.org, Branislav Rankov , Elena Petrova , Catalin Marinas , Kevin Brodsky , Will Deacon , linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, 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 25, 2020 at 12:50AM +0200, Andrey Konovalov wrote: > This is a preparatory commit for the upcoming addition of a new hardware > tag-based (MTE-based) KASAN mode. > > kasan_non_canonical_hook() is only applicable to KASAN modes that use > shadow memory, and won't be needed for hardware tag-based KASAN. > > No functional changes for software modes. > > Signed-off-by: Andrey Konovalov > Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver > --- > Change-Id: Icc9f5ef100a2e86f3a4214a0c3131a68266181b2 > --- > mm/kasan/report.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/mm/kasan/report.c b/mm/kasan/report.c > index 9e4d539d62f4..67aa30b45805 100644 > --- a/mm/kasan/report.c > +++ b/mm/kasan/report.c > @@ -371,7 +371,8 @@ bool kasan_report(unsigned long addr, size_t size, bool is_write, > return ret; > } > > -#ifdef CONFIG_KASAN_INLINE > +#if (defined(CONFIG_KASAN_GENERIC) || defined(CONFIG_KASAN_SW_TAGS)) && \ > + defined(CONFIG_KASAN_INLINE) > /* > * With CONFIG_KASAN_INLINE, accesses to bogus pointers (outside the high > * canonical half of the address space) cause out-of-bounds shadow memory reads > -- > 2.28.0.681.g6f77f65b4e-goog > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel