Skip to content

Fix to protect fwk_signal_ctx from interrupts

Darryl Green requested to merge github/fork/mhiramat/master into master

Created by: mhiramat

Since fwk_process_signal() enable global interrupt before updating fwk_signal_ctx.pending_signals, there can race with the increment operation in fwk_thread_put_signal(). Call fwk_interrupt_global_enable() after updating the fwk_signal_ctx, so that it can be protected by fwk_thread_put_signal().

Reported-by: Kazuhiko Sakamoto sakamoto.kazuhiko@socionext.com Signed-off-by: Masami Hiramatsu masami.hiramatsu@linaro.org

Merge request reports