函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\usercopy.c Create Date:2022-07-27 18:11:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_heap_object

函数原型:static inline void check_heap_object(const void *ptr, unsigned long n, bool to_user)

返回类型:void

参数:

类型参数名称
const void *ptr
unsigned longn
boolto_user
228  如果非virt_addr_valid(ptr)则返回
236  page等于compound_head(kmap_to_page((void * )ptr))
238  如果PageSlab(page)则
240  __check_heap_object(ptr, n, page, to_user)
241  否则
243  Checks for allocs that are marked in some way as spanning multiple pages.
调用者
名称描述
__check_object_sizeValidates 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