Re: [PATCH 1/2] exec: use strnlen() in __set_task_comm

Kees Cook
2026-04-01T19:28:22Z

On Wed, 01 Apr 2026 17:20:40 +0200, Thorsten Blum wrote:
> Use strnlen() to limit source string scanning to 'TASK_COMM_LEN - 1'
> bytes.
>
>

Applied to for-next/execve, thanks!

[1/2] exec: use strnlen() in __set_task_comm
https://git.kernel.org/kees/c/10cd6758e054
[2/2] sched: update task_struct->comm comment
https://git.kernel.org/kees/c/9bf092c97b86

Take care,

--
Kees Cook