Skip to content
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

amebad/fwlib/ram_hp: set access level of PSRAM kernel heap as privileged only #5995

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abhishek-samsung
Copy link
Contributor

Earlier, PSRAM kernel heap was set to be unprivileged accessible, which caused issue with memory protection. Hence, make it only privileged accessible.

…ged only

Earlier, PSRAM kernel heap was set to be unprivileged accessible, which caused
issue with memory protection. Hence, make it only privileged accessible.

Signed-off-by: Abhishek Akkabathula <a.akkabathul@samsung.com>
@abhishek-samsung
Copy link
Contributor Author

Earlier, data abort was not causes when accessing this address from application space, now with this commit, it causes data abort with permission error.

TASH>>hello
TASH>>print_memfault_detail: #########################################################################
print_memfault_detail: PANIC!!! Memory Management Fault at instruction : 0x0213aba6
print_memfault_detail: FAULT TYPE: DACCVIOL (Data access violation occurred. Check MPU RW permissions).
print_memfault_detail: FAULT ADDRESS: 0x02000008
print_memfault_detail: FAULT REGS: CFAULTS: 0x00000082 MMFAR: 0x02000008
print_memfault_detail: #########################################################################


up_assert: ==============================================
up_assert: Assertion failed
up_assert: ==============================================
up_assert: security level: 0
print_assert_detail: Assertion failed at file:armv8-m/up_memfault.c line: 173 task: hello
up_dumpstate: Code asserted in normal thread!
up_dumpstate: Current SP is User Thread SP: 02202930
up_dumpstate: User stack:

testcases,

[itc_pthread_pthread_kill_n_rekill] PASS

[itc_pthread_pthread_cond_init_destroy_n] PASS

[itc_pthread_setgetname_np_p_reset_name] PASS

[itc_pthread_equal_pthread_self_p] PASS

[itc_pthread_mutex_init_destroy_p_multitime] PASS

[itc_pthread_key_create_set_get_delete_specific_p_multitime] PASS

########## Kernel TC End [PASS : 415, FAIL : 0] ##########

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants