[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250508100258.5ea70831@gandalf.local.home>
Date: Thu, 8 May 2025 10:02:58 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Bhupesh Sharma <bhsharma@...lia.com>
Cc: Petr Mladek <pmladek@...e.com>, akpm@...ux-foundation.org,
kernel-dev@...lia.com, linux-kernel@...r.kernel.org, bpf@...r.kernel.org,
linux-perf-users@...r.kernel.org, linux-fsdevel@...r.kernel.org,
linux-mm@...ck.org, oliver.sang@...el.com, lkp@...el.com,
laoar.shao@...il.com, mathieu.desnoyers@...icios.com,
arnaldo.melo@...il.com, alexei.starovoitov@...il.com,
andrii.nakryiko@...il.com, mirq-linux@...e.qmqm.pl, peterz@...radead.org,
willy@...radead.org, david@...hat.com, viro@...iv.linux.org.uk,
keescook@...omium.org, ebiederm@...ssion.com, brauner@...nel.org,
jack@...e.cz, mingo@...hat.com, juri.lelli@...hat.com, bsegall@...gle.com,
mgorman@...e.de, vschneid@...hat.com
Subject: Re: [PATCH v3 2/3] treewide: Switch memcpy() users of 'task->comm'
to a more safer implementation
On Thu, 8 May 2025 13:52:01 +0530
Bhupesh Sharma <bhsharma@...lia.com> wrote:
> > [1].
> > https://lore.kernel.org/linux-trace-kernel/20250507133458.51bafd95@gandalf.local.home/
> >
>
> Sorry, pressed the send button too quickly :D
>
> I instead meant - "I plan to rebase my v4 on top of Steven's RFC, which
> might mean that this patch would no longer need to address the trace
> events, but would still need to handle other places where tsk->comm
> directly in memcpy() and replace it with 'get_task_comm()' instead".
Note I didn't switch all the events, just most of the sched events.
This may affect user space that parses the raw events and may expect a hard
coded string instead of a dynamic one (as the sched_switch and sched_waking
events do).
We will need to investigate before we make these changes, which is why I
posted it as a RFC.
-- Steve
Powered by blists - more mailing lists