Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111631780
D29832.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
832 B
Referenced Files
None
Subscribers
None
D29832.diff
View Options
Index: usr.sbin/ntp/config.h
===================================================================
--- usr.sbin/ntp/config.h
+++ usr.sbin/ntp/config.h
@@ -290,7 +290,7 @@
#define DFLT_RLIMIT_MEMLOCK -1
/* Default number of 4k pages for RLIMIT_STACK */
-#define DFLT_RLIMIT_STACK 50
+#define DFLT_RLIMIT_STACK 4096
/* Directory separator character, usually / or \\ */
#define DIR_SEP '/'
Index: usr.sbin/ntp/ntpd/ntp.conf
===================================================================
--- usr.sbin/ntp/ntpd/ntp.conf
+++ usr.sbin/ntp/ntpd/ntp.conf
@@ -110,3 +110,7 @@
# 0 may result in a segfault when ASLR with stack gap randomization
# is enabled.
#rlimit memlock 32
+
+# Specify the stack size limit in 4k pages. Low stack size limit often
+# results in segfault when ASLR stack gap is enabled.
+#rlimit stacksize 50
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 6:50 AM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17026939
Default Alt Text
D29832.diff (832 B)
Attached To
Mode
D29832: ntpd: Change default stack limit to 4096 pages.
Attached
Detach File
Event Timeline
Log In to Comment