public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390/crypto: fix aes ctr concurrency issue
@ 2013-11-19 10:22 Harald Freudenberger
  2013-11-19 10:22 ` Harald Freudenberger
  2013-11-22 13:58 ` Gerald Schaefer
  0 siblings, 2 replies; 7+ messages in thread
From: Harald Freudenberger @ 2013-11-19 10:22 UTC (permalink / raw)
  To: Herbert Xu
  Cc: linux-crypto, Martin Schwidefsky, Ingo Tuchscherer,
	Gerald Schaefer, Harald Freudenberger, Harald Freudenberger

The aes-ctr mode used one preallocated page without any concurrency
protection. When multiple threads run aes-ctr encryption or decryption
this could lead to data corruption.

The patch introduces locking for the preallocated page and alternatively
allocating and freeing of an temp page in concurrency situations.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>

Harald Freudenberger (1):
  s390/crypto: fix aes ctr concurrency issue

 arch/s390/crypto/aes_s390.c |   55 ++++++++++++++++++++++++++++++++----------
 1 files changed, 42 insertions(+), 13 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-29  8:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-19 10:22 [PATCH] s390/crypto: fix aes ctr concurrency issue Harald Freudenberger
2013-11-19 10:22 ` Harald Freudenberger
2013-11-28 14:00   ` Herbert Xu
2013-11-28 15:39     ` Harald Freudenberger
2013-11-29  1:50       ` Herbert Xu
2013-11-29  8:58         ` Harald Freudenberger
2013-11-22 13:58 ` Gerald Schaefer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox