From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 036FDC4338F for ; Wed, 4 Aug 2021 05:01:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CDE9360725 for ; Wed, 4 Aug 2021 05:01:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235047AbhHDFBV (ORCPT ); Wed, 4 Aug 2021 01:01:21 -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