WSL2-Linux-Kernel/net/ax25
Dan Carpenter 7b9986a042 ax25: uninitialized variable in ax25_setsockopt()
[ Upstream commit 9371937092 ]

The "opt" variable is unsigned long but we only copy 4 bytes from
the user so the lower 4 bytes are uninitialized.

I have changed the integer overflow checks from ULONG to UINT as well.
This is a slight API change but I don't expect it to break anything.

Fixes: a7b75c5a8c ("net: pass a sockptr_t into ->setsockopt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:03:59 +01:00
..
Kconfig
Makefile
af_ax25.c ax25: uninitialized variable in ax25_setsockopt() 2022-01-27 11:03:59 +01:00
ax25_addr.c
ax25_dev.c
ax25_ds_in.c
ax25_ds_subr.c
ax25_ds_timer.c
ax25_iface.c
ax25_in.c
ax25_ip.c ax25: use skb_expand_head 2021-08-03 11:21:39 +01:00
ax25_out.c ax25: use skb_expand_head 2021-08-03 11:21:39 +01:00
ax25_route.c ax25: use skb_expand_head 2021-08-03 11:21:39 +01:00
ax25_std_in.c
ax25_std_subr.c
ax25_std_timer.c
ax25_subr.c
ax25_timer.c
ax25_uid.c
sysctl_net_ax25.c