genode/repos/base-nova
Alexander Boettcher ceb04d3c11 nova: avoid race in pager_object destruction
Don't skip the cleanup call if a pager object is marked as blocked.

It happens that the pager_object is in destruction but it is also used
concurrently by the pager thread. The pager thread handling code may set the
pager object to blocked but still uses the pointer to the pager object. Avoid
locking at the state of the pager object and make the cleanup call everytime.

Error output looks like this, where the pf_ip is within

  void Pager_object::_page_fault_handler(addr_t pager_obj)

method and the pf_addr is the stale pointer to the already released pager_object.

no RM attachment (READ pf_addr=xxx pf_ip=xxx from 00 <NULL>)
static void Genode::Pager_object::_page_fault_handler(Genode::addr_t): page fault, thread '<NULL>', cpu x, ip=xxx, fault address=xxx

PAGE-FAULT IN CORE (READ pf_addr=b10e0090 pf_ip=132dbc from 00 <NULL>)
2015-10-28 15:06:22 +01:00
..
doc Introduce 'spec' subdirectories to outline aspects 2015-09-16 13:58:50 +02:00
etc Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
include nova: avoid deadlocks by self-destructing threads 2015-10-06 12:18:50 +02:00
lib/mk Introduce 'spec' subdirectories to outline aspects 2015-09-16 13:58:50 +02:00
mk/spec Introduce 'spec' subdirectories to outline aspects 2015-09-16 13:58:50 +02:00
patches Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00
ports nova: adjust kernel quota calculation 2015-10-09 16:38:47 +02:00
run nova: extend platform test by PAT test 2015-08-31 09:09:22 +02:00
src nova: avoid race in pager_object destruction 2015-10-28 15:06:22 +01:00
Makefile Enable hash checks for ports mechanism 2014-05-27 13:45:03 +02:00
README Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00

This repository contains the port of Genode to the NOVA microhypervisor.

For more information on this base platform, please refer to the official
website.

:[http://hypervisor.org]: Official website for the NOVA microhypervisor.

For information on using Genode on NOVA, please revisit the documentation at
'base-nova/doc/nova.txt':