From: Steven Rostedt <rostedt@goodmis.org>
To: "André Almeida" <andrealmeid@igalia.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
Juri Lelli <juri.lelli@redhat.com>,
Vincent Guittot <vincent.guittot@linaro.org>,
Christian Brauner <brauner@kernel.org>,
Kees Cook <kees@kernel.org>, Shuah Khan <shuah@kernel.org>,
willy@infradead.org, mathieu.desnoyers@efficios.com,
David Laight <david.laight.linux@gmail.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
akpm@linux-foundation.org, Yafang Shao <laoar.shao@gmail.com>,
andrii.nakryiko@gmail.com, arnaldo.melo@gmail.com,
Petr Mladek <pmladek@suse.com>,
linux-kernel@vger.kernel.org, kernel-dev@igalia.com,
linux-mm@kvack.org, linux-api@vger.kernel.org,
linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH v7 2/6] treewide: Replace memcpy(..., current->comm) with copy_task_comm()
Date: Sat, 10 Oct 2026 19:49:56 -0400 [thread overview]
Message-ID: <20261010194956.6933a224@226.227.38.69.naturalwireless.com> (raw)
In-Reply-To: <20260911-tonyk-long_name-v7-2-34e1ee1564ae@igalia.com>
On Fri, 11 Sep 2026 22:23:59 -0300
André Almeida <andrealmeid@igalia.com> wrote:
> In order to increase the size of current->comm[] and to avoid breaking any
> existing code, replace memcpy() with copy_task_comm(). This new function
> makes sure that the copy is NUL terminated. This is crucial given that the
> source buffer might be larger than the destination buffer and could
> truncate the NUL character out of it.
>
> Signed-off-by: André Almeida <andrealmeid@igalia.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
-- Steve
next prev parent reply other threads:[~2026-10-10 23:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-12 1:23 [PATCH v7 0/6] sched: Add support for long task name André Almeida
2026-09-12 1:23 ` [PATCH v7 1/6] treewide: Get rid of get_task_comm() André Almeida
2026-09-12 1:23 ` [PATCH v7 2/6] treewide: Replace memcpy(..., current->comm) with copy_task_comm() André Almeida
2026-10-10 23:49 ` Steven Rostedt [this message]
2026-09-12 1:24 ` [PATCH v7 3/6] lib/string_kunit: Add test for copy_task_comm() André Almeida
2026-09-12 1:24 ` [PATCH v7 4/6] sched: Extend task command name with TASK_COMM_EXT_LEN André Almeida
2026-09-12 1:24 ` [PATCH v7 5/6] prctl: Add support for long user thread names André Almeida
2026-09-12 1:24 ` [PATCH v7 6/6] selftests: prctl: Add test for long " André Almeida
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261010194956.6933a224@226.227.38.69.naturalwireless.com \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=andrealmeid@igalia.com \
--cc=andrii.nakryiko@gmail.com \
--cc=arnaldo.melo@gmail.com \
--cc=brauner@kernel.org \
--cc=david.laight.linux@gmail.com \
--cc=juri.lelli@redhat.com \
--cc=kees@kernel.org \
--cc=kernel-dev@igalia.com \
--cc=laoar.shao@gmail.com \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=peterz@infradead.org \
--cc=pmladek@suse.com \
--cc=shuah@kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=vincent.guittot@linaro.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox