[dpdk-dev] [PATCH v2 3/3] i40e: fix out-of-bounds access

2016-07-08 Thread Bruce Richardson
> > Subject: Re: [dpdk-dev] [PATCH v2 3/3] i40e: fix out-of-bounds access > > > > On Tue, Jul 05, 2016 at 02:10:05PM +0800, Beilei Xing wrote: > > > When calling i40e_flowtype_to_pctype in > > > i40e_get_hash_filter_global_config and > > > i40e_set_ha

[dpdk-dev] [PATCH v2 3/3] i40e: fix out-of-bounds access

2016-07-06 Thread Xing, Beilei
> -Original Message- > From: Richardson, Bruce > Sent: Tuesday, July 5, 2016 9:26 PM > To: Xing, Beilei > Cc: Wu, Jingjing ; Jastrzebski, MichalX K > ; dev at dpdk.org > Subject: Re: [dpdk-dev] [PATCH v2 3/3] i40e: fix out-of-bounds access > > On Tue, Jul 0

[dpdk-dev] [PATCH v2 3/3] i40e: fix out-of-bounds access

2016-07-05 Thread Bruce Richardson
On Tue, Jul 05, 2016 at 02:10:05PM +0800, Beilei Xing wrote: > When calling i40e_flowtype_to_pctype in > i40e_get_hash_filter_global_config and > i40e_set_hash_filter_global_config, function > i40e_flowtype_to_pctype will be possibly > out-of-bounds accessed, because size of callee's array > is 15.

[dpdk-dev] [PATCH v2 3/3] i40e: fix out-of-bounds access

2016-07-05 Thread Beilei Xing
When calling i40e_flowtype_to_pctype in i40e_get_hash_filter_global_config and i40e_set_hash_filter_global_config, function i40e_flowtype_to_pctype will be possibly out-of-bounds accessed, because size of callee's array is 15. So judge flow type before calling i40e_flowtype_to_pctype. Meanwhile do