Message ID | 20230728155207.10042-1-aleksander.lobakin@intel.com (mailing list archive) |
---|---|
Headers | show |
Series | virtchnl: fix fake 1-elem arrays | expand |
From: Alexander Lobakin <aleksander.lobakin@intel.com> Date: Fri, 28 Jul 2023 17:52:04 +0200 > 6.5-rc1 started spitting warning splats when composing virtchnl > messages, precisely on virtchnl_rss_key and virtchnl_lut: > > [ 84.167709] memcpy: detected field-spanning write (size 52) of single > field "vrk->key" at drivers/net/ethernet/intel/iavf/iavf_virtchnl.c:1095 > (size 1) > [ 84.169915] WARNING: CPU: 3 PID: 11 at drivers/net/ethernet/intel/ > iavf/iavf_virtchnl.c:1095 iavf_set_rss_key+0x123/0x140 [iavf] (tender ping :D) Thanks, Olek
From: Alexander Lobakin <aleksander.lobakin@intel.com> Date: Fri, 28 Jul 2023 17:52:04 +0200 > 6.5-rc1 started spitting warning splats when composing virtchnl > messages, precisely on virtchnl_rss_key and virtchnl_lut: > > [ 84.167709] memcpy: detected field-spanning write (size 52) of single > field "vrk->key" at drivers/net/ethernet/intel/iavf/iavf_virtchnl.c:1095 > (size 1) > [ 84.169915] WARNING: CPU: 3 PID: 11 at drivers/net/ethernet/intel/ > iavf/iavf_virtchnl.c:1095 iavf_set_rss_key+0x123/0x140 [iavf] [...] > .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 +- > drivers/net/ethernet/intel/iavf/iavf.h | 6 +- > drivers/net/ethernet/intel/iavf/iavf_client.c | 4 +- > drivers/net/ethernet/intel/iavf/iavf_client.h | 2 +- > .../net/ethernet/intel/iavf/iavf_virtchnl.c | 75 +++++------ > drivers/net/ethernet/intel/ice/ice_virtchnl.c | 2 +- > include/linux/avf/virtchnl.h | 127 +++++++++++------- > 7 files changed, 124 insertions(+), 101 deletions(-) > Tony, could you please take it via your next tree? I'd like the validation to make sure more different host <-> guest pairs work. (with Kees' tags, assuming he reviewed and approved the whole series, I asked about #2 already) Thanks, Olek
On 8/4/2023 9:38 AM, Alexander Lobakin wrote: > From: Alexander Lobakin <aleksander.lobakin@intel.com> > Date: Fri, 28 Jul 2023 17:52:04 +0200 > >> 6.5-rc1 started spitting warning splats when composing virtchnl >> messages, precisely on virtchnl_rss_key and virtchnl_lut: >> >> [ 84.167709] memcpy: detected field-spanning write (size 52) of single >> field "vrk->key" at drivers/net/ethernet/intel/iavf/iavf_virtchnl.c:1095 >> (size 1) >> [ 84.169915] WARNING: CPU: 3 PID: 11 at drivers/net/ethernet/intel/ >> iavf/iavf_virtchnl.c:1095 iavf_set_rss_key+0x123/0x140 [iavf] > > [...] > >> .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 +- >> drivers/net/ethernet/intel/iavf/iavf.h | 6 +- >> drivers/net/ethernet/intel/iavf/iavf_client.c | 4 +- >> drivers/net/ethernet/intel/iavf/iavf_client.h | 2 +- >> .../net/ethernet/intel/iavf/iavf_virtchnl.c | 75 +++++------ >> drivers/net/ethernet/intel/ice/ice_virtchnl.c | 2 +- >> include/linux/avf/virtchnl.h | 127 +++++++++++------- >> 7 files changed, 124 insertions(+), 101 deletions(-) >> > > Tony, could you please take it via your next tree? I'd like the > validation to make sure more different host <-> guest pairs work. > > (with Kees' tags, assuming he reviewed and approved the whole series, I > asked about #2 already) > > Thanks, > Olek Ok, will apply it today. For the future if you want it through IWL, can you tag it with the iwl-* target (and have IWL in the To)? Since this had 'net-next' and was 'To' netdev maintainers, I took it that you wanted it taken through netdev. Thanks, Tony
From: Tony Nguyen <anthony.l.nguyen@intel.com> Date: Fri, 4 Aug 2023 11:07:14 -0700 > On 8/4/2023 9:38 AM, Alexander Lobakin wrote: >> From: Alexander Lobakin <aleksander.lobakin@intel.com> >> Date: Fri, 28 Jul 2023 17:52:04 +0200 >> >>> 6.5-rc1 started spitting warning splats when composing virtchnl >>> messages, precisely on virtchnl_rss_key and virtchnl_lut: >>> >>> [ 84.167709] memcpy: detected field-spanning write (size 52) of single >>> field "vrk->key" at drivers/net/ethernet/intel/iavf/iavf_virtchnl.c:1095 >>> (size 1) >>> [ 84.169915] WARNING: CPU: 3 PID: 11 at drivers/net/ethernet/intel/ >>> iavf/iavf_virtchnl.c:1095 iavf_set_rss_key+0x123/0x140 [iavf] >> >> [...] >> >>> .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 +- >>> drivers/net/ethernet/intel/iavf/iavf.h | 6 +- >>> drivers/net/ethernet/intel/iavf/iavf_client.c | 4 +- >>> drivers/net/ethernet/intel/iavf/iavf_client.h | 2 +- >>> .../net/ethernet/intel/iavf/iavf_virtchnl.c | 75 +++++------ >>> drivers/net/ethernet/intel/ice/ice_virtchnl.c | 2 +- >>> include/linux/avf/virtchnl.h | 127 +++++++++++------- >>> 7 files changed, 124 insertions(+), 101 deletions(-) >>> >> >> Tony, could you please take it via your next tree? I'd like the >> validation to make sure more different host <-> guest pairs work. >> >> (with Kees' tags, assuming he reviewed and approved the whole series, I >> asked about #2 already) >> >> Thanks, >> Olek > > Ok, will apply it today. For the future if you want it through IWL, can Great, thanks! > you tag it with the iwl-* target (and have IWL in the To)? Since this > had 'net-next' and was 'To' netdev maintainers, I took it that you > wanted it taken through netdev. Sure, I know, just for some reason targeted this directly to net at first, but then realized it would be better for this to go via IWL :clownface: > > Thanks, > Tony Thanks, Olek
> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of > Alexander Lobakin > Sent: piątek, 4 sierpnia 2023 20:09 > To: Nguyen, Anthony L <anthony.l.nguyen@intel.com> > Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>; Kees Cook > <keescook@chromium.org>; Zaremba, Larysa <larysa.zaremba@intel.com>; > netdev@vger.kernel.org; Gustavo A. R. Silva <gustavoars@kernel.org>; > linux-kernel@vger.kernel.org; Eric Dumazet <edumazet@google.com>; intel- > wired-lan@lists.osuosl.org; linux-hardening@vger.kernel.org; Jakub Kicinski > <kuba@kernel.org>; Paolo Abeni <pabeni@redhat.com>; David S. Miller > <davem@davemloft.net> > Subject: Re: [Intel-wired-lan] [PATCH net-next 0/3] virtchnl: fix fake 1-elem > arrays > > From: Tony Nguyen <anthony.l.nguyen@intel.com> > Date: Fri, 4 Aug 2023 11:07:14 -0700 > > > On 8/4/2023 9:38 AM, Alexander Lobakin wrote: > >> From: Alexander Lobakin <aleksander.lobakin@intel.com> > >> Date: Fri, 28 Jul 2023 17:52:04 +0200 > >> > >>> 6.5-rc1 started spitting warning splats when composing virtchnl > >>> messages, precisely on virtchnl_rss_key and virtchnl_lut: > >>> > >>> [ 84.167709] memcpy: detected field-spanning write (size 52) of > >>> single field "vrk->key" at > >>> drivers/net/ethernet/intel/iavf/iavf_virtchnl.c:1095 > >>> (size 1) > >>> [ 84.169915] WARNING: CPU: 3 PID: 11 at > >>> drivers/net/ethernet/intel/ > >>> iavf/iavf_virtchnl.c:1095 iavf_set_rss_key+0x123/0x140 [iavf] > >> > >> [...] > >> > >>> .../ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 +- > >>> drivers/net/ethernet/intel/iavf/iavf.h | 6 +- > >>> drivers/net/ethernet/intel/iavf/iavf_client.c | 4 +- > >>> drivers/net/ethernet/intel/iavf/iavf_client.h | 2 +- > >>> .../net/ethernet/intel/iavf/iavf_virtchnl.c | 75 +++++------ > >>> drivers/net/ethernet/intel/ice/ice_virtchnl.c | 2 +- > >>> include/linux/avf/virtchnl.h | 127 > >>> +++++++++++------- > >>> 7 files changed, 124 insertions(+), 101 deletions(-) > >>> > >> > >> Tony, could you please take it via your next tree? I'd like the > >> validation to make sure more different host <-> guest pairs work. > >> > >> (with Kees' tags, assuming he reviewed and approved the whole series, > >> I > >> asked about #2 already) > >> > >> Thanks, > >> Olek > > > > Ok, will apply it today. For the future if you want it through IWL, > > can > > Great, thanks! > > > you tag it with the iwl-* target (and have IWL in the To)? Since this > > had 'net-next' and was 'To' netdev maintainers, I took it that you > > wanted it taken through netdev. > > Sure, I know, just for some reason targeted this directly to net at first, but > then realized it would be better for this to go via IWL > :clownface: > > > > > Thanks, > > Tony > > Thanks, > Olek > _______________________________________________ > Intel-wired-lan mailing list > Intel-wired-lan@osuosl.org > https://lists.osuosl.org/mailman/listinfo/intel-wired-lan Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>