HomeClusterLabs Projects

[transports] fix usage after free of transport info memory

Description

[transports] fix usage after free of transport info memory

spotted while implementing functional testing for rekey.

when configuring multiple hosts (3+) with 1 link sharing
the same listener, but NOT enabling the link, if the user
attempts to shutdown knet_h, the first call to knet_link_clear_config
will not recognize that the listener is still in use by another
link and will release all resources.
At the time of invoking clear_config on the second link, transport_clear_config
will access already freed memory, or alternatively, a call to
link_enable would cause a crash because the listener does no
longer exist.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>

Details

Provenance
fabbioneAuthored on Mar 24 2019, 2:29 AM
Parents
rK1137b71f57e9: [tests] test rpm should match currently installed version of libknet
Branches
Unknown
Tags
Unknown

Event Timeline