函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\generic.c Create Date:2022-07-27 17:27:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Emitted by compiler to poison alloca()ed objects.

函数原型:void __asan_alloca_poison(unsigned long addr, size_t size)

返回类型:void

参数:

类型参数名称
unsigned longaddr
size_tsize
282  rounded_up_size等于und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(size, KASAN_SHADOW_SCALE_SIZE)
283  padding_size等于und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(size, KASAN_ALLOCA_REDZONE_SIZE)减rounded_up_size
285  rounded_down_size等于und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(size, KASAN_SHADOW_SCALE_SIZE)
287  left_redzone等于addrKASAN_ALLOCA_REDZONE_SIZE
289  right_redzone等于addrrounded_up_size
291  WARN_ON(!IS_ALIGNED(addr, KASAN_ALLOCA_REDZONE_SIZE))
293  kasan_unpoison_shadow((constvoid * )(addr + rounded_down_size), size - rounded_down_size)
295  Poisons the shadow memory for 'size' bytes starting from 'addr'.* Memory addresses should be aligned to KASAN_SHADOW_SCALE_SIZE.
297  Poisons the shadow memory for 'size' bytes starting from 'addr'.* Memory addresses should be aligned to KASAN_SHADOW_SCALE_SIZE.