[PATCH 5.15 026/206] x86/sgx: Create utility to validate user provided offset and length