Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp672667ybv; Thu, 13 Feb 2020 07:32:30 -0800 (PST) X-Google-Smtp-Source: APXvYqzcMP9uCTmHKYJ6paxGqaTcphzbUQceuPs1PN/KdDOCz+0lwwGBjvW1SJw0awQ6fkJMovwW X-Received: by 2002:aca:ad47:: with SMTP id w68mr3186772oie.63.1581607950566; Thu, 13 Feb 2020 07:32:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581607950; cv=none; d=google.com; s=arc-20160816; b=c6aZmfYv0QiU4pMTcJSXXfHS9huO70q5YsuXs8jlc5ql0x9cmiHgOU0EsLktxvzj9a nG6h48JOAsSj+weX8ne3FqWo7KC9nycwSU85fXrQwL+dD8YknlNFrz7P4OO5H5lE+Mix hcz18NcO17BvY6fy4lZxXCLtaGLmGsQAcGMhV2IpKeyyWxScXISQFijEm/FnefkuWq1y mWE3T3+HDFWCV6D/HOFXrzUndVXUtvB2uqSzPleVxGzL57/D2f08cX9TUeDGNwm9Luo7 8zg/OVVvQxT5BVTql8dgrRQvOTKsEhrHA0JT7C5HxW/mEvQAfLu8UdYGm9qzVpYI8zJB yp7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kPevo4KuAMH40Xa9OtTMeZYH0WJgKZe3XHb5XGp+/8Y=; b=Gfab/wBXhYTNiA8PXCRz26MwWo2uXfvLtWnu6zDptIkjaQZMo5pmi9UfVDiEMd0oTA HtwNJmnFTEmvevP3K3aIvm36gA/DtB2eL/VvC2N4bMyaRQvDGPfTGw7/mK9aYIipS5Q8 KO15nyIo/N/KWDdhzGWEBqTyw62vMAylVfgGfTE1UBbugDU2/XRMaNsJoalnhGvYH9e1 oMNKrZQAsmfyUv2GyQnEezkY8lAKMFOGYVc7/3cEp+VfQoNTTdTkVevc4Dj6PRrruqwb nz4XC/B/eodjtdUVxQ73NpT/+UBTGp8jD6QwUZWwjjVo4I5HCPJYo/xgZGuO4N1tGtMs OWRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MUsyoDln; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18si1361444otp.48.2020.02.13.07.32.17; Thu, 13 Feb 2020 07:32:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MUsyoDln; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728866AbgBMPbF (ORCPT + 99 others); Thu, 13 Feb 2020 10:31:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:52212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729486AbgBMP1n (ORCPT ); Thu, 13 Feb 2020 10:27:43 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0313D24671; Thu, 13 Feb 2020 15:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607663; bh=1C2F05DTQ5vhQOubAguPuMs/IxDOxndvtOJ7j2bd/NM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MUsyoDlnj/DTYwhyQICyNZvGby+0wlJdJVic1iXUzBzUdhCV+mpAM7oAw+kxDuYew OLfIrwiiOrnpWzh+9onSPVWnw0K3MUIyAPd3hGusVkc5LHZNmEpPdk2DP/5Mjnr6SB LetkYKQ1Mxrv16pCEH9btmOlaMs2XfYgHD2nAMcg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman Subject: [PATCH 5.4 55/96] powerpc/ptdump: Only enable PPC_CHECK_WX with STRICT_KERNEL_RWX Date: Thu, 13 Feb 2020 07:21:02 -0800 Message-Id: <20200213151900.681059691@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151839.156309910@linuxfoundation.org> References: <20200213151839.156309910@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy commit f509247b08f2dcf7754d9ed85ad69a7972aa132b upstream. ptdump_check_wx() is called from mark_rodata_ro() which only exists when CONFIG_STRICT_KERNEL_RWX is selected. Fixes: 453d87f6a8ae ("powerpc/mm: Warn if W+X pages found on boot") Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/922d4939c735c6b52b4137838bcc066fffd4fc33.1578989545.git.christophe.leroy@c-s.fr Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/Kconfig.debug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/powerpc/Kconfig.debug +++ b/arch/powerpc/Kconfig.debug @@ -371,7 +371,7 @@ config PPC_PTDUMP config PPC_DEBUG_WX bool "Warn on W+X mappings at boot" - depends on PPC_PTDUMP + depends on PPC_PTDUMP && STRICT_KERNEL_RWX help Generate a warning if any W+X mappings are found at boot.