Lines Matching refs:to_user
75 void usercopy_warn(const char *name, const char *detail, bool to_user, in usercopy_warn() argument
79 to_user ? "exposure" : "overwrite", in usercopy_warn()
80 to_user ? "from" : "to", in usercopy_warn()
87 bool to_user, unsigned long offset, in usercopy_abort() argument
91 to_user ? "exposure" : "overwrite", in usercopy_abort()
92 to_user ? "from" : "to", in usercopy_abort()
121 unsigned long n, bool to_user) in check_kernel_text_object() argument
128 usercopy_abort("kernel text", NULL, to_user, ptr - textlow, n); in check_kernel_text_object()
146 usercopy_abort("linear kernel text", NULL, to_user, in check_kernel_text_object()
151 bool to_user) in check_bogus_address() argument
155 usercopy_abort("wrapped address", NULL, to_user, 0, ptr + n); in check_bogus_address()
159 usercopy_abort("null address", NULL, to_user, ptr, n); in check_bogus_address()
164 struct page *page, bool to_user) in check_page_span() argument
180 if (!to_user) in check_page_span()
181 usercopy_abort("rodata", NULL, to_user, 0, n); in check_page_span()
212 usercopy_abort("spans multiple pages", NULL, to_user, 0, n); in check_page_span()
218 NULL, to_user, 0, n); in check_page_span()
221 to_user, 0, n); in check_page_span()
227 bool to_user) in check_heap_object() argument
238 __check_heap_object(ptr, n, page, to_user); in check_heap_object()
241 check_page_span(ptr, n, page, to_user); in check_heap_object()
253 void __check_object_size(const void *ptr, unsigned long n, bool to_user) in __check_object_size() argument
263 check_bogus_address((const unsigned long)ptr, n, to_user); in __check_object_size()
266 check_heap_object(ptr, n, to_user); in __check_object_size()
282 usercopy_abort("process stack", NULL, to_user, 0, n); in __check_object_size()
286 check_kernel_text_object((const unsigned long)ptr, n, to_user); in __check_object_size()