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

userspace: dynamic: Fix k_thread_stack_free verification #72964

Merged
merged 2 commits into from
May 22, 2024

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented May 17, 2024

k_thread_stack_free syscall was not checking if the caller had permission to the given stack object.

k_thread_stack_free syscall was not checking if the caller
had permission to given stack object.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
Check if a user thread is capable of free another thread stack.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
@cfriedt cfriedt added backport v3.5-branch Backport to the v3.5-branch backport v3.6-branch Request backport to the v3.6-branch labels May 17, 2024
Copy link
Contributor

@andyross andyross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

@nashif nashif merged commit 95dde52 into zephyrproject-rtos:main May 22, 2024
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Kernel backport v3.5-branch Backport to the v3.5-branch backport v3.6-branch Request backport to the v3.6-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants