Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbdLALck (ORCPT ); Fri, 1 Dec 2017 06:32:40 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:39546 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751936AbdLALcj (ORCPT ); Fri, 1 Dec 2017 06:32:39 -0500 X-Google-Smtp-Source: AGs4zMb0x5WK71jq2I6l2cnhkRQNyShna5gmloq6y3Pug79lmuGFw2xDjhm/8sPR8l6sD1lT1UOcpg== Date: Fri, 1 Dec 2017 20:32:31 +0900 From: Jinbum Park To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Cc: afzal.mohd.ma@gmail.com, mark.rutland@arm.com, labbott@redhat.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, keescook@chromium.org, vladimir.murzin@arm.com, arnd@arndb.de Subject: [kernel-hardening][PATCH v2 0/3] arm: Makes ptdump resuable and add WX page checking Message-ID: <20171201113231.GA5164@pjb1027-Latitude-E5410> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1051 Lines: 32 Hi, Page table dumping code for arm64-x86 is reusable, and they have function for WX page checking. But arm doesn't have that. This path series are to makes ptdump reusable, and add WX page checking for arm. This is heavily based on arm64 version. v2 : Fix a sender name of mail header, there was an mistake. (from "jinb.park" to Jinbum Park) Contents of patch-set are perfectly same. Jinbum Park (3): arm: mm: dump: make page table dumping reusable arm: mm: dump: make the page table dumping seq_file optional arm: mm: dump: add checking for writable and executable pages arch/arm/Kconfig.debug | 33 +++++++- arch/arm/include/asm/ptdump.h | 56 ++++++++++++++ arch/arm/mm/Makefile | 3 +- arch/arm/mm/dump.c | 171 +++++++++++++++++++++++++++++++----------- arch/arm/mm/init.c | 2 + arch/arm/mm/ptdump_debugfs.c | 34 +++++++++ 6 files changed, 253 insertions(+), 46 deletions(-) create mode 100644 arch/arm/include/asm/ptdump.h create mode 100644 arch/arm/mm/ptdump_debugfs.c -- 1.9.1