memif: Validate descriptors within process boudary 71/31471/2
authorSteven Luong <sluong@cisco.com>
Sun, 28 Feb 2021 17:45:16 +0000 (09:45 -0800)
committerDamjan Marion <dmarion@me.com>
Thu, 4 Mar 2021 10:51:32 +0000 (10:51 +0000)
commit3d019a541cac0b8cc1ba6891f8c9f99bfe37d79e
tree31af360a90338e0a666a8258fe1e21bb9f2954d2
parent1cebf98e1cdc99e215d30dadd5570ba836b1a6d9
memif: Validate descriptors within process boudary

We hit a crash when the client sends us a bogus deescriptor which causes us
to access memory beyong the mapping. While the client clearly should not do
that, it is rather cheap for VPP to validate the descriptor instead of crash
and burn.

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: Id09035810939f5f98530f212f0b23e606132251d
src/plugins/memif/node.c