Bug 217751 - Xenstore: there is a deadlock when suspending user-space processes
Summary: Xenstore: there is a deadlock when suspending user-space processes
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-xen mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2017-03-13 12:50 UTC by Ouyang Zhaowei
Modified: 2017-03-14 06:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ouyang Zhaowei 2017-03-13 12:50:23 UTC
If there is a user process which maybe often reads and writes xenstore, the application has been suspended after stop_all_proc is called. It held xs.request_mutex lock but in the following functions xs_write and xs_suspend will not get the lock. So the VM will hang.
Comment 1 Ouyang Zhaowei 2017-03-13 12:51:11 UTC
This patch can fix this bug:
https://reviews.freebsd.org/rS314841