]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix broadcast wakeup contention after congestion
authorRichard Alpe <richard.alpe@ericsson.com>
Wed, 10 Dec 2014 08:46:54 +0000 (09:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2014 19:45:33 +0000 (14:45 -0500)
commitbaf70dc72c22cb8fecd4c8e472d3aa49cc7e960e
treed88c379f281f793b0b4f333a8fde018466bc1a6a
parentd7b27df8588cd97f0fd546251b467a26c627c7f4
tipc: fix broadcast wakeup contention after congestion

commit f35797056dc0 ("tipc: fix bug in multicast congestion handling")
introduced a race in the broadcast link wakeup functionality.

This patch eliminates this broadcast link wakeup race caused by
operation on the wakeup list without proper locking. If this race
hit and corrupted the list all subsequent wakeup messages would be
lost, resulting in a considerable memory leak.

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/link.c
net/tipc/node.c