criu/include
Ivan Pravdin bc14153173 criu: fix log_keep_err signal deadlock
When using pr_err in signal handler, locking is used
in an unsafe manner. If another signal happens while holding the
lock, deadlock can happen.

To fix this, we can introduce mutex_trylock similar to
pthread_mutex_trylock that returns immediately. Due to the fact
that lock is used only for writing first_err, this change garantees
that deadlock cannot happen.

Fixes: #358

Signed-off-by: Ivan Pravdin <ipravdin.official@gmail.com>
2025-03-25 14:31:33 -07:00
..
common criu: fix log_keep_err signal deadlock 2025-03-25 14:31:33 -07:00
apparmor.h check: add a feature test for apparmor_stacking 2021-09-03 10:31:00 -07:00