[PATCH v1] net/iavf: fix taninted scalar

2022-11-09 Thread Steve Yang
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

RE: [PATCH v1] net/iavf: fix taninted scalar

2022-10-12 Thread Zhang, Qi Z
> -Original Message- > From: Steve Yang > Sent: Tuesday, October 11, 2022 4:34 PM > To: dev@dpdk.org > Cc: Wu, Jingjing ; Xing, Beilei > ; Yang, SteveX > Subject: [PATCH v1] net/iavf: fix taninted scalar > > Passing tainted expression &quo

[PATCH v1] net/iavf: fix taninted scalar

2022-10-11 Thread Steve Yang
Passing tainted expression "rss_meta->proto_hdrs.count" to "iavf_refine_proto_hdrs", wich uses it as a loop boundary. Replace tainted expression with a temp variable to avoid the trainted scalar coverity warning. Coverity issue: 381131 Fixes: f30157d988cf ("net/iavf: support PPPoL2TPv2oUDP RSS Ha