From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E1383FBF6 for ; Mon, 15 May 2023 17:47:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4157EC433A0; Mon, 15 May 2023 17:47:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1684172839; bh=uJPK1QIefk1nA1OqYhtVYm9LHRUqfwHCmULYHmMPzug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=idzi4LODVxmjBJVb0uKvkOSBnMdQ2uzPRg7rmliMJq7wCmbqdbtK5GSrd8LZZNjBR jFh/JagVmpU2U1cV5iEjSYsBDwLPaaKE+gUcqD679jnek2lGeIuaEFzrT2lC50rF/u /U09SQxQFNlKkT1HRNTbIRFC3G6lMjl6N0ugmo2E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Mike Kravetz , "Mike Rapoport (IBM)" , Ard Biesheuvel , Andrew Morton Subject: [PATCH 5.10 282/381] ia64: fix an addr to taddr in huge_pte_offset() Date: Mon, 15 May 2023 18:28:53 +0200 Message-Id: <20230515161749.511237088@linuxfoundation.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230515161736.775969473@linuxfoundation.org> References: <20230515161736.775969473@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Hugh Dickins commit 3647ebcfbfca384840231fe13fae665453238a61 upstream. I know nothing of ia64 htlbpage_to_page(), but guess that the p4d line should be using taddr rather than addr, like everywhere else. Link: https://lkml.kernel.org/r/732eae88-3beb-246-2c72-281de786740@google.com Fixes: c03ab9e32a2c ("ia64: add support for folded p4d page tables") Signed-off-by: Hugh Dickins Acked-by: Mike Rapoport (IBM) Cc: Ard Biesheuvel Cc: Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- arch/ia64/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/ia64/mm/hugetlbpage.c +++ b/arch/ia64/mm/hugetlbpage.c @@ -57,7 +57,7 @@ huge_pte_offset (struct mm_struct *mm, u pgd = pgd_offset(mm, taddr); if (pgd_present(*pgd)) { - p4d = p4d_offset(pgd, addr); + p4d = p4d_offset(pgd, taddr); if (p4d_present(*p4d)) { pud = pud_offset(p4d, taddr); if (pud_present(*pud)) {