All of lore.kernel.org
 help / color / mirror / Atom feed
* kfence_protect_page() writing L1TF vulnerable PTE
@ 2022-12-11 12:15 Juergen Gross
  2022-12-11 21:34 ` Demi Marie Obenour
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Gross @ 2022-12-11 12:15 UTC (permalink / raw)
  To: Alexander Potapenko, Marco Elver
  Cc: kasan-dev, xen-devel@lists.xenproject.org,
	Marek Marczykowski-Górecki, Demi Marie Obenour


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

During tests with QubesOS a problem was found which seemed to be related
to kfence_protect_page() writing a L1TF vulnerable page table entry [1].

Looking into the function I'm seeing:

	set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT));

I don't think this can be correct, as keeping the PFN unmodified and
just removing the _PAGE_PRESENT bit is wrong regarding L1TF.

There should be at least the highest PFN bit set in order to be L1TF
safe.


Juergen

[1]: https://github.com/QubesOS/qubes-issues/issues/7935

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-12  5:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-11 12:15 kfence_protect_page() writing L1TF vulnerable PTE Juergen Gross
2022-12-11 21:34 ` Demi Marie Obenour
2022-12-11 22:50   ` Marco Elver
2022-12-12  4:55     ` Demi Marie Obenour
2022-12-12  5:19       ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.