From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3322C4338F for ; Tue, 24 Aug 2021 16:20:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 883A761212 for ; Tue, 24 Aug 2021 16:20:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 883A761212 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eb67nRlzmJHSloKXYcJYqZMdRu3XYvRrhLuSfOsjV08=; b=mnm4FNbrYP/Ywh 4nvw6+HzZrli12ZyiJVD7rsykREzYSfI26c0Yc7bMVzdxuHfedvJYlGM9a9pHwWqoSIdh7hKHwVOP gK53opWx9kx+wWFvYmmwEjNL+PWF5LDXeiMNfgyhmDALHAC+OU5C0/FcReVmNVsEcGGuSKNVu7Epl NkKAFvOVwcjfWjsstWcefMQ0gcQJ3rLNru+LP4sTgxg97aBDLgWOMyLhgAy4+Zxdn25GkEOFedk1u nNPleRGCUCOOt/83vhVTjU/SSuoItKqCXBipyv//4ac59PzzDaHYl5sWhOEuhrXOllP+VqRrrs/3L pD9ANIZVgNP/hmqqWg7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIZ8P-003t31-D9; Tue, 24 Aug 2021 16:18:45 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIZ8K-003t1h-W4 for linux-arm-kernel@lists.infradead.org; Tue, 24 Aug 2021 16:18:42 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7EC49610A3; Tue, 24 Aug 2021 16:18:39 +0000 (UTC) From: Catalin Marinas To: Mark Rutland , linux-arm-kernel@lists.infradead.org Cc: Will Deacon , ard.biesheuvel@linaro.org, anshuman.khandual@arm.com, steve.capper@arm.com Subject: Re: [PATCH v2] arm64: head: avoid over-mapping in map_memory Date: Tue, 24 Aug 2021 17:18:37 +0100 Message-Id: <162982183774.27939.5700909687106508447.b4-ty@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210823101253.55567-1-mark.rutland@arm.com> References: <20210823101253.55567-1-mark.rutland@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210824_091841_065839_F87DF364 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 23 Aug 2021 11:12:53 +0100, Mark Rutland wrote: > The `compute_indices` and `populate_entries` macros operate on inclusive > bounds, and thus the `map_memory` macro which uses them also operates > on inclusive bounds. > > We pass `_end` and `_idmap_text_end` to `map_memory`, but these are > exclusive bounds, and if one of these is sufficiently aligned (as a > result of kernel configuration, physical placement, and KASLR), then: > > [...] Applied to arm64 (for-next/misc), thanks! [1/1] arm64: head: avoid over-mapping in map_memory https://git.kernel.org/arm64/c/90268574a3e8 -- Catalin _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel