From: Mimi Zohar <zohar@linux.vnet.ibm.com>
To: Matthew Garrett <mjg59@google.com>
Cc: wangjunwen@baidu.com, linux-integrity <linux-integrity@vger.kernel.org>
Subject: Re: [PATCH] evm: Don't deadlock if a crypto algorithm is unavailable
Date: Fri, 01 Jun 2018 18:26:41 -0400 [thread overview]
Message-ID: <1527892001.13403.21.camel@linux.vnet.ibm.com> (raw)
In-Reply-To: <CACdnJutAGYyB2FW9W-0v2yVDHdAwcm0KQY7pUao8hsjf8ifw6A@mail.gmail.com>
On Fri, 2018-06-01 at 13:52 -0700, Matthew Garrett wrote:
> On Fri, Jun 1, 2018 at 4:21 AM Mimi Zohar <zohar@linux.vnet.ibm.com> wrote:
> > On Thu, 2018-05-31 at 14:06 -0700, Matthew Garrett wrote:
> > > EVM looks like it SELECTs CONFIG_SHA1, so I /think/ it should be ok
> > > before that patch?
> >
> > According to Junwen, with CONFIG_TRUSTED_KEYS enabled the HMAC and
> > SHA1 are allocated at __init. The locking problem occurs when
> > CONFIG_TRUSTED_KEYS is not enabled. His solution would have been to
> > move the crypto_alloc_shash() in EVM to an __init function.
>
> Ok - I think just allowing it to be deferred is preferable, since
> otherwise we'd have to build in every hash algorithm that could be
> used for the signatures (which wasn't a problem before the non-sha1
> patch). How would you prefer me to send these two? The non-sha1 patch
> isn't in -next, so I can't add a fixes: for it at this point.
Switch the order of the two patches. The bug fix goes first, then the
non-sha1 patch. Remember we need an Ack from Herbert Xu for
introducing CRYPTO_NOLOAD.
Mimi
prev parent reply other threads:[~2018-06-01 22:26 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 17:53 [PATCH V4] evm: Allow non-SHA1 digital signatures Matthew Garrett
2018-05-16 22:12 ` Mimi Zohar
2018-05-17 22:09 ` Matthew Garrett
2018-05-18 16:03 ` Mimi Zohar
2018-05-29 18:26 ` Matthew Garrett
[not found] ` <15252CF8C1B4384C8CE16D7D55C66479011414E7BF@BC-MAIL-M04.internal.baidu.com>
2018-05-30 18:29 ` Matthew Garrett
2018-05-30 20:28 ` [PATCH] evm: Don't deadlock if a crypto algorithm is unavailable Matthew Garrett
[not found] ` <15252CF8C1B4384C8CE16D7D55C66479011414E83B@BC-MAIL-M04.internal.baidu.com>
2018-05-31 19:30 ` Matthew Garrett
2018-05-31 19:55 ` Mimi Zohar
2018-05-31 20:07 ` Matthew Garrett
2018-05-31 20:32 ` Mimi Zohar
2018-05-31 21:06 ` Matthew Garrett
2018-06-01 11:21 ` Mimi Zohar
2018-06-01 20:52 ` Matthew Garrett
2018-06-01 22:26 ` Mimi Zohar [this message]
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=1527892001.13403.21.camel@linux.vnet.ibm.com \
--to=zohar@linux.vnet.ibm.com \
--cc=linux-integrity@vger.kernel.org \
--cc=mjg59@google.com \
--cc=wangjunwen@baidu.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.