From: Herbert Xu <herbert@gondor.apana.org.au>
To: David Binderman <linuxdev.baldrick@gmail.com>
Cc: davem@davemloft.net, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org, dcb314@hotmail.com,
Andreas Westin <andreas.westin@stericsson.com>,
Linus Walleij <linus.walleij@linaro.org>
Subject: Re: linux-4.6/drivers/crypto/ux500/hash/hash_core.c: 2 * possible bad size ?
Date: Wed, 18 May 2016 15:46:50 +0800 [thread overview]
Message-ID: <20160518074650.GA6097@gondor.apana.org.au> (raw)
In-Reply-To: <CAMzoamabHQ0SaMmkTfwDGGZBpOxSE6Qci4TwEUAEMbtWO3X-Ew@mail.gmail.com>
On Mon, May 16, 2016 at 07:13:12PM +0100, David Binderman wrote:
> Hello there,
>
> 1.
>
> linux-4.6/drivers/crypto/ux500/hash/hash_core.c:784]: (warning) Division by
> result of sizeof(). memmove() expects a size in bytes, did you intend to
> multiply instead?
>
> Source code is
>
> memmove(req_ctx->state.buffer,
> device_data->state.buffer,
> HASH_BLOCK_SIZE / sizeof(u32));
>
> Maybe better code
>
> memmove(req_ctx->state.buffer,
> device_data->state.buffer,
> HASH_BLOCK_SIZE);
>
> 2.
>
> linux-4.6/drivers/crypto/ux500/hash/hash_core.c:835]: (warning) Division by
> result of sizeof(). memmove() expects a size in bytes, did you intend to
> multiply instead?
>
> Duplicate.
Thanks for noticing these bugs. This driver hasn't been maintained
since 2012, so unless someone steps up I'm going to just delete it.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next parent reply other threads:[~2016-05-18 7:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAMzoamabHQ0SaMmkTfwDGGZBpOxSE6Qci4TwEUAEMbtWO3X-Ew@mail.gmail.com>
2016-05-18 7:46 ` Herbert Xu [this message]
2016-06-08 12:52 ` linux-4.6/drivers/crypto/ux500/hash/hash_core.c: 2 * possible bad size ? Linus Walleij
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=20160518074650.GA6097@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=andreas.westin@stericsson.com \
--cc=davem@davemloft.net \
--cc=dcb314@hotmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxdev.baldrick@gmail.com \
/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