Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159548111
D25689.id74551.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D25689.id74551.diff
View Options
Index: head/sys/amd64/amd64/pmap.c
===================================================================
--- head/sys/amd64/amd64/pmap.c
+++ head/sys/amd64/amd64/pmap.c
@@ -8279,8 +8279,10 @@
return;
}
}
- if (pmap_initialized)
+ if (pmap_initialized) {
+ pmap_qremove(va, atop(size));
kva_free(va, size);
+ }
}
/*
Index: head/sys/i386/i386/pmap.c
===================================================================
--- head/sys/i386/i386/pmap.c
+++ head/sys/i386/i386/pmap.c
@@ -5538,8 +5538,10 @@
return;
}
}
- if (pmap_initialized)
+ if (pmap_initialized) {
+ pmap_qremove(va, atop(size));
kva_free(va, size);
+ }
}
/*
Index: head/sys/mips/mips/pmap.c
===================================================================
--- head/sys/mips/mips/pmap.c
+++ head/sys/mips/mips/pmap.c
@@ -3264,6 +3264,7 @@
base = trunc_page(va);
offset = va & PAGE_MASK;
size = roundup(size + offset, PAGE_SIZE);
+ pmap_qremove(base, atop(size));
kva_free(base, size);
#endif
}
Index: head/sys/powerpc/aim/mmu_oea.c
===================================================================
--- head/sys/powerpc/aim/mmu_oea.c
+++ head/sys/powerpc/aim/mmu_oea.c
@@ -2673,6 +2673,7 @@
base = trunc_page(va);
offset = va & PAGE_MASK;
size = roundup(offset + size, PAGE_SIZE);
+ moea_qremove(base, atop(size));
kva_free(base, size);
}
}
Index: head/sys/powerpc/aim/mmu_oea64.c
===================================================================
--- head/sys/powerpc/aim/mmu_oea64.c
+++ head/sys/powerpc/aim/mmu_oea64.c
@@ -2869,6 +2869,7 @@
offset = va & PAGE_MASK;
size = roundup2(offset + size, PAGE_SIZE);
+ moea64_qremove(base, atop(size));
kva_free(base, size);
}
Index: head/sys/powerpc/aim/mmu_radix.c
===================================================================
--- head/sys/powerpc/aim/mmu_radix.c
+++ head/sys/powerpc/aim/mmu_radix.c
@@ -5846,8 +5846,10 @@
size = round_page(offset + size);
va = trunc_page(va);
- if (pmap_initialized)
+ if (pmap_initialized) {
+ mmu_radix_qremove(va, atop(size));
kva_free(va, size);
+ }
}
static __inline void
Index: head/sys/powerpc/booke/pmap.c
===================================================================
--- head/sys/powerpc/booke/pmap.c
+++ head/sys/powerpc/booke/pmap.c
@@ -2322,6 +2322,7 @@
base = trunc_page(va);
offset = va & PAGE_MASK;
size = roundup(offset + size, PAGE_SIZE);
+ mmu_booke_qremove(base, atop(size));
kva_free(base, size);
}
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 16, 2:53 PM (15 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33990399
Default Alt Text
D25689.id74551.diff (2 KB)
Attached To
Mode
D25689: Revert r240317 to prevent leaking pmap entries
Attached
Detach File
Event Timeline
Log In to Comment