StratifyOS
StratifyOS copied to clipboard
pthread_mutex_t should include a checksum
The checksum should be managed using cortexm_assign_zero_sum32() and cortexm_verify_zero_sum32().
If the mutex is corrupted or hacked, any attempt to lock or unlock the mutex will return an error.