Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:print_shadow_for_address

Proto:static void print_shadow_for_address(const void *addr)

Type:void

Parameter:

TypeParameterName
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_ADDR * SHADOW_BYTES_PER_ROW
421  pr_err("Memory state around the buggy address:\n")
423  When i <= SHADOW_ROWS_AROUND_ADDR cycle
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  If row_is_guilty(shadow_row, shadow) Then pr_err("%*c\n", shadow_pointer_offset(shadow_row, shadow), '^')
445  shadow_row += SHADOW_BYTES_PER_ROW
Caller
NameDescribe
kasan_report_invalid_free
__kasan_report