Lines Matching full:contents
148 struct sgx_secs *contents = (struct sgx_secs *)pageinfo->contents; in __handle_encls_ecreate() local
164 miscselect = contents->miscselect; in __handle_encls_ecreate()
165 attributes = contents->attributes; in __handle_encls_ecreate()
166 xfrm = contents->xfrm; in __handle_encls_ecreate()
167 size = contents->size; in __handle_encls_ecreate()
219 struct sgx_secs *contents; in handle_encls_ecreate() local
243 sgx_get_encls_gva(vcpu, pageinfo.contents, 4096, 4096, in handle_encls_ecreate()
267 * Copy contents into kernel memory to prevent TOCTOU attack. E.g. the in handle_encls_ecreate()
272 contents = (struct sgx_secs *)__get_free_page(GFP_KERNEL_ACCOUNT); in handle_encls_ecreate()
273 if (!contents) in handle_encls_ecreate()
277 if (sgx_read_hva(vcpu, contents_hva, (void *)contents, PAGE_SIZE)) { in handle_encls_ecreate()
278 free_page((unsigned long)contents); in handle_encls_ecreate()
283 pageinfo.contents = (u64)contents; in handle_encls_ecreate()
287 free_page((unsigned long)contents); in handle_encls_ecreate()