hujun260 commented on PR #18185: URL: https://github.com/apache/nuttx/pull/18185#issuecomment-3817643794
> > > > test log provided > > > > > > > > > Please provide the test log for both the architectures you tested on, and include the full test output. > > > Also, your change says: > > > > ``` > > > > Enables CONFIG_MM_TASK_HEAP mode for per-task heap isolation > > > > Implements mpu_update() function to dynamically configure heap MPU regions > > > > Creates isolated heap regions with user read/write permissions > > > > Surrounds heap with kernel-only background regions for access control > > > > ``` > > > > > > > > > Since your change includes new logic, it will not be adequately tested by OS test. Can you please provide some information about the test cases you used to verify that the new features work correctly, and include log output from them? > > > > > > The key point of this feature is that, in protection mode, the stacks and heaps of different threads can be isolated. You can refer to the code below; one thread cannot access the stack of another thread. <img alt="image" width="802" height="542" src="https://private-user-images.githubusercontent.com/128452594/542201408-58280c1c-f7f9-484e-a136-9dea507e40d0.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njk2OTE5MDEsIm5iZiI6MTc2OTY5MTYwMSwicGF0aCI6Ii8xMjg0NTI1OTQvNTQyMjAxNDA4LTU4MjgwYzFjLWY3ZjktNDg0ZS1hMTM2LTlkZWE1MDdlNDBkMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMTI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDEyOVQxMzAwMDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYzE2ZGMwMzU2MmU3MzQyOTM5OGMyOTFkMjg5MTJlNGQ0OTc2OGEyYjE2OGY2YzlmNGViMzUxMmIyN2ZkN2Q0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.t1 _K5Tml46NJh3CCR_uePvdkImixyinbG-qxBnySajE"> > > <img alt="image" width="1500" height="685" src="https://private-user-images.githubusercontent.com/128452594/542200841-9f09c237-3eeb-4539-9912-66ef23d9a1a6.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njk2OTE5MDEsIm5iZiI6MTc2OTY5MTYwMSwicGF0aCI6Ii8xMjg0NTI1OTQvNTQyMjAwODQxLTlmMDljMjM3LTNlZWItNDUzOS05OTEyLTY2ZWYyM2Q5YTFhNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMTI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDEyOVQxMzAwMDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lNTgwYWI3ZDRjNGFlZTU4YjNiYzcxZThhOTlhYTM3MDcxMTRmOTk1ZDI2MmQ1ZDBhYzQ3YzY0NTMyZTgxNmUxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.YuUvWpdoFVv_CkNNcRBHolGy37L1-RKe_UVm-5DbDhE"> > > @hujun260 please create a apps/testing with this sample code to be used to valid MPU protection. Is there some way to catch this exception and avoid throwing the dump to user? Currently, an access anomaly has occurred and is not being handled correctly, preventing the subsequent program from executing normally. We are currently working on implementing this functionality. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
