Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2985666pxy; Tue, 3 Aug 2021 22:27:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9cfgULFqEOwMPal9Diwsn8t5owinpKrHl1+zJPVk0bungqSWJ/GSECtEcq1Lzvjx7IXYV X-Received: by 2002:a17:906:c251:: with SMTP id bl17mr24252456ejb.219.1628054834113; Tue, 03 Aug 2021 22:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628054834; cv=none; d=google.com; s=arc-20160816; b=ButOUYzHhlWUcVbC3Ihlp2OgrHzKrWJnmuM77BPRwnWQrS5FFsBRGGDVM2CWxOC9+r eZYOWpnmPAZbivuaCTsEV+WXUkVh75n1eojBIhv6busq31XkKgrWqrl+uZW7t8bw3Msl Zx/AO8fi3+H1+BE2nsLUuhHnPyNeoDXIPl1xAm4+919BFGsz4n4Tpzr+8kvWFSEJLhuY QNFx/uSqkeJSV24dHBSRnSPXrL+yKPQZZrY3pfqRmVO6zBQ2xnNvKJ26z13Wsyb3O8+X 0Gm5v2uAQgHm6ZmN1vkjy+yUwV2DljUewiT44JByPBNRUc2i0Gb7IWdGAP7le8Q8ADvZ uRFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Mtg1AswyFwxPF9X4tI9/jd6V3tatlrDW5m8cofHfWUw=; b=i/1DWw1BkOH+/86lfPR4RgJp9cehFC6ovVP7vImLVl3Atgaogwt3yJ3Jl43RAbbUV8 r2Ft25XiNkaeAhAahwl4DU1Z8BcPzjiLmDcGPWyel40bB8Qh7cD5wDiXNZvI3cNcmzxt g0Y1InzO3/qUMnoGx78ZJJnSl4Kd5SCaSqtY3E2UfK6+rLkTz+s81HQqiSYY2kcxWnmj qtTn/HXS/Dqs8Mv6MxG4QysFRGXxfNf7ECaoVIto4TxsnaY0gvFddVsA9qScPga7xCE9 DvrnVtsmPDT2NbpRxFJmME9nWFRTX1ZRaPe3stwzAcVCSUbGVoSsVf916NA7DKIVdPk/ 9s3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dlkbK9YG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w23si1176993eds.49.2021.08.03.22.26.50; Tue, 03 Aug 2021 22:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=dlkbK9YG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235031AbhHDFBU (ORCPT + 99 others); Wed, 4 Aug 2021 01:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234841AbhHDE7P (ORCPT ); Wed, 4 Aug 2021 00:59:15 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFC39C061799 for ; Tue, 3 Aug 2021 21:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=Mtg1AswyFwxPF9X4tI9/jd6V3tatlrDW5m8cofHfWUw=; b=dlkbK9YGk8If6axFFQUH5ic4HF M67pvhar+aIIvNjcQLF87r/U8ZbOp0VYZRifD2yT6ohRQy2Q7Fee4unLa9NMbn1VJbbtlqkJHyXRg iGB91UPIMYBQr/QJXGpCYBSNl/bGJBpS4z8WGm7SYlA/k05vu2pcoC4qn2+hXp1l42zkKxQ5fS8sh xKinMbclqQw8loUpxNOBwJ4QfHcsHY+SUmYffLA4nAZHX7XCGXEI6XJhLfcT5E57XhjHWUOePLqjz qWyA7bAWUbL1OU5kPWrYM6WugfRutbFgzXWZh12mjew9H1zgaXlEXGrEmW4jeNq54C15klUAYqmK+ YYlkka7w==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mB8yI-005QJb-4e; Wed, 04 Aug 2021 04:57:43 +0000 Subject: Re: [PATCH V7 14/18] memremap_pages: Add memremap.pks_fault_mode To: ira.weiny@intel.com, Dave Hansen , Dan Williams Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , "H. Peter Anvin" , Fenghua Yu , Rick Edgecombe , x86@kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-mm@kvack.org References: <20210804043231.2655537-1-ira.weiny@intel.com> <20210804043231.2655537-15-ira.weiny@intel.com> From: Randy Dunlap Message-ID: <2bbd7ce2-8d16-8724-5505-96a4731c3c45@infradead.org> Date: Tue, 3 Aug 2021 21:57:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210804043231.2655537-15-ira.weiny@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/3/21 9:32 PM, ira.weiny@intel.com wrote: > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index bdb22006f713..7902fce7f1da 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -4081,6 +4081,20 @@ > pirq= [SMP,APIC] Manual mp-table setup > See Documentation/x86/i386/IO-APIC.rst. > > + memremap.pks_fault_mode= [X86] Control the behavior of page map > + protection violations. Violations may not be an actual > + use of the memory but simply an attempt to map it in an > + incompatible way. > + (depends on CONFIG_DEVMAP_ACCESS_PROTECTION Missing closing ')' above. > + > + Format: { relaxed | strict } > + > + relaxed - Print a warning, disable the protection and > + continue execution. > + strict - Stop kernel execution via BUG_ON or fault > + > + default: relaxed > + -- ~Randy