This commit is contained in:
Imbus 2025-09-02 02:51:34 +02:00
parent 8839f06fd2
commit 9790807355

View file

@ -46,6 +46,7 @@ void kfree(void *pa) {
if (((u64)pa % PGSIZE) != 0 || (char *)pa < kernel_end || (u64)pa >= PHYSTOP)
PANIC("kfree");
// TODO: Kconfig this
// Fill with junk to catch dangling refs.
memset(pa, 1, PGSIZE);