Open hongxuchen opened 5 years ago
FYI, we collected several other pocs with different crashing backtraces here.
@HongxuChen I will definitely take a look and figure it out.
Thank you for the report!
@lexborisov my pleasure!
Hi @lexborisov , I had a quick review of the source code, it seems to relevant with the data race on queue->nodes_uses
, which subsequently affects the memory (re)allocation operations and the wait/sleep flows. I'd suggest applying some basic locks for this data to avoid security and logic issues. Modest
seems also affected.
@HongxuChen
Thanks for the work you've done! I plan to rewrite the part of the code responsible for threads.
P.S.: There are no such problems in the lexbor project: the speed is the same, there are no threads, it consumes less resources, selectors will appear soon.
@lexborisov Great! Will try lexbor :ok_hand:
When fuzzing the AddressSanitizer hardened
callback_tree_node_high_level
, we found several vulnerabilities/crashes due to multithreading. A sample proof-of-crash (poc) file (zipped) is:NPE_r__mchar_async.c:656_1.html.zip
with the error message like:
In case it is not easily reproducible, we use the following command:
We will provide other pocs later.