Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Runtime initialization: padding may be left uninitialized.

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

Type:int

Parameter:Nothing

271  sum = 0
271  Do
271  When 0 cycle
271  __builtin_memset( & zero, 0x00, size of zero )
271  __builtin_memset(check_buf, 0x00, size of check_buf )
271  ignored = Runtime initialization: padding may be left uninitialized.
271  When i < target_size cycle sum += check_buf[i] != 0xFF
271  If sum Then
271  printk("\0013"KBUILD_MODNAME": packed_runtime_partial: leaf fill was not 0xFF!?\n", )
271  Return 1
271  __builtin_memset(check_buf, 0x00, size of check_buf )
271  ignored = Runtime initialization: padding may be left uninitialized.
271  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
271  printk("\0013"KBUILD_MODNAME": packed_runtime_partial: stack fill missed target!?\n", )
271  printk("\0013"KBUILD_MODNAME": packed_runtime_partial: fill %zu wide\n", fill_size)
271  printk("\0013"KBUILD_MODNAME": packed_runtime_partial: 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. ))
271  Return 1
271  When i < target_size cycle sum += check_buf[i] == 0xFF
271  If sum == 0 Then printk("\0016"KBUILD_MODNAME": packed_runtime_partial ok\n", )
271  Else printk("\0014"KBUILD_MODNAME": packed_runtime_partial FAIL (uninit bytes: %d)\n", sum)
271  Return sum != 0