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:
qinglin.li <qinglin.li@amlogic.com>
Loading
Please sign in to comment