HomeClusterLabs Projects

[tx/rx] improve error checking when running external code

Description

[tx/rx] improve error checking when running external code

libknet cannot guarantee that the dst_host_filter is sane nor that it cannot
be exploited to return garbage to knet.

there is an infinitesimal possibility that, if the plugin returns total crap,
knet could crash by trying to access out-of-bound memory.

Prevent that by adding specific checks both in TX/RX.

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

Details

Provenance
fabbioneAuthored on Feb 25 2018, 12:02 AM
Parents
rK94a9953d1c7a: Merge pull request #137 from kronosnet/fix-log-gen
Branches
Unknown
Tags
Unknown

Event Timeline