Re: [PATCH 1/2] ethtool: strset: allow ETHTOOL_A_STRSET_COUNTS_ONLY attr

2020-10-08 Thread Jakub Kicinski
On Wed, 7 Oct 2020 12:53:50 +0200 Johannes Berg wrote: > From: Johannes Berg > > The ETHTOOL_A_STRSET_COUNTS_ONLY flag attribute was previously > not allowed to be used, but now due to the policy size reduction > we would access the tb[] array out of bounds since we tried to > check for the attr

Re: [PATCH 1/2] ethtool: strset: allow ETHTOOL_A_STRSET_COUNTS_ONLY attr

2020-10-07 Thread Jakub Kicinski
On Wed, 7 Oct 2020 12:53:50 +0200 Johannes Berg wrote: > From: Johannes Berg > > The ETHTOOL_A_STRSET_COUNTS_ONLY flag attribute was previously > not allowed to be used, but now due to the policy size reduction > we would access the tb[] array out of bounds since we tried to > check for the attr

Re: [PATCH 1/2] ethtool: strset: allow ETHTOOL_A_STRSET_COUNTS_ONLY attr

2020-10-07 Thread Leon Romanovsky
On Wed, Oct 07, 2020 at 12:53:50PM +0200, Johannes Berg wrote: > From: Johannes Berg > > The ETHTOOL_A_STRSET_COUNTS_ONLY flag attribute was previously > not allowed to be used, but now due to the policy size reduction > we would access the tb[] array out of bounds since we tried to > check for th

[PATCH 1/2] ethtool: strset: allow ETHTOOL_A_STRSET_COUNTS_ONLY attr

2020-10-07 Thread Johannes Berg
From: Johannes Berg The ETHTOOL_A_STRSET_COUNTS_ONLY flag attribute was previously not allowed to be used, but now due to the policy size reduction we would access the tb[] array out of bounds since we tried to check for the attribute despite it not being accepted. Fix both issues by adding it c