Maximum number of threads
Maximum number of threads
Posted Jun 20, 2017 3:50 UTC (Tue) by ikm (guest, #493)Parent article: Preventing stack guard-page hopping
Posted Jun 20, 2017 5:34 UTC (Tue)
by flussence (guest, #85566)
[Link] (1 responses)
Posted Jun 20, 2017 6:39 UTC (Tue)
by thestinger (guest, #91827)
[Link]
Posted Jun 20, 2017 15:01 UTC (Tue)
by BenHutchings (subscriber, #37955)
[Link] (2 responses)
Posted Jun 20, 2017 15:37 UTC (Tue)
by ikm (guest, #493)
[Link] (1 responses)
> In a single-threaded process, the address space reserved for the stack can be large and difficult to overflow. Multi-threaded processes contain multiple stacks, though; those stacks are smaller and are likely to be placed between other virtual-memory areas of interest. An accidental overflow could corrupt the area located below a stack; a deliberate overflow, if it can be arranged, could be used to compromise the system.
So, if I understood things right, the change was about growing the guard size of all of the program's threads.
Posted Jun 20, 2017 15:46 UTC (Tue)
by BenHutchings (subscriber, #37955)
[Link]
Maximum number of threads
Maximum number of threads
No, this only affects the main thread stack. glibc does not use the kernel's MAP_GROWSDOWN feature for new thread stacks. The stack guard size for new threads is controlled using pthread_attr_setguardsize().
Maximum number of threads
Maximum number of threads
Maximum number of threads