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]
Date:   Sat, 03 Sep 2016 10:01:19 +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]  529aa19519: BUG: spinlock bad magic on CPU#1, 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 529aa195198645e2a8e97872e5d57a929883a910 ("ima: store the builtin/custom template definitions in a list")

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 1G

caused below changes:


+-------------------------------+------------+------------+
|                               | ae1b8f8c4d | 529aa19519 |
+-------------------------------+------------+------------+
| boot_successes                | 6          | 0          |
| boot_failures                 | 0          | 6          |
| BUG:spinlock_bad_magic_on_CPU | 0          | 6          |
| calltrace:init_ima            | 0          | 6          |
+-------------------------------+------------+------------+



[   17.388687] cryptomgr_probe (157) used greatest stack depth: 13872 bytes left
[   17.391265] Key type trusted registered
[   17.393763] Key type encrypted registered
[   17.394912] BUG: spinlock bad magic on CPU#1, swapper/0/1
[   17.396088]  lock: template_list+0x0/0x48, .magic: 00000000, .owner: swapper/0/1, .owner_cpu: 1
[   17.397731] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-g529aa19 #1
[   17.399271] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[   17.401114]  0000000000000000 ffff8800364fbdf0 ffffffff814a5e6c ffff8800364f1780
[   17.402879]  ffffffff82521865 ffff8800364fbe10 ffffffff810fbfd8 ffffffff83109280
[   17.404520]  ffffffff8225c200 ffff8800364fbe30 ffffffff810fc003 ffffffff83109280
[   17.406024] Call Trace:
[   17.406539]  [<ffffffff814a5e6c>] dump_stack+0x61/0x7e
[   17.407534]  [<ffffffff82521865>] ? set_debug_rodata+0x12/0x12
[   17.408658]  [<ffffffff810fbfd8>] spin_dump+0x85/0x8a
[   17.409731]  [<ffffffff810fc003>] spin_bug+0x26/0x28
[   17.410855]  [<ffffffff810fc24a>] do_raw_spin_unlock+0x1d/0x7c
[   17.412212]  [<ffffffff81a0ff51>] _raw_spin_unlock+0x22/0x3f
[   17.413480]  [<ffffffff82548a96>] ima_init_template_list+0x4b/0x55
[   17.414837]  [<ffffffff8254863f>] ? hash_setup+0xb3/0xb3
[   17.415982]  [<ffffffff82548649>] init_ima+0xa/0x36
[   17.417113]  [<ffffffff82522079>] do_one_initcall+0x8b/0x119
[   17.418377]  [<ffffffff82521865>] ? set_debug_rodata+0x12/0x12
[   17.419643]  [<ffffffff82522220>] kernel_init_freeable+0x119/0x1a6
[   17.420936]  [<ffffffff81a0989b>] kernel_init+0x9/0xeb
[   17.421988]  [<ffffffff81a1093f>] ret_from_fork+0x1f/0x40
[   17.423244]  [<ffffffff81a09892>] ? rest_init+0xb9/0xb9
[   17.451107] ima: No TPM chip found, activating TPM-bypass!
[   17.452384] evm: HMAC attrs: 0x0






Thanks,
Kernel Test Robot

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ