[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2034920.efhAd224kL@positron.chronox.de>
Date: Wed, 29 Nov 2017 12:05:13 +0100
From: Stephan Müller <smueller@...onox.de>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: Eric Biggers <ebiggers3@...il.com>,
syzbot
<bot+3401d9494b9380f7244bcc7fec49680878fccba6@...kaller.appspotmail.com>,
davem@...emloft.net, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org, syzkaller-bugs@...glegroups.com
Subject: Re: [PATCH v2] crypto: AF_ALG - race-free access of encryption flag
Am Mittwoch, 29. November 2017, 08:10:49 CET schrieb Herbert Xu:
Hi Herbert,
>
> It sort of worked for skcipher because it didn't care if ctx->enc
> or even ctx->iv changed midstream. But even there I don't think
> we need to wait a second time. In fact waiting a second time could
> result in a dead-lock if no sendmsg call came around.
Shouldn't we then create a patch for the pre-4.14 algif_skcipher code that
moves the wait out of the while loop to the beginning of the function in
recvmsg?
Ciao
Stephan
Powered by blists - more mailing lists