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

From: Kees Cook

Date: Wed Apr 01 2026 - 15:28:27 EST


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