Lines Matching refs:to_user
72 void usercopy_warn(const char *name, const char *detail, bool to_user, in usercopy_warn() argument
76 to_user ? "exposure" : "overwrite", in usercopy_warn()
77 to_user ? "from" : "to", in usercopy_warn()
84 bool to_user, unsigned long offset, in usercopy_abort() argument
88 to_user ? "exposure" : "overwrite", in usercopy_abort()
89 to_user ? "from" : "to", in usercopy_abort()
118 unsigned long n, bool to_user) in check_kernel_text_object() argument
125 usercopy_abort("kernel text", NULL, to_user, ptr - textlow, n); in check_kernel_text_object()
143 usercopy_abort("linear kernel text", NULL, to_user, in check_kernel_text_object()
148 bool to_user) in check_bogus_address() argument
152 usercopy_abort("wrapped address", NULL, to_user, 0, ptr + n); in check_bogus_address()
156 usercopy_abort("null address", NULL, to_user, ptr, n); in check_bogus_address()
161 struct page *page, bool to_user) in check_page_span() argument
177 if (!to_user) in check_page_span()
178 usercopy_abort("rodata", NULL, to_user, 0, n); in check_page_span()
209 usercopy_abort("spans multiple pages", NULL, to_user, 0, n); in check_page_span()
215 NULL, to_user, 0, n); in check_page_span()
218 to_user, 0, n); in check_page_span()
224 bool to_user) in check_heap_object() argument
240 __check_heap_object(ptr, n, page, to_user); in check_heap_object()
243 check_page_span(ptr, n, page, to_user); in check_heap_object()
256 void __check_object_size(const void *ptr, unsigned long n, bool to_user) in __check_object_size() argument
266 check_bogus_address((const unsigned long)ptr, n, to_user); in __check_object_size()
282 usercopy_abort("process stack", NULL, to_user, 0, n); in __check_object_size()
286 check_heap_object(ptr, n, to_user); in __check_object_size()
289 check_kernel_text_object((const unsigned long)ptr, n, to_user); in __check_object_size()