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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADF6FC433EF for ; Wed, 1 Dec 2021 11:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=w0+1Y0YUE8YsL8wIGAuMtAD1747bT01DkAInBdeytM0=; b=e7WACgWia0sVhg QN8WfZlHeZdiI1DluWfCZYtJWaWLkhO6OGYvaw7ZRq/pKb/uZ6rNVebT7MyTtr6rocmnJYNPcA5uZ iwVHDyOcPmBPjLkmd3BvUtJp8iswAPM1w1dIrnVVbia7zQUC5xt2a93MApfJgD70O8IvmHaGGFHbI +WsvIrCVQQm/cTvRBSWF1wS49Ta22b6dFOiUyJMUNSy1lueqFLuhGq6jLnVft3kaR4fs+ROuTm9Po i9GgLG4f9n8J1c7aDP5CKZyetkpp8mxjN3ToTse3iuN1MhqxNlbOqdZ7ijxYVrTZpmaTkhDHJ6D4j 2vqVN+zE/VR8VutpWN8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msNtd-008Ebv-Ik; Wed, 01 Dec 2021 11:35:33 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msNta-008Eag-0U for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 11:35:31 +0000 Received: by mail-wr1-x42e.google.com with SMTP id d24so51600428wra.0 for ; Wed, 01 Dec 2021 03:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7oFCw3r7bT3X7Dv+eyjA/okr2FmaHILwO7XorQYmoTs=; b=BlKjYbOMUR/aTDj+Ec2chakLzgzNY5VOrahaRQVT/BVafy9OG3EI8f8Rk7Wtn/mPtJ S/ZKgHGjhmylvV+Opha093vWnbSBwnOC8zXm56O8WpqHJFkaBJN8+J/NTqlnF9596O5n IONkG7mF6uVqCaXGTmIK8FrXIv0FWYuzqfzztnjzRoGC8WfDK0VnbwiQqcYQlI7ZNj3G ozRLtxrDIeYJHR0zwiYdDMTbPIKerPqfRzEnRTu3OlzRDTrtsi5JYJryWjf/Uo6jUYZo pSHa2xcSofEVwYJ8m0Mnjf/XHDblzkSMFUZh1UzN5o7SrUXZ7mKaEtgNHEe47zPhaowZ y8Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7oFCw3r7bT3X7Dv+eyjA/okr2FmaHILwO7XorQYmoTs=; b=h6LGEhxPAA0deoqbUNuXBAZwJ3tCIiz2gKcOVYmE6jm74BSufwH/LANWjVgKzo4b4G 6Ym5kW9VniNArt/sm/cxdss1CIcsWG07VrEhQMZO/eFaj5HSFtzwZJjIWzh1GWsxf/9W 5NEhr8Ros1n7RCDDQhp3/+sEjDrdlRrN3UNtHx3r/IlZmLvT5oTP/QslP7cW2a6aUF0Y xIr3DiX6epEqqyuX/fkfJd/UQtUvQSsERrW4pLYtJvuMG0aUJmc1rOWo/6WBM5K8AUGf OSl4q0UZqQzI6zC7Q/rO9QxPOApAqmThERA0ttABIc39QCzv3yAj3SMEe6HUaI/Olt76 SfOg== X-Gm-Message-State: AOAM530h7OUwf2sFo1VNsfCEwNS5dhzYxj1YZuOzsuwY8JqKDLBHlPAl RbhNaoLui1yKySB8rvreMnF3Yg== X-Google-Smtp-Source: ABdhPJwyr4p/7w9/0D8u9fu/l1X87xRMhQAf8kDNHVmbpnIb9ZmIPngnhesriY/M7C9uy4UG3lqkzw== X-Received: by 2002:a5d:54cf:: with SMTP id x15mr6333226wrv.30.1638358528549; Wed, 01 Dec 2021 03:35:28 -0800 (PST) Received: from elver.google.com ([2a00:79e0:15:13:95ad:1401:cf07:6d1a]) by smtp.gmail.com with ESMTPSA id u15sm638839wmq.13.2021.12.01.03.35.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 03:35:28 -0800 (PST) Date: Wed, 1 Dec 2021 12:35:22 +0100 From: Marco Elver To: andrey.konovalov@linux.dev Cc: Alexander Potapenko , Vincenzo Frascino , Catalin Marinas , Peter Collingbourne , Andrey Konovalov , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, Andrew Morton , linux-mm@kvack.org, Will Deacon , linux-arm-kernel@lists.infradead.org, Evgenii Stepanov , linux-kernel@vger.kernel.org, Andrey Konovalov Subject: Re: [PATCH 29/31] kasan, arm64: allow KASAN_VMALLOC with HW_TAGS Message-ID: References: <8afdf7eb0bae77d2e94210d689d524580cf5ed9a.1638308023.git.andreyknvl@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <8afdf7eb0bae77d2e94210d689d524580cf5ed9a.1638308023.git.andreyknvl@google.com> User-Agent: Mutt/2.0.5 (2021-01-21) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_033530_097353_F258C843 X-CRM114-Status: GOOD ( 18.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Nov 30, 2021 at 11:08PM +0100, andrey.konovalov@linux.dev wrote: > From: Andrey Konovalov > > vmalloc tagging support for HW_TAGS KASAN is now complete. > > Allow enabling CONFIG_KASAN_VMALLOC. This actually doesn't "allow" enabling it, it unconditionally enables it and a user can't disable CONFIG_KASAN_VMALLOC. I found some background in acc3042d62cb9 why arm64 wants this. > Also adjust CONFIG_KASAN_VMALLOC description: > > - Mention HW_TAGS support. > - Remove unneeded internal details: they have no place in Kconfig > description and are already explained in the documentation. > > Signed-off-by: Andrey Konovalov > --- > arch/arm64/Kconfig | 3 +-- > lib/Kconfig.kasan | 20 ++++++++++---------- > 2 files changed, 11 insertions(+), 12 deletions(-) > > diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig > index c05d7a06276f..5981e5460c51 100644 > --- a/arch/arm64/Kconfig > +++ b/arch/arm64/Kconfig > @@ -205,8 +205,7 @@ config ARM64 > select IOMMU_DMA if IOMMU_SUPPORT > select IRQ_DOMAIN > select IRQ_FORCED_THREADING > - select KASAN_VMALLOC if KASAN_GENERIC > - select KASAN_VMALLOC if KASAN_SW_TAGS > + select KASAN_VMALLOC This produces the following warning when making an arm64 defconfig: | WARNING: unmet direct dependencies detected for KASAN_VMALLOC | Depends on [n]: KASAN [=n] && HAVE_ARCH_KASAN_VMALLOC [=y] | Selected by [y]: | - ARM64 [=y] | | WARNING: unmet direct dependencies detected for KASAN_VMALLOC | Depends on [n]: KASAN [=n] && HAVE_ARCH_KASAN_VMALLOC [=y] | Selected by [y]: | - ARM64 [=y] To unconditionally select KASAN_VMALLOC, it should probably be select KASAN_VMALLOC if KASAN _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel