[ 68.771983][ T27] audit: type=1800 audit(1580049696.955:24): pid=9725 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="sudo" dev="sda1" ino=2454 res=0 [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [ 69.372683][ T27] audit: type=1800 audit(1580049697.645:25): pid=9725 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 69.392708][ T27] audit: type=1800 audit(1580049697.645:26): pid=9725 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 317.012676][ C1] [ 317.015135][ C1] ================================ [ 317.020228][ C1] WARNING: inconsistent lock state [ 317.025546][ C1] 5.5.0-rc6-next-20200116-syzkaller #0 Not tainted [ 317.032032][ C1] -------------------------------- [ 317.037641][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 317.044487][ C1] swapper/1/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 317.050436][ C1] ffffffff8a03ce58 (ima_keys_lock){+.?.}, at: ima_process_queued_keys+0x4f/0x320 [ 317.059627][ C1] {SOFTIRQ-ON-W} state was registered at: [ 317.065363][ C1] lock_acquire+0x190/0x410 [ 317.069999][ C1] _raw_spin_lock+0x2f/0x40 [ 317.074568][ C1] ima_post_key_create_or_update+0x234/0x470 [ 317.080681][ C1] key_create_or_update+0x6b8/0xcb0 [ 317.086069][ C1] load_system_certificate_list+0x1ba/0x25e [ 317.092130][ C1] do_one_initcall+0x120/0x820 [ 317.097049][ C1] kernel_init_freeable+0x522/0x5d0 [ 317.102320][ C1] kernel_init+0x12/0x1bf [ 317.106820][ C1] ret_from_fork+0x24/0x30 [ 317.111315][ C1] irq event stamp: 494866 [ 317.115633][ C1] hardirqs last enabled at (494866): [] _raw_spin_unlock_irq+0x23/0x80 [ 317.125522][ C1] hardirqs last disabled at (494865): [] _raw_spin_lock_irq+0x3a/0x80 [ 317.135279][ C1] softirqs last enabled at (494394): [] _local_bh_enable+0x1c/0x30 [ 317.144813][ C1] softirqs last disabled at (494395): [] irq_exit+0x19b/0x1e0 [ 317.153818][ C1] [ 317.153818][ C1] other info that might help us debug this: [ 317.161954][ C1] Possible unsafe locking scenario: [ 317.161954][ C1] [ 317.169557][ C1] CPU0 [ 317.172822][ C1] ---- [ 317.176091][ C1] lock(ima_keys_lock); [ 317.180315][ C1] [ 317.183801][ C1] lock(ima_keys_lock); [ 317.188231][ C1] [ 317.188231][ C1] *** DEADLOCK *** [ 317.188231][ C1] [ 317.196655][ C1] 1 lock held by swapper/1/0: [ 317.201361][ C1] #0: ffffc90000d98d50 ((&ima_key_queue_timer)){+.-.}, at: call_timer_fn+0xe0/0x780 [ 317.211256][ C1] [ 317.211256][ C1] stack backtrace: [ 317.217165][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.5.0-rc6-next-20200116-syzkaller #0 [ 317.226331][ C1] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 317.236386][ C1] Call Trace: [ 317.239650][ C1] [ 317.242616][ C1] dump_stack+0x197/0x210 [ 317.246955][ C1] print_usage_bug.cold+0x327/0x378 [ 317.252133][ C1] mark_lock+0xbb4/0x1220 [ 317.256506][ C1] ? check_usage_backwards+0x330/0x330 [ 317.262012][ C1] __lock_acquire+0x1e8e/0x4a00 [ 317.266874][ C1] ? alloc_list_entry+0xc0/0xc0 [ 317.271750][ C1] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 317.278005][ C1] ? find_first_zero_bit+0x9a/0xc0 [ 317.283098][ C1] ? mark_held_locks+0xf0/0xf0 [ 317.288029][ C1] lock_acquire+0x190/0x410 [ 317.292514][ C1] ? ima_process_queued_keys+0x4f/0x320 [ 317.298040][ C1] _raw_spin_lock+0x2f/0x40 [ 317.302541][ C1] ? ima_process_queued_keys+0x4f/0x320 [ 317.308077][ C1] ima_process_queued_keys+0x4f/0x320 [ 317.313430][ C1] ima_timer_handler+0x15/0x20 [ 317.318195][ C1] call_timer_fn+0x1ac/0x780 [ 317.322791][ C1] ? ima_process_queued_keys+0x320/0x320 [ 317.328509][ C1] ? msleep_interruptible+0x150/0x150 [ 317.333871][ C1] ? run_timer_softirq+0x6b1/0x1790 [ 317.339979][ C1] ? trace_hardirqs_on+0x67/0x240 [ 317.344983][ C1] ? ima_process_queued_keys+0x320/0x320 [ 317.350687][ C1] ? ima_process_queued_keys+0x320/0x320 [ 317.356296][ C1] run_timer_softirq+0x6c3/0x1790 [ 317.361308][ C1] ? add_timer+0x930/0x930 [ 317.365743][ C1] ? rcu_lockdep_current_cpu_online+0xe3/0x130 [ 317.371972][ C1] ? rcu_read_lock_sched_held+0x9c/0xd0 [ 317.377496][ C1] ? rcu_read_lock_any_held.part.0+0x50/0x50 [ 317.383470][ C1] ? trace_hardirqs_on+0x67/0x240 [ 317.388510][ C1] __do_softirq+0x262/0x98c [ 317.393015][ C1] ? sched_clock_cpu+0x1b/0x1b0 [ 317.397879][ C1] irq_exit+0x19b/0x1e0 [ 317.402011][ C1] smp_apic_timer_interrupt+0x1a3/0x610 [ 317.407547][ C1] apic_timer_interrupt+0xf/0x20 [ 317.412464][ C1] [ 317.415445][ C1] RIP: 0010:native_safe_halt+0xe/0x10 [ 317.420800][ 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.440398][ C1] RSP: 0018:ffffc90000d2fd68 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 [ 317.448813][ C1] RAX: 1ffffffff1367752 RBX: ffff8880a99f8300 RCX: 0000000000000000 [ 317.456779][ C1] RDX: dffffc0000000000 RSI: 0000000000000006 RDI: ffff8880a99f8b9c [ 317.464734][ C1] RBP: ffffc90000d2fd98 R08: ffff8880a99f8300 R09: 0000000000000000 [ 317.472691][ C1] R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000 [ 317.480702][ C1] R13: ffffffff8aa52e40 R14: 0000000000000000 R15: 0000000000000001 [ 317.488681][ C1] ? default_idle+0x4e/0x360 [ 317.493333][ C1] arch_cpu_idle+0xa/0x10 [ 317.497644][ C1] default_idle_call+0x84/0xb0 [ 317.502385][ C1] do_idle+0x3c8/0x6e0 [ 317.506460][ C1] ? __this_cpu_preempt_check+0x35/0x190 [ 317.512083][ C1] ? arch_cpu_idle_exit+0x80/0x80 [ 317.517086][ C1] cpu_startup_entry+0x1b/0x20 [ 317.521877][ C1] start_secondary+0x2f4/0x410 [ 317.526631][ C1] ? set_cpu_sibling_map+0x2140/0x2140 [ 317.532066][ C1] secondary_startup_64+0xa4/0xb0 Warning: Permanently added '10.128.1.10' (ECDSA) to the list of known hosts. executing program