[ruby-core:116466] [Ruby master Bug#20220] M:N threading needs to tell ASAN about stack switches

Issue #20220 has been reported by kjtsanaktsidis (KJ Tsanaktsidis). ---------------------------------------- Bug #20220: M:N threading needs to tell ASAN about stack switches https://bugs.ruby-lang.org/issues/20220 * Author: kjtsanaktsidis (KJ Tsanaktsidis) * Status: Open * Priority: Normal * Assignee: kjtsanaktsidis (KJ Tsanaktsidis) * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- When switching stacks via `coroutine_transfer` in the M:N threading information, we need to tell ASAN about it in the same way that we do in cont.c. This is a matter of calling `__sanitizer_start_switch_fiber` in the transferring M:N thread, and then calling `__sanitizer_finish_switch_fiber` in the transferred-to M:N thread. -- https://bugs.ruby-lang.org/
participants (1)
-
kjtsanaktsidis (KJ Tsanaktsidis)