Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\usercopy.c Create Date:2022-07-28 16:35:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_heap_object

Proto:static inline void check_heap_object(const void *ptr, unsigned long n, bool to_user)

Type:void

Parameter:

TypeParameterName
const void *ptr
unsigned longn
boolto_user
228  If Not virt_addr_valid(ptr) Then Return
236  page = compound_head(kmap_to_page((void * )ptr))
238  If PageSlab(page) Then
240  Allocation memory
241  Else
243  Checks for allocs that are marked in some way as spanning multiple pages.
Caller
NameDescribe
__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