Skip to content

x86: Implement simple stack memory protection #3626

@zephyrbot

Description

@zephyrbot

Reported by Andrew Boie:

Implement a simple stack protection scheme on x86.
General policy:

  1. Writes to any stacks not owned by the currently running thread should pagefault
  2. Writes to any memory immediately preceding the current stack should immediately pagefault

To implement #2, stacks may need to be positioned between rodata and data, such that the first byte before the first stack is read-only and will trigger a pagefault if written to.

Depends on GH-3623, GH-3531

(Imported from Jira ZEP-2188)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions