From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932906AbcILK67 (ORCPT ); Mon, 12 Sep 2016 06:58:59 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:45476 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932639AbcILK6y (ORCPT ); Mon, 12 Sep 2016 06:58:54 -0400 X-IBM-Helo: d28dlp02.in.ibm.com X-IBM-MailFrom: zohar@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org;linux-security-module@vger.kernel.org Subject: Re: ima: BUG: spinlock bad magic From: Mimi Zohar To: Dmitry Vyukov Cc: dmitry.kasatkin@gmail.com, james.l.morris@oracle.com, serge@hallyn.com, linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org, LKML , syzkaller Date: Mon, 12 Sep 2016 06:58:36 -0400 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16091210-0052-0000-0000-000002F57E6B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16091210-0053-0000-0000-00000EA71644 Message-Id: <1473677916.3785.15.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-09-12_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609020000 definitions=main-1609120171 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On Fri, 2016-09-09 at 21:19 +0200, Dmitry Vyukov wrote: > Hello, > > While booting linux-next on 4affa544adb8077403893e62b9e327fcf87de6f7 > (Sep 8), I've got the following BUG: > > BUG: spinlock bad magic on CPU#3, swapper/0/1 > lock: template_list+0x0/0x60, .magic: 00000000, .owner: /-1, > .owner_cpu: 0 > CPU: 3 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc5-next-20160905+ #14 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 > ffffffff886b6fe0 ffff88003ebf7d48 ffffffff82db81a9 ffffffff870b20c0 > fffffbfff10d6dfc ffffffff8a6ac660 ffff88003ebee040 dffffc0000000000 > ffffffff88ad2ca0 dffffc0000000000 ffff88003ebf7d80 ffffffff814a71fd > Call Trace: > [< inline >] __dump_stack lib/dump_stack.c:15 > [] dump_stack+0x12e/0x185 lib/dump_stack.c:51 > [] spin_dump+0x14d/0x280 kernel/locking/spinlock_debug.c:67 > [< inline >] spin_bug kernel/locking/spinlock_debug.c:75 > [< inline >] debug_spin_lock_before kernel/locking/spinlock_debug.c:83 > [] do_raw_spin_lock+0x224/0x2b0 > kernel/locking/spinlock_debug.c:135 > [< inline >] __raw_spin_lock ./include/linux/spinlock_api_smp.h:145 > [] _raw_spin_lock+0x3b/0x50 kernel/locking/spinlock.c:151 > [< inline >] spin_lock ./include/linux/spinlock.h:302 > [] ima_init_template_list+0x4c/0x10c > security/integrity/ima/ima_template.c:218 > [] init_ima+0xf/0x44 security/integrity/ima/ima_main.c:421 > [] do_one_initcall+0xa0/0x2b0 init/main.c:782 > [< inline >] do_initcall_level init/main.c:848 > [< inline >] do_initcalls init/main.c:856 > [< inline >] do_basic_setup init/main.c:874 > [] kernel_init_freeable+0x476/0x52f init/main.c:1021 > [] kernel_init+0x13/0x160 init/main.c:947 > [] ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 > > Seems to be caused by: > > commit 5d74ec48cc8fd2109001c36bada5bf69c046b487 > Author: Mimi Zohar > Date: Sat Sep 3 15:20:40 2016 +1000 > ima: store the builtin/custom template definitions in a list Thank you for reporting this bug. The fix will be included in the v4 post. Mimi