]> xenbits.xensource.com Git - xen.git/commit
x86/mm: add speculation barriers to open coded locks
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 4 Mar 2024 17:08:48 +0000 (18:08 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 12 Mar 2024 16:26:39 +0000 (16:26 +0000)
commit41d93be76611704bdc73e8fe71c251a6f1da114c
tree5cb91bc4d19381743d89659e5ddbfec8174e357f
parentdd55a2e6816aa3f0b753385073a5eade5f773d2c
x86/mm: add speculation barriers to open coded locks

Add a speculation barrier to the clearly identified open-coded lock taking
functions.

Note that the memory sharing page_lock() replacement (_page_lock()) is left
as-is, as the code is experimental and not security supported.

This is part of XSA-453 / CVE-2024-2193

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 42a572a38e22a97d86a4b648a22597628d5b42e4)
xen/arch/x86/mm.c
xen/include/asm-x86/mm.h