Commit 9bf092c9 authored by Thorsten Blum's avatar Thorsten Blum Committed by Kees Cook
Browse files

sched: update task_struct->comm comment



Since commit 3a3f61ce ("exec: Make sure task->comm is always
NUL-terminated"), __set_task_comm() is unlocked and no longer uses
strscpy_pad() - update the stale comment accordingly.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260401152039.724811-4-thorsten.blum@linux.dev


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 10cd6758
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -1158,12 +1158,9 @@ struct task_struct {
	/*
	 * executable name, excluding path.
	 *
	 * - normally initialized begin_new_exec()
	 * - set it with set_task_comm()
	 *   - strscpy_pad() to ensure it is always NUL-terminated and
	 *     zero-padded
	 *   - task_lock() to ensure the operation is atomic and the name is
	 *     fully updated.
	 * - normally initialized by begin_new_exec()
	 * - set it with set_task_comm() to ensure it is always
	 *   NUL-terminated and zero-padded
	 */
	char				comm[TASK_COMM_LEN];