From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94D502D77E6; Fri, 4 Jul 2025 13:40:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636430; cv=none; b=UoPoL3LxJoNlzJl6N9dLKt5SVHY5UFOM9syFLA8c1Z5C+dVGnfyLZwbwTlMRX3J6wLioY3TdiawNnoclg61YRvvpibNM7U2XZ9S7Y+WJjbC6dma+RguyhsUYNWYJDD40d8dKf0WcCXIYGtTPp7Jzi2fO31T58b+Or72NlkOiHXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636430; c=relaxed/simple; bh=GI39m2+QQLKl9kvuh15wYVtW2wZbC1V2uj5jj5sF2lg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DTcKWjeLpnrw29ePgl6oXoyvMSTW+yNxKilCrSBKzlLB3Ue8lpkDbPWIyOgTMTG2ieqiHtqI6rGEUs4IYUHEcViG4k9W3eg2Ef5hB4st9StIwvnYHOU6S+vhPAJA7rBpurg26VdUCOqncUibzkhOeGvwFilCkJOSktqlx3yq6zU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 22BA9153B; Fri, 4 Jul 2025 06:40:08 -0700 (PDT) Received: from J2N7QTR9R3 (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DC95C3F6A8; Fri, 4 Jul 2025 06:40:19 -0700 (PDT) Date: Fri, 4 Jul 2025 14:40:17 +0100 From: Mark Rutland To: Will Deacon Cc: Breno Leitao , Ard Biesheuvel , Catalin Marinas , usamaarif642@gmail.com, rmikey@meta.com, andreyknvl@gmail.com, kasan-dev@googlegroups.com, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@meta.com Subject: Re: [PATCH] arm64: efi: Fix KASAN false positive for EFI runtime stack Message-ID: References: <20250624-arm_kasan-v1-1-21e80eab3d70@debian.org> Precedence: bulk X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jul 04, 2025 at 02:33:35PM +0100, Will Deacon wrote: > I would actually like to select VMAP_STACK unconditionally for arm64. > Historically, we were held back waiting for all the various KASAN modes > to support vmalloc properly, but I _think_ that's fixed now... > > The VMAP_STACK dependency is: > > depends on !KASAN || KASAN_HW_TAGS || KASAN_VMALLOC > > and in arm64 we have: > > select KASAN_VMALLOC if KASAN > > so it should be fine to select it afaict. > > Any reason not to do that? Not that I am aware of. I'm also in favour of unconditionally selecting VMAP_STACK. Mark.