openharmony_kernel_liteos_a/kernel/extended
LiteOS2021 e748fdbe57 feat: L0~L1 支持Lms
1.【需求描述】:
   支持内核态和用户态堆内存非法访问检测,包括:越界访问、double free、释放后使用;支持libc常用高频函数内存检测;支持安全函数内存检测;读写检测可配可裁剪。
2.【方案描述】:
   L0 ~ L1:
   (1).影子内存映射与标记
   (2).编译器使能-fsanitize=kernel-address 自动插桩检测点
   (3).实时校验影子内存的合法性;
   (4).错误访问打印回溯栈

BREAKING CHANGE: 新增支持API:

LOS_LmsCheckPoolAdd使能检测指定内存池
LOS_LmsCheckPoolDel不检测指定内存池
LOS_LmsAddrProtect为指定内存段上锁,不允许访问
LOS_LmsAddrDisableProtect去能指定内存段的访问保护

Close #I4HYAV

Signed-off-by: LiteOS2021 <dinglu@huawei.com>
Change-Id: Id8e5c890656da9edc4a22227e6a3c32205c024ce
2021-11-27 11:13:41 +08:00
..
blackbox Modify folder and file permissions 2021-11-04 14:50:42 +08:00
cppsupport refactor: 清理Makefile冗余项 2021-09-13 18:14:15 +08:00
cpup feat: 进程cpup占用率结构优化为动态分配 2021-11-02 19:57:26 +08:00
dynload !709 A核代码静态告警定期清理 2021-11-16 06:47:22 +00:00
hidumper refactor: 清理Makefile冗余项 2021-09-13 18:14:15 +08:00
hilog Description:[fix] clean hilog/hievent ring buffer after memory verification failed 2021-10-22 17:00:10 +08:00
hook chore: 修复社区反馈问题Percpu结构体注释错误 2021-11-10 10:20:33 +08:00
liteipc !710 清理YES/NO宏 2021-11-18 09:32:42 +00:00
lms feat: L0~L1 支持Lms 2021-11-27 11:13:41 +08:00
perf feat: L0-L1 支持Perf 2021-09-28 19:28:34 +08:00
pipes refactor: 清理Makefile冗余项 2021-09-13 18:14:15 +08:00
power refactor: 清理Makefile冗余项 2021-09-13 18:14:15 +08:00
trace !709 A核代码静态告警定期清理 2021-11-16 06:47:22 +00:00
vdso refactor: 清理Makefile冗余项 2021-09-13 18:14:15 +08:00
BUILD.gn feat: L0~L1 支持Lms 2021-11-27 11:13:41 +08:00
Kconfig feat: L0~L1 支持Lms 2021-11-27 11:13:41 +08:00