diff options
author | nikolay@redhat.com <nikolay@redhat.com> | 2012-10-31 04:42:51 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-01 15:53:43 (GMT) |
commit | eb6e98a1b25fb0f347fece9814257a9e1cb537c8 (patch) | |
tree | 8189b62ba509887a42df4fcc873bb8d4637772cb /kernel/params.c | |
parent | 477864ddd36510e9802c2adb6d9445c2d7783fe5 (diff) | |
download | linux-fsl-qoriq-eb6e98a1b25fb0f347fece9814257a9e1cb537c8.tar.xz |
bonding: fix 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/primary;
Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/params.c')
0 files changed, 0 insertions, 0 deletions