numam-dpdk/drivers
Steve Yang b125c0e721 net/iavf: fix tainted scalar
tainted_data_downcast: Downcasting match_item->meta from void * to
struct virtchnl_proto_hdrs implies that the data that this pointer points
to is tainted.

var_assign_var: Assigning: proto_hdrs = match_item->meta.
Both are now tainted.

var_assign_var: Assigning: rss_meta->proto_hdrs = *proto_hdrs. Both are
now tainted.

Passing tainted expression "rss_meta->proto_hdrs.count" to
"iavf_refine_proto_hdrs", which uses it as a loop boundary.

Removed temporary variable 'proto_hdrs', and copied whole memory of
match_item meta with exact structure size to avoid data downcast.

Coverity issue: 381131
Fixes: 91f27b2e39 ("net/iavf: refactor RSS")
Cc: stable@dpdk.org

Signed-off-by: Steve Yang <stevex.yang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
2022-11-10 19:13:21 +01:00
..
baseband drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
bus bus/auxiliary: prevent device from being probed again 2022-11-14 11:15:44 +01:00
common common/idpf/base: fix possible null dereference 2022-11-09 16:52:54 +01:00
compress drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
crypto drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
dma drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
event drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
gpu drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
mempool drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
net net/iavf: fix tainted scalar 2022-11-10 19:13:21 +01:00
raw drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
regex drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
vdpa drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00
meson.build drivers: omit symbol map when unneeded 2022-11-14 15:22:46 +01:00