Branch: refs/heads/stable1-proposed
Home:
https://github.com/kronosnet/kronosnet
Commit: c364e20a89922b9a45335ebf7760379768c2ab96
https://github.com/kronosnet/kronosnet/commit/c364e20a89922b9a45335ebf77603…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-02-26 (Mon, 26 Feb 2018)
Changed paths:
M libknet/threads_rx.c
M libknet/threads_tx.c
Log Message:
-----------
[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(a)redhat.com>