Dear maintainers for Xen Project,
I am writing you to report a bug due to the unreleased lock. The impact could be deadlock or memory consumption. In the function of read_watch_internal, the mutex lock h->watch_mutex (Line901) is not released correctly when read_message(h,nonblocking)== -1(Line 923). Looking forward to your feedback. Thank for checking.
Locations, https://github.com/xen-project/xen/blob/master/tools/libs/store/xs.c#L902-L924
Best,
Ryan Cai