Function report |
Source Code:mm\kasan\init.c |
Create Date:2022-07-28 15:52:11 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kasan_remove_zero_shadow
Proto:void kasan_remove_zero_shadow(void *start, unsigned long size)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | start | |
| unsigned long | size |
| 457 | addr = kasan_mem_to_shadow(start) |
| 458 | end = addr + (size >> KASAN_SHADOW_SCALE_SHIFT) |
| 460 | If WARN_ON((unsignedlong)start % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE)) || WARN_ON(size % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE)) Then Return |
| 471 | If Not pgd_present( * pgd) Then Continue |
| 474 | If kasan_p4d_table( * pgd) Then |
| 475 | If IS_ALIGNED(addr, PGDIR_SIZE) && IS_ALIGNED(next, PGDIR_SIZE) Then pgd_clear(pgd) |
| 478 | Continue |
| 481 | p4d = p4d_offset(pgd, addr) |
| 482 | kasan_remove_p4d_table(p4d, addr, next) |
| 483 | kasan_free_p4d(p4d_offset(pgd, 0), pgd) |
| Name | Describe |
|---|---|
| kasan_add_zero_shadow |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |