Re: [PATCH v12] exec: Fix dead-lock in de_thread with ptrace_attach

2023-10-30 Thread kernel test robot
ace_attach/20231030-133021 base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/execve patch link: https://lore.kernel.org/r/AS8P193MB1285DF698D7524EDE22ABFA1E4A1A%40AS8P193MB1285.EURP193.PROD.OUTLOOK.COM patch subject: [PATCH v12] exec: Fix dead-lock in de_t

[PATCH v12] exec: Fix dead-lock in de_thread with ptrace_attach

2023-10-29 Thread Bernd Edlinger
This introduces signal->exec_bprm, which is used to fix the case when at least one of the sibling threads is traced, and therefore the trace process may dead-lock in ptrace_attach, but de_thread will need to wait for the tracer to continue execution. The solution is to detect this situation and al