Function report |
Source Code:mm\usercopy.c |
Create Date:2022-07-28 16:35:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Validates that the given object is:* - not bogus address* - fully contained by stack (or stack frame, when available)* - fully within SLAB object (or object whitelist area, when available)* - not in kernel text
Proto:void __check_object_size(const void *ptr, unsigned long n, bool to_user)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | ptr | |
unsigned long | n | |
bool | to_user |
258 | If static_branch_unlikely( & bypass_usercopy_checks) Then Return |
262 | If Not n Then Return |
266 | check_bogus_address((constunsignedlong)ptr, n, to_user) |
272 | Break |
273 | Case Checks if a given pointer and length is contained by the current* stack frame (if possible) == GOOD_FRAME |
280 | Return |
281 | Default |
282 | usercopy_abort("process stack", NULL, to_user, 0, n) |
286 | check_heap_object(ptr, n, to_user) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |