Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1279753rwl; Fri, 31 Mar 2023 09:00:06 -0700 (PDT) X-Google-Smtp-Source: AKy350aMEggKAAqgoblM9fkJHOPG/vnV7osBz6mbrd1pSJ1UrjCA41gJYusQAArqrzT8tzmsx8iJ X-Received: by 2002:a17:902:868b:b0:1a2:8f6d:8a14 with SMTP id g11-20020a170902868b00b001a28f6d8a14mr6204779plo.5.1680278405519; Fri, 31 Mar 2023 09:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680278405; cv=none; d=google.com; s=arc-20160816; b=lq8TzrGAKpX5JbiO2VokiFL/v4eCUZfgmg1P5ee9KQS4HFWJ1B3FhvxCKQ8QtuSO46 0oxx++qYe5q35xdG5iLk0IBCW427i65cuzL0gRU32hAyo649ItFTPwUmHZn+b8YdGKnI rj+ko5YNRbJT/PlrUvuXu06LHqCwL2Ea/DN+J7hXBmqsoUMIsQO2g82DmYbhXYPqX8Sb 8+x0Wycac6WmuFLcxDy/tW1kfexypZec14cIO2KE6KD7d/C9erPH9rsup7S0bsmDR2Jq sl9IAhesoeGy7UX4TAkAc0OiQUbhot+lhgzjfA/vg3T9ESvmDldjYhiC/x0bouGZ5LMR DaIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fxJeRCNlob7RdsmYmplWDSRv896kgREUT/PanUMpg+I=; b=r01r9M/ASmX0ikQHzKEhftH3xFKfwQd8OcH/pA5LrVyJ9x46IxHaDIFaPzkqCXGGma 2Jwb6uI23F+YkRH+ZNkf0JXxl6uE/TOd6SU5ndrEKDXp+99svHJzsSPushzffTID718L EkXKYLk1mqUmQ1nzJQGjuthayWQkLwov+wZznJNneQPwWFHgg263KMckINuLeZV3hPIO 3CWXNZ8mTCEgro7NiBKA5UhJRTahM6O0L3JallmJQnhpCq3Rrm9OgSD75iheq5JWpc4J 9JtWTFCstAY8gDXnbYC5t/2GYOvFEBf2WeFACiH7b4uV9nm+htCaARAw4tfXxVU4TuWD q0bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=df94nsGP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020a170902e88500b001a1f810619esi2548916plg.152.2023.03.31.08.59.53; Fri, 31 Mar 2023 09:00:05 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=df94nsGP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232647AbjCaP6r (ORCPT + 99 others); Fri, 31 Mar 2023 11:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232106AbjCaP6p (ORCPT ); Fri, 31 Mar 2023 11:58:45 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C13FBD51A; Fri, 31 Mar 2023 08:58:44 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso25905217pjb.0; Fri, 31 Mar 2023 08:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680278324; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fxJeRCNlob7RdsmYmplWDSRv896kgREUT/PanUMpg+I=; b=df94nsGP/LSbkeu4EwTcd6OWf4bwFCVeTX2AV6GGuJjRqHHCAMue+ucZDrKHUhmKYG rF1GcVAwowFS+Lw4R2ZOUyVGlohHcI6cjfHM7qK93vDDAl7K4QkmPtop0JyXgqtHXc7H /5vLStTMRgLSeUXBayN0bKd/AONKgI/U1KUKS5/OQNcRAufgEZpwDgrUSWGMu6Y857ge adjCqeJIwjNQ9e0ozCbwL/KW0l7dQvZWabnDNyAgsHKLIX9dRbhWd87DZu9ExUYc0qUd 3JnEV11La2lDBJeuBzAsXlD+zwvLmegtNhi0v+YBndpY86p8Vd75hORyoRDkG0cpykNS EsYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680278324; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fxJeRCNlob7RdsmYmplWDSRv896kgREUT/PanUMpg+I=; b=AvyOfyGJYel+Cq0qttoEmJ9Q/pNCMBOEDdRu48h0Rmu/+BjLeODHIoz+XqNtSxxlhk ZYu9z/TG1gi6sSHiEPPfiZ7I/EU7eXLLqbLA7ddt8uJVqHwbzPtsJxa1+MFO+dZGJ+tn Csm5sJFXj8q9IVe3SxmxlaSbNLpF6dGcW1tzXPH8Ta1Z7TARrqPe4C0GOsnltnnqrw93 2vYWJkrjAnDcMS9Q3539mlnUCFfvdraLmVkWPdDHk3T+fAnP3ouJyE+0izuKY2M0IAIG gMFc5xGIsmprNxLEFNrWXQJUUiw9o8j0l4Gt+t2LLE4XFIOqhXNhCRiq3uzTvkOygPTL 4mIw== X-Gm-Message-State: AAQBX9f3Mbi91F4AXC00VoCJJRL/vJR8TRVON5CIi28AYvsrxHz2fKHr x1MxlzJONjpJ9ZZlL6XOBqhqKsnDWq8U4LtYjZc= X-Received: by 2002:a17:902:b48e:b0:1a1:dfd6:b0f0 with SMTP id y14-20020a170902b48e00b001a1dfd6b0f0mr9675817plr.11.1680278324230; Fri, 31 Mar 2023 08:58:44 -0700 (PDT) MIME-Version: 1.0 References: <20230328111714.2056-1-zhangqing@loongson.cn> <2360000f-7292-9da8-d6b5-94b125c5f2b0@loongson.cn> In-Reply-To: <2360000f-7292-9da8-d6b5-94b125c5f2b0@loongson.cn> From: Andrey Konovalov Date: Fri, 31 Mar 2023 17:58:33 +0200 Message-ID: Subject: Re: [PATCH] LoongArch: Add kernel address sanitizer support To: Qing Zhang 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 Thu, Mar 30, 2023 at 6:32=E2=80=AFAM 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. Thanks!