Fixes and updates for v23
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest17 patches 19 repliesIn review
- v217 patches 5 repliesSuperseded
- v111 patches 0 repliesSuperseded
Changes in v3 from the cover letter
* Rebasing did not went right in the last version.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/17 | selftest/x86/sgx: Remove encl_piggy.htools/ tools/ | +0 | 0 replies | |
| 2/17 | x86/sgx: Clean up internal includesarch/ arch/ arch/ +6 more | +10 | 0 replies | |
| 3/17 | x86/sgx: Write backing storage only if EWB is successfularch/ | +5 | 0 replies | |
| 4/17 | x86/sgx: Rename 'j' as 'cnt' in sgx_reclaim_pages()arch/ | +8 | 0 replies | |
| 5/17 | x86/sgx: Turn encls_failed() as inline functionarch/ arch/ arch/ | +18 | 0 replies | |
| 6/17 | x86/sgx: Move sgx_einit() to encls.carch/ arch/ arch/ +2 more | +60 | 0 replies | |
| 7/17 | x86/sgx: Remove pages in sgx_reclaimer_write()arch/ | +11 | 0 replies | |
| 8/17 | x86/sgx: Calculate page index in sgx_reclaimer_write()arch/ | +9 | 0 replies | |
| 9/17 | x86/sgx: Move SGX_ENCL_DEAD check to sgx_reclaimer_write()arch/ | +34 | 4 replies | |
| 10/17 | x86/sgx: Free VA slot when the EWB flow failsarch/ | +6 | 0 replies | |
| 11/17 | x86/sgx: Call sgx_encl_destroy() when the EWB flow failsarch/ | +1 | 0 replies | |
| 12/17 | x86/sgx: Open code sgx_reclaimer_get() and sgx_reclaimer_put()arch/ | +18 | 3 replies | |
| 13/17 | x86/sgx: Introduce sgx_can_reclaim()arch/ | +18 | 3 replies | |
| 14/17 | x86/sgx: Replace section->free_cnt with a global sgx_nr_free_pagesarch/ arch/ arch/ | +9 | 2 replies | |
| 15/17 | x86/sgx: sgx_vma_access(): Do not return -ECANCELED on invalid TCS pagesarch/ arch/ arch/ | +2 | 0 replies | |
| 16/17 | x86/sgx: Introduce sgx_encl_get_backing()arch/ arch/ arch/ | +71 | 2 replies | |
| 17/17 | x86/sgx: Fix pages in the BLOCKED state ending up to the free poolarch/ | +57 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 00/17] Fixes and updates for v23
This patch set contains my fixes and updates for v23 except sgx_alloc_page() changes that I will submit a bit later.
v3:
* Rebasing did not went right in the last version.
v2:
* Added the bug fix to not allow legitly BLOCKED pages to end up to the free page pool.
Jarkko Sakkinen (17):
selftest/x86/sgx: Remove encl_piggy.h
x86/sgx: Clean up internal includes
x86/sgx: Write backing storage only if EWB is successful x86/sgx: Rename 'j' as 'cnt' in sgx_reclaim_pages() x86/sgx: Turn encls_failed() as inline function x86/sgx: Move sgx_einit() to encls.c
x86/sgx: Remove pages in sgx_reclaimer_write()
x86/sgx: Calculate page index in sgx_reclaimer_write() x86/sgx: Move SGX_ENCL_DEAD check to sgx_reclaimer_write() x86/sgx: Free VA slot when the EWB flow fails
x86/sgx: Call sgx_encl_destroy() when the EWB flow fails x86/sgx: Open code sgx_reclaimer_get() and sgx_reclaimer_put() x86/sgx: Introduce sgx_can_reclaim()
x86/sgx: Replace section->free_cnt with a global sgx_nr_free_pages x86/sgx: sgx_vma_access(): Do not return -ECANCELED on invalid TCS
pages
x86/sgx: Introduce sgx_encl_get_backing()
x86/sgx: Fix pages in the BLOCKED state ending up to the free pool
arch/x86/kernel/cpu/sgx/driver.c | 2 + arch/x86/kernel/cpu/sgx/driver.h | 3 - arch/x86/kernel/cpu/sgx/encl.c | 104 +++---- arch/x86/kernel/cpu/sgx/encl.h | 23 +- arch/x86/kernel/cpu/sgx/encls.c | 54 +++- arch/x86/kernel/cpu/sgx/encls.h | 23 +- arch/x86/kernel/cpu/sgx/ioctl.c | 5 +- arch/x86/kernel/cpu/sgx/main.c | 64 +--- arch/x86/kernel/cpu/sgx/reclaim.c | 299 +++++++++---------- arch/x86/kernel/cpu/sgx/sgx.h | 6 +- tools/testing/selftests/x86/sgx/encl_piggy.h | 14 - tools/testing/selftests/x86/sgx/main.c | 1 - 12 files changed, 276 insertions(+), 322 deletions(-) delete mode 100644 tools/testing/selftests/x86/sgx/encl_piggy.h
Signature · 1 line
2.20.1