]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix length of actor system
authorTobias Jungel <tobias.jungel@gmail.com>
Sun, 28 Oct 2018 11:54:10 +0000 (12:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Oct 2018 03:39:38 +0000 (20:39 -0700)
commitc9f5bc2b4d56d226aec0e3a8fd40611828a1fed6
treec7d8e8df59ca66b115f660a7d59441f39a73c802
parent8b87db14d41c5d49458f7515d603abe1edd8f7fa
bonding: fix length of actor system

The attribute IFLA_BOND_AD_ACTOR_SYSTEM is sent to user space having the
length of sizeof(bond->params.ad_actor_system) which is 8 byte. This
patch aligns the length to ETH_ALEN to have the same MAC address exposed
as using sysfs.

Fixes: 8c69e6911b70d ("bonding: prevent out of bound accesses")
Signed-off-by: Tobias Jungel <tobias.jungel@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c