]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
uprobes: uprobe_warn should use passed task
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 25 Aug 2025 03:34:21 +0000 (22:34 -0500)
committerWill Deacon <will@kernel.org>
Tue, 16 Sep 2025 20:34:49 +0000 (21:34 +0100)
commitba1afc94deb849eab843a372b969444581add2c9
treecf0ea8813ea4fb847f48193731c9ffdd5a54f3f6
parentcc66c711e58f5dd29da79c24ca699a0312e012e3
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: 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>
kernel/events/uprobes.c