Warning: Permanently added '10.128.1.41' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 316.959129][ C1] [ 316.961593][ C1] ================================ [ 316.966722][ C1] WARNING: inconsistent lock state [ 316.971816][ C1] 5.5.0-rc6-next-20200116-syzkaller #0 Not tainted [ 316.978286][ C1] -------------------------------- [ 316.983415][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 316.990254][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 316.996204][ C1] ffffffff8a03ce58 (ima_keys_lock){+.?.}, at: ima_process_queued_keys+0x4f/0x320 [ 317.005452][ C1] {SOFTIRQ-ON-W} state was registered at: [ 317.011200][ C1] lock_acquire+0x190/0x410 [ 317.015878][ C1] _raw_spin_lock+0x2f/0x40 [ 317.020465][ C1] ima_post_key_create_or_update+0x234/0x470 [ 317.026593][ C1] key_create_or_update+0x6b8/0xcb0 [ 317.031926][ C1] load_system_certificate_list+0x1ba/0x25e [ 317.037961][ C1] do_one_initcall+0x120/0x820 [ 317.042855][ C1] kernel_init_freeable+0x522/0x5d0 [ 317.048147][ C1] kernel_init+0x12/0x1bf [ 317.052628][ C1] ret_from_fork+0x24/0x30 [ 317.057241][ C1] irq event stamp: 520486 [ 317.061557][ C1] hardirqs last enabled at (520486): [] _raw_spin_unlock_irq+0x23/0x80 [ 317.071438][ C1] hardirqs last disabled at (520485): [] _raw_spin_lock_irq+0x3a/0x80 [ 317.081205][ C1] softirqs last enabled at (520482): [] _local_bh_enable+0x1c/0x30 [ 317.090754][ C1] softirqs last disabled at (520483): [] irq_exit+0x19b/0x1e0 [ 317.099830][ C1] [ 317.099830][ C1] other info that might help us debug this: [ 317.108018][ C1] Possible unsafe locking scenario: [ 317.108018][ C1] [ 317.115451][ C1] CPU0 [ 317.118718][ C1] ---- [ 317.121979][ C1] lock(ima_keys_lock); [ 317.126201][ C1] [ 317.129637][ C1] lock(ima_keys_lock); [ 317.134033][ C1] [ 317.134033][ C1] *** DEADLOCK *** [ 317.134033][ C1] [ 317.142167][ C1] 1 lock held by swapper/1/0: [ 317.146827][ C1] #0: ffffc90000d98d50 ((&ima_key_queue_timer)){+.-.}, at: call_timer_fn+0xe0/0x780 [ 317.156587][ C1] [ 317.156587][ C1] stack backtrace: [ 317.162573][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.5.0-rc6-next-20200116-syzkaller #0 [ 317.171708][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 317.181843][ C1] Call Trace: [ 317.185130][ C1] [ 317.188035][ C1] dump_stack+0x197/0x210 [ 317.192399][ C1] print_usage_bug.cold+0x327/0x378 [ 317.197668][ C1] mark_lock+0xbb4/0x1220 [ 317.201981][ C1] ? check_usage_backwards+0x330/0x330 [ 317.207443][ C1] __lock_acquire+0x1e8e/0x4a00 [ 317.212280][ C1] ? alloc_list_entry+0xc0/0xc0 [ 317.217266][ C1] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 317.223559][ C1] ? find_first_zero_bit+0x9a/0xc0 [ 317.228780][ C1] ? mark_held_locks+0xf0/0xf0 [ 317.233536][ C1] lock_acquire+0x190/0x410 [ 317.238033][ C1] ? ima_process_queued_keys+0x4f/0x320 [ 317.243560][ C1] _raw_spin_lock+0x2f/0x40 [ 317.248058][ C1] ? ima_process_queued_keys+0x4f/0x320 [ 317.253588][ C1] ima_process_queued_keys+0x4f/0x320 [ 317.258952][ C1] ima_timer_handler+0x15/0x20 [ 317.263742][ C1] call_timer_fn+0x1ac/0x780 [ 317.268332][ C1] ? ima_process_queued_keys+0x320/0x320 [ 317.273948][ C1] ? msleep_interruptible+0x150/0x150 [ 317.279305][ C1] ? run_timer_softirq+0x6b1/0x1790 [ 317.284548][ C1] ? trace_hardirqs_on+0x67/0x240 [ 317.289551][ C1] ? ima_process_queued_keys+0x320/0x320 [ 317.295170][ C1] ? ima_process_queued_keys+0x320/0x320 [ 317.300789][ C1] run_timer_softirq+0x6c3/0x1790 [ 317.305800][ C1] ? add_timer+0x930/0x930 [ 317.310323][ C1] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 317.316482][ C1] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 317.322018][ C1] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 317.328009][ C1] ? trace_hardirqs_on+0x67/0x240 [ 317.333075][ C1] __do_softirq+0x262/0x98c [ 317.337744][ C1] ? sched_clock_cpu+0x1b/0x1b0 [ 317.342596][ C1] irq_exit+0x19b/0x1e0 [ 317.346842][ C1] smp_apic_timer_interrupt+0x1a3/0x610 [ 317.352374][ C1] apic_timer_interrupt+0xf/0x20 [ 317.357295][ C1] [ 317.360235][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 317.365707][ C1] Code: a8 3a c6 f9 eb 8a cc cc cc cc cc cc e9 07 00 00 00 0f 00 2d 14 92 5a 00 f4 c3 66 90 e9 07 00 00 00 0f 00 2d 04 92 5a 00 fb f4 cc 55 48 89 e5 41 57 41 56 41 55 41 54 53 e8 de 0b 75 f9 e8 89 [ 317.385699][ C1] RSP: 0018:ffffc90000d2fd68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 [ 317.394104][ C1] RAX: 1ffffffff1367752 RBX: ffff8880a99f8300 RCX: 0000000000000000 [ 317.402063][ C1] RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff8880a99f8b9c [ 317.410385][ C1] RBP: ffffc90000d2fd98 R08: ffff8880a99f8300 R09: 0000000000000000 [ 317.418443][ C1] R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 [ 317.426402][ C1] R13: ffffffff8aa52e40 R14: 0000000000000000 R15: 0000000000000001 [ 317.434412][ C1] ? default_idle+0x4e/0x360 [ 317.439074][ C1] arch_cpu_idle+0xa/0x10 [ 317.443397][ C1] default_idle_call+0x84/0xb0 [ 317.448149][ C1] do_idle+0x3c8/0x6e0 [ 317.452199][ C1] ? arch_cpu_idle_exit+0x80/0x80 [ 317.457255][ C1] cpu_startup_entry+0x1b/0x20 [ 317.462060][ C1] start_secondary+0x2f4/0x410 [ 317.466814][ C1] ? set_cpu_sibling_map+0x2140/0x2140 [ 317.472342][ C1] secondary_startup_64+0xa4/0xb0