From patchwork Mon Feb 15 19:22:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pasha Tatashin X-Patchwork-Id: 12089129 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 519A7C433E0 for ; Mon, 15 Feb 2021 19:23:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 0E04864DCF for ; Mon, 15 Feb 2021 19:23:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E04864DCF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=soleen.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:MIME-Version:Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=gSsmXxQlhcvTL883OBsVihdSN7zbrLWqb0sbOT/MPoE=; b=ueRZFhdMMCu9YJzS86AHvfUK3G 0v3H4/slLA534TZo4Vm7kB//uG1twEiyCMGG0a41xz+5S0uAVKxvdljYSx+foLsBaLDLcI+RfP2wW OeCljUGhA9293K/97Qlvj+LQV2niH0TiF9EqVla6KgRk4jYiWkjXsa7iGIyVou+HkQnlk1jyBbIl6 ZihbYEOCQRuzDWBD+pmYYGHZQ7EVRnKVbmjxRzP/rGVD9je1nzfiYHt/CFGliSs0XNCNNKevAwkB1 mIzhzUo91O9Fs8gaCRtpPqbPCbNjhNSNsDVkGu7QEqzhBWtWl7ochyHfw8Ij9VwZgnc1iEKYSlMzA NFctmybw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBjSH-0000ob-NO; Mon, 15 Feb 2021 19:22:45 +0000 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lBjSD-0000nF-Vq for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2021 19:22:43 +0000 Received: by mail-qv1-xf30.google.com with SMTP id p12so3627223qvv.5 for ; Mon, 15 Feb 2021 11:22:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=CZE34n9hYz5SU1Put+7gb17jfhnpLjCCxD5CNJQ2yQw=; b=VzPEW28qSfuTQX8GSdTH45qhuK313Kx443CZzOeXV5C/arFRf6Bn4H0eDPjE6gV58J L4hbJxJEslsXIDYdeS4QVGUHzs4QwZZsQs2PmSquFlDX+jHX+KWh57BdQExZ6ZE23myj fWK4PwkjQWiY7xrfbvn85o4Yz8hhNDnHqXxxSd1NCGPalZ2keFnVgBuda22LERbKr6CG af2Yor8UWYEb/hu2vy/y4ZWsd3mV9wCT2fJJGwRHBK0mEM67+IVCPsRW4Kna6RfBbm27 lRHXfhrKAM63HPHEL6r3cww0YtSatUIOSxIAbKcSt+barjLUi60UqEjQjkVpYghtJ0to Qr1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=CZE34n9hYz5SU1Put+7gb17jfhnpLjCCxD5CNJQ2yQw=; b=ZZaPsyNL3QQSXi2Vp+Gg9lgBbrEMidJi3quOFM1GKKreGKtAkO5/hWnmheEDCoZvoq tX/sMIyeMyzozWRMVqW+mL8IAfnJK4PH5fmgw6K2sW8JspxV7HzrsW0z+079FjIz38Q5 wjLsueRNiAo2m/2SCqa9hgmt7vdLd/TzYZUOigy5aTIVTHeyHM2lp4rWkCZjM6nAuGYC WYT4CLmbW9IRAp1oWs9eCOY0sxXniRzh8K4KyIzeQ7CACnWP3NAOwhNRXDELaJBsEGSY Y3fSgZJ9R3WmA5oy42T/2R8Xpzfgzy/Z9IFKAh835GRsgKML2LP8MT67lCs8lYHTE0ZI 5rrw== X-Gm-Message-State: AOAM532Ol6qmH2hWV2DzcmirHMKuf7KxuoOBfEYOBcNktRB6Kz0vLYlB pGlcRnnjBl9pMfbSYM/KAVhvsQ== X-Google-Smtp-Source: ABdhPJy/TKL3Y7MKryyo5k14Om/vlqNOQCs6gq+2BRR6qmdgiYzW6H6m0flC1JJ49VbBtOoqJa4ZIw== X-Received: by 2002:ad4:458f:: with SMTP id x15mr16461481qvu.39.1613416959759; Mon, 15 Feb 2021 11:22:39 -0800 (PST) Received: from localhost.localdomain (c-73-69-118-222.hsd1.nh.comcast.net. [73.69.118.222]) by smtp.gmail.com with ESMTPSA id i20sm11631668qtv.73.2021.02.15.11.22.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 11:22:39 -0800 (PST) From: Pavel Tatashin To: pasha.tatashin@soleen.com, tyhicks@linux.microsoft.com, jmorris@namei.org, catalin.marinas@arm.com, will@kernel.org, akpm@linux-foundation.org, anshuman.khandual@arm.com, rppt@kernel.org, logang@deltatee.com, ardb@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/1] correct the inside linear map boundaries during hotplug check Date: Mon, 15 Feb 2021 14:22:36 -0500 Message-Id: <20210215192237.362706-1-pasha.tatashin@soleen.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210215_142242_067391_B31F2CC5 X-CRM114-Status: UNSURE ( 9.10 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v2: - Added test-by Tyler Hicks - Addressed comments from Anshuman Khandual: moved check under IS_ENABLED(CONFIG_RANDOMIZE_BASE), added WARN_ON(start_linear_pa > end_linear_pa); Fixes a hotplug error that may occur on systems with CONFIG_RANDOMIZE_BASE enabled. v1: https://lore.kernel.org/lkml/20210213012316.1525419-1-pasha.tatashin@soleen.com Pavel Tatashin (1): arm64: mm: correct the inside linear map boundaries during hotplug check arch/arm64/mm/mmu.c | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-)