From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932065Ab3KVONV (ORCPT ); Fri, 22 Nov 2013 09:13:21 -0500 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:59016 "EHLO e06smtp18.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755339Ab3KVONT (ORCPT ); Fri, 22 Nov 2013 09:13:19 -0500 Date: Fri, 22 Nov 2013 15:13:14 +0100 From: Heiko Carstens To: Roberto Sassu Cc: Mimi Zohar , Martin Schwidefsky , linux-kernel@vger.kernel.org Subject: Re: [BUG] 3ce1217d6cd5 ima patch causes s390 to crash on boot Message-ID: <20131122141314.GC4208@osiris> References: <20131122114819.GB4208@osiris> <528F5C01.8020304@polito.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <528F5C01.8020304@polito.it> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13112214-6892-0000-0000-000006FBAA48 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 22, 2013 at 02:28:33PM +0100, Roberto Sassu wrote: > On 11/22/2013 12:48 PM, Heiko Carstens wrote: > >Hi Roberto, > > > >your patch 3ce1217d6cd5 "ima: define template fields library and new helpers" > >causes s390 to crash on boot: > > > > Hi Heiko > > thanks for the information. I think this issue is related to the error > detected by the kbuild test robot. Please, try to apply the attached > patch to see if it solves the problem. No, the patch doesn't fix the problem. > From: Fengguang Wu > Subject: [PATCH] ima: fix coccinelle warnings > TO: Mimi Zohar > CC: Roberto Sassu > CC: linux-kernel@vger.kernel.org > > security/integrity/ima/ima_template.c:62:41-47: ERROR: application of sizeof to pointer > > sizeof when applied to a pointer typed expression gives the size of > the pointer > > Generated by: coccinelle/misc/noderef.cocci > > CC: Roberto Sassu > CC: Mimi Zohar > Signed-off-by: Fengguang Wu > --- > > cocci-output-13142-271b5e-ima_template.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/security/integrity/ima/ima_template.c > +++ b/security/integrity/ima/ima_template.c > @@ -59,7 +59,7 @@ static int template_desc_init_fields(cha > if (template_num_fields > IMA_TEMPLATE_NUM_FIELDS_MAX) > return -EINVAL; > > - *fields = kzalloc(template_num_fields * sizeof(*fields), GFP_KERNEL); > + *fields = kzalloc(template_num_fields * sizeof(**fields), GFP_KERNEL); > if (*fields == NULL) { > result = -ENOMEM; > goto out;