diff options
| author | 2022-09-08 20:19:27 +0800 | |
|---|---|---|
| committer | 2022-09-16 10:53:55 +0100 | |
| commit | 94160108a70c8af17fa1484a37e05181c0e094af (patch) | |
| tree | 5e0afc128cd6579f1a78ffeb7f9d02df3eeb1637 /tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com | |
| parent | Documentation: mptcp: fix pm_type formatting (diff) | |
| download | linux-dev-94160108a70c8af17fa1484a37e05181c0e094af.tar.xz linux-dev-94160108a70c8af17fa1484a37e05181c0e094af.zip | |
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>
Diffstat (limited to 'tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
