mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-30 16:14:13 +00:00
2664afbd7d
In base-fiasco, base-foc and base-pistachio, physical memory gets mapped 1:1 to core virtual memory. When the 'Ram_session_component' allocates physical memory for a client, it zeroes out the corresponding area in core's virtual address space and then maps the area to the client. If this area overlaps with core's virtual thread context area (usually at 0x40000000-0x4fffffff), the stack of one or more core threads can get overwritten. To avoid this problem, with this patch, the thread context area gets removed from the physical RAM allocator on these platforms. Fixes #660.