4 ms·
yes, that would work for that. In my case, with my domain protection system I had well defined domain-crossing points across which I could guarantee that no da
by TickleSteve 10y ago
yes, that would work for that.
In my case, with my domain protection system I had well defined domain-crossing points across which I could guarantee that no data was being passed-by-reference, At these points I was trying to fit the Cortex MPU windows as closely as possible over the 'used' stack area so I could prevent access to it by any potentially malicious code.
I would poison the return address to cause a known fault when the code returned and move the MPU windows accordingly.
Although it worked, due to the limitations of the v7-M arch MPU windows the protection was never complete and proved to be time consuming to implement due to the size of the application.
Maybe in future it will become more practical.