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: /-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] [] dump_stack+0x85/0xbe [ 6.725234] [] spin_dump+0x90/0x95 [ 6.726019] [] spin_bug+0x2b/0x2d [ 6.726795] [] do_raw_spin_lock+0x45/0x191 [ 6.727689] [] _raw_spin_lock+0x3d/0x41 [ 6.728542] [] ? ima_init_template_list+0x18/0x51 [ 6.729534] [] ima_init_template_list+0x18/0x51 [ 6.730483] [] ? hash_setup+0xb3/0xb3 [ 6.731296] [] init_ima+0xa/0x36 [ 6.732057] [] do_one_initcall+0x8b/0x153 [ 6.732942] [] ? parse_args+0x17e/0x29f [ 6.733789] [] kernel_init_freeable+0x1dc/0x264 [ 6.734738] [] ? set_debug_rodata+0x12/0x12 [ 6.735631] [] kernel_init+0xe/0xfd [ 6.736392] [] ret_from_fork+0x1f/0x40 [ 6.737190] [] ? 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] [] dump_stack+0x85/0xbe [ 6.749710] [] __warn+0xc5/0xe0 [ 6.750455] [] ? hash_setup+0xb3/0xb3 [ 6.751263] [] warn_slowpath_fmt+0x4f/0x51 [ 6.752141] [] ? hash_setup+0x8a/0xb3 [ 6.752937] [] ? hash_setup+0xb3/0xb3 [ 6.753721] [] ? hash_setup+0xb3/0xb3 [ 6.754505] [] do_one_initcall+0x12b/0x153 [ 6.755346] [] kernel_init_freeable+0x1dc/0x264 [ 6.756243] [] ? set_debug_rodata+0x12/0x12 [ 6.757101] [] kernel_init+0xe/0xfd [ 6.757879] [] ret_from_fork+0x1f/0x40 [ 6.758757] [] ? rest_init+0x13c/0x13c [ 6.759593] ---[ end trace 0a42846a83c9d229 ]--- [ 6.760298] evm: HMAC attrs: 0x1 Thanks, Kernel Test Robot