diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2017-07-27 01:22:07 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-29 21:25:05 +0300 |
commit | 996f6e12cfb33ff6c3e39b4511bb3b8bc564b342 (patch) | |
tree | f497109f548a6bbf976af1d0cada00b06387cd73 /drivers/clocksource/Kconfig | |
parent | 0254e0c632bfe4a0cf610e2d90397474144f00d2 (diff) | |
download | linux-996f6e12cfb33ff6c3e39b4511bb3b8bc564b342.tar.xz |
team: use a larger struct for mac address
IPv6 tunnels use sizeof(struct in6_addr) as dev->addr_len,
but in many places especially bonding, we use struct sockaddr
to copy and set mac addr, this could lead to stack out-of-bounds
access.
Fix it by using a larger address storage like bonding.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/clocksource/Kconfig')
0 files changed, 0 insertions, 0 deletions