diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-04-01 18:20:41 +0300 |
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2026-04-01 22:26:07 +0300 |
| commit | 9bf092c97b86af63694d9902b9e14047214ba76d (patch) | |
| tree | d3a16c1cc3598cc9e5af86ad127cef39c1dfd8e9 /include | |
| parent | 10cd6758e054e4002ccb409fef7dd2c6b7bbd549 (diff) | |
| download | linux-9bf092c97b86af63694d9902b9e14047214ba76d.tar.xz | |
sched: update task_struct->comm comment
Since commit 3a3f61ce5e0b ("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: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260401152039.724811-4-thorsten.blum@linux.dev
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 074ad4ef3d81..43dfbcf1babe 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -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]; |
