]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
exec: Fix incorrect type for ret
authorXichao Zhao <zhao.xichao@vivo.com>
Mon, 25 Aug 2025 07:36:09 +0000 (15:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:04:35 +0000 (14:04 +0100)
commitdf4d7faa8ba25e43423d25d4c0750e85cd905c6e
tree0c269d9ec5cc0c3aa0a6c24083751b7e7c95cc13
parent642c5f1d2ee28a23253f73cf8f101768c77927f8
exec: Fix incorrect type for ret

[ Upstream commit 5e088248375d171b80c643051e77ade6b97bc386 ]

In the setup_arg_pages(), ret is declared as an unsigned long.
The ret might take a negative value. Therefore, its type should
be changed to int.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20250825073609.219855-1-zhao.xichao@vivo.com
Signed-off-by: Kees Cook <kees@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/exec.c