!112 修复代码段及只读段在uncache映射区域可以篡改的漏洞
Merge pull request !112 from JerryH/mmu
This commit is contained in:
@@ -54,7 +54,7 @@ void ProcFsInit(void)
|
||||
}
|
||||
PRINTK("Mount procfs finished.\n");
|
||||
ProcMountsInit();
|
||||
#ifdef LOSCFG_SHELL_CMD_DEBUG
|
||||
#if defined(LOSCFG_SHELL_CMD_DEBUG) && defined(LOSCFG_KERNEL_VM)
|
||||
ProcVmmInit();
|
||||
#endif
|
||||
ProcProcessInit();
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
#include "los_vm_lock.h"
|
||||
#include "los_process_pri.h"
|
||||
|
||||
#ifdef LOSCFG_KERNEL_VM
|
||||
|
||||
STATIC VOID OsVmDumpSeqSpaces(struct SeqBuf *seqBuf)
|
||||
{
|
||||
LosVmSpace *space = NULL;
|
||||
@@ -112,3 +114,4 @@ void ProcVmmInit(void)
|
||||
pde->procFileOps = &VMM_PROC_FOPS;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user