criu/include/common
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
..
arch include: don't use GCC's __builtin_ffs on riscv64 2025-03-21 12:40:31 -07:00
asm-generic asm: fix for_each_bit macro 2023-04-15 21:17:21 -07:00
bitops.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
bitsperlong.h common: bitsperlong -- Specify complete path 2016-11-03 00:13:04 +03:00
bug.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
compiler.h compiler: add ALIGN_DOWN macro 2024-09-11 16:02:11 -07:00
err.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
list.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
lock.h criu: fix log_keep_err signal deadlock 2025-03-25 14:31:33 -07:00
page.h common: Use complete path in inclusion 2016-11-03 00:13:04 +03:00
scm-code.c Fix some codespell warnings 2022-04-28 17:53:52 -07:00
scm.h ci: fix new codespell errors 2023-10-22 13:29:25 -07:00
xmalloc.h Run 'make indent' on header files 2021-09-03 10:31:00 -07:00