[PATCH v3 00/11] memset security handling
Stephen Hemminger
stephen at networkplumber.org
Thu Nov 14 03:35:49 CET 2024
This series handles memset related bugs indentified by PVS Studio.
The root cause is that Gcc and other compilers are free to
optimize away memset called before free.
Most of the places memset was being used like this were bogus;
probably some developer debug habit, and can be safely removed.
v3 - fix spelling
- fix issues reported in Napatech NIC
Stephen Hemminger (11):
eal: introduce new secure memory fill
eal: add new secure free function
crypto/qat: force zero of keys
crypto/qat: fix size calculation for memset
crypto/qat: use secure memset
bus/uacce: remove memset before free
compress/octeontx: remove unnecessary memset
test: remove unneeded memset
net/ntnic: remove unnecessary void cast
net/ntnic: check result of malloc
net/ntnic: remove unnecessary memset
app/test/test_cmdline_cirbuf.c | 2 --
drivers/bus/uacce/uacce.c | 1 -
drivers/compress/octeontx/otx_zip.c | 1 -
drivers/compress/octeontx/otx_zip_pmd.c | 2 --
drivers/crypto/qat/qat_asym.c | 5 +---
drivers/crypto/qat/qat_sym_session.c | 27 +++++++++--------
drivers/net/ntnic/nim/i2c_nim.c | 2 +-
drivers/net/ntnic/nthw/core/nthw_hif.c | 5 +---
drivers/net/ntnic/nthw/core/nthw_iic.c | 5 +---
drivers/net/ntnic/nthw/core/nthw_pcie3.c | 5 +---
drivers/net/ntnic/nthw/core/nthw_rpf.c | 5 +---
drivers/net/ntnic/nthw/core/nthw_sdc.c | 5 +---
drivers/net/ntnic/nthw/core/nthw_si5340.c | 5 +---
.../ntnic/nthw/flow_filter/flow_nthw_cat.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_csu.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_flm.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_hfu.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_hsh.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_ifr.c | 2 +-
.../ntnic/nthw/flow_filter/flow_nthw_info.c | 7 ++---
.../net/ntnic/nthw/flow_filter/flow_nthw_km.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_pdb.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_qsl.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_rpp_lr.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_slc_lr.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_tx_cpy.c | 3 +-
.../ntnic/nthw/flow_filter/flow_nthw_tx_ins.c | 7 ++---
.../ntnic/nthw/flow_filter/flow_nthw_tx_rpl.c | 7 ++---
drivers/net/ntnic/nthw/nthw_rac.c | 4 ++-
drivers/net/ntnic/ntnic_ethdev.c | 2 +-
lib/eal/common/rte_malloc.c | 30 +++++++++++++++----
lib/eal/include/rte_malloc.h | 18 +++++++++++
lib/eal/include/rte_string_fns.h | 27 +++++++++++++++++
lib/eal/version.map | 3 ++
34 files changed, 126 insertions(+), 124 deletions(-)
--
2.45.2
More information about the dev
mailing list