Skip to content

Commit ba1afc9

Browse files
jlintonarmwilldeacon
authored andcommitted
uprobes: uprobe_warn should use passed task
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: 248d3a7 ("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>
1 parent cc66c71 commit ba1afc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/events/uprobes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ struct xol_area {
121121

122122
static void uprobe_warn(struct task_struct *t, const char *msg)
123123
{
124-
pr_warn("uprobe: %s:%d failed to %s\n", current->comm, current->pid, msg);
124+
pr_warn("uprobe: %s:%d failed to %s\n", t->comm, t->pid, msg);
125125
}
126126

127127
/*

0 commit comments

Comments
 (0)