diff options
author | Oleg Nesterov <oleg@redhat.com> | 2020-11-03 12:39:01 +0100 |
---|---|---|
committer | Mark Gross <markgross@kernel.org> | 2022-01-11 17:30:34 -0800 |
commit | 5e791f3d823eadeaee61c176ea338d27c6317d17 (patch) | |
tree | 607e5b2845c93af364e1de914e906acdd9605a0e /fs/9p | |
parent | 338ff49914bf532f29c86264aae9abee5dab079e (diff) | |
download | linux-rt-5e791f3d823eadeaee61c176ea338d27c6317d17.tar.gz |
ptrace: fix ptrace_unfreeze_traced() race with rt-lock
[ Upstream commit 0fdc91971b34cf6857b4cfd8c322ae936cfc189b ]
The patch "ptrace: fix ptrace vs tasklist_lock race" changed
ptrace_freeze_traced() to take task->saved_state into account, but
ptrace_unfreeze_traced() has the same problem and needs a similar fix:
it should check/update both ->state and ->saved_state.
Reported-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Fixes: "ptrace: fix ptrace vs tasklist_lock race"
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: stable-rt@vger.kernel.org
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Luis Claudio R. Goncalves <lgoncalv@redhat.com>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions