diff options
author | Taehee Yoo <ap420073@gmail.com> | 2020-04-07 13:23:21 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-07 18:34:18 -0700 |
commit | 4faab8c446def7667adf1f722456c2f4c304069c (patch) | |
tree | c941a6c65680bdb21751b1bf59f3a51bab3f918c /tools | |
parent | ab74110205543a8d57eff64c6af64235aa23c09b (diff) | |
download | linux-4faab8c446def7667adf1f722456c2f4c304069c.tar.bz2 |
hsr: check protocol version in hsr_newlink()
In the current hsr code, only 0 and 1 protocol versions are valid.
But current hsr code doesn't check the version, which is received by
userspace.
Test commands:
ip link add dummy0 type dummy
ip link add dummy1 type dummy
ip link add hsr0 type hsr slave1 dummy0 slave2 dummy1 version 4
In the test commands, version 4 is invalid.
So, the command should be failed.
After this patch, following error will occur.
"Error: hsr: Only versions 0..1 are supported."
Fixes: ee1c27977284 ("net/hsr: Added support for HSR v1")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions