SPDX-License-Identifier: Apache-2.0
Unless a requirement states otherwise, the requirements in this document apply where user mode support is enabled. The stack canary requirements and the write-XOR-execute enforcement do not depend on user mode support.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support memory protection features to isolate a thread's memory region.
As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide a mechanism to grant user threads access to kernel objects.
As a Zephyr RTOS user I want, from the user space, under certain conditions, access to kernel objects.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall be able to differentiate between user threads and kernel threads for memory access.
As a Zephyr RTOS user I want, from the kernel space, unconditioned access to kernel objects.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall have a defined behaviour when an invocation of an unimplemented system call is made.
As a Zephyr RTOS user I want Zephyr OS to indicate any unimplemented system call by an appropriate error message.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall have a defined behaviour when an invalid system call ID is used.
As a Zephyr RTOS user I want Zephyr OS to indicate invalid system call by an appropriate error message.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall prevent user threads from creating new threads that are higher priority than the caller.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support revoking permission to a kernel object. User mode threads may only revoke their own access to an object.
As a Zephyr RTOS user I want to be protected against other user threads changing access to kernel objects of my thread.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall prevent user threads from creating kernel threads.
As a Zephyr RTOS user I want to be protected against user threads creating higher privileged kernel/supervisor threads.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall allow the creation of threads that run in reduced privilege level.
As a Zephyr RTOS user I want to be able to create lower privileged threads than my own.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide system calls to allow user mode threads to perform privileged operations.
As a Zephyr RTOS user I want to be able to perform privileged operations in the kernel mode through a well defined interface.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support a defined mechanism for user mode handling of a detected stack overflow.
As a Zephyr RTOS user I want, when a stack overflow is detected, to be able to implement a graceful, application defined handling of the exception.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support detection of stack overflows.
As a Zephyr RTOS user I want to get an indication when a stack overflow occurs at least during debugging / the development phase, and for safety applications also in a release version of my application.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support configurable access to memory during boot time.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide helper functions for system call handler functions to validate the inputs passed in from user mode before invoking the implementation function to protect the kernel.
As a Zephyr RTOS user I want Zephyr OS to validate system call parameters passed from the user mode to the kernel mode to avoid crashes and undefined behaviour.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support system calls to be able to safely accept C strings passed in from user mode.
As a Zephyr RTOS user I want Zephyr OS to validate system call string type parameters passed from the user mode to the kernel mode to avoid crashes and undefined behaviour, for example verifying that the string length does not exceed the maximum defined for the system call.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall track the kernel objects that are in use by each user mode thread.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall have an interface to request access to specific memory after initial allocation.
As a Zephyr RTOS user I want to be able to request read-only or read-write access to a dedicated memory area/pool during runtime.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall support assigning a memory pool to act as that thread's resource pool.
As a Zephyr RTOS user I want to be able, during runtime from the kernel, to request a memory area/pool which is exclusively available to the requesting thread protected against access from other threads.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide a mechanism to define a memory partition that describes a region of memory together with its access attributes.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide a mechanism to initialize a memory domain at run time, composed of a set of memory partitions.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide a mechanism to add a memory partition to an initialized memory domain.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
Where write-XOR-execute enforcement is enabled, if a memory partition that permits both write and execute access is added to a memory domain, then the Zephyr RTOS shall reject the partition and return an error.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
If a memory partition that overlaps an existing partition of the same memory domain is added, then the Zephyr RTOS shall reject the partition and return an error.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide a mechanism to remove a memory partition from a memory domain.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
The Zephyr RTOS shall provide a mechanism to assign a thread to a memory domain so that the thread gains access to the domain's partitions.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
When a thread that is assigned to a memory domain is assigned to another memory domain, the Zephyr RTOS shall remove the thread from its previous memory domain.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
While a thread runs in user mode, the Zephyr RTOS shall restrict the thread's memory accesses to:
- the thread's own stack,
- the partitions of the memory domain to which the thread is assigned, and
- operations, through system calls, on the kernel objects the thread has been granted access to.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
If a user mode thread attempts to access memory outside the regions it is permitted to access, then the Zephyr RTOS shall raise a fatal error attributed to that thread.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
Where stack canary protection is enabled, the Zephyr RTOS shall detect corruption of a function's stack frame using a guard value.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
If stack frame corruption is detected, then the Zephyr RTOS shall treat the corruption as a fatal software error.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
Where thread-local stack canaries are enabled, the Zephyr RTOS shall assign each thread its own stack canary value.
-
20. Memory Management framework UID: ZEP-SYRS-9 STATUS: Draft TYPE: Functional COMPONENT: Memory Management RELATIONS (Child): - ZEP-SRS-9-1 Dynamic Memory Allocation
- ZEP-SRS-9-2 Memory Slab Object
- ZEP-SRS-9-3 Heap definition at compile time
- ZEP-SRS-9-4 Heap initialization at run time
- ZEP-SRS-9-5 Heap allocation
- ZEP-SRS-9-6 Heap aligned allocation
- ZEP-SRS-9-7 Heap allocation timeout
- ZEP-SRS-9-8 Heap allocation failure
- ZEP-SRS-9-9 Heap reallocation
- ZEP-SRS-9-10 Heap free
- ZEP-SRS-9-11 System heap allocation and release
- ZEP-SRS-9-12 Memory slab definition at compile time
- ZEP-SRS-9-13 Memory slab initialization at run time
- ZEP-SRS-9-14 Memory slab block allocation
- ZEP-SRS-9-15 Memory slab allocation timeout expiry
- ZEP-SRS-9-16 Memory slab block free
- ZEP-SRS-9-17 Memory slab usage statistics
- ZEP-SRS-9-18 Enumerating defined heaps
- ZEP-SRS-8-1 Memory Protection
- ZEP-SRS-8-2 Granting access to kernel objects
- ZEP-SRS-8-3 Separation between user and kernel threads for memory access
- ZEP-SRS-8-4 Safely handle unimplemented calls or invalid system calls
- ZEP-SRS-8-5 Response to invalid system call IDs
- ZEP-SRS-8-6 Prevent user threads creating higher priority threads
- ZEP-SRS-8-7 Revoking threads permissions on a kernel object
- ZEP-SRS-8-8 Prevent user threads creating supervisor threads
- ZEP-SRS-8-9 Reduced Privilege Level Threads
- ZEP-SRS-8-10 User Mode Threads Performing Privileged Operations
- ZEP-SRS-8-11 User mode handling of detected stack overflow
- ZEP-SRS-8-12 Stack Overflow Detection
- ZEP-SRS-8-13 Boot Time Memory Access Policy
- ZEP-SRS-8-14 System Call Handler Functions
- ZEP-SRS-8-15 System Call C strings in user mode
- ZEP-SRS-8-16 Tracking kernel objects in use by user mode threads
- ZEP-SRS-8-17 Granting threads access to specific memory
- ZEP-SRS-8-18 Assigning memory pools to act as a thread resource pool
- ZEP-SRS-8-19 Memory partition definition
- ZEP-SRS-8-20 Memory domain definition
- ZEP-SRS-8-21 Adding a partition to a memory domain
- ZEP-SRS-8-28 Rejecting writable and executable partitions
- ZEP-SRS-8-29 Rejecting overlapping partitions
- ZEP-SRS-8-22 Removing a partition from a memory domain
- ZEP-SRS-8-23 Assigning a thread to a memory domain
- ZEP-SRS-8-30 Reassigning a thread to another memory domain
- ZEP-SRS-8-24 Default user thread memory isolation
- ZEP-SRS-8-32 Response to a user thread memory access violation
- ZEP-SRS-8-25 Stack canary protection
- ZEP-SRS-8-31 Stack canary corruption handling
- ZEP-SRS-8-26 Per-thread stack canary values
- ZEP-SRS-8-27 Stack pointer randomization
- ZEP-SRS-36-17 Enforcing mapping access permissions
- ZEP-SRS-36-3 Reclaiming the virtual address region on unmap
- ZEP-SRS-36-4 Anonymous memory mapping
- ZEP-SRS-36-16 Releasing an anonymous memory mapping
- ZEP-SRS-36-5 Guard pages for anonymous memory mappings
- ZEP-SRS-36-6 User-mode-accessible memory mappings
- ZEP-SRS-36-7 Reporting failure when mappable memory is exhausted
- ZEP-SRS-36-8 Servicing page faults through demand paging
- ZEP-SRS-36-9 Paging out a memory region
- ZEP-SRS-36-10 Paging in a memory region
- ZEP-SRS-36-11 Pinning a memory region in physical memory
- ZEP-SRS-36-12 Unpinning a memory region
- ZEP-SRS-36-13 Collecting demand paging statistics
- ZEP-SRS-36-18 Collecting per-thread demand paging statistics
- ZEP-SRS-36-14 Collecting demand paging timing histograms
- ZEP-SRS-36-19 Collecting backing store timing histograms
- ZEP-SRS-36-15 On-demand evictable code and data sections
STATEMENT: The Zephyr RTOS shall support a memory management framework.
USER_STORY: As a Zephyr RTOS user I want memory to be allocated and protected to my application threads preventing mistakenly access to foreign memory as far as the hardware allows.
Where stack pointer randomization is enabled, the Zephyr RTOS shall apply a randomized offset to a thread's initial stack pointer.