Skip to content

Fix race condition in watch_add_notify

kn requested to merge (removed):main into main

watch_add_notify gets the GNode with the cache_lock but then relesaes the cache_lock and acquires message_lock. Before that thread can acquire the message_lock another thread can call watch_remove_notify and remove the same prefix causing the GNode that was returned to thread 1 to be stale/bad.

Merge request reports

Loading