From patchwork Tue Aug 13 09:01:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 11091527 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 281A0746 for ; Tue, 13 Aug 2019 09:02:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16B4428607 for ; Tue, 13 Aug 2019 09:02:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A9BA28617; Tue, 13 Aug 2019 09:02:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B0C7628607 for ; Tue, 13 Aug 2019 09:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X4wbT6Sbti0qDy+3uwQb+PDgbn52p+7BXkLxnptGqKE=; b=ucnl5oiNooh9nY JQuOZB98R2u5cGdyP3xsZnvi5l+J0D9AUWipLDPrl1/0VeIq+hNtGxaH459I+uqNw6qqRtzuw0z/J 3wLO4P+pwyb8OZpbldvyyIwtd1WHdy0R/kSw/DGTGeG+8gCJqq3oVgHjjKJqHts6ppTPfftlAEqfe lgvzxQp07h9/RhQP00gBW8BC/MMJwtRHX04xhRUa7LMU/8APMWZ/1MJyJwdt83vv0i4OIBeWrgrDw bXwdeFJqLtzTJ0y56aqOoA8xLzLbc33SInhRxhcAZvzAR9oI+fDCHEzv3GqNXfdSKQZe7r05CtwcV 7rSJP2YLjl5gfNJYO8jQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxSh1-0006bP-48; Tue, 13 Aug 2019 09:02:11 +0000 Received: from [2001:4bb8:180:1ec3:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hxSgj-0006Ox-70; Tue, 13 Aug 2019 09:01:53 +0000 From: Christoph Hellwig To: Catalin Marinas , Will Deacon , x86@kernel.org Subject: [PATCH 1/6] arm64: unexport set_memory_x and set_memory_nx Date: Tue, 13 Aug 2019 11:01:41 +0200 Message-Id: <20190813090146.26377-2-hch@lst.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190813090146.26377-1-hch@lst.de> References: <20190813090146.26377-1-hch@lst.de> MIME-Version: 1.0 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: , Cc: Peter Zijlstra , Dave Hansen , linux-arm-kernel@lists.infradead.org, Andy Lutomirski , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP No module currently messed with clearing or setting the execute permission of kernel memory, and none really should. Signed-off-by: Christoph Hellwig --- arch/arm64/mm/pageattr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/mm/pageattr.c b/arch/arm64/mm/pageattr.c index 03c53f16ee77..9ce7bd9d4d9c 100644 --- a/arch/arm64/mm/pageattr.c +++ b/arch/arm64/mm/pageattr.c @@ -128,7 +128,6 @@ int set_memory_nx(unsigned long addr, int numpages) __pgprot(PTE_PXN), __pgprot(0)); } -EXPORT_SYMBOL_GPL(set_memory_nx); int set_memory_x(unsigned long addr, int numpages) { @@ -136,7 +135,6 @@ int set_memory_x(unsigned long addr, int numpages) __pgprot(0), __pgprot(PTE_PXN)); } -EXPORT_SYMBOL_GPL(set_memory_x); int set_memory_valid(unsigned long addr, int numpages, int enable) {