Please sign in to comment.
Yama: access task_struct->comm directly
The core ptrace access checking routine holds a task lock, and when reporting a failure, Yama takes a separate task lock. To avoid a potential deadlock with two ptracers taking the opposite locks, do not use get_task_comm() and just use ->comm directly since accuracy is not important for the report. Reported-by: Fengguang Wu <firstname.lastname@example.org> Suggested-by: Oleg Nesterov <email@example.com> CC: firstname.lastname@example.org Signed-off-by: Kees Cook <email@example.com> Acked-by: John Johansen <firstname.lastname@example.org> Signed-off-by: James Morris <email@example.com>
- Loading branch information...