Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbbESBad (ORCPT ); Mon, 18 May 2015 21:30:33 -0400 Received: from e23smtp09.au.ibm.com ([202.81.31.142]:46962 "EHLO e23smtp09.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbbESBab (ORCPT ); Mon, 18 May 2015 21:30:31 -0400 Message-ID: <1431998970.4510.12.camel@linux.vnet.ibm.com> Subject: Re: [PATCH 1/4] modsign: Abort modules_install when signing fails From: Mimi Zohar To: David Woodhouse Cc: dhowells@redhat.com, rusty@rustcorp.com.au, mmarek@suse.cz, mjg59@srcf.ucam.org, keyrings@linux-nfs.org, dmitry.kasatkin@gmail.com, mcgrof@suse.com, linux-kernel@vger.kernel.org, seth.forshee@canonical.com, linux-security-module@vger.kernel.org Date: Mon, 18 May 2015 21:29:30 -0400 In-Reply-To: <1431708779.4727.9.camel@infradead.org> References: <20150515123513.16723.96340.stgit@warthog.procyon.org.uk> <1431708779.4727.9.camel@infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10 (3.12.10-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15051901-0033-0000-0000-00000181A8AA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1340 Lines: 34 On Fri, 2015-05-15 at 17:52 +0100, David Woodhouse wrote: > Signed-off-by: David Woodhouse I assume the patch descriptions will be added before being upstreamed. > --- > scripts/Makefile.modinst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst > index e48a4e9..07650ee 100644 > --- a/scripts/Makefile.modinst > +++ b/scripts/Makefile.modinst > @@ -22,7 +22,7 @@ quiet_cmd_modules_install = INSTALL $@ > mkdir -p $(2) ; \ > cp $@ $(2) ; \ > $(mod_strip_cmd) $(2)/$(notdir $@) ; \ > - $(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD)) ; \ > + $(mod_sign_cmd) $(2)/$(notdir $@) $(patsubst %,|| true,$(KBUILD_EXTMOD)) && \ > $(mod_compress_cmd) $(2)/$(notdir $@) With this patch, as expected the modules_install aborted on failure. Is there any way to capture the reason for the failure? In my case, dropping the '-j ' option resolved the problem. Mimi > # Modules built outside the kernel source tree go into extra by default -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/