Open qin-you opened 12 months ago
in kernel/proc.c freeproc() function :
kfree((void*)p->trapframe); // first proc_freepagetable(p->pagetable, p->sz); uvmunmap(pagetable, TRAPFRAME, 1, 0); kfree((void*)pa); // second
kfree will not give up this duplicated page, and this could lead to some problems. I delete the first kfree above and the code works well.
in kernel/proc.c freeproc() function :
kfree will not give up this duplicated page, and this could lead to some problems. I delete the first kfree above and the code works well.