]> begriffs open source - freertos/commit
Restrict unpriv task to invoke code with privilege
authorGaurav Aggarwal <aggarg@amazon.com>
Wed, 7 Sep 2022 09:28:52 +0000 (14:58 +0530)
committerGaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Fri, 16 Sep 2022 18:33:08 +0000 (00:03 +0530)
commit331362d45ac226c29060524dc8732e382d9106b1
tree7e1bd304e36a097a7a00de522a26f95b36f445df
parent79704b8213320c32db928a75a262cfa92b2650e0
Restrict unpriv task to invoke code with privilege

It was possible for an unprivileged task to invoke any function with
privilege by passing it as a parameter to MPU_xTaskCreate,
MPU_xTaskCreateStatic, MPU_xTimerCreate, MPU_xTimerCreateStatic, or
MPU_xTimerPendFunctionCall.

This commit ensures that MPU_xTaskCreate and MPU_xTaskCreateStatic can
only create unprivileged tasks. It also removes the following APIs:
1. MPU_xTimerCreate
2. MPU_xTimerCreateStatic
3. MPU_xTimerPendFunctionCall

We thank Huazhong University of Science and Technology for reporting
this issue.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
include/mpu_wrappers.h
portable/Common/mpu_wrappers.c