-
Notifications
You must be signed in to change notification settings - Fork 235
[nrf noup] boot: zephyr: Disable self RWX #491
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
base: main
Are you sure you want to change the base?
Conversation
918b809
to
64f45fd
Compare
64f45fd
to
460752d
Compare
Disables read write and execute on mcuboots NVM at the end of execution. Signed-off-by: Mateusz Michalek <[email protected]>
460752d
to
a25c7c4
Compare
|
@@ -472,6 +472,13 @@ config MCUBOOT_CLEANUP_RAM | |||
help | |||
Sets contents of memory to 0 before jumping to application. | |||
|
|||
config MCUBOOT_DISABLE_SELF_RWX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config MCUBOOT_DISABLE_SELF_RWX | |
config NCS_MCUBOOT_DISABLE_SELF_RWX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are trying to not conflict noups with anything that may come from upstream.
@@ -163,6 +182,84 @@ struct arm_vector_table { | |||
uint32_t reset; | |||
}; | |||
|
|||
static void __ramfunc jump_in(uint32_t reset) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have better name for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, however this is the hardest part. Any suggestions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you seen names I have invented?
Disables read write and execute on mcuboots NVM
at the end of execution.