LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

Frida windows thread local

Open s1341 opened this issue 1 year ago • 2 comments

Fix windows thread local by refactoring the thread_local! into an os_thread_local::ThreadLocal and embedding it in the AsanRuntime type.

This fix is necessary because static thread local storage appears to be broken on windows. The TEB is supposed to have a ThreadLocalStoragePointer, but it appears to be uninitialized even though thread_local variables were declared in the main executable, leading to a null deref.

The os-thread-local crate uses a dynamic thread local storage api, and thus works.

s1341 avatar Jul 23 '24 05:07 s1341

News?

domenukk avatar Sep 28 '24 12:09 domenukk

I have some patches on this... but need to find time to work on them.

s1341 avatar Sep 29 '24 12:09 s1341

Status?

domenukk avatar Feb 11 '25 19:02 domenukk

this should be superseded by #2955

s1341 avatar Feb 12 '25 06:02 s1341