[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251106163623.1772347-1-nate.karstens@garmin.com>
Date: Thu, 6 Nov 2025 10:36:23 -0600
From: Nate Karstens <nate.karstens@...min.com>
To: <sd@...asysnail.net>
CC: <davem@...emloft.net>, <edumazet@...gle.com>, <horms@...nel.org>,
<jacob.e.keller@...el.com>, <john.fastabend@...il.com>,
<kuba@...nel.org>, <linux-kernel@...r.kernel.org>, <linux@...blig.org>,
<mrpre@....com>, <nate.karstens@...min.com>, <nate.karstens@...il.com>,
<netdev@...r.kernel.org>, <pabeni@...hat.com>,
<stable@...r.kernel.org>, <tom@...ntonium.net>
Subject: Re: [PATCH] strparser: Fix signed/unsigned mismatch bug
Thanks, Sabrina!
> Are you testing on some 32b arch? Otherwise ssize_t would be s64 and
> int/unsigned int should be 32b so the missing cast would not matter?
Yes, that is a good point. I tested this on a 32-bit architecture. On a 64-bit system, the u32 would be put into an s64 because all possible values for the u32 can fit into the s64. Signed arithmetic is used and you would get the correct result.
> Agree. And adding a summary of the information in this thread to the
> commit message would be really useful
Sounds good!
> Agree. I didn't mean to dismiss the presence of a bug, sorry if it
> sounded like that. But I was a bit unclear on the conditions, this
> discussion is helpful.
No worries, I didn't take it as being dismissive at all. You had great questions and I agree that the discussion has been really helpful!
Cheers,
Nate
________________________________
CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.
________________________________
CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient(s) and contain information that may be Garmin confidential and/or Garmin legally privileged. If you have received this email in error, please notify the sender by reply email and delete the message. Any disclosure, copying, distribution or use of this communication (including attachments) by someone other than the intended recipient is prohibited. Thank you.
Powered by blists - more mailing lists