diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2016-11-23 21:05:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-25 20:06:18 -0500 |
commit | f79675563a6bbfc2ff85684bbbaea9ef092664d2 (patch) | |
tree | a32f3f305c0b2548935cf6ebc009780853549e66 /net/802 | |
parent | 97db8afa2ab919fc400fe982f5054060868bdf07 (diff) | |
download | op-kernel-dev-f79675563a6bbfc2ff85684bbbaea9ef092664d2.zip op-kernel-dev-f79675563a6bbfc2ff85684bbbaea9ef092664d2.tar.gz |
tipc: fix compatibility bug in link monitoring
commit 817298102b0b ("tipc: fix link priority propagation") introduced a
compatibility problem between TIPC versions newer than Linux 4.6 and
those older than Linux 4.4. In versions later than 4.4, link STATE
messages only contain a non-zero link priority value when the sender
wants the receiver to change its priority. This has the effect that the
receiver resets itself in order to apply the new priority. This works
well, and is consistent with the said commit.
However, in versions older than 4.4 a valid link priority is present in
all sent link STATE messages, leading to cyclic link establishment and
reset on the 4.6+ node.
We fix this by adding a test that the received value should not only
be valid, but also differ from the current value in order to cause the
receiving link endpoint to reset.
Reported-by: Amar Nv <amar.nv005@gmail.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/802')
0 files changed, 0 insertions, 0 deletions