Skip to content

x86/sgx: Improve permission handing

Jarkko Sakkinen linux-sgx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5x86/sgx: Document permission handling betterarch/x86/kernel/cpu/sgx/driver/ioctl.c+8 -12 replies
2/5x86/sgx: Use memchr_inv() in sgx_validate_secinfo()arch/x86/kernel/cpu/sgx/driver/ioctl.c+2 -42 replies
3/5x86/sgx: Make sgx_validate_secinfo() more readablearch/x86/kernel/cpu/sgx/driver/ioctl.c+9 -44 replies
4/5x86/sgx: Validate TCS permssions in sgx_validate_secinfo()arch/x86/kernel/cpu/sgx/driver/ioctl.c+6 -013 replies
5/5x86/sgx: Rename vm_prot_bits as max_vm_flagsarch/x86/kernel/cpu/sgx/driver/ioctl.c arch/x86/kernel/cpu/sgx/encl.c arch/x86/kernel/cpu/sgx/encl.h+10 -102 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] x86/sgx: Improve permission handing

Refine the naming, documentation and validation of the page permissions. silent behaviour to occur.

Cc Sean Christopherson <[email protected]>
Cc Shay Katz-zamir <[email protected]>
Cc Serge Ayoun <[email protected]>

Jarkko Sakkinen (5):
x86/sgx: Document permission handling better x86/sgx: Use memchr_inv() in sgx_validate_secinfo() x86/sgx: Make sgx_validate_secinfo() more readable x86/sgx: Validate TCS permssions in sgx_validate_secinfo() x86/sgx: Rename vm_prot_bits as max_vm_flags

 arch/x86/kernel/cpu/sgx/driver/ioctl.c | 36 +++++++++++++++++++-------
 arch/x86/kernel/cpu/sgx/encl.c         | 14 +++++-----
 arch/x86/kernel/cpu/sgx/encl.h         |  4 +--
 3 files changed, 35 insertions(+), 19 deletions(-)
Signature · 1 line
2.20.1