Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1933263imm; Sun, 27 May 2018 20:58:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrNTkrDc4xXIZsbFcu/tPpILxnaBfY04gefFFnOXYsMRuUZtDmrVWQ35Bv2MgZJqNL1UAER X-Received: by 2002:a62:d286:: with SMTP id c128-v6mr11968246pfg.240.1527479938540; Sun, 27 May 2018 20:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527479938; cv=none; d=google.com; s=arc-20160816; b=X+sShSO6/X5Wfzr2+T8AmmpzHN+zxkNbNrKcUa3NwjY4OnQvX4P11sxzHI0p1QvFgc eZNQje11Mx9NBFlbnYSoJu12AW9AxUG7tMti9yIck/UbtJm9LbWWWd0B/BJETCpgIbzV c9em5KnR+qrkwmqnO12Q5zW9/LhFq/NeB6OmO9QzNsoeVACk0+Emq3UbQP7gJKtXboXP VV+zN9mn/s6DUYwbKw9uivWPLllNyREBmeTwtglvWbD+pISPfzy5gXE+HeqaNBUXVbcG skhcciCB+88Lt32d4qLnD1PZBeQdUVgtltrXyHQvoik5PZsOm/9dWFREkMEY9wx58BnH m8Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=k56HVrx8qYWZ1aqBHoDzRA7LmdcLYGcezhrawVmSvuo=; b=yNbKaFVaZ459SUBmDLBvHiUWnlTIu10JZCjWGzIgUo/FJrdMmbwhuGEJQo/JaR1GkL KIG6aSOM35waaCmut7KCvkKqvaiQXfTecli9PJl0w91j8zlZv4Thxpk6roAToRmcgYHT d1YLisvjSYB9FXvTDSchKQ1Z1gJoAVvlk6j4/wm8UcgkgkQNsbD2UGmX8xuAK8mp5i7z im4sFAK+suU49JESWr0dSLFM/sK/QiEDruQDPQyISCGqx9RBon51clNgtgG7nLSeVWml 6lcNYzgdp6C2wygNga35/M8nuzpOhUAc2bremSDLDrrQ5mRQgi9S/wXZAYqTUGhmbSE6 OmlQ== ARC-Authentication-Results: i=1; mx.google.com; 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 a6-v6si29333856plp.175.2018.05.27.20.58.43; Sun, 27 May 2018 20:58:58 -0700 (PDT) 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; 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 S1753156AbeE1D52 (ORCPT + 99 others); Sun, 27 May 2018 23:57:28 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:8189 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753118AbeE1D51 (ORCPT ); Sun, 27 May 2018 23:57:27 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C93FF8F687F5D; Mon, 28 May 2018 11:57:10 +0800 (CST) Received: from linux-work.huawei.com (10.67.189.174) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.382.0; Mon, 28 May 2018 11:57:01 +0800 From: nixiaoming To: , , , , , , CC: , , Subject: [PATCH 1/3] arm64:add missing CONFIG_STRICT_KERNEL_RWX for mark_rodata_ro Date: Mon, 28 May 2018 11:33:53 +0800 Message-ID: <20180528033353.54725-1-nixiaoming@huawei.com> X-Mailer: git-send-email 2.10.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.189.174] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: nixiaoming --- arch/arm64/mm/mmu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c index 2dbb2c9..849f326 100644 --- a/arch/arm64/mm/mmu.c +++ b/arch/arm64/mm/mmu.c @@ -491,6 +491,7 @@ static void __init map_mem(pgd_t *pgdp) #endif } +#ifdef CONFIG_STRICT_KERNEL_RWX void mark_rodata_ro(void) { unsigned long section_size; @@ -505,6 +506,7 @@ void mark_rodata_ro(void) debug_checkwx(); } +#endif static void __init map_kernel_segment(pgd_t *pgdp, void *va_start, void *va_end, pgprot_t prot, struct vm_struct *vma, -- 2.10.1