From patchwork Mon Jun 24 22:15:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxwell Bland X-Patchwork-Id: 13710196 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6673FC2BD09 for ; Mon, 24 Jun 2024 22:15:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DB30B6B037E; Mon, 24 Jun 2024 18:15:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D63946B037C; Mon, 24 Jun 2024 18:15:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C03DF6B037E; Mon, 24 Jun 2024 18:15:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id A12A76B037B for ; Mon, 24 Jun 2024 18:15:19 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 57D0AA1255 for ; Mon, 24 Jun 2024 22:15:19 +0000 (UTC) X-FDA: 82267189158.10.C341614 Received: from mx0a-00823401.pphosted.com (mx0a-00823401.pphosted.com [148.163.148.104]) by imf15.hostedemail.com (Postfix) with ESMTP id 66508A0004 for ; Mon, 24 Jun 2024 22:15:17 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=motorola.com header.s=DKIM202306 header.b=6ooSBqzH; spf=pass (imf15.hostedemail.com: domain of mbland@motorola.com designates 148.163.148.104 as permitted sender) smtp.mailfrom=mbland@motorola.com; dmarc=pass (policy=none) header.from=motorola.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719267298; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Gdo+A9lR32Bwl8rgtzcgwCfQAZOYi+4CngAwLwcyHBw=; b=QZO2Onm02MAwFpdX31UK18hV+IB1MOZ8r/pH/fDsgHqb1Mf1rcf1r/XiIKp3dipniJezrC wMSO+lnrjybs5VQS3XVMj0kf2uw2EKCmWr/EmFCz1iIm17Im8iFXashlrgeOcCSfiF4oYk 1R5/K/IAwSduYRQsEnH6+9nQC2UPrfw= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=motorola.com header.s=DKIM202306 header.b=6ooSBqzH; spf=pass (imf15.hostedemail.com: domain of mbland@motorola.com designates 148.163.148.104 as permitted sender) smtp.mailfrom=mbland@motorola.com; dmarc=pass (policy=none) header.from=motorola.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719267298; a=rsa-sha256; cv=none; b=juE70On/TWAW/2PDqjxmXcBiHDpPG0iwI9XYUPppINm6NdczU1l/PqzVxsr7FsNLnUbIyX hS75/ma5pd9E0MqV6GYhOt0WLd0VsthqMtT1CtPsFfsMsB1PiPDk+VAkW0x7OoF7sdbJJZ k8f8QZiEFfJhf9hVfRDreqUQnqD9158= Received: from pps.filterd (m0355088.ppops.net [127.0.0.1]) by m0355088.ppops.net (8.18.1.2/8.18.1.2) with ESMTP id 45OKhVlf023210; Mon, 24 Jun 2024 22:15:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=motorola.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=DKIM202306; bh=Gdo+A9lR32Bwl8rgtzcgwCf QAZOYi+4CngAwLwcyHBw=; b=6ooSBqzHdfsXIm3I/BjkKOp8gYuoWZs4Fyhb97i 668nWAIPp4RLzo2mDzJzaPzXAwXktQvGBd/qw+4P2SYPLP32o3tv8zkybvKkdLkH GTN6d84p3ahqd0/wDxHem3s+8QMumwsN0PBd8K+2mBCeHlsBoo/TCFed2mhEjavD noS6iFVy2vUC+Kms7MSscXOd4CtBEBnQ8OCU2eoNbPSNKReUbbGuFyr2f6YUe8qZ 9jVqvTrEWQ6qKmiLKjj9pELujwjw7mYRVQQFtFTrSFA7HZ/qILWZFXoXzVVkkY77 TLU2LEekm6diH8In2hdb3Bp/JbWxSCWoJSMOrDdzWn3DusA== Received: from va32lpfpp01.lenovo.com ([104.232.228.21]) by m0355088.ppops.net (PPS) with ESMTPS id 3yxbstk78d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jun 2024 22:15:09 +0000 (GMT) Received: from ilclmmrp02.lenovo.com (ilclmmrp02.mot.com [100.65.83.26]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by va32lpfpp01.lenovo.com (Postfix) with ESMTPS id 4W7Mhr3qTGzhWB7; Mon, 24 Jun 2024 22:15:08 +0000 (UTC) Received: from ilclasset02 (ilclasset02.mot.com [100.64.49.13]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mbland) by ilclmmrp02.lenovo.com (Postfix) with ESMTPSA id 4W7Mhr2CBlz3p6jp; Mon, 24 Jun 2024 22:15:08 +0000 (UTC) Date: Mon, 24 Jun 2024 17:15:07 -0500 From: Maxwell Bland To: linux-mm@kvack.org Cc: Catalin Marinas , Will Deacon , Jonathan Corbet , Andrew Morton , Ard Biesheuvel , Mark Rutland , Christophe Leroy , Maxwell Bland , Alexandre Ghiti , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 5/6] arm64: exclusive upper bound for ptdump entries Message-ID: <2e6i3jrv7mfd3athc2g4sbv5rirrukj46cnchcym4io5uhle2n@ah3viwbr5bxr> References: <2bcb3htsjhepxdybpw2bwot2jnuezl3p5mnj5rhjwgitlsufe7@xzhkyntridw3> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <2bcb3htsjhepxdybpw2bwot2jnuezl3p5mnj5rhjwgitlsufe7@xzhkyntridw3> X-Proofpoint-ORIG-GUID: xJSB6QTklBwCv0gHX8X554KR7Ds_NYcO X-Proofpoint-GUID: xJSB6QTklBwCv0gHX8X554KR7Ds_NYcO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-24_19,2024-06-24_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 bulkscore=0 mlxscore=0 priorityscore=1501 adultscore=0 phishscore=0 clxscore=1015 mlxlogscore=947 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2406240178 X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 66508A0004 X-Stat-Signature: fmc5n6grsn6amoqxdi41mupe91uhhudf X-Rspam-User: X-HE-Tag: 1719267317-477535 X-HE-Meta: U2FsdGVkX19epqy5rxE9+dv/07lZC5wyaT5+AIPCd5ybEtBbFvv4da0n4kSqtbryoDT/TZoyelxuGV1aJ0WpAsuze0HX/POoM8XBaUBRjJY5KKacoISzpR3LbJQ9isWC0chBS6XC/X1miYTn61zUZ36bPWdhytq85YJkPmc/3ed8xUMq9AphzR6nP3PXZwfhw91RC+06XzFrab22GEuITotJ1YjFPCMj3shKj2dmxh8Nc52qfkYXvxCR5J1LD143TdOCghGgqqfEzDsi+VsK3PgbO7V1ano00YEYXLVRhNSJxC1NSKIkDcrDYY6KGwZDuksENXf1j+rcKi/1kAWody4rNqzor/oM3fsplzamEI6aXv27gx33rRpNf+aKE30ZmecjyVeaLf/7+iu6PZ3P1M1UbZNIx4MK+Hgpiu9cEjze2s1Bfpu9cjJzpvnZFFLZpdcF1SBaetlDmdVpW981+PRAZ1Rr92oW9agvjHtQ4datIvoGbfPhZeW2Zy+beSb+Ns79v0lpmKi/cymC1Wt6F0ufyg5f8kzQTO30nD9jVz5YDcyim2QHnwqZOsCnFOAqHhd8fXKb3dRtaSSzF6iAogzPVjiYFgGZw+4J8zwqK/aMultvOwrDSH9LWvFrzii3eGxjW5vICg6h0qpPKF3YxwIbTwK6kePG58l8xvafLgTxcqPoEsos3Zlm82uatfKPT2lAtyjIJH/WtofldupfSgHRNnpTDtkyiZU7w5g20Kypl+FbEEeyPtMen+vDt3BQwQfnniUbkK1O+rWe7DsMGu2Pm7BmgKcF0nK/7APpqfcG1xH8Ho03mNY4e6c6QC3I4WLWtvazPl0sZ5Jy5TxLpVlaDAsm0W8BxdESwkDPZPi7iBKjDOqZuykZWte9p6VH/TM7DtVXaLJe9rkYcSFJVBmor+IycGmzhXRRC4Jto6U2YV1OFJq26+gF8pn88DwC1GFW5E8Dijua8bViOmy xp8if8Nc ansfz/aiZWssKywzOLkwSq/VnzwANElQcAVV0G4ZgudC3djzP0rZrpGBdF4gK4pIs1mcteJ81Zua4W0lsAkq7ZR1M6QYTJUxi6e8xsqGVGcR7fG+IOAicODuZlRGzIDxV6EdC8SMArUtlYx69spe03vkkdFEHaTSeZnn9RxynZirg3mS8ROozVg23ZQ3QjKl4Lt+2JwZ5AE4zDgBKlmIoL5h8jUowPBxD4A9mgX+VFfDFCoSVhTxXsG2bMzri3WPiXizMA6O95jMDRp7GvFdc+gP3gmD8ANyjr7pb X-Bogosity: Ham, tests=bogofilter, spamicity=0.000030, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Update the upper bound of all ptdump entries to not include the byte which is actually governed by the next entry. As the lowest byte is included and governed, this makes the size specifications exact. Signed-off-by: Maxwell Bland --- arch/arm64/mm/ptdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/mm/ptdump.c b/arch/arm64/mm/ptdump.c index 0660b74413a2..f13acf9b1cd8 100644 --- a/arch/arm64/mm/ptdump.c +++ b/arch/arm64/mm/ptdump.c @@ -320,11 +320,11 @@ static void note_page(struct ptdump_state *pt_st, unsigned long addr, int level, else delta = pg_level[st->level].size; pt_dump_seq_printf(st->seq, "0x%016lx-0x%016lx ", - addr, addr + delta); + addr, addr + delta - 1); } else { delta = (addr - st->start_address); pt_dump_seq_printf(st->seq, "0x%016lx-0x%016lx ", - st->start_address, addr); + st->start_address, addr - 1); } /* Align region information regardlesss of level */