|
|
Subscribe / Log in / New account

Maximum number of threads

Maximum number of threads

Posted Jun 20, 2017 15:37 UTC (Tue) by ikm (guest, #493)
In reply to: Maximum number of threads by BenHutchings
Parent article: Preventing stack guard-page hopping

Hmm, the parent article specifically mentions that the main thread stack is generally not a problem, but the ones of the rest of the threads are:

> 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.


to post comments

Maximum number of threads

Posted Jun 20, 2017 15:46 UTC (Tue) by BenHutchings (subscriber, #37955) [Link]

Right, the article is incorrect on this point.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds