From: "kjtsanaktsidis (KJ Tsanaktsidis) via ruby-core" Date: 2024-01-28T04:55:50+00:00 Subject: [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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/