Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4529217rwj; Tue, 20 Dec 2022 11:19:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf41D20hhQHDwIe6Rz7pA0bIgjMmpzwcWk+7BI0RXs4NRRXLImRSzME1AwN27xN/CRI/HSYR X-Received: by 2002:a17:902:7603:b0:18f:f3e4:3912 with SMTP id k3-20020a170902760300b0018ff3e43912mr34488785pll.34.1671563995649; Tue, 20 Dec 2022 11:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671563995; cv=none; d=google.com; s=arc-20160816; b=vek1fY/V6AcUgr3jTQkfWSMJVx80iG6fMtniDNTm4rQHsdMFd9PzMFuT1qgTNGOcSX +XL4jqoTu3IEkn7DqApj5eHa9/c6sJIA8tI2rXP/0UPJgRzdm1mtpv54z0NW9B149jIZ Ph2TbKAjpM+d+fB7QyeptnhryawWifCtG7bo81j4/HBBNdjseC8avXDO9I7BDlDPRQWz EhYTwfpaowOIdwUmmLB/uOutEPwjOeAUuPpQMRzhs6wd2Bqt5tjxUu5dBMREfIun7AJt b5AGi4qm7KgGRmuSAbbmAonthx6fVxleL2McUrbUN0WIv5CjdvRWKDvHizU/yIzYCG4u QORg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zottXoJ/NEKpHsW/kd7TgYecyr34sKhq/L0t7TIzFDc=; b=hWf59dt4If6sRBgjn9b216t4HKLMNbJQstyfBx5UG1zkBSFtKOhylluUqE7NqLfn/a rQRCNE/e/H4sShIn/SvBllnCoHyqvhO5FaBhdOEBBhO+zqhKuSNNqM+L9N/19vYxR3dV xFzM+scGeqgzuguF3QD8ueaC9DOzvqu6NAJFapKbYzzgLI9LuNo/iDG31naiEh+RoKh4 QUNFcMXU2kCAVefCs08pjNM7NPDW2L5Gdy/dE9CVhaL5xLifD6XZWgUXHhhYCDLQLELB z6ZhliyaRiJTLkhNyFfUQWlelVq6XwpHSwZOu0eIAyAwczuynAYgbrLZb0OQobifeGBw 4gLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Yht1hyw3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a170902b60300b001890c6ff018si13674087pls.486.2022.12.20.11.19.46; Tue, 20 Dec 2022 11:19:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Yht1hyw3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234001AbiLTTMJ (ORCPT + 68 others); Tue, 20 Dec 2022 14:12:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiLTTMG (ORCPT ); Tue, 20 Dec 2022 14:12:06 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61037E006; Tue, 20 Dec 2022 11:12:05 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 812AF1EC0518; Tue, 20 Dec 2022 20:12:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1671563523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=zottXoJ/NEKpHsW/kd7TgYecyr34sKhq/L0t7TIzFDc=; b=Yht1hyw3SPwhLbr1jN7iM7vkbPRNoFAZnpsrsXf4hIVQnP9d6VPHdtXWUhkace+7M+Ikm+ I+9vCO1PbUle6DpXPFPyV4kfN0BR8EeUHgxRBlWc+s4GpQZqDSQ27I9Ev3850pVGZLuQzL zZRkKeJdaxU00wQNnf9iSZVbCdRq7IQ= Date: Tue, 20 Dec 2022 20:11:59 +0100 From: Borislav Petkov To: Rick Edgecombe Cc: x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , Weijiang Yang , "Kirill A . Shutemov" , John Allen , kcc@google.com, eranian@google.com, rppt@kernel.org, jamorris@linux.microsoft.com, dethoma@microsoft.com, akpm@linux-foundation.org, Andrew.Cooper3@citrix.com, christina.schimpe@intel.com, Yu-cheng Yu , Christoph Hellwig Subject: Re: [PATCH v4 08/39] x86/mm: Remove _PAGE_DIRTY from kernel RO pages Message-ID: References: <20221203003606.6838-1-rick.p.edgecombe@intel.com> <20221203003606.6838-9-rick.p.edgecombe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20221203003606.6838-9-rick.p.edgecombe@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just typos and spelling fixes: On Fri, Dec 02, 2022 at 04:35:35PM -0800, Rick Edgecombe wrote: > From: Yu-cheng Yu > > New processors that support Shadow Stack regard Write=0,Dirty=1 PTEs as > shadow stack pages. > > In normal cases, it can be helpful to create Write=1 PTEs as also Dirty=1 > if HW dirty tracking is not needed, because if the Dirty bit is not already > set the CPU has to set Dirty=1 when it the memory gets written to. This s/it // > creates addiontal work for the CPU. "additional" > So tradional wisdom was to simply set Unknown word [tradional] in commit message. Suggestions: ['traditional', ... > the Dirty bit whenever you didn't care about it. However, it was never > really very helpful for read only kernel memory. read-only > When CR4.CET=1 and IA32_S_CET.SH_STK_EN=1, some instructions can write to > such supervisor memory. The kernel does not set IA32_S_CET.SH_STK_EN, so > avoiding kernel Write=0,Dirty=1 memory is not strictly needed for any > functional reason. But having Write=0,Dirty=1 kernel memory doesn't have > any functional benefit either, so to reduce ambiguity between shadow stack > and regular Write=0 pages, removed Dirty=1 from any kernel Write=0 PTEs. s/removed/remove/ -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette