Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6174118rwd; Mon, 19 Jun 2023 03:34:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7QM6GPad+5vAyrsx3ynfoYOgiglsrZ+ni4RA26vmRXK8eM5Q03spp2s94zOL8Tct6gF9vF X-Received: by 2002:a05:6a20:4404:b0:11f:f6b6:ef38 with SMTP id ce4-20020a056a20440400b0011ff6b6ef38mr2550622pzb.6.1687170878128; Mon, 19 Jun 2023 03:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687170878; cv=none; d=google.com; s=arc-20160816; b=tIMy6EqJcdR6EIO3k27hIpPR5lemXKqtcBCmGIvc9ctl63N4t6OT7120+wPECZCZHv Hr8FfdbZ7wjIYKXJrmb0TjgAfuFyih7i3Mw4nYEj94mWAy5fqb+ztDPvaAmtzu2JRtYo +upgJQfFzE4fns9ay73DUY8ox0KCJE1kiZW5MoxGo1HjYKTVhAyn4aYUgjIXABBcfgE9 KVnJKbjsODjAP9od6RTR2BJ3ju+KlKOmdvwI/DvTl0jtxZ6/Occk4knlhaUb54yJ6Xqg dVquSp+ebbxQo5n2LQsVOSvEn9mPB2lpXtel6wPAwGxSI6aJsZashfzuppNtpIcg4Loj qdtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=h6+4WUre3d5bVXKSjFFWZpGKa0679AOLoEWy8qr2V00=; b=iDhkkuZ24OZzOiQPzUG6JH2nfiyfa8M0SU2DA03C8Hq2QMEh84c4TW4dH32ubw7Uqr TKbEIPR1oMkwKX3rEA/m2WWvYb2L2tD1B+C6XoXEaPLgNF/7RHauBMElVGF7MRdqdMvI rIU0BkatAQc4M0uT6MbefVm4iRKODNYzmUYc6+s64HfgTtNfCVDHukg5RNsVUOJjifrM Jo1r86FbyDUVJdGOcwkOWF7k3CNoeREQ/jDBn9fxwrrrWqnn6HKCN7X58mm9/eA8V1ok kCzoHblGKWhYZUBMPEkkaSDek1PmHM/SiFeqIKd8RFWuiovB7TkE/3RSWnscjxkEo9UZ nTLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b="2XPBs/hc"; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020aa79ec1000000b0065cb0204893si8019978pfq.308.2023.06.19.03.34.24; Mon, 19 Jun 2023 03:34:38 -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=@google.com header.s=20221208 header.b="2XPBs/hc"; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbjFSKPS (ORCPT + 99 others); Mon, 19 Jun 2023 06:15:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232030AbjFSKPH (ORCPT ); Mon, 19 Jun 2023 06:15:07 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CBDBE51 for ; Mon, 19 Jun 2023 03:15:04 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f81b83b8d5so102675e9.1 for ; Mon, 19 Jun 2023 03:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687169702; x=1689761702; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=h6+4WUre3d5bVXKSjFFWZpGKa0679AOLoEWy8qr2V00=; b=2XPBs/hcyqpbJwohNBmCV7+YRJ5+24eq1+NRGRV0ouC9dQDeCiOirhWKrRYCMg8weO HCpm/6D1WA6dGvPxrGQpaiuZvjgAu7Uox2wZw5HbaPzD/bELuGDYp26bXEEFrnwxysZd axn8fcfsZCG88aN4QIUsLcYkpJX3FLFR2k5y1zfsbyRpjL9Z5GHEhQJKWRTKPe+NxVOv HggBIg1Pr0b1kcms1YzqwNCdkSut/V6x9sHKjxvPdXiZzvOqRFcVI9PsoYkiMZcq/U20 rhE38oLIYLj3m/zoO26VTEYvc2K8k8CauJHofPsFjbjRy9Zt0LLJiuNV+yq96QRJFyd8 +RQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687169702; x=1689761702; h=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=h6+4WUre3d5bVXKSjFFWZpGKa0679AOLoEWy8qr2V00=; b=QkRTEzECPeRgdZcP5znXSOuOTSFnw1Hn2qTD4d2qDASH11jpJxU1x2cwGsuXt6ysfb 8vS7kLUwTUhFvDyvcI48f5I8MttSl+a6DBI5AOCaLT6b3wNe0yMKCn0UrFiTGNweEgwW TKfVJiNSlFlb8Q1ZFV3h1OMBUiDAuz7YV0gQU+0LD8loI4iyaB3hg1JFAMtlPrkqCD5i gYRUBEC3dWor6C1LXXgTCQQze/Ninwhash3BXsiA3WBIb1349ZdCLQX4G4X3gtGxbF3W +FprtK4MuJ9b8onkIZuhtVQJzlgUPuZr9cks76FsxQaOkkindC8tfGfFL7KBHc+0lP2a ssKA== X-Gm-Message-State: AC+VfDwuPm5tapocTOn2Nzv/FYACJa1DqOGAPcN7iF1IXoQNf/HEZAi3 1ak/yW3eqKR1ZJTBmWCjJ3XaLnceq6V4ZQKJjXxXVA== X-Received: by 2002:a05:600c:691b:b0:3f7:3654:8d3 with SMTP id fo27-20020a05600c691b00b003f7365408d3mr141237wmb.2.1687169702435; Mon, 19 Jun 2023 03:15:02 -0700 (PDT) MIME-Version: 1.0 References: <20230619101224.22978-1-chanho.min@lge.com> In-Reply-To: <20230619101224.22978-1-chanho.min@lge.com> From: Dmitry Vyukov Date: Mon, 19 Jun 2023 12:14:49 +0200 Message-ID: Subject: Re: [PATCH] kasan: fix mention for KASAN_HW_TAGS To: Chanho Min Cc: Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Vincenzo Frascino , elver@google.com, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, gunho.lee@lge.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham 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 Mon, 19 Jun 2023 at 12:12, Chanho Min wrote: > > This patch removes description of the KASAN_HW_TAGS's memory consumption. > KASAN_HW_TAGS does not set 1/32nd shadow memory. The hardware still allocates/uses shadow in MTE. Though, it may be 1/16-th, not sure. > Signed-off-by: Chanho Min > --- > lib/Kconfig.kasan | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan > index fdca89c05745..5be1740234b9 100644 > --- a/lib/Kconfig.kasan > +++ b/lib/Kconfig.kasan > @@ -124,8 +124,6 @@ config KASAN_HW_TAGS > Supported only on arm64 CPUs starting from ARMv8.5 and relies on > Memory Tagging Extension and Top Byte Ignore. > > - Consumes about 1/32nd of available memory. > - > May potentially introduce problems related to pointer casting and > comparison, as it embeds a tag into the top byte of each pointer. > > -- > 2.17.1 >