mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Borislav Petkov <bp@alien8.de>
Cc: "Janusz Krzysztofik" <janusz.krzysztofik@linux.intel.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>,
	"Dave Hansen" <dave.hansen@linux.intel.com>,
	x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"David Hildenbrand" <david@redhat.com>,
	"Yu Zhao" <yuzhao@google.com>,
	linux-kernel@vger.kernel.org,
	"Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>,
	"Andi Shyti" <andi.shyti@linux.intel.com>,
	drm-intel@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Subject: Re: [RESUBMIT][PATCH] x86/mm: Fix PAT bit missing from page protection modify mask
Date: Fri, 2 Jun 2023 16:48:11 +0200	[thread overview]
Message-ID: <bd70e7b8-1971-6982-979a-ce1eb4c93465@suse.com> (raw)
In-Reply-To: <20230602144357.GCZHoALQjO+xx3YxAz@fat_crate.local>


[-- Attachment #1.1.1: Type: text/plain, Size: 685 bytes --]

On 02.06.23 16:43, Borislav Petkov wrote:
> On Thu, Jun 01, 2023 at 10:47:39AM +0200, Juergen Gross wrote:
>> As described in the commit message, this only works on bare metal due to the
>> PAT bit not being needed for WC mappings.
>>
>> Making this patch Xen specific would try to cure the symptoms without fixing
>> the underlying problem: _PAGE_PAT should be regarded the same way as the bits
>> for caching mode (_PAGE_CHG_MASK).
> 
> So why isn't _PAGE_PAT part of _PAGE_CHG_MASK?

This would result in problems for large pages: _PAGE_PSE is at the same
position as _PAGE_PAT (large pages are using _PAGE_PAT_LARGE instead).

Yes, x86 ABI is a mess.


Juergen


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

  reply	other threads:[~2023-06-02 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-19 18:36 Janusz Krzysztofik
2023-05-31  9:35 ` Andi Shyti
     [not found] ` <20230531181412.GFZHeOdMHIGOXB2hwL@fat_crate.local>
2023-06-01  8:47   ` Juergen Gross
2023-06-02 14:43     ` Borislav Petkov
2023-06-02 14:48       ` Juergen Gross [this message]
2023-06-02 14:53         ` Juergen Gross
2023-06-05 15:51           ` Janusz Krzysztofik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd70e7b8-1971-6982-979a-ce1eb4c93465@suse.com \
    --to=jgross@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi.shyti@linux.intel.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=david@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=drm-intel@lists.freedesktop.org \
    --cc=hpa@zytor.com \
    --cc=janusz.krzysztofik@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marmarek@invisiblethingslab.com \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    --cc=yuzhao@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®