diff options
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2019-04-12 12:56:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-12 19:25:03 +0200 |
commit | bddc028a4f2ac8cf4d0cd1c696b5f95d8305a553 (patch) | |
tree | 22ffe3c231a56ec63e3296cd85141e27014ef339 /net/qrtr | |
parent | bpf: Check address length before reading address family (diff) | |
download | linux-bddc028a4f2ac8cf4d0cd1c696b5f95d8305a553.tar.xz linux-bddc028a4f2ac8cf4d0cd1c696b5f95d8305a553.zip |
udpv6: Check address length before reading address family
KMSAN will complain if valid address length passed to udpv6_pre_connect()
is shorter than sizeof("struct sockaddr"->sa_family) bytes.
(This patch is bogus if it is guaranteed that udpv6_pre_connect() is
always called after checking "struct sockaddr"->sa_family. In that case,
we want a comment why we don't need to check valid address length here.)
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/qrtr')
0 files changed, 0 insertions, 0 deletions