Lines Matching full:contents
145 struct sgx_secs *contents = (struct sgx_secs *)pageinfo->contents; in __handle_encls_ecreate() local
159 miscselect = contents->miscselect; in __handle_encls_ecreate()
160 attributes = contents->attributes; in __handle_encls_ecreate()
161 xfrm = contents->xfrm; in __handle_encls_ecreate()
162 size = contents->size; in __handle_encls_ecreate()
223 struct sgx_secs *contents; in handle_encls_ecreate() local
247 sgx_get_encls_gva(vcpu, pageinfo.contents, 4096, 4096, in handle_encls_ecreate()
271 * Copy contents into kernel memory to prevent TOCTOU attack. E.g. the in handle_encls_ecreate()
276 contents = (struct sgx_secs *)__get_free_page(GFP_KERNEL_ACCOUNT); in handle_encls_ecreate()
277 if (!contents) in handle_encls_ecreate()
281 if (sgx_read_hva(vcpu, contents_hva, (void *)contents, PAGE_SIZE)) { in handle_encls_ecreate()
282 free_page((unsigned long)contents); in handle_encls_ecreate()
287 pageinfo.contents = (u64)contents; in handle_encls_ecreate()
291 free_page((unsigned long)contents); in handle_encls_ecreate()