commit | ba024f2574a19557f92116ec6be129b26ae66e97 | [log] [tgz] |
---|---|---|
author | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | Fri Apr 12 19:55:47 2019 +0900 |
committer | David S. Miller <davem@davemloft.net> | Fri Apr 12 10:25:03 2019 -0700 |
tree | 477971c04d8cc2ee30b7f8a1e94ecffd709232cd | |
parent | c68e747d0a98f44a4e49071940a692fa83630e47 [diff] |
bpf: Check address length before reading address family KMSAN will complain if valid address length passed to bpf_bind() is shorter than sizeof("struct sockaddr"->sa_family) bytes. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Acked-by: Andrey Ignatov <rdna@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>