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: <57cf04d8.vTk1IgJvjBWzpiCG%xiaolong.ye@intel.com>
Date:   Wed, 07 Sep 2016 02:03:04 +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]  476b17b7d1: 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 476b17b7d15057caf440b6f76457d0d772e6aebe ("ima: store the builtin/custom template definitions in a list")

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -m 320M

caused below changes:


+--------------------------------------------------+------------+------------+
|                                                  | 6c3d0673b8 | 476b17b7d1 |
+--------------------------------------------------+------------+------------+
| boot_successes                                   | 12         | 0          |
| boot_failures                                    | 2          | 16         |
| BUG:unable_to_handle_kernel                      | 2          |            |
| Oops                                             | 2          |            |
| calltrace:SyS_ipc                                | 2          |            |
| Kernel_panic-not_syncing:Fatal_exception         | 2          |            |
| BUG:spinlock_bad_magic_on_CPU                    | 0          | 15         |
| calltrace:init_ima                               | 0          | 15         |
| WARNING:at_kernel/locking/lockdep.c:#check_flags | 0          | 1          |
| calltrace:threadfunc                             | 0          | 1          |
+--------------------------------------------------+------------+------------+



[   14.562924] .................................... done.
[   14.563455] Using IPI No-Shortcut mode
[   14.566488] Key type encrypted registered
[   14.566943] BUG: spinlock bad magic on CPU#0, swapper/0/1
[   14.567537]  lock: template_list+0x0/0x20, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
[   14.568453] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.8.0-rc1-00027-g476b17b #1
[   14.569273] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014
[   14.569443]  00000000 00200246 c349bea4 b137e3b8 b1f5b61d b2c7fda0 c349becc b10fdb2e
[   14.569443]  b1f0a3d9 b2c7fda0 00000000 b1f5b61d ffffffff 00000000 b2c7fda0 ffffffff
[   14.569443]  c349bedc b10fdb8d b1f0a414 b2c7fda0 c349bef8 b10fdcd4 00000000 b2c7fdb0
[   14.569443] Call Trace:
[   14.569443]  [<b137e3b8>] dump_stack+0x1a4/0x246
[   14.569443]  [<b10fdb2e>] spin_dump+0xc5/0xdd
[   14.569443]  [<b10fdb8d>] spin_bug+0x47/0x59
[   14.569443]  [<b10fdcd4>] do_raw_spin_lock+0x48/0x2b2
[   14.569443]  [<b1aab7c7>] _raw_spin_lock+0x6f/0x93
[   14.569443]  [<b22dfaa8>] ? ima_init_template_list+0x1b/0x99
[   14.569443]  [<b22df39c>] ? hash_setup+0x14d/0x14d
[   14.569443]  [<b22dfaa8>] ima_init_template_list+0x1b/0x99
[   14.569443]  [<b22df3b3>] init_ima+0x17/0x87
[   14.569443]  [<b229a95d>] do_one_initcall+0x10e/0x22b
[   14.569443]  [<b22996f8>] ? repair_env_string+0x32/0xd6
[   14.569443]  [<b10b8bc3>] ? parse_args+0x3b5/0x521
[   14.569443]  [<b229acef>] ? kernel_init_freeable+0x275/0x415
[   14.569443]  [<b229ad20>] kernel_init_freeable+0x2a6/0x415
[   14.569443]  [<b1aa1e60>] kernel_init+0x16/0x248
[   14.569443]  [<b1aacd6e>] ret_from_kernel_thread+0xe/0x30
[   14.569443]  [<b1aa1e4a>] ? rest_init+0x2df/0x2df
[   14.581955] ima: No TPM chip found, activating TPM-bypass!
[   14.582650] evm: HMAC attrs: 0x1






Thanks,
Kernel Test Robot

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ