diff options
| author | Jeremy Linton <jeremy.linton@arm.com> | 2025-08-24 22:34:21 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-15 11:59:54 +0200 |
| commit | 8690cf5931132a0785ca162e95cac588c901f187 (patch) | |
| tree | 9f516f59bae4b76b095df14c88a8cc39a860173b /kernel/events | |
| parent | 26fa5088efca1f7ed45ebadf4c498f5c983e027a (diff) | |
| download | linux-8690cf5931132a0785ca162e95cac588c901f187.tar.gz linux-8690cf5931132a0785ca162e95cac588c901f187.tar.bz2 linux-8690cf5931132a0785ca162e95cac588c901f187.zip | |
uprobes: uprobe_warn should use passed task
[ Upstream commit ba1afc94deb849eab843a372b969444581add2c9 ]
uprobe_warn() is passed a task structure, yet its using current. For
the most part this shouldn't matter, but since a task structure is
provided, lets use it.
Fixes: 248d3a7b2f10 ("uprobes: Change uprobe_copy_process() to dup return_instances")
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel/events')
| -rw-r--r-- | kernel/events/uprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index e60f5e71e35d..c00981cc6fe5 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -114,7 +114,7 @@ struct xol_area { static void uprobe_warn(struct task_struct *t, const char *msg) { - pr_warn("uprobe: %s:%d failed to %s\n", current->comm, current->pid, msg); + pr_warn("uprobe: %s:%d failed to %s\n", t->comm, t->pid, msg); } /* |
