From: Dan Carpenter <dan.carpenter@linaro.org>
To: Kees Cook <kees@kernel.org>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>,
linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] overflow: improve size_add/mul for 32bit systems
Date: Mon, 18 Nov 2024 11:13:40 +0300 [thread overview]
Message-ID: <f8ed52f5-51e0-4fe4-a1f9-d840979f52a8@stanley.mountain> (raw)
In-Reply-To: <ebdae636-11f3-4f02-a158-f15bbed2847f@stanley.mountain>
On Mon, Nov 18, 2024 at 09:09:28AM +0300, Dan Carpenter wrote:
> On 32bit systems, if you pass a long long to size_add()/mul() the top
> 32 bits are truncated away so the function doesn't work as expected.
> Add a test to prevent this.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
> ---
Sorry, I thought I had build tested this, but actually I didn't build test it
enough... Probably the kbuild bot will complain soon.
regards,
dan carpenter
next prev parent reply other threads:[~2024-11-18 8:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-18 6:09 Dan Carpenter
2024-11-18 8:13 ` Dan Carpenter [this message]
2024-11-21 20:30 ` kernel test robot
2024-11-21 20:51 ` kernel test robot
2024-11-22 0:21 ` kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f8ed52f5-51e0-4fe4-a1f9-d840979f52a8@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=gustavoars@kernel.org \
--cc=kees@kernel.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®