Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4247346rwl; Tue, 28 Mar 2023 04:56:01 -0700 (PDT) X-Google-Smtp-Source: AKy350Y153sGIa/MYljjz//1kVc2Nd0zTLnW7uOTv7pvp5+P0BlE4pjCkLxdQ5x11GpccefdqLS6 X-Received: by 2002:a62:1852:0:b0:62a:4503:53a8 with SMTP id 79-20020a621852000000b0062a450353a8mr13878181pfy.12.1680004560971; Tue, 28 Mar 2023 04:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680004560; cv=none; d=google.com; s=arc-20160816; b=kAAnB/JphYi9UV0E7vTXunpZkBMarJHZXSi9TzuloF2Rlf1ZY5f+MBOfWOl4Bk5cg9 mEhcAXYXaB5lkxfwmhyjgitscyAiovsepZ4rWrZk7xXNE/KNilQgDFKfUt/p4QENIGKT 2e+6jt3ZZiG7gvQdqQQglsYK81J/7NWGQM94J4kb6++Sazj1lISqGhR7EDBnSLuZ8r7B TIL0wCoyMiCaNJCgfWpFLLrPRTzkZTRUByOKEsslZo/0zIYogxYi1vB5fnCq65/0iHBY Dt1PqzZwHlLRcw87+Hlf0oZLDczBshCiMSxm+wnz0U6YwIV7UCeZB2Z4dQFZamLOb9MP 8/Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=SzulNji4opou7lgojxtUyQ4UHhhPqbMH3w+G5a9zDiw=; b=HZ2LddZiJbMwYgXaOdRVv1/OELiVW6r0guJDoEsumlObid/35PBKWAj7RYvEA3lLFn Yy1HqujFDocAHQg9ne8QECgGnjhn19m/BzVH9E48OL3sC5/m1HCo8bwLKzHogY5wJZMq lVMuR+LoDh2hIvjRD09iV/k3NHjlo4Y7oTq/BrBUwjo/MHLHSV7hcgC0ymQJhgVymKL0 fZ/e6K93NQFO9d/ThNF7J/pL3mK2BMLT6FSgweEDX38PI0gTVU7249xdrQ3dt+IzOvMo RhIpfV9MG9nHcy51pURwwNM8XdzVHRW0XoLFXHeuYigOpqs4v9MxijuBgxMpupAXrH4s fF8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=LCrSQT3N; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q22-20020aa79836000000b005cd3a233e3asi28421206pfl.346.2023.03.28.04.55.49; Tue, 28 Mar 2023 04:56:00 -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=@xry111.site header.s=default header.b=LCrSQT3N; 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=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232954AbjC1LuF (ORCPT + 99 others); Tue, 28 Mar 2023 07:50:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232960AbjC1LuB (ORCPT ); Tue, 28 Mar 2023 07:50:01 -0400 X-Greylist: delayed 601 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 28 Mar 2023 04:50:00 PDT Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4966A75; Tue, 28 Mar 2023 04:49:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1680003594; bh=SzulNji4opou7lgojxtUyQ4UHhhPqbMH3w+G5a9zDiw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=LCrSQT3N3+FNICWBBgk+C37FnzNTqIDN30fvbnD1v1F/wEXmFONCcGPeaOHokHNiS SU7Kiubj/PG+DiIPUFyeKzp+DL14tKhWjyArBVVqsShWBLwTbCCCBVzsbTrMTMXEfW /MDuzO/aIrSZjmB2lKjG2E4qVi6bMPUPQ0J6OBq4= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 6E7A365BFC; Tue, 28 Mar 2023 07:39:45 -0400 (EDT) Message-ID: <9817aaa043e9f0ed964bd523773447bd64f6e2c0.camel@xry111.site> Subject: Re: [PATCH] LoongArch: Add kernel address sanitizer support From: Xi Ruoyao To: Qing Zhang , Andrey Ryabinin , Jonathan Corbet , Huacai Chen , Andrew Morton Cc: Alexander Potapenko , Andrey Konovalov , 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 Date: Tue, 28 Mar 2023 19:39:42 +0800 In-Reply-To: <20230328111714.2056-1-zhangqing@loongson.cn> References: <20230328111714.2056-1-zhangqing@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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 T24gVHVlLCAyMDIzLTAzLTI4IGF0IDE5OjE3ICswODAwLCBRaW5nIFpoYW5nIHdyb3RlOgoKLyog c25pcCAqLwoKCj4gLXZvaWQgKiBfX2luaXQgcmVsb2NhdGVfa2VybmVsKHZvaWQpCj4gK3Vuc2ln bmVkIGxvbmcgX19pbml0IHJlbG9jYXRlX2tlcm5lbCh2b2lkKQoKV2h5IHdlIG11c3QgbW9kaWZ5 IHJlbG9jYXRlX2tlcm5lbCBmb3IgS0FTQU4/Cgo+IMKgewo+IMKgwqDCoMKgwqDCoMKgwqB1bnNp Z25lZCBsb25nIGtlcm5lbF9sZW5ndGg7Cj4gwqDCoMKgwqDCoMKgwqDCoHVuc2lnbmVkIGxvbmcg cmFuZG9tX29mZnNldCA9IDA7Cj4gwqDCoMKgwqDCoMKgwqDCoHZvaWQgKmxvY2F0aW9uX25ldyA9 IF90ZXh0OyAvKiBEZWZhdWx0IHRvIG9yaWdpbmFsIGtlcm5lbCBzdGFydCAqLwo+IC3CoMKgwqDC oMKgwqDCoHZvaWQgKmtlcm5lbF9lbnRyeSA9IHN0YXJ0X2tlcm5lbDsgLyogRGVmYXVsdCB0byBv cmlnaW5hbCBrZXJuZWwgZW50cnkgcG9pbnQgKi8KPiDCoMKgwqDCoMKgwqDCoMKgY2hhciAqY21k bGluZSA9IGVhcmx5X2lvcmVtYXAoZndfYXJnMSwgQ09NTUFORF9MSU5FX1NJWkUpOyAvKiBCb290 IGNvbW1hbmQgbGluZSBpcyBwYXNzZWQgaW4gZndfYXJnMSAqLwo+IMKgCj4gwqDCoMKgwqDCoMKg wqDCoHN0cnNjcHkoYm9vdF9jb21tYW5kX2xpbmUsIGNtZGxpbmUsIENPTU1BTkRfTElORV9TSVpF KTsKPiBAQCAtMTkwLDkgKzE4OSw2IEBAIHZ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