函数逻辑报告 |
Source Code:mm\kasan\common.c |
Create Date:2022-07-27 17:24:59 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:__kasan_slab_free
函数原型:static bool __kasan_slab_free(struct kmem_cache *cache, void *object, unsigned long ip, bool quarantine)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct kmem_cache * | cache | |
| void * | object | |
| unsigned long | ip | |
| bool | quarantine |
| 448 | tagged_object等于object |
| 451 | 如果此条件成立可能性小(为编译器优化)(nearest_obj(cache, virt_to_head_page(object), object) != object)则 |
| 454 | 返回:true |
| 458 | 如果此条件成立可能性小(为编译器优化)(Used for retrieving partial slabs, etc. & Defer freeing slabs to RCU )则返回:false |
| 461 | shadow_byte等于READ_ONCE( * (s8 * )kasan_mem_to_shadow(object)) |
| 462 | 如果shadow_invalid(tag, shadow_byte)则 |
| 464 | 返回:true |
| 474 | kasan_set_free_info(cache, object, tag) |
| 476 | quarantine_put(get_free_info(cache, object), cache) |
| 478 | 返回:IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_KASAN_GENERIC) |
| 名称 | 描述 |
|---|---|
| kasan_slab_free | |
| kasan_poison_kfree |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |