lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2b91165f667d3896a0aded39830905f62f725815.camel@web.de>
Date:   Tue, 30 May 2023 11:10:19 +0200
From:   Bert Karwatzki <spasswolf@....de>
To:     Simon Horman <simon.horman@...igine.com>
Cc:     "David S. Miller" <davem@...emloft.net>,
        Eric Dumazet <edumazet@...gle.com>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>, elder@...aro.org,
        netdev@...r.kernel.org, linux-arm-msm@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: ipa: Use the correct value for IPA_STATUS_SIZE

Am Dienstag, dem 30.05.2023 um 09:09 +0200 schrieb Simon Horman:
> On Sat, May 27, 2023 at 10:46:25PM +0200, Bert Karwatzki wrote:
> > commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c introduced
> > IPA_STATUS_SIZE as a replacement for the size of the removed struct
> > ipa_status. sizeof(struct ipa_status) was sizeof(__le32[8]), use this
> > as IPA_STATUS_SIZE.
> > 
> > > From 0623148733819bb5d3648b1ed404d57c8b6b31d8 Mon Sep 17 00:00:00 2001
> > From: Bert Karwatzki <spasswolf@....de>
> > Date: Sat, 27 May 2023 22:16:52 +0200
> > Subject: [PATCH] Use the correct value for IPA_STATUS_SIZE.
> > IPA_STATUS_SIZE
> >  was introduced in commit b8dc7d0eea5a7709bb534f1b3ca70d2d7de0b42c as a
> >  replacment for the size of the removed struct ipa_status which had
> > size =
> >  sizeof(__le32[8]).
> > 
> > Signed-off-by: Bert Karwatzki <spasswolf@....de>
> 
> Hi Bert,
> 
> As well as the feedback provided by Jakub elsewhere in this
> thread I think it would be useful to CC the author of the above mentioned
> commit, Alex Elder <elder@...aro.org>. I have CCed him on this email.
> Please consider doing likewise when you post v2.
> 
> FWIIW, I did take a look.
> And I do agree with your maths: struct ipa_status was 32 (= 8 x 4) bytes long.
> 
> > ---
> >  drivers/net/ipa/ipa_endpoint.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/net/ipa/ipa_endpoint.c
> > b/drivers/net/ipa/ipa_endpoint.c
> > index 2ee80ed140b7..afa1d56d9095 100644
> > --- a/drivers/net/ipa/ipa_endpoint.c
> > +++ b/drivers/net/ipa/ipa_endpoint.c
> > @@ -119,7 +119,7 @@ enum ipa_status_field_id {
> >  };
> >  
> >  /* Size in bytes of an IPA packet status structure */
> > -#define IPA_STATUS_SIZE                        sizeof(__le32[4])
> > +#define IPA_STATUS_SIZE                        sizeof(__le32[8])
> >  
> >  /* IPA status structure decoder; looks up field values for a structure
> > */
> >  static u32 ipa_status_extract(struct ipa *ipa, const void *data,
> > -- 
> > 2.40.1
> > 
> > Bert Karwatzki

Here is v2 of the patch, the first one was garbled by the linebreak setting of
evolution.

From: Bert Karwatzki <spasswolf@....de>
Date: Tue, 30 May 2023 10:55:55 +0200
Subject: [PATCH] IPA_STATUS_SIZE was introduced in commit b8dc7d0eea5a as a
 replacement for the size of the removed struct ipa_status of size
 sizeof(__le32[8]). Use this value as IPA_STATUS_SIZE.

Signed-off-by: Bert Karwatzki <spasswolf@....de>
---
 drivers/net/ipa/ipa_endpoint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c
index 2ee80ed140b7..afa1d56d9095 100644
--- a/drivers/net/ipa/ipa_endpoint.c
+++ b/drivers/net/ipa/ipa_endpoint.c
@@ -119,7 +119,7 @@ enum ipa_status_field_id {
 };
 
 /* Size in bytes of an IPA packet status structure */
-#define IPA_STATUS_SIZE			sizeof(__le32[4])
+#define IPA_STATUS_SIZE			sizeof(__le32[8])
 
 /* IPA status structure decoder; looks up field values for a structure */
 static u32 ipa_status_extract(struct ipa *ipa, const void *data,
-- 
2.40.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ