From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Roberto Sassu <roberto.sassu@polito.it>
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
linux-kernel@vger.kernel.org
Subject: Re: [BUG] 3ce1217d6cd5 ima patch causes s390 to crash on boot
Date: Fri, 22 Nov 2013 15:13:14 +0100 [thread overview]
Message-ID: <20131122141314.GC4208@osiris> (raw)
In-Reply-To: <528F5C01.8020304@polito.it>
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 <fengguang.wu@intel.com>
> Subject: [PATCH] ima: fix coccinelle warnings
> TO: Mimi Zohar <zohar@linux.vnet.ibm.com>
> CC: Roberto Sassu <roberto.sassu@polito.it>
> 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 <roberto.sassu@polito.it>
> CC: Mimi Zohar <zohar@linux.vnet.ibm.com>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
> ---
>
> 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;
next prev parent reply other threads:[~2013-11-22 14:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 11:48 [BUG] 3ce1217d6cd5 ima patch causes s390 to crash on boot Heiko Carstens
2013-11-22 13:28 ` Roberto Sassu
2013-11-22 14:13 ` Heiko Carstens [this message]
2013-11-22 16:23 ` Roberto Sassu
2013-11-22 16:35 ` Heiko Carstens
2013-11-22 16:36 ` Roberto Sassu
2013-11-22 16:40 ` Mimi Zohar
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=20131122141314.GC4208@osiris \
--to=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roberto.sassu@polito.it \
--cc=schwidefsky@de.ibm.com \
--cc=zohar@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox