wasm-micro-runtime/core/iwasm/libraries
Wenyong Huang c39214e8a5
Fix potential recursive lock in pthread_create_wrapper (#2980)
Potential recursive lock occurs in:
```
pthread_create_wrapper   (acquire exec_env->wait_lock)
  => wasm_cluster_create_thread
    => allocate_aux_stack
      => wasm_runtime_module_malloc_internal
        => wasm_call_function
          => wasm_exec_env_set_thread_info (acquire exec_env->wait_lock again)
```
Allocate aux stack before calling wasm_cluster_create_thread to resolve it.

Reported in https://github.com/bytecodealliance/wasm-micro-runtime/pull/2977.
2024-01-08 09:43:31 +08:00
..
debug-engine Update release notes and fix issues reported by Coverity (#1813) 2022-12-20 14:37:07 +08:00
lib-pthread Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
lib-rats Attestation: Free JSON from the Wasm module heap (#2803) 2023-11-22 10:48:14 +08:00
lib-socket Enable WASI tests on Windows CI (#2699) 2023-11-06 19:24:06 +08:00
lib-wasi-threads Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
libc-builtin Clear some warnings and enable -Werror for NuttX (#1756) 2022-11-28 09:44:33 +08:00
libc-emcc Expose wasm_runtime_call_indirect (#1969) 2023-02-20 18:56:55 +08:00
libc-uvwasi Return uint32 from WASI functions (#2749) 2023-11-13 20:07:32 +08:00
libc-wasi freertos: Change ssp_config.h due to clock_nanosleep() not supported in freertos (#2979) 2024-01-04 20:01:54 +08:00
thread-mgr Fix potential recursive lock in pthread_create_wrapper (#2980) 2024-01-08 09:43:31 +08:00
wasi-nn Remove module instance from hashmap in wasi_nn_destroy (#2613) 2023-10-03 08:33:11 +08:00