函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:print_shadow_for_address

函数原型:static void print_shadow_for_address(const void *addr)

返回类型:void

参数:

类型参数名称
const void *addr
414  shadow等于kasan_mem_to_shadow(addr)
417  shadow_row等于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.((unsignedlong)shadow, SHADOW_BYTES_PER_ROW)减SHADOW_ROWS_AROUND_ADDRSHADOW_BYTES_PER_ROW
421  打印错误信息("Memory state around the buggy address:\n")
423 i小于等于SHADOW_ROWS_AROUND_ADDR循环
424  kaddr等于kasan_shadow_to_mem(shadow_row)
428  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
435  memcpy(shadow_buf, shadow_row, SHADOW_BYTES_PER_ROW)
436  print_hex_dump - print a text hex dump to syslog for a binary blob of data*@level: kernel log level (e
440  如果row_is_guilty(shadow_row, shadow)则打印错误信息("%*c\n", shadow_pointer_offset(shadow_row, shadow), '^')
445  shadow_row加等于SHADOW_BYTES_PER_ROW
调用者
名称描述
kasan_report_invalid_free
__kasan_report