x86 memory domain configuration not always applied correctly on context switch when partitions are added #13918
Labels
area: Memory Protection
bug
The issue is a bug, or the PR is fixing a bug
priority: high
High impact/importance bug
Scenario:
Unlike k_mem_domain_remove_partition(), which invokes _arch_mem_domain_partition_remove() if the caller is in the same domain being worked on, k_mem_domain_add_partition() does not call into arch code at all when partitions are added, and there isn't an arch-level API for this even if we wanted to.
x86 doesn't touch the page tables on context switch if the incoming and outgoing threads are in the same memory domain.
This does not seem to be a problem on ARM or ARC.
The text was updated successfully, but these errors were encountered: