duktape: race condition fix

Laurent Gauthier laurent.gauthier at soccasys.com
Tue Oct 18 09:39:52 UTC 2022


Hi all,

Just a quick note to bring your attention to a merge request I have created:

* https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/140

We discovered a a race condition in the execution of duktape rules
which is not triggered very often
but when it is results in

The root-cause it appears is the lack of mutex lock/unlock operation
around the update of the return
AND the pthread_cond_signal().

Let me know if you have any questions.

Kind regards, Laurent.
-- 
Laurent Gauthier
Embedded Linux Systems & Software
Phone: +33 630 483 429
https://soccasys.com


More information about the polkit-devel mailing list