Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153050884
D25689.id74542.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.id74542.diff
View Options
Index: sys/amd64/amd64/pmap.c
===================================================================
--- sys/amd64/amd64/pmap.c
+++ 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: sys/i386/i386/pmap.c
===================================================================
--- sys/i386/i386/pmap.c
+++ 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: sys/mips/mips/pmap.c
===================================================================
--- sys/mips/mips/pmap.c
+++ 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: sys/powerpc/aim/mmu_oea.c
===================================================================
--- sys/powerpc/aim/mmu_oea.c
+++ 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: sys/powerpc/aim/mmu_oea64.c
===================================================================
--- sys/powerpc/aim/mmu_oea64.c
+++ sys/powerpc/aim/mmu_oea64.c
@@ -2866,6 +2866,7 @@
offset = va & PAGE_MASK;
size = roundup2(offset + size, PAGE_SIZE);
+ moea64_qremove(base, atop(size));
kva_free(base, size);
}
Index: sys/powerpc/aim/mmu_radix.c
===================================================================
--- sys/powerpc/aim/mmu_radix.c
+++ 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: sys/powerpc/booke/pmap.c
===================================================================
--- sys/powerpc/booke/pmap.c
+++ 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
Sun, Apr 19, 8:42 PM (9 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31797027
Default Alt Text
D25689.id74542.diff (2 KB)
Attached To
Mode
D25689: Revert r240317 to prevent leaking pmap entries
Attached
Detach File
Event Timeline
Log In to Comment