New commits:
commit 08bb6fe88284b1976914eb7e3f8cae9e1c2feec9
Author: Andrew Cagney <[email protected]>
Date: Sat Dec 9 11:20:00 2017 -0500
events: save the event handle, and then enable the event
Fixes the race:
- helper thread creates event
- helper thread enables event
- main thread runs event, tries to use event handle
- helper thread saves event handle
for instance, in the code sequence:
pexpect(ne->ne_event != NULL);
ne->ne_cb(ne->ne_arg);
passert(ne->ne_event != NULL);
the pexpect() could fail because the handle hand't been saved
yet the passert() would pass.
Root cause of d457dede06f6e22e927590d1059e303cbe02cd82's core dump.
_______________________________________________
Swan-commit mailing list
[email protected]
https://lists.libreswan.org/mailman/listinfo/swan-commit