Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1594994

Re: [PATCH] crypto: s5p-sss - Fix completing crypto request in IRQ handler

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH] crypto: s5p-sss - Fix completing crypto request in IRQ handler
Date 2017-03-08 10:50 +0100
Message-ID <tiGoi-4Ft-21@gated-at.bofh.it> (permalink)
References <thHZ8-3pL-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Mar 05, 2017 at 07:14:07PM +0200, Krzysztof Kozlowski wrote:
> In a regular interrupt handler driver was finishing the crypt/decrypt
> request by calling complete on crypto request.  This is disallowed since
> converting to skcipher in commit b286d8b1a690 ("crypto: skcipher - Add
> skcipher walk interface") and causes a warning:
> 	WARNING: CPU: 0 PID: 0 at crypto/skcipher.c:430 skcipher_walk_first+0x13c/0x14c
> 
> The interrupt is marked shared but in fact there are no other users
> sharing it.  Thus the simplest solution seems to be to just use a
> threaded interrupt handler, after converting it to oneshot.
> 
> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>

Patch applied.  Thanks.
-- 
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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] crypto: s5p-sss - Fix completing crypto request in IRQ handler Krzysztof Kozlowski <krzk@kernel.org> - 2017-03-05 18:20 +0100
  Re: [PATCH] crypto: s5p-sss - Fix completing crypto request in IRQ  handler Herbert Xu <herbert@gondor.apana.org.au> - 2017-03-08 10:50 +0100

csiph-web