Haimin Zhang 94160108a7 net/ieee802154: fix uninit value bug in dgram_sendmsg
There is uninit value bug in dgram_sendmsg function in
net/ieee802154/socket.c when the length of valid data pointed by the
msg->msg_name isn't verified.

We introducing a helper function ieee802154_sockaddr_check_size to
check namelen. First we check there is addr_type in ieee802154_addr_sa.
Then, we check namelen according to addr_type.

Also fixed in raw_bind, dgram_bind, dgram_connect.

Signed-off-by: Haimin Zhang <tcs_kernel@tencent.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-09-16 10:53:55 +01:00
..
2022-08-08 20:04:35 -07:00
2022-09-09 12:48:00 +01:00
2022-09-04 11:23:11 +01:00
2022-05-25 12:22:58 -07:00
2022-08-10 09:24:41 +01:00
2022-08-22 11:40:01 -07:00
2022-03-03 09:55:28 +00:00