Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_kasan.c Create Date:2022-07-28 06:29:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksize_unpoisons_memory

Proto:static noinline void __init ksize_unpoisons_memory(void)

Type:void

Parameter:Nothing

460  size = 123
462  pr_info("ksize() unpoisons the whole allocated chunk\n")
463  ptr = kmalloc(size, GFP_KERNEL)
464  If Not ptr Then
465  pr_err("Allocation failed\n")
466  Return
468  real_size = ksize(ptr)
470  ptr[size] = 'x'
472  ptr[real_size] = 'y'
473  kfree(ptr)
Caller
NameDescribe
kmalloc_tests_init