1
0
Fork 0
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:
Stefan Lankes 2016-10-03 01:01:12 +02:00
parent 561ae5baba
commit 566d5f7b56

View file

@ -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);