From patchwork Mon May 11 06:28:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 11539759 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 3DF6B159A for ; Mon, 11 May 2020 06:28:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 0A7F720708 for ; Mon, 11 May 2020 06:28:32 +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="KVR/4mWd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0A7F720708 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 7764C900003; Mon, 11 May 2020 02:28:30 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 726B78E0001; Mon, 11 May 2020 02:28:30 -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 59EDD900003; Mon, 11 May 2020 02:28:30 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0113.hostedemail.com [216.40.44.113]) by kanga.kvack.org (Postfix) with ESMTP id 41C768E0001 for ; Mon, 11 May 2020 02:28:30 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id D1DDB8248047 for ; Mon, 11 May 2020 06:28:29 +0000 (UTC) X-FDA: 76803459138.23.fork68_4a23007323025 X-Spam-Summary: 2,0,0,5098bc6656da5e29,d41d8cd98f00b204,zong.li@sifive.com,,RULES_HIT:41:355:379:541:800:960:973:982:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1539:1711:1714:1730:1747:1777:1792:2393:2559:2562:2693:2894:3138:3139:3140:3141:3142:3350:3865:3866:3870:3871:5007:6261:6653:8784:10004:11232:11658:11914:12296:12297:12517:12519:12555:12895:13069:13095:13311:13357:13894:14181:14384:14394:14721:21080:21433:21444:21627:21939:30029:30054:30070,0,RBL:209.85.216.66:@sifive.com:.lbl8.mailshell.net-66.100.201.201 62.2.0.100,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:26,LUA_SUMMARY:none X-HE-Tag: fork68_4a23007323025 X-Filterd-Recvd-Size: 3651 Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Mon, 11 May 2020 06:28:29 +0000 (UTC) Received: by mail-pj1-f66.google.com with SMTP id a5so7347050pjh.2 for ; Sun, 10 May 2020 23:28:29 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=24++CivPXE8fBvBos0NVNWFy2GmB83U0HnUkCj+M+o8=; b=KVR/4mWdqwJpQHob/TYk74A1WMBuMPqPOYFObOiTpdCy2zF3Fp1iMg87RWDKMgtKQJ ofd0XbRm9kl3hCuBGmLNf8XANJlcPRR6lDRcX4H4GGCRjA2VRqXxnhfbbkOCl7atusgt BHmiSD3YmQmiZgkoJ3RFiHcmwiDCyFzMyOCAPNvwLoooWQdCKDvNcEgAr+2Yfo1Q/3us NKo2SKByxk0Wibi+kaN3bRMGxAC0b0mQFqzg/Iu2q4dLI1Lq96EuIi2NFiVryqpnwTQW HTu48lTSI8GaNv4XBKrH6slifMP4c6KRZ4CAa4r2PPRmbueyGAaHmX+5Eo/kRWJ8Kx/X Ul1Q== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=24++CivPXE8fBvBos0NVNWFy2GmB83U0HnUkCj+M+o8=; b=eZZfinhOwOK8d9rnlmSJf+tegXz1ioPdOy36sewoQ5KjCn5izNZ+YM8rDNcg5RRnOI oJfBLmjp1KgyKjbd3kwglBBG3tFE8GpycR+NSgU/PVKArD/jIWsKIWqFo95ZUGJylXWD FWuHHBlMvMffH3bzD+Hn0ZFjIpISKB3DKtPcAUM74ePb/G0LoZj6Ooh0SQ87ldX8CSS8 BwaZvkRiOkDJb32LEPFXxC3t5NqPDQlu95Clo+Qkv57fx6lbU6ueSDltcJvJWSSh2KUi gv4k/ymSxSSfoeLFj7oZyzzO+NUelJRcoVqOyysoPe2Yrh6lvH6fS9eh5zuhx9DO+6Jq WGTA== X-Gm-Message-State: AGi0PuaYnDhO7muvs1xXhRlH/BUwPUlHLZc1sVftpNbWSUBmn2+DCYBY 9kuM1QCflsN8+8a8qAm0G5sIhg== X-Google-Smtp-Source: APiQypKAox9LvCH+V2CF16w07BkS47nQx+kio2NAvZWt8LOA4/QXf/llrtpA/r5sbzWwGQbPvldPlA== X-Received: by 2002:a17:90a:3509:: with SMTP id q9mr20591776pjb.121.1589178508479; Sun, 10 May 2020 23:28:28 -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 j63sm5179558pge.76.2020.05.10.23.28.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 23:28:27 -0700 (PDT) From: Zong Li To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Zong Li , Will Deacon Subject: [PATCH 1/2] mm: remove the specific name of arm64 Date: Mon, 11 May 2020 14:28:19 +0800 Message-Id: <3a6a92ecedc54e1d0fc941398e63d504c2cd5611.1589178399.git.zong.li@sifive.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.027088, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: UXN is the name of arm64 page-table descriptors. Signed-off-by: Zong Li CC: Will Deacon Acked-by: Will Deacon --- mm/Kconfig.debug | 2 -- 1 file changed, 2 deletions(-) diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index e19f94c6df90..b8cbe035247f 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -130,8 +130,6 @@ config DEBUG_WX This is useful for discovering cases where the kernel is leaving W+X mappings after applying NX, as such mappings are a security risk. - This check also includes UXN, which should be set on all kernel - mappings. Look for a message in dmesg output like this: From patchwork Mon May 11 06:28:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 11539761 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 A241D912 for ; Mon, 11 May 2020 06:28:34 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6EBB2206B8 for ; Mon, 11 May 2020 06:28:34 +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="A24qyFSB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6EBB2206B8 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 94B218E0001; Mon, 11 May 2020 02:28:31 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 9230C900006; Mon, 11 May 2020 02:28:31 -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 8398C8E000E; Mon, 11 May 2020 02:28:31 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0143.hostedemail.com [216.40.44.143]) by kanga.kvack.org (Postfix) with ESMTP id 6C2608E0001 for ; Mon, 11 May 2020 02:28:31 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 204B7180AD811 for ; Mon, 11 May 2020 06:28:31 +0000 (UTC) X-FDA: 76803459222.21.coil16_4a56919ead207 X-Spam-Summary: 2,0,0,c912e0a27e00a533,d41d8cd98f00b204,zong.li@sifive.com,,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1311:1314:1345:1359:1437:1515:1534:1539:1568:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3740:3872:3876:4250:4321:5007:6261:6653:10004:11026:11473:11658:11914:12296:12297:12517:12519:12555:12895:12986:13069:13221:13229:13311:13357:13894:14181:14384:14394:14721:21080:21444:21451:21627:30054:30064,0,RBL:209.85.214.169:@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:22,LUA_SUMMARY:none X-HE-Tag: coil16_4a56919ead207 X-Filterd-Recvd-Size: 3644 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Mon, 11 May 2020 06:28:30 +0000 (UTC) Received: by mail-pl1-f169.google.com with SMTP id k19so3508887pll.9 for ; Sun, 10 May 2020 23:28:30 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=3hw7W11s3UbHTXMwi4d3Emxm52KAS85qy3o8wSco/FQ=; b=A24qyFSBnJlVW10vJD/OsHYNVsGAKGxT6IKCsDcV77ZIUGy3cUz90TaIn1VZHKmXN9 1cNA7LK7GVLu2mQRsL49Jr6QUuiZUIXMbv/3prsNPJc8kemOmuUgCeQ6MfnaO7HJ+Jo9 ckq9i7clpAaHESR+4C2QsAdO2tfolYvRwl5KoiWAZclkXTfe0UMX9JZkWEnd16WprXgD KISvrEDl5FObBxwW3M7SlTNB1B9fAk3p1FIloGl1e2ut/3B1ZesgxAWWGlFraT3PG8NX 5MD8aMCDJxK0vQdeEZjCUBnTsB0sGOFHW7PVhHwc6HyFJD5gv2Qj/F0vQKnUf/Wt8cfV IAZw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3hw7W11s3UbHTXMwi4d3Emxm52KAS85qy3o8wSco/FQ=; b=okXbOSNNMYb/7byYcXQCxrhdQkeUcw010jb9ZILgr+fFLvzrdS39xVd854J08cNbJU a1fhnCwROB8hPDLe+YHymxpmjUye85Lhzgv2yrfkQf3ZnSZT0jYSqSEJcQGYKijU9ceH H/H6xQDru+gwaRf1TmJoFfmYlj1MfsKSNeR9BJ1mtIbeg78gQ0eOQm4EyGWQKI9X7Aoj lMwZfYdBZ7qx5SH9BRJF3s6vYDAILE6km5bGdhNU+7LK9ygKTJRXAU8EAPOLS6fnDikY 77i/RzrxFKtQekqtE1TnC98rr9lKPitxYriufLnmoXEA1c95Drq1OSYKIssQ0toulmvE V2gA== X-Gm-Message-State: AGi0PuZi3iNbwp2vUETl2KpEr5Q+cg/UHRrCBMXVmEUkOlm8lOZ4FXZp 9ByoVxjmxEseIIeRiMSlbWHcQBx5Vuc= X-Google-Smtp-Source: APiQypLoz0Tpjdb7pZxLrrNwuO1H2peG9xW14xrRtIbvRe+teZpWvfo7fCkB5fZoR4yart+YnD9qMg== X-Received: by 2002:a17:90b:78e:: with SMTP id l14mr20777973pjz.144.1589178510039; Sun, 10 May 2020 23:28:30 -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 j63sm5179558pge.76.2020.05.10.23.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 23:28:29 -0700 (PDT) From: Zong Li To: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Zong Li , kbuild test robot Subject: [PATCH 2/2] mm: add MMU dependency for DEBUG_WX Date: Mon, 11 May 2020 14:28:20 +0800 Message-Id: <4a674ac7863ff39ca91847b10e51209771f99416.1589178399.git.zong.li@sifive.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: 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: DEBUG_WX should be enabled on MMU system. It had got build error when enabling DEBUG_WX on NOMMU. Signed-off-by: Zong Li Reported-by: kbuild test robot --- mm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/Kconfig.debug b/mm/Kconfig.debug index b8cbe035247f..2409f7fc1567 100644 --- a/mm/Kconfig.debug +++ b/mm/Kconfig.debug @@ -124,6 +124,7 @@ config ARCH_HAS_DEBUG_WX config DEBUG_WX bool "Warn on W+X mappings at boot" depends on ARCH_HAS_DEBUG_WX + depends on MMU select PTDUMP_CORE help Generate a warning if any W+X mappings are found at boot.