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=-6.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 518E1C4338F for ; Thu, 19 Aug 2021 21:30:27 +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 0C68160FE8 for ; Thu, 19 Aug 2021 21:30:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0C68160FE8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Wnc1/3rhN8ptO7SeW0E+dNROqsduAqUWYcG3jlW+lCE=; b=fUfH6ASbH5X9E1 jLU4wYJRfOLRosj7jcv3dLwa8Tyt42QaBM8QWb8fN8Rkj/ZI58xDRAWr9fFNTlxf2r2YzvgmkCqAf mXbyHBlsRwX5L3pXJf2qA2O/N19x9Q9SE2NU2KBl/whPxIsmR99kpJkwDcF0qMJrVA4l3OljI3gHe 9R9fUlTqFNoMa0pQ2ToaLH48PWv5nxEJZ1G2yw/lXkUegNNGvZi6GWTospB/ObdKnH9Yo5w08yosO WTcSSKQHnUIrcBLNm/1xJtRYw99YleErxBHvbyxCK0nDZIPdqHrLiNhA3RQlBcng4sTTETwHOSLnp YRKiGWJldc0aGpE4wF9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGpaQ-009TVJ-1l; Thu, 19 Aug 2021 21:28:30 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGpaJ-009TUD-LT for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 21:28:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PZ4KVDbl/9GWD08zzO5dDOjF6cwvUxc5mWY87GuLD+0=; b=u+AJaKQJ5svkGekR2Mv3LDRi8 wEw1Ax0LQSC2DHO68oeiU/EXZWCR8RWe1ag0O98yZEOTR0IXBC/TkjNVK9tX/Tzi1nv+syfyaZ8oa PiuF7pGUnlRmDetmSMm6+ZZL23axCVzGZWXroJQUQF8I+C4lVF8tJv0ZlffCvPcWlgn9WANdA9jZF An226sGRamW8+MzcLhb5PXVUMAu5WL3r2HF0mZpW8yoLi6BV+nFTMRIhNUwud1SIbNEL18WoErJZ7 IQdRNFntEWPX7l2I/3KuEwm9Vw1CJNTA96CDCKYiGM4oNL2cvY9I0ttStwjPP7Xdg26igrLUFOIqg rLtb78U5Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47458) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGpaG-0006Ml-92; Thu, 19 Aug 2021 22:28:20 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1mGpaF-0002i3-Pz; Thu, 19 Aug 2021 22:28:19 +0100 Date: Thu, 19 Aug 2021 22:28:19 +0100 From: "Russell King (Oracle)" To: Tim Harvey Cc: Linux ARM Mailing List Subject: Re: arm32 insecure W+X mapping Message-ID: <20210819212819.GM22278@shell.armlinux.org.uk> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210819_142823_819387_CA5B63AB X-CRM114-Status: GOOD ( 12.73 ) 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 Thu, Aug 19, 2021 at 10:19:46AM -0700, Tim Harvey wrote: > Greetings, > > Since commit a8e53c151fe7 "(ARM: 8737/1: mm: dump: add checking for > writable and executable)" I've been seeing the following appear on my > arm32 kernel: > > arm/mm: Found insecure W+X mapping at address 0xf087d000 > ... > Checked W+X mappings: FAILED, 1 W+X pages found > > As I haven't seen others report this I assume it's something unique to > my kernel configuration. How do I debug what is causing the insecure > page? If you check /proc/vmallocinfo, it should tell you the physical address that was mapped there, and the function that created the mapping. That should give enough clues to track it down. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel