[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200407.183523.1867238117381062491.davem@davemloft.net>
Date: Tue, 07 Apr 2020 18:35:23 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ap420073@...il.com
Cc: kuba@...nel.org, netdev@...r.kernel.org
Subject: Re: [PATCH net] hsr: check protocol version in hsr_newlink()
From: Taehee Yoo <ap420073@...il.com>
Date: Tue, 7 Apr 2020 13:23:21 +0000
> 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@...il.com>
Applied, thank you.
Powered by blists - more mailing lists