<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 22, 2021 at 9:54 PM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Rajiv,<br>
<br>
On Sat, Mar 20, 2021 at 12:40 AM Rajiv Vaidyanathan<br>
<<a href="mailto:rajiv.vaidyanathan4@gmail.com" target="_blank">rajiv.vaidyanathan4@gmail.com</a>> wrote:<br>
><br>
> Hello RTEMS community,<br></blockquote><div><br></div><div>Hello Rajiv,</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
><br>
> I am interested in the ticket: Memory protection. I saw that this topic has been pursued a few times in GSoC. It would be great if someone can let me know the current status of this project and guide me about what are the contributions that can be done this year.<br>
><br>
Yes, this is a frequently attempted project that slowly makes progress<br>
over time. I think that Utkarsh has gotten somewhat close to a<br>
workable solution, but there were some design flaws in his approach<br>
for task stack protection (mainly, iterating over all the tasks) that<br>
are still lingering.</blockquote><div><br></div><div>If you want to work on thread stack protection using MMU you can look at this </div><div><a href="https://lists.rtems.org/pipermail/devel/2020-December/063606.html">thread</a> for the issues with my solution and possible resolutions to them. </div><div>You can clone the 'Final-release' branch of <a href="https://github.com/ur10/rtems">this</a> repo to get an idea of the </div><div>changes/additions that I had done and refer to this <a href="https://gsoc2020memoryprotection.blogspot.com/2020/05/what-is-thread-stack-protection-well.html">blog </a> for a brief description of my idea </div><div>behind making those changes/additions.</div><div>Ideally, I would have liked to complete them for myself, this summer, but I am not sure </div><div>if the time constraints that I have would allow me to pursue this right now. </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
There could be enough work here to pick up from his progress. The<br>
major issue would be figuring out what  the final state of his code is<br>
in, and to dig in to the design and implementation details to write a<br>
concrete proposal how to bring task stack protection to a production<br>
state. There may be other directions to consider as well, such as<br>
improving the risc-v MMU support perhaps.<br>
<br>
> Thanks and regards,<br>
> Rajiv<br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div></div>