summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornikolay@redhat.com2012-10-31 07:03:52 +0100
committerDavid S. Miller2012-11-01 16:53:44 +0100
commitc84e1590d149cfc885062e938944941f33e69f38 (patch)
tree7478368e5070a5fddfb23e68e97dcdccd5d2cda4 /net
parentbonding: fix off-by-one error (diff)
downloadkernel-qcow2-linux-c84e1590d149cfc885062e938944941f33e69f38.tar.gz
kernel-qcow2-linux-c84e1590d149cfc885062e938944941f33e69f38.tar.xz
kernel-qcow2-linux-c84e1590d149cfc885062e938944941f33e69f38.zip
bonding: fix second off-by-one error
Fix off-by-one error because IFNAMSIZ == 16 and when this code gets executed we stick a NULL byte where we should not. How to reproduce: with CONFIG_CC_STACKPROTECTOR=y (otherwise it may pass by silently) modprobe bonding; echo 1 > /sys/class/net/bond0/bonding/mode; echo "AAAAAAAAAAAAAAAA" > /sys/class/net/bond0/bonding/active_slave; Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Note: Sorry for the second patch but I missed this one while checking the file. You can squash them into one patch. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions