lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <57c4cbbf.KdUYuSDt6RdsNl9b%xiaolong.ye@intel.com>
Date:   Tue, 30 Aug 2016 07:56:47 +0800
From:   kernel test robot <xiaolong.ye@...el.com>
To:     Mimi Zohar <zohar@...ux.vnet.ibm.com>
Cc:     lkp@...org, linux-security-module@...r.kernel.org,
        linux-ima-devel@...ts.sourceforge.net,
        Mimi Zohar <zohar@...ux.vnet.ibm.com>,
        LKML <linux-kernel@...r.kernel.org>
Subject: [ima]  ee47739931: BUG: spinlock bad magic on CPU#0, swapper/0/1


FYI, we noticed the following commit:

https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-restore-kexec
commit ee47739931a22b314879daedba9299c2834a05e1 ("ima: store the builtin/custom template definitions in a list")

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -m 512M

caused below changes:


+----------------+------------+------------+
|                | 732ca1f3c9 | ee47739931 |
+----------------+------------+------------+
| boot_successes | 0          | 0          |
+----------------+------------+------------+



[    6.698532] cryptomgr_probe (168) used greatest stack depth: 14200 bytes left
[    6.701158] Key type trusted registered
[    6.702067] Key type encrypted registered
[    6.702721] BUG: spinlock bad magic on CPU#0, swapper/0/1
[    6.703564]  lock: template_list+0x0/0x38, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
[    6.704863] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-gee47739 #3
[    6.706003] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[    6.720399]  0000000000000000 ffff91fa0025bdc0 ffffffffba7b7b2c 0000000000000000
[    6.721615]  ffffffffbc8ffcd0 ffff91fa0025bde0 ffffffffba572615 ffffffffbc8ffcd0
[    6.722829]  0000000000000001 ffff91fa0025be00 ffffffffba572645 ffffffffbc8ffcd0
[    6.724044] Call Trace:
[    6.724443]  [<ffffffffba7b7b2c>] dump_stack+0x85/0xbe
[    6.725234]  [<ffffffffba572615>] spin_dump+0x90/0x95
[    6.726019]  [<ffffffffba572645>] spin_bug+0x2b/0x2d
[    6.726795]  [<ffffffffba57278e>] do_raw_spin_lock+0x45/0x191
[    6.727689]  [<ffffffffbb0cbdbd>] _raw_spin_lock+0x3d/0x41
[    6.728542]  [<ffffffffbbabb5a7>] ? ima_init_template_list+0x18/0x51
[    6.729534]  [<ffffffffbbabb5a7>] ima_init_template_list+0x18/0x51
[    6.730483]  [<ffffffffbbabb155>] ? hash_setup+0xb3/0xb3
[    6.731296]  [<ffffffffbbabb15f>] init_ima+0xa/0x36
[    6.732057]  [<ffffffffbba81198>] do_one_initcall+0x8b/0x153
[    6.732942]  [<ffffffffba538e00>] ? parse_args+0x17e/0x29f
[    6.733789]  [<ffffffffbba8143c>] kernel_init_freeable+0x1dc/0x264
[    6.734738]  [<ffffffffbba8088c>] ? set_debug_rodata+0x12/0x12
[    6.735631]  [<ffffffffbb0c3cc3>] kernel_init+0xe/0xfd
[    6.736392]  [<ffffffffbb0cc90f>] ret_from_fork+0x1f/0x40
[    6.737190]  [<ffffffffbb0c3cb5>] ? rest_init+0x13c/0x13c
[    6.738170] ima: No TPM chip found, activating TPM-bypass!
[    6.739101] ------------[ cut here ]------------
[    6.739867] WARNING: CPU: 0 PID: 1 at init/main.c:790 do_one_initcall+0x12b/0x153
[    6.741307] initcall init_ima+0x0/0x36 returned with preemption imbalance 
[    6.742385] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-gee47739 #3
[    6.743530] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[    6.744870]  0000000000000000 ffff91fa0025bde8 ffffffffba7b7b2c ffff91fa0025be38
[    6.746084]  0000000000000000 ffff91fa0025be28 ffffffffba518a10 0000031620b97089
[    6.747308]  ffffffffbbabb155 0000000000000001 0000000000000000 0000000000000001
[    6.748524] Call Trace:
[    6.748915]  [<ffffffffba7b7b2c>] dump_stack+0x85/0xbe
[    6.749710]  [<ffffffffba518a10>] __warn+0xc5/0xe0
[    6.750455]  [<ffffffffbbabb155>] ? hash_setup+0xb3/0xb3
[    6.751263]  [<ffffffffba518a7a>] warn_slowpath_fmt+0x4f/0x51
[    6.752141]  [<ffffffffbbabb12c>] ? hash_setup+0x8a/0xb3
[    6.752937]  [<ffffffffbbabb155>] ? hash_setup+0xb3/0xb3
[    6.753721]  [<ffffffffbbabb155>] ? hash_setup+0xb3/0xb3
[    6.754505]  [<ffffffffbba81238>] do_one_initcall+0x12b/0x153
[    6.755346]  [<ffffffffbba8143c>] kernel_init_freeable+0x1dc/0x264
[    6.756243]  [<ffffffffbba8088c>] ? set_debug_rodata+0x12/0x12
[    6.757101]  [<ffffffffbb0c3cc3>] kernel_init+0xe/0xfd
[    6.757879]  [<ffffffffbb0cc90f>] ret_from_fork+0x1f/0x40
[    6.758757]  [<ffffffffbb0c3cb5>] ? rest_init+0x13c/0x13c
[    6.759593] ---[ end trace 0a42846a83c9d229 ]---
[    6.760298] evm: HMAC attrs: 0x1






Thanks,
Kernel Test Robot

View attachment "config-4.8.0-rc1-00027-gee47739" of type "text/plain" (89920 bytes)

Download attachment "dmesg.xz" of type "application/octet-stream" (14232 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ