-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arch/esp32_himemcdev: Replace file descriptor with node #15885
base: master
Are you sure you want to change the base?
Conversation
…file share the f_inode, ensuring that the mapping status is associated with the file entity rather than a single descriptor. Avoid redundant mapping operations caused by multiple descriptors operating on the same file. Signed-off-by: nuttxs <[email protected]>
[Experimental Bot, please feedback here] This PR appears to partially meet the NuttX requirements. While it provides a summary and some testing information, it lacks crucial details. Here's a breakdown of what's missing and how to improve it:
In short, the PR needs more detail and context to meet the NuttX requirements fully. Expanding the Summary, thoroughly addressing each point in the Impact section, and providing specific testing information will significantly improve the PR's quality and make it easier for reviewers to understand and approve. |
Hi @nuttxs , can you please adhere to these recommendations and improve the MR description? |
Hi @tmedicci have updated the description of the current MR, please review again, thanks |
Summary
arch/esp32_himemcdev:
Why: The original file-pointer-based check caused incorrect mapping behavior for multiple opens of the same device, leading to memory corruption or leaks.
Consequences: Repeated calls on the same device could corrupt mappings or leave stale resources.
Impact
New Feature/Change:
Bug Fix: Corrects mapping logic for ESP32 himem (no new features).
User Impact:
Functional Change: Users accessing the same himem device from multiple threads/processes will no longer encounter mapping errors.
No Code Changes Required: Existing applications work correctly without modifications.
Build Impact:
No new Kconfig options or build system changes.
Hardware Impact:
ESP32-specific; other architectures unaffected.
Security:
Fixes potential memory corruption vulnerabilities in multi-threaded access.
Compatibility:
Backward-compatible; no breaking changes.
Testing
ESP32-DevKitC, NuttX with CONFIG_ESP32_SPIRAM_BANKSWITCH_ENABLE & CONFIG_TESTING_HIMEM_TEST and testing