Fix crypto session deletion crash 93/10793/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 22 Feb 2018 05:32:05 +0000 (23:32 -0600)
committerDamjan Marion <dmarion.lists@gmail.com>
Sat, 24 Feb 2018 18:11:31 +0000 (18:11 +0000)
commita530cd0e9f2558cc32b67f9c95b257694b417b28
tree4cc99fe42525ec9cf0a04757f1e47e767b96cf84
parent3ee1fe1608cca9f000bed59ba987c864adf37cd6
Fix crypto session deletion crash

When using a DPDK cryptodev with IPsec, deleting a
session often results in a SEGV. A bad pointer
is being passed to rte_cryptodev_sym_session_free().

Put the correct value on the crypto disposal list and
add a check to determine whether the call to free the
session is going to result in a crash before doing
it.

Change-Id: I8a6b0a594585ebcfa56b555ede7ef7d67e5e2b33
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/dpdk/ipsec/ipsec.c