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

Backport v1.14: syscalls: arm: Fix possible overflow in is_in_region function #23653

Merged
merged 2 commits into from
Mar 24, 2020

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Mar 20, 2020

Manually backporting issue: #23239 to v1.14 branch

@ceolin ceolin added area: ARM ARM (32-bit) Architecture backport v1.14-branch Backport Backport PR and backport failure issues labels Mar 20, 2020
@ceolin ceolin requested a review from nashif March 20, 2020 21:06
Flavio Ceolin added 2 commits March 24, 2020 09:05
This function is widely used by functions that validate memory
buffers. Macros used to check permissions, like Z_SYSCALL_MEMORY_READ
and Z_SYSCALL_MEMORY_WRITE, use these functions to check that a
pointers passed by user threads in a syscall.

Signed-off-by: Flavio Ceolin <[email protected]>
Documenting that 0 size buffer has undefined behavior.
See: zephyrproject-rtos#23239

Signed-off-by: Flavio Ceolin <[email protected]>
@nashif nashif merged commit f032de6 into zephyrproject-rtos:v1.14-branch Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARM ARM (32-bit) Architecture area: Kernel Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants