From patchwork Tue Apr 21 08:17:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 11500785 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B8641392 for ; Tue, 21 Apr 2020 08:17:28 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2884620B1F for ; Tue, 21 Apr 2020 08:17:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="maGq02Kd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2884620B1F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4634E8E0005; Tue, 21 Apr 2020 04:17:27 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 413338E0003; Tue, 21 Apr 2020 04:17:27 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 328668E0005; Tue, 21 Apr 2020 04:17:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 1F1098E0003 for ; Tue, 21 Apr 2020 04:17:27 -0400 (EDT) Received: from smtpin14.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id D2ECE180AD81F for ; Tue, 21 Apr 2020 08:17:26 +0000 (UTC) X-FDA: 76731157692.14.water26_6c32e7ef5224 X-Spam-Summary: 2,0,0,b1a38ed69f236e65,d41d8cd98f00b204,zong.li@sifive.com,,RULES_HIT:41:69:355:379:541:988:989:1260:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:1981:2194:2199:2393:2559:2562:2894:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3872:4250:4605:5007:6119:6261:6653:6737:7875:10004:11026:11473:11658:11914:12043:12048:12291:12296:12297:12517:12519:12679:12683:12895:13069:13311:13357:13894:14095:14096:14181:14384:14394:14721:21080:21220:21444:21451:21627:30054:30089,0,RBL:209.85.216.68:@sifive.com:.lbl8.mailshell.net-62.2.0.100 66.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: water26_6c32e7ef5224 X-Filterd-Recvd-Size: 4116 Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by imf05.hostedemail.com (Postfix) with ESMTP for ; Tue, 21 Apr 2020 08:17:26 +0000 (UTC) Received: by mail-pj1-f68.google.com with SMTP id hi11so1054841pjb.3 for ; Tue, 21 Apr 2020 01:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fIbpi7O6WJugTXFmCQCTQurXX9axhW0Esg76IWWTzRM=; b=maGq02KdAVVk27vQzcEjc+9Aj6eXZN5V2r9JEffWU+jLG6K5d3N6SCP/HPXtkbM6AK RhIjAxrGcbKW+dxQcT37HVZbsVXOjfjTQmpLWjKW209TaIKpir/7hJPTkkBmCv3Rfcls Md48rNfmNv79Zp4dZ//dMeuzz0fSSFNgW57QglHqXwr3A1P3Xk0/wcC0wb6mJa4hkW37 c05pY5whmZVrBy3NEhbbYVPdXi5F6QCxP3xEheuk3vt5UkgEocij/Srp/xIeqjVJCj5+ gS5hzy/yP4GJRnptmpCjpcdIj8LFjzEWpsJv9d+HgnD8+ovaGjhh0AH59EP3jfZtHWP/ 6/zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=fIbpi7O6WJugTXFmCQCTQurXX9axhW0Esg76IWWTzRM=; b=kYN9sYHEequFXzT9HINHBczbCP9No/vQGiNHxt4kB4c0cTcR9m9usHRHvwTE5XkB5F BGnBXiA1g5jsYZbkqAOCMaTolxgwauZXyd9yDHCr9fke1Hghpyjg0okN+a/uMeQrfPTS QJ+PKojvxTfIC9dlVaKYnKal+ahYApyWkfaeHmGQGQ1Y5JP5kxwmcFBuXydihcbIyXs0 K07XPqpecNc9gPk5u2mH8Z7bzfxt4nN4/iCIXkn+ZxszV5AR/gRi+QBiSVxzvY+16XtF xrstJeW9I7ZNrjEHWVlVdx50tT/CwrN0gdw+9Xlu3Qn3274V9U4lqigymWeInNTPzusY FTbw== X-Gm-Message-State: AGi0PuZ5OL60RdT6eHekwJEeUeiJOnmI6JBqM10yoFPB2eW/d6A9+P2x r6cVilfUEFp0lBF7B9TQucO0iQ== X-Google-Smtp-Source: APiQypLLHyb++yTAlD6wehS7jB/h9oebLCuGheJNM864LJqIFw1n0PbffrUmSWn8iBeylKnoopk9/Q== X-Received: by 2002:a17:90a:498a:: with SMTP id d10mr4369781pjh.194.1587457045415; Tue, 21 Apr 2020 01:17:25 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id v9sm1610067pju.3.2020.04.21.01.17.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 01:17:24 -0700 (PDT) From: Zong Li To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, linux-riscv@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, hpa@zytor.com, catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org Cc: Zong Li Subject: [PATCH 0/4] Extract DEBUG_WX to shared use. Date: Tue, 21 Apr 2020 16:17:11 +0800 Message-Id: X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Some architectures support DEBUG_WX function, it's verbatim from each others, so extract to mm/Kconfig.debug for shared use. PPC and ARM ports don't support generic page dumper yet, so we only refine x86 and arm64 port in this patch series. For RISC-V port, the DEBUG_WX support depends on other patches which be merged already: - RISC-V page table dumper - Support strict kernel memory permissions for security Zong Li (4): mm: add DEBUG_WX support riscv: support DEBUG_WX x86: mm: use ARCH_HAS_DEBUG_WX instead of arch defined arm64: mm: use ARCH_HAS_DEBUG_WX instead of arch defined arch/arm64/Kconfig | 1 + arch/arm64/Kconfig.debug | 29 ----------------------------- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/ptdump.h | 6 ++++++ arch/riscv/mm/init.c | 3 +++ arch/x86/Kconfig | 1 + arch/x86/Kconfig.debug | 27 --------------------------- mm/Kconfig.debug | 33 +++++++++++++++++++++++++++++++++ 8 files changed, 45 insertions(+), 56 deletions(-)