Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_poison_mem

Proto:static void check_poison_mem(unsigned char *mem, size_t bytes)

Type:void

Parameter:

TypeParameterName
unsigned char *mem
size_tbytes
68  DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 10)
72  If IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PAGE_POISONING_NO_SANITY) Then Return
75  start = memchr_inv - Find an unmatching character in an area of memory.*@start: The memory area*@c: Find a character other than c*@bytes: The size of the area.* returns the address of the first character other than @c, or %NULL
76  If Not start Then Return
79  When end > start cycle
80  If end != PAGE_POISON Then Break
84  If Not __ratelimit( & ratelimit) Then Return
86  Else if start == end && single_bit_flip( * start, PAGE_POISON) Then pr_err("pagealloc: single bit error\n")
88  Else pr_err("pagealloc: memory corruption\n")
91  print_hex_dump - print a text hex dump to syslog for a binary blob of data*@level: kernel log level (e
93  dump_stack()
Caller
NameDescribe
unpoison_page