mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
clear page before the first usage
This commit is contained in:
parent
561ae5baba
commit
566d5f7b56
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ void page_fault_handler(struct state *s)
|
|||
goto default_handler;
|
||||
}
|
||||
|
||||
// TODO: reusing of old data is possible => security issue
|
||||
// reset page
|
||||
memset(viraddr, 0x00, PAGE_SIZE);
|
||||
|
||||
spinlock_irqsave_unlock(&page_lock);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue