Based on submission by: emaste
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 34308
Event Timeline
lib/libc/sys/mmap.2 | ||
---|---|---|
456 | Didn't the mailing list report mention ENOMEM? |
lib/libc/sys/mmap.2 | ||
---|---|---|
456 | Sorry, I did not read the full thread. |
head/lib/libc/sys/mmap.2 | ||
---|---|---|
354–355 ↗ | (On Diff #78571) | IMHO, we should be explicitly saying that the guard is carved out the specified stack size, reducing the effective size of the stack. Right now, I could infer that from reading the errors section, but I argue that I shouldn't have to infer it. |
head/lib/libc/sys/mmap.2 | ||
---|---|---|
354–355 ↗ | (On Diff #78571) | good point, how's this: Index: lib/libc/sys/mmap.2 =================================================================== --- lib/libc/sys/mmap.2 (revision 366945) +++ lib/libc/sys/mmap.2 (working copy) @@ -353,6 +353,8 @@ stacks can grow without requiring mapping the whole stack in advance. The size of the guard, in pages, is specified by sysctl .Dv security.bsd.stack_guard_page . +The guard region is placed at the starting address of the allocation, +and the usable stack is reduced by the size of the guard. .El .Pp The |