From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Biggers Subject: Re: kernel failure while loading X.509 certificate Date: Thu, 18 Jan 2018 10:12:05 -0800 Message-ID: <20180118181205.4cwclwrh2x3zi5mz@gmail.com> References: <88A6FE91-795D-4F17-BF8C-E597239A2C46@linaro.org> <48DEA233-E708-4661-B5F0-15CEC60877E4@linaro.org> <20180117051627.GA15527@zzz.localdomain> <11931.1516187333@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: David Howells , Arnd Bergmann , Ulf Hansson , Linus Walleij , Daniel Lezcano , Mark Brown , Vincent Guittot , John Stultz , Eric Biggers , crypto , Thorsten Leemhuis To: Paolo Valente Return-path: Received: from mail-it0-f68.google.com ([209.85.214.68]:46385 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753501AbeARSMI (ORCPT ); Thu, 18 Jan 2018 13:12:08 -0500 Received: by mail-it0-f68.google.com with SMTP id c16so14510981itc.5 for ; Thu, 18 Jan 2018 10:12:08 -0800 (PST) Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Thu, Jan 18, 2018 at 11:07:50AM +0100, Paolo Valente wrote: > > > > Il giorno 17 gen 2018, alle ore 12:08, David Howells ha scritto: > > > > If this happened during boot, it could be that you have an X.509 cert for > > which the digest algorithm isn't built into the kernel. > > > > Yeah. I did look for such an inconsistency after that failure, but I > didn't find it, most certainly because of my lack of expertise on > this. > > After the success with rc8, I retried with rc7, repeating the same > streamline_config.pl procedure as the first time. Of course, by > Murphy's laws, rc7 worked this time. Sorry for making you waste > your time. Should this happen again, I won't be so superficial not to > make a backup of the offending config. > No your report is still useful; I think there is a real kernel bug here, probably reproducible using add_key() with type "asymmetric", where the signature's hash algorithm isn't supported by the kernel. I'll try to put together a reproducer when I have a chance. Thanks! Eric