diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-13 17:41:36 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-04-13 17:41:36 -0700 |
| commit | 613b48bbd465941f796c174c96707a9bce595265 (patch) | |
| tree | 99f4e9a291513b61c88eaf0ab99ca438e865385b /include/linux | |
| parent | cae0d23288e959a05377a307b96dc30ea4fd9f1a (diff) | |
| parent | 9bf092c97b86af63694d9902b9e14047214ba76d (diff) | |
Merge tag 'execve-v7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull execve updates from Kees Cook:
- use strnlen() in __set_task_comm (Thorsten Blum)
- update task_struct->comm comment (Thorsten Blum)
* tag 'execve-v7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
sched: update task_struct->comm comment
exec: use strnlen() in __set_task_comm
Diffstat (limited to 'include/linux')
| -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 ffb2ad9716f0..54820a427014 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1163,12 +1163,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]; |
