# Re: \[PATCH v4 8/8\] uprobes: uprobe\_warn should use passed task

- From: Oleg Nesterov \<oleg@redhat.com\>
- Date: 2025-07-21 12:13:27 
- List: linux-trace-kernel
- Page: https://ratatoskr.run/linux-trace-kernel/2025/07/3142393
- Thread: https://ratatoskr.run/linux-trace-kernel/2025/07/3140791/t.md

```text
On 07/18, Jeremy Linton wrote:
>
> --- a/kernel/events/uprobes.c
> +++ b/kernel/events/uprobes.c
> @@ -121,7 +121,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);
>  }

Acked-by: Oleg Nesterov <oleg@redhat.com>

```
