您现在的位置是:首页 > 软件 > linux中如何打开KASAN
推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

linux中如何打开KASAN

更新时间:2024-08-26 16:58:15 大小:248K 上传用户:tianshiliuxing查看TA发布的资源 标签:linuxkasan 下载积分:2分 评价赚积分 (如何评价?) 打赏 收藏 评论(0) 举报

资料介绍

[DESCRIPTION] KASAN is abbreviation of Kernel Address Sanitizer. It is a dynamic debug mechanism to help developer finding out-of-bound read/write and use-after-free behavior. [Limit] Linux Kernel >= 4.4 GCC >= 5.0 or Clang Complier 64bit Only [modify] kernel/arch/arm64/configs/xxx_defconfig enable slub debug (optional) CONFIG_SLUB_DEBUG=y CONFIG_SLUB_DEBUG_ON=y enable KAsan CONFIG_KASAN=y CONFIG_KASAN_INLINE=y # CONFIG_KASAN_HW_TAGS is not set CONFIG_KASAN_STACK=y CONFIG_FRAME_WARN=0 (Suggested) # COFNIG_RANDOMIZE_BASE is not set(Suggested) CONFIG_DEBUG_SECTION_MISMATCH=y (Suggested) [ConFirm] 1.开机log中有如下类似log说明有开启成功. swapper: kasan: [name:kasan_init&]KernelAddressSanitizer initialized 2.cat proc/meminfo | grep MemTotal 总内存会减小1/8左右 3.拿到vmlinux看看是否有asan load等相关tagaarch64-linux-gnu-objdump -Sd ./out/target/product/xxx/obj/KERNEL_OBJ/vmlinux | grep __asan_ 4.zcat proc/config.gz 检查上述config是否打开

部分文件列表

文件名 大小
[FAQ20853]如何打开KASAN.pdf 248K

全部评论(0)

暂无评论

上传资源 上传优质资源有赏金

  • 打赏
  • 30日榜单

推荐下载