kernel_samsung_a53x/net/x25
Gavrilov Ilia 3535a1edba net/x25: fix incorrect parameter validation in the x25_getsockopt() function
[ Upstream commit d6eb8de2015f0c24822e47356f839167ebde2945 ]

The 'len' variable can't be negative when assigned the result of
'min_t' because all 'min_t' parameters are cast to unsigned int,
and then the minimum one is chosen.

To fix the logic, check 'len' as read from 'optlen',
where the types of relevant variables are (signed) int.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 08:44:50 +01:00
..
af_x25.c net/x25: fix incorrect parameter validation in the x25_getsockopt() function 2024-11-19 08:44:50 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysctl_net_x25.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_facilities.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_forward.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_in.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_link.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_out.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_proc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_route.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_subr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
x25_timer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00