函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:describe_object_addr

函数原型:static void describe_object_addr(struct kmem_cache *cache, void *object, const void *addr)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cache
void *object
const void *addr
125  access_addr等于addr
126  object_addr等于object
130  打印错误信息("The buggy address belongs to the object at %px\n which belongs to the cache %s of size %d\n", object, Name (only for display!) , The size of an object without metadata )
134  如果非addr则返回
137  如果access_addr小于object_addr
138  rel_type等于"to the left"
139  rel_bytes等于object_addraccess_addr
140  否则如果access_addr大于等于object_addrThe size of an object without metadata
141  rel_type等于"to the right"
142  rel_bytes等于access_addrobject_addrThe size of an object without metadata
143  否则
144  rel_type等于"inside"
145  rel_bytes等于access_addrobject_addr
148  打印错误信息("The buggy address is located %d bytes %s of\n %d-byte region [%px, %px)\n", rel_bytes, rel_type, The size of an object without metadata , (void * )object_addr, (void * )(object_addr + The size of an object without metadata ))
调用者
名称描述
describe_object