Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Tim Chen <tim.c.chen@linux.intel.com>
To: Megha Dey <megha.dey@intel.com>
Cc: herbert@gondor.apana.org.au, davem@davemloft.net,
	linux-crypto@vger.kernel.org, linux=kernel@vger.kernel.org,
	Megha Dey <megha.dey@linux.intel.com>
Subject: Re: [PATCH] crypto : sha1-mb : Add missing args_digest offset
Date: Mon, 25 Jan 2016 17:17:57 -0800	[thread overview]
Message-ID: <1453771077.21738.15.camel@schen9-desk2.jf.intel.com> (raw)
In-Reply-To: <1453769169-27479-1-git-send-email-megha.dey@intel.com>

On Mon, 2016-01-25 at 16:46 -0800, Megha Dey wrote:
> From: Megha Dey <megha.dey@linux.intel.com>
> 
> The _args_digest is defined as _args+_digest, both of which are the first
> members of 2 separate structures, effectively yielding _args_digest to have
> a value of zero. Thus, no errors have spawned yet due to this. To ensure
> sanity, adding the missing _args_digest offset to the sha1_mb_mgr_submit.S.
> 

Thanks for cleaning this up.

Acked-by: Tim Chen <tim.c.chen@linux.intel.com>

> Signed-off-by: Megha Dey <megha.dey@linux.intel.com>
> ---
>  arch/x86/crypto/sha-mb/sha1_mb_mgr_submit_avx2.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/x86/crypto/sha-mb/sha1_mb_mgr_submit_avx2.S b/arch/x86/crypto/sha-mb/sha1_mb_mgr_submit_avx2.S
> index 2ab9560..c420d89 100644
> --- a/arch/x86/crypto/sha-mb/sha1_mb_mgr_submit_avx2.S
> +++ b/arch/x86/crypto/sha-mb/sha1_mb_mgr_submit_avx2.S
> @@ -197,7 +197,7 @@ len_is_0:
>  	vpinsrd  $1, _args_digest+1*32(state , idx, 4), %xmm0, %xmm0
>  	vpinsrd  $2, _args_digest+2*32(state , idx, 4), %xmm0, %xmm0
>  	vpinsrd  $3, _args_digest+3*32(state , idx, 4), %xmm0, %xmm0
> -	movl    4*32(state, idx, 4), DWORD_tmp
> +	movl     _args_digest+4*32(state, idx, 4), DWORD_tmp
>  
>  	vmovdqu  %xmm0, _result_digest(job_rax)
>  	movl    DWORD_tmp, _result_digest+1*16(job_rax)

  reply	other threads:[~2016-01-26  1:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-26  0:46 [PATCH] crypto : sha1-mb : Add missing args_digest offset Megha Dey
2016-01-26  1:17 ` Tim Chen [this message]
2016-01-27 14:16 ` Herbert Xu

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=1453771077.21738.15.camel@schen9-desk2.jf.intel.com \
    --to=tim.c.chen@linux.intel.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux=kernel@vger.kernel.org \
    --cc=megha.dey@intel.com \
    --cc=megha.dey@linux.intel.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