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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 06801C433E0 for ; Thu, 21 Jan 2021 11:33:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B4DFA238EC for ; Thu, 21 Jan 2021 11:33:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730503AbhAULdB (ORCPT ); Thu, 21 Jan 2021 06:33:01 -0500 Received: from foss.arm.com ([217.140.110.172]:60882 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728126AbhAULbA (ORCPT ); Thu, 21 Jan 2021 06:31:00 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2DEE11B3; Thu, 21 Jan 2021 03:30:12 -0800 (PST) Received: from [10.37.8.32] (unknown [10.37.8.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5455F3F719; Thu, 21 Jan 2021 03:30:11 -0800 (PST) Subject: Re: [PATCH] kasan: Add explicit preconditions to kasan_report() To: Andrey Konovalov Cc: Catalin Marinas , LKML , kasan-dev , Leon Romanovsky , Alexander Potapenko , Linux ARM , Andrey Ryabinin , Dmitry Vyukov References: <20210119172607.18400-1-vincenzo.frascino@arm.com> <20210119185206.GA26948@gaia> <418db49b-1412-85ca-909e-9cdcd9fdb089@arm.com> From: Vincenzo Frascino Message-ID: <773e84d1-2650-dfc8-6eff-23842b015dcd@arm.com> Date: Thu, 21 Jan 2021 11:34:01 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrey, On 1/19/21 8:56 PM, Andrey Konovalov wrote: >> return (is_vmalloc_addr(addr) || virt_addr_valid(addr)); > Do we need is_vmalloc_addr()? As we don't yet have vmalloc support for HW_TAGS. It is not necessary but it does not hurt, since we are going to add vmalloc anyway at some point, I would keep it here. -- Regards, Vincenzo