Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Emitted by compiler to poison alloca()ed objects.

Proto:void __asan_alloca_poison(unsigned long addr, size_t size)

Type:void

Parameter:

TypeParameterName
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 = addr - KASAN_ALLOCA_REDZONE_SIZE
289  right_redzone = addr + rounded_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.