Commit 4b324ceb authored by qinglin.li's avatar qinglin.li Committed by Treehugger Robot
Browse files

ANDROID: vendor_hooks: Add hooks for slab



By these vhs, we can obtain the large slab allocation information
and modify its allocation size, such as adding debug information
or aligning by page, etc.

-android_vh_kmalloc_large_redzone update kasan poison redzone range.

-android_vh_ksize_update get the true size of the large slab object.

-android_vh_kmalloc_large_node_bypass reimplement the allocation method.

-android_vh_kfree_bypass free realy size.

-android_vh_check_heap_object_bypass skip the large slab check.

Bug: 440959237
Change-Id: I04806f41daa3fbdf699a0b16992fbe7dfbbb21d4
Signed-off-by: default avatarqinglin.li <qinglin.li@amlogic.com>
parent cbb0a15d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment