<div dir="ltr"><div>Hi, </div><div>My<a href="https://docs.google.com/document/d/1AawmqbfCpRDHZ4cO5-UE1J7VacubNWmn3kae4rlPrZA/edit?usp=sharing"> GSoC project proposal</a> intended for providing thread-stack protection involves implementation on two levels, providing low-level hardware support for the target architecture and high-level architecture-independent APIs. As <a tabindex="-1" href="mailto:dufault@hda.com" id="plusReplyChip-1" class="gmail_plusreply">@Peter Dufault</a> pointed to me in my draft the POSIX  compliant way of doing it would be through mmap, I would request your feedback on the details of the high-level implementation of thread-stack protection. </div><div>My idea is to obtain the stack attributes of the thread that is to be mapped by pthread_attr_getstack() and then get a file descriptor of the memory using posix_typed_mem_open() and finally mmap that to the stack of the required thread(With the specified permissions).</div><div>  Is this is a valid approach? If yes, I believe I would have to add the implementation of       posix_typed_mem_open() to my work plan as RTEMS does not support it as of now.</div><div><br></div><div>Regards,</div><div>Utkarsh Rai.</div></div>