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 25C2926F289; Mon, 1 Sep 2025 07:33:39 +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=1756712021; cv=none; b=WASfvwRsStu0m1a0d9P9HzOKgEE9xE6/JEN0F1DFd5Iwttk3NVGV/Oup4ICM/F/UjJaRIRBhPY7pQeZWoOsEwjC8qXqo2/lJy1q0SBGZiOAGRnXB+YdI/2I78q24SFYe4Omdwk0+6TLM3y6MuHhd37Ds0s8j4rCq4YdKSYfvwV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756712021; c=relaxed/simple; bh=PhB8WeDv969rq0BPBCTCg6VsNaonzWIUuJ0Js3niOjk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sTMImjRf16BvB6M+RNRCtEbibbqX1+6GLimF/rTzUC/WaGIWesKevuIYia/cKdMnnGowRhCNpJjoRxRzvv1Kig3O8oqAcunP0FEaVFnDAS0kTa2VWWhmFGElP8Lr1StBb/mudTZp++VPLXfLpU5kbviaygRnHCoNdOf7wqLgIws= 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 32F3B1A25; Mon, 1 Sep 2025 00:33:31 -0700 (PDT) Received: from [10.57.57.17] (unknown [10.57.57.17]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 856B43F63F; Mon, 1 Sep 2025 00:33:34 -0700 (PDT) Message-ID: Date: Mon, 1 Sep 2025 09:33:31 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: mm: Fix CFI failure due to kpti_ng_pgd_alloc function signature To: Mark Rutland , Kees Cook Cc: Ard Biesheuvel , Catalin Marinas , Will Deacon , Oliver Upton , Anshuman Khandual , Yue Haibing , Marc Zyngier , Mark Brown , linux-arm-kernel@lists.infradead.org, Ryan Roberts , Shameer Kolothum , Joey Gouly , Yeoreum Yun , James Morse , Hardevsinh Palaniya , Andrew Morton , David Hildenbrand , Zhenhua Huang , Lorenzo Stoakes , Dev Jain , Yicong Yang , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <20250829154913.work.943-kees@kernel.org> Content-Language: en-GB From: Kevin Brodsky In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 29/08/2025 18:06, Mark Rutland wrote: > The actual fix looks fine, though I suspect we should move more of this > logic into mmu.c. Agreed, I'll look into that. Having two separate declarations in cpufeature.c and mmu.c is ugly and leads to the kind of mistake that I made. The fix looks perfectly fine FWIW - not adding my Reviewed-by as I saw Catalin took v2 already :) - Kevin