From: Steffen Klassert <steffen.klassert@secunet.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Eric Biggers <ebiggers3@gmail.com>,
<linux-crypto@vger.kernel.org>, <syzkaller-bugs@googlegroups.com>,
Eric Biggers <ebiggers@google.com>
Subject: Re: [RFC PATCH] crypto: pcrypt - forbid recursive instantiation
Date: Wed, 20 Feb 2019 12:42:08 +0100 [thread overview]
Message-ID: <20190220114208.GD3087@gauss3.secunet.de> (raw)
In-Reply-To: <20190220040628.673rc2ffs7dxepu2@gondor.apana.org.au>
On Wed, Feb 20, 2019 at 12:06:28PM +0800, Herbert Xu wrote:
> On Wed, Apr 18, 2018 at 07:35:33AM +0200, Steffen Klassert wrote:
> >
> > Yes sure, I just wanted to know if it is worth to think about
> > preventing template recursions. If there is a valid usecase,
> > then we don't even need to think in this direction.
> >
> > While I think each pcrypt instance should have it's own
> > padata instance on the long run, it would be good to have
> > a not so intrusive fix that can be backported to the stable
> > trees.
>
> Steffen, has there been any progress on this work?
I had a look on what we need to use separate padata
instances for each pcrypt instance. But that's comlicated
and will create incompatibilities on the sysfs cpuset
configuration options. So that's not really a thing that
could be a fix.
>
> We need to fix this soon or we'll have to disable pcrypt because
> it is a security issue.
>
> It's not just about nested templates either. You can trigger
> the same issue where a pcrypt instance over an AEAD algorithm
> that uses a fallback which also happens to be pcrypt.
Would it be possible to forbid pcrypt for algorithms
that needs a fallback?
If I see this correct, only crypto algorithms used by
HW crypto accelerators need a fallback to software
crypto. HW crypto can't benefit from pcrypt anyway,
so it would be no loss to disable pcrypt in that case.
We could use the initial fix from Eric in combination
with disableing pcrypt for algorithms that need a fallback.
next prev parent reply other threads:[~2019-02-20 11:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <001a1140b8307b0439055ffc7872@google.com>
2017-12-12 16:46 ` INFO: task hung in aead_recvmsg Dmitry Vyukov
2017-12-23 20:29 ` Eric Biggers
2017-12-30 8:37 ` Steffen Klassert
2018-01-05 21:35 ` Eric Biggers
[not found] ` <20180310232231.19191-1-ebiggers3@gmail.com>
[not found] ` <20180323002152.GA30497@gondor.apana.org.au>
[not found] ` <20180408225528.GH685@sol.localdomain>
[not found] ` <20180409085807.2cwvr5cocz6gfbmv@gauss3.secunet.de>
[not found] ` <20180409190739.GC203367@gmail.com>
[not found] ` <20180418053533.wuo6bj2okqdu2hrf@gauss3.secunet.de>
2019-02-20 4:06 ` [RFC PATCH] crypto: pcrypt - forbid recursive instantiation Herbert Xu
2019-02-20 11:42 ` Steffen Klassert [this message]
2019-03-01 3:38 ` Herbert Xu
2018-07-21 12:37 ` INFO: task hung in aead_recvmsg syzbot
2019-12-01 7:58 ` syzbot
2019-12-01 17:58 ` Stephan Müller
2019-12-01 19:22 ` Eric Biggers
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=20190220114208.GD3087@gauss3.secunet.de \
--to=steffen.klassert@secunet.com \
--cc=ebiggers3@gmail.com \
--cc=ebiggers@google.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.