Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177463318
D28678.1794479353.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
806 B
Referenced Files
None
Subscribers
None
D28678.1794479353.diff
View Options
diff --git a/sys/kern/imgact_elf.c b/sys/kern/imgact_elf.c
--- a/sys/kern/imgact_elf.c
+++ b/sys/kern/imgact_elf.c
@@ -1287,7 +1287,8 @@
maxv1 = maxv / 2 + addr / 2;
MPASS(maxv1 >= addr); /* No overflow */
map->anon_loc = __CONCAT(rnd_, __elfN(base))(map, addr, maxv1,
- MAXPAGESIZES > 1 ? pagesizes[1] : pagesizes[0]);
+ (MAXPAGESIZES > 1 && pagesizes[1] != 0) ?
+ pagesizes[1] : pagesizes[0]);
} else {
map->anon_loc = addr;
}
@@ -1297,7 +1298,7 @@
if (interp != NULL) {
VOP_UNLOCK(imgp->vp);
if ((map->flags & MAP_ASLR) != 0) {
- /* Assume that interpeter fits into 1/4 of AS */
+ /* Assume that interpreter fits into 1/4 of AS */
maxv1 = maxv / 2 + addr / 2;
MPASS(maxv1 >= addr); /* No overflow */
addr = __CONCAT(rnd_, __elfN(base))(map, addr,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 12, 10:29 AM (16 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41674944
Default Alt Text
D28678.1794479353.diff (806 B)
Attached To
Mode
D28678: Fix divide-by-zero panic when ALSR is enabled and superpages disabled
Attached
Detach File
Event Timeline