From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F009402BB7 for ; Tue, 21 Jul 2026 17:18:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784654340; cv=none; b=G4G8Uv5FiGfFeiGVSg8L8nYy3/7A2s2iHnpAkWkbcOZ975xbku3aRV6exKZmKhUnpDtPkPeC9nrDi46RKum2FxWO94+TradIWwzq1RgFzVdDto/rZK0usBvsjGFR/0/QrZfizlb+vxVW8fpfC+/bFD1eZ6R9pJIR/u2HneLEYk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784654340; c=relaxed/simple; bh=GRvqRC0+FkYMN/nWd8hGZGuBQ3+w6k2r/vvrwggwhHk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qA79XZzDnoN9FhBzA2yL74DaBCJbWgiIhSEyzyCwcet6JTeOkeIb9kWG7vbul5RgkLSqL9etez6+AoAjVwWBrlkeGG9qU13jT2XJ7Id9YmIE2Wxt12Qa4iEiqRsJifEw+DRbITtimr3Y7qI34j7DLkvBeQc/3+/Neg8TsvzCIqY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hxoJfeET; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hxoJfeET" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B5CC1F000E9; Tue, 21 Jul 2026 17:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1784654335; bh=W5lsuJ2TK8ReKuQv41colmY0kKFrt517EXbX/U4o4CA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hxoJfeET3T526QXp00quUEwQiOevzo6VUuI3w8NS/NxwUVkTvuDLoG1eHp50Dde/9 /IXu72DL1bn1EWLcboCW5yYfKmHJHvFkEmiTKSD50e5FPZDLYl01J7xvScImtnjYsD JjCFTV9E18oVmDRk6//jVQnQPSKBVwQkz+JZAznrV59NxrElBd+JMBafczgRMx7oLC Xk+QhdT3awjgGop2C8uqzN9chBVanihxeMqzT09p6ffF6d1usfV2yA5oGV6cvQhTGg ijzCa3QHEPFfay0pbdy6BGom8WqI5JNIb1VR1ldOAP+yYr9WQIG3Qp3fDWX6Fy6n4l JLEjIFNb1CxiQ== From: Will Deacon To: muchun.song@linux.dev, osalvador@suse.de, akpm@linux-foundation.org, ljs@kernel.org, david@kernel.org, liam@infradead.org, Dev Jain Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , riel@surriel.com, vbabka@kernel.org, harry@kernel.org, jannh@google.com, lance.yang@linux.dev, kas@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, apopple@nvidia.com, rcampbell@nvidia.com, ziy@nvidia.com, matthew.brost@intel.com, joshua.hahnjy@gmail.com, rakie.kim@sk.com, byungchul@sk.com, gourry@gourry.net, ying.huang@linux.alibaba.com, ak@linux.intel.com, nao.horiguchi@gmail.com, mel@csn.ul.ie, j-nomura@ce.jp.nec.com, pfalcato@suse.de, tglx@kernel.org, dave.hansen@intel.com, jpoimboe@kernel.org, linux-arm-kernel@lists.infradead.org, ryan.roberts@arm.com, anshuman.khandual@arm.com Subject: Re: [PATCH v3 0/6] Fix incorrect access of hugetlb pte entries Date: Tue, 21 Jul 2026 18:18:38 +0100 Message-ID: <178464737122.1305746.12295190523058911270.b4-ty@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260703114202.365553-1-dev.jain@arm.com> References: <20260703114202.365553-1-dev.jain@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On Fri, 03 Jul 2026 11:41:53 +0000, Dev Jain wrote: > There are various places which use ptep_get() to get the pte entry > corresponding to a hugetlb folio. Some arches (like s390) have special > handling to compute the pteval, so they provide huge_ptep_get(). Use this > helper consistently. > > Additionally, some code paths may provide huge_ptep_get with an unaligned > address. This is a problem on arm64 (I checked other arches and it looks > fine for them), which is fixed in patch 1. The fix is made to be > to huge_ptep_get() - that is wider churn and we can do that later. > > [...] Applied first patch to arm64 (for-next/fixes), thanks! [1/6] arm64: make huge_ptep_get handled unaligned addresses https://git.kernel.org/arm64/c/9175a8c7cfe88 I'm hoping Andrew can drop this from the mm tree to avoid a duplicate, but I didn't hear back yet and I'd like to land the fix. Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev