Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:No initialization without compiler instrumentation.

Proto:static __attribute__((__noinline__)) __attribute__((__section__(".init.text"))) __attribute__((__cold__)) int test_big_hole_none(void)

Type:int

Parameter:Nothing

275  sum = 0
275  Do
275  When 0 cycle
275  __builtin_memset( & zero, 0x00, size of zero )
275  __builtin_memset(check_buf, 0x00, size of check_buf )
275  ignored = No initialization without compiler instrumentation.
275  When i < target_size cycle sum += check_buf[i] != 0xFF
275  If sum Then
275  printk("\0013"KBUILD_MODNAME": big_hole_none: leaf fill was not 0xFF!?\n", )
275  Return 1
275  __builtin_memset(check_buf, 0x00, size of check_buf )
275  ignored = No initialization without compiler instrumentation.
275  If Not range_contains(Location and size tracking to validate fill and test are colocated. , fill_size, Location and size tracking to validate fill and test are colocated. , target_size) Then
275  printk("\0013"KBUILD_MODNAME": big_hole_none: stack fill missed target!?\n", )
275  printk("\0013"KBUILD_MODNAME": big_hole_none: fill %zu wide\n", fill_size)
275  printk("\0013"KBUILD_MODNAME": big_hole_none: target offset by %d\n", (int)((ssize_t)(uintptr_t)Location and size tracking to validate fill and test are colocated. - (ssize_t)(uintptr_t)Location and size tracking to validate fill and test are colocated. ))
275  Return 1
275  When i < target_size cycle sum += check_buf[i] == 0xFF
275  If sum == 0 Then printk("\0016"KBUILD_MODNAME": big_hole_none ok\n", )
275  Else printk("\0014"KBUILD_MODNAME": big_hole_none FAIL (uninit bytes: %d)\n", sum)
275  Return sum != 0