aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <[email protected]>2021-04-08 09:29:24 +0000
committerBorislav Petkov <[email protected]>2021-04-08 15:24:42 +0000
commitae40aaf6bdbf0354a75b8284a0de453fcf5f4d32 (patch)
tree91c9a64b5e7a597003f0290cccc37293f91517c6 /lib/dynamic_debug.c
parentx86/sgx: Move provisioning device creation out of SGX driver (diff)
downloadkernel-ae40aaf6bdbf0354a75b8284a0de453fcf5f4d32.tar.gz
kernel-ae40aaf6bdbf0354a75b8284a0de453fcf5f4d32.zip
x86/sgx: Do not update sgx_nr_free_pages in sgx_setup_epc_section()
The commit in Fixes: changed the SGX EPC page sanitization to end up in sgx_free_epc_page() which puts clean and sanitized pages on the free list. This was done for the reason that it is best to keep the logic to assign available-for-use EPC pages to the correct NUMA lists in a single location. sgx_nr_free_pages is also incremented by sgx_free_epc_pages() but those pages which are being added there per EPC section do not belong to the free list yet because they haven't been sanitized yet - they land on the dirty list first and the sanitization happens later when ksgxd starts massaging them. So remove that addition there and have sgx_free_epc_page() do that solely. [ bp: Sanitize commit message too. ] Fixes: 51ab30eb2ad4 ("x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list") Signed-off-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions