]> Zhao Yanbai Git Server - minix.git/commit
VM: fix race condition communicating with VM 06/3406/1
authorDavid van Moolenbroek <david@minix3.org>
Thu, 23 Feb 2017 11:20:33 +0000 (11:20 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 23 Feb 2017 11:27:42 +0000 (11:27 +0000)
commit2109df2759373685713da83de61b10bf2f05055e
treee1e31eb4bf0652624f15cc74479973b0ed026455
parent3e1f70db42f099696c68ae51eaf54e57bc024f02
VM: fix race condition communicating with VM

After processing certain asynchronous requests from VFS, VM would send
an asynchronous reply without supplying the AMF_NOREPLY flag.  As a
result, this asynchronous reply could be taken as the result of an
ipc_sendrec() call, causing the entire VM/VFS communication to become
desynchronized.  The end result was a deadlock-induced panic during a
later request.

This bug was exposed because of the higher-than-usual concurrency
level in the NetBSD rc scripts.  The fix consists of properly setting
the AMF_NOREPLY flag for asynchronous replies.

Change-Id: Iafafe2fdd67f212ecbf27a53862cefba2e4cf7e8
minix/servers/vm/pagefaults.c