Haimin Zhang
6c3a598b11
net/ieee802154: fix uninit value bug in dgram_sendmsg
...
[ Upstream commit 94160108a7 ]
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 >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-06-13 14:13:30 +09:00
..
2023-05-15 16:44:57 +09:00
2023-06-13 14:13:22 +09:00
2023-05-16 11:34:46 +09:00
2023-05-15 16:32:51 +09:00
2023-05-16 10:49:55 +09:00
2023-05-16 09:16:14 +09:00
2023-05-16 12:45:55 +09:00
2023-05-16 12:46:11 +09:00
2023-06-13 14:13:25 +09:00
2023-06-13 14:13:27 +09:00
2023-05-16 11:46:39 +09:00
2023-05-16 12:34:33 +09:00
2023-05-16 09:45:38 +09:00
2023-06-13 14:13:24 +09:00
2023-05-16 12:44:53 +09:00
2023-05-16 11:46:42 +09:00
2023-05-16 11:34:05 +09:00
2023-05-12 16:29:40 +09:00
2023-05-15 17:13:02 +09:00
2023-05-15 16:31:00 +09:00
2023-05-16 10:54:56 +09:00
2023-06-13 14:13:30 +09:00
2023-06-13 14:13:27 +09:00
2023-06-13 14:13:19 +09:00
2017-05-25 15:44:41 +02:00
2023-05-12 17:27:16 +09:00
2023-05-16 09:50:42 +09:00
2023-05-15 12:22:31 +09:00
2023-06-13 14:13:24 +09:00
2023-06-13 14:13:12 +09:00
2023-05-16 10:34:08 +09:00
2023-05-16 12:47:02 +09:00
2023-06-13 14:13:28 +09:00
2023-06-13 14:13:26 +09:00
2023-05-16 10:46:16 +09:00
2023-05-16 10:24:55 +09:00
2023-06-13 14:13:28 +09:00
2023-05-16 12:33:58 +09:00
2023-06-13 14:12:48 +09:00
2023-05-16 11:34:06 +09:00
2023-06-13 14:12:53 +09:00
2023-06-13 14:12:44 +09:00
2023-06-13 14:12:43 +09:00
2023-05-16 12:30:20 +09:00
2023-05-16 10:49:33 +09:00
2023-06-13 14:13:22 +09:00
2023-05-15 16:32:30 +09:00
2023-06-13 14:13:24 +09:00
2023-06-13 14:12:54 +09:00
2023-06-13 14:13:27 +09:00
2023-06-13 14:12:54 +09:00
2018-04-29 11:32:02 +02:00
2023-06-13 14:13:27 +09:00
2016-10-19 10:58:04 -04:00
2023-06-13 14:13:27 +09:00
2023-05-16 12:33:30 +09:00
2023-06-13 14:13:23 +09:00
2023-06-13 14:13:08 +09:00
2023-06-13 14:13:26 +09:00
2023-06-13 14:12:38 +09:00
2023-06-13 14:13:24 +09:00
2023-05-16 11:14:47 +09:00
2023-05-15 17:31:52 +09:00
2023-05-16 11:34:41 +09:00
2023-06-13 14:13:24 +09:00