Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1910154rwl; Fri, 31 Mar 2023 20:28:54 -0700 (PDT) X-Google-Smtp-Source: AKy350bUB2NpJnt5WwKqj54trj1fEBUSUgq578ygDANuTFx8hjsfO5522JL7YOj+Z5j8Xif7HD6t X-Received: by 2002:a05:6a00:194e:b0:62a:5ae:3012 with SMTP id s14-20020a056a00194e00b0062a05ae3012mr9168785pfk.1.1680319734110; Fri, 31 Mar 2023 20:28:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680319734; cv=none; d=google.com; s=arc-20160816; b=ftGV2cAvG6klTJ4wegcahxAQ93Ma9V41goG8VsZZ/IuuzQyi6xNLpCOufQQw6JY/OQ n7zs4D5VAAoDiXzZQmRQRjOOkdGWti4pIbyuLpOiSjga7BvkOYfPMKCnAH+F4BBiI7/E C5beldWeHBCl/9w63C+VCLqtZV+J5Yj885NSmKGGdmhLREBYdAKXa8j7ZKXHfNsyM5q/ i2qdfHUngBcatvAf4SVONdZVeFxS0bghBB6JOpcP5AyjsQrTPMjzj88V2vb2C69zjO9F cMd2QwERKkOCaXV1hXg7Fa6fAVKTRo9vFdytZqgRnQndtnDJwKOSnnXb7T2dOnEuI1BB PgJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Mvog04limpniNR5GCN+WElbsWp5SySjX0E8c0mW1ou8=; b=ZO5+g5nW7nkbrEw+hylxcJ3Goc/nMYXgiTGLmUkfUQNW75piJR9ObP0S9DSueFfshw WrJZZhxcS7VfOMF3tEvIxfBSTZCQEx/UmMYUdHFgLUunfYKvvbA6IQLuWs1slBK1b4EM +OfgxgH581fWgmzkvWUxVRe+mG/lO2CkRxqS30Oo98hKoGMtIeYG9swhh75mdzFDOepp Q19plx2SyKFttVL0LZ2Sf6/nMp9bWwOCiXT1K6jZHVbFRCUOXOCsjcwl3MI8NpY3xLo3 Bu8x1nMryLalAXIrSVhQH4z+NDoQF39lW6zpJ46+jJ8WV9HpoQ/Ojdg10S9mIRHRbaNQ FL5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k190-20020a6384c7000000b00513901edaabsi4053885pgd.631.2023.03.31.20.28.42; Fri, 31 Mar 2023 20:28:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232822AbjDADYJ (ORCPT + 99 others); Fri, 31 Mar 2023 23:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233151AbjDADXi (ORCPT ); Fri, 31 Mar 2023 23:23:38 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 72BB61F799; Fri, 31 Mar 2023 20:23:29 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Bxok6woydk9SQVAA--.21044S3; Sat, 01 Apr 2023 11:23:28 +0800 (CST) Received: from [10.130.0.102] (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axnr6uoydka4sSAA--.45160S3; Sat, 01 Apr 2023 11:23:28 +0800 (CST) Subject: Re: [PATCH] LoongArch: Add kernel address sanitizer support To: Andrey Konovalov Cc: Jonathan Corbet , Huacai Chen , Andrew Morton , Alexander Potapenko , Dmitry Vyukov , Vincenzo Frascino , WANG Xuerui , Jiaxun Yang , kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-mm@kvack.org, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Andrey Ryabinin References: <20230328111714.2056-1-zhangqing@loongson.cn> <2360000f-7292-9da8-d6b5-94b125c5f2b0@loongson.cn> From: Qing Zhang Message-ID: <34a1a391-6ad9-8722-b206-1e830711b096@loongson.cn> Date: Sat, 1 Apr 2023 11:23:26 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Axnr6uoydka4sSAA--.45160S3 X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29K BjDU0xBIdaVrnRJUUUmjb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26c xKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1Y6r17M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vE j48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxV AFwI0_Gr0_Cr1l84ACjcxK6I8E87Iv67AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv6xkF7I0E 14v26r4j6r4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc804VCY07AIYIkI8VC2zVCFFI 0UMc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280 aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r4UM4x0Y48IcVAKI48JMxk0xIA0c2IEe2 xFo4CEbIxvr21l42xK82IYc2Ij64vIr41l4c8EcI0En4kS14v26r1q6r43MxAqzxv26xkF 7I0En4kS14v26r1q6r43MxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r1q6r 43MI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF 67AKxVW8ZVWrXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0xvE2I x0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnU UI43ZEXa7IU8l38UUUUUU== X-Spam-Status: No, score=-0.0 required=5.0 tests=NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/3/31 下午11:58, Andrey Konovalov wrote: > On Thu, Mar 30, 2023 at 6:32 AM Qing Zhang wrote: >> >>> I get that, but you already added a special case for >>> __HAVE_ARCH_SHADOW_MAP to addr_has_metadata, so you can just call it? >>> >> ok, all the changes are going to be in v2. > > Could you also please put changes to the common KASAN code into a > separate patch/patches? This will simplify any potential backporting > of common KASAN code changes in the future. > ok, no problem. Thanks, -Qing > Thanks! >