[ 30.885884] audit: type=1800 audit(1570667857.702:33): pid=6718 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rc.local" dev="sda1" ino=2465 res=0 [ 30.912985] audit: type=1800 audit(1570667857.702:34): pid=6718 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op="collect_data" cause="failed(directio)" comm="startpar" name="rmnologin" dev="sda1" ino=2456 res=0 [ 31.911582] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.185848] audit: type=1400 audit(1570667859.002:35): avc: denied { map } for pid=6888 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 [ 32.235969] random: sshd: uninitialized urandom read (32 bytes read) [ 32.746037] random: sshd: uninitialized urandom read (32 bytes read) [ 39.532077] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.91' (ECDSA) to the list of known hosts. [ 45.475136] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program [ 45.592216] audit: type=1400 audit(1570667872.412:36): avc: denied { map } for pid=6901 comm="syz-executor357" path="/root/syz-executor357639343" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 49.540341] [ 49.542006] ====================================================== [ 49.548296] WARNING: possible circular locking dependency detected [ 49.554589] 4.14.148 #0 Not tainted [ 49.558189] ------------------------------------------------------ [ 49.564482] syz-executor357/7698 is trying to acquire lock: [ 49.570174] (event_mutex){+.+.}, at: [] perf_trace_destroy+0x28/0x100 [ 49.578390] [ 49.578390] but task is already holding lock: [ 49.584333] (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 49.593931] [ 49.593931] which lock already depends on the new lock. [ 49.593931] [ 49.602218] [ 49.602218] the existing dependency chain (in reverse order) is: [ 49.609822] [ 49.609822] -> #5 (&event->child_mutex){+.+.}: [ 49.615886] lock_acquire+0x16f/0x430 [ 49.620201] __mutex_lock+0xe8/0x1470 [ 49.624500] mutex_lock_nested+0x16/0x20 [ 49.629059] perf_read+0x2c0/0x820 [ 49.633099] __vfs_read+0x105/0x6a0 [ 49.637222] vfs_read+0x137/0x350 [ 49.641172] SyS_read+0xfd/0x230 [ 49.645034] do_syscall_64+0x1e8/0x640 [ 49.649424] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.655108] [ 49.655108] -> #4 (&cpuctx_mutex){+.+.}: [ 49.660631] lock_acquire+0x16f/0x430 [ 49.664943] __mutex_lock+0xe8/0x1470 [ 49.669238] mutex_lock_nested+0x16/0x20 [ 49.673795] perf_event_init_cpu+0xc2/0x170 [ 49.678613] perf_event_init+0x2d8/0x31a [ 49.683172] start_kernel+0x3b6/0x6fd [ 49.687471] x86_64_start_reservations+0x29/0x2b [ 49.692722] x86_64_start_kernel+0x77/0x7b [ 49.697452] secondary_startup_64+0xa5/0xb0 [ 49.702265] [ 49.702265] -> #3 (pmus_lock){+.+.}: [ 49.707442] lock_acquire+0x16f/0x430 [ 49.711767] __mutex_lock+0xe8/0x1470 [ 49.716152] mutex_lock_nested+0x16/0x20 [ 49.720711] perf_event_init_cpu+0x2f/0x170 [ 49.725534] cpuhp_invoke_callback+0x1ea/0x1ab0 [ 49.730702] _cpu_up+0x228/0x530 [ 49.734563] do_cpu_up+0x121/0x150 [ 49.738598] cpu_up+0x1b/0x20 [ 49.742201] smp_init+0x157/0x170 [ 49.746156] kernel_init_freeable+0x30b/0x532 [ 49.751147] kernel_init+0x12/0x162 [ 49.755270] ret_from_fork+0x24/0x30 [ 49.759476] [ 49.759476] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 49.765862] lock_acquire+0x16f/0x430 [ 49.770162] cpus_read_lock+0x3d/0xc0 [ 49.774458] static_key_slow_inc+0x13/0x30 [ 49.779199] tracepoint_probe_register_prio+0x4d6/0x6d0 [ 49.785059] tracepoint_probe_register+0x2b/0x40 [ 49.790309] trace_event_reg+0x277/0x330 [ 49.794865] perf_trace_init+0x449/0xaa0 [ 49.799421] perf_tp_event_init+0x7d/0xf0 [ 49.804066] perf_try_init_event+0x164/0x200 [ 49.808968] perf_event_alloc.part.0+0xd90/0x25b0 [ 49.814306] SYSC_perf_event_open+0xad1/0x2690 [ 49.819400] SyS_perf_event_open+0x34/0x40 [ 49.824139] do_syscall_64+0x1e8/0x640 [ 49.828522] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.834203] [ 49.834203] -> #1 (tracepoints_mutex){+.+.}: [ 49.840079] lock_acquire+0x16f/0x430 [ 49.844375] __mutex_lock+0xe8/0x1470 [ 49.848671] mutex_lock_nested+0x16/0x20 [ 49.853239] tracepoint_probe_register_prio+0x36/0x6d0 [ 49.859018] tracepoint_probe_register+0x2b/0x40 [ 49.864269] trace_event_reg+0x277/0x330 [ 49.868824] perf_trace_init+0x449/0xaa0 [ 49.873384] perf_tp_event_init+0x7d/0xf0 [ 49.878031] perf_try_init_event+0x164/0x200 [ 49.882937] perf_event_alloc.part.0+0xd90/0x25b0 [ 49.888273] SYSC_perf_event_open+0xad1/0x2690 [ 49.893350] SyS_perf_event_open+0x34/0x40 [ 49.898088] do_syscall_64+0x1e8/0x640 [ 49.902479] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 49.908164] [ 49.908164] -> #0 (event_mutex){+.+.}: [ 49.913598] __lock_acquire+0x2cb3/0x4620 [ 49.918257] lock_acquire+0x16f/0x430 [ 49.922553] __mutex_lock+0xe8/0x1470 [ 49.926879] mutex_lock_nested+0x16/0x20 [ 49.931452] perf_trace_destroy+0x28/0x100 [ 49.936192] tp_perf_event_destroy+0x16/0x20 [ 49.941097] _free_event+0x330/0xe70 [ 49.945305] free_event+0x38/0x50 [ 49.949254] perf_event_release_kernel+0x364/0x880 [ 49.954680] perf_release+0x37/0x50 [ 49.958807] __fput+0x275/0x7a0 [ 49.962584] ____fput+0x16/0x20 [ 49.966363] task_work_run+0x114/0x190 [ 49.970746] do_exit+0x7df/0x2c10 [ 49.974694] do_group_exit+0x111/0x330 [ 49.979096] get_signal+0x381/0x1cd0 [ 49.983313] do_signal+0x86/0x19a0 [ 49.987354] exit_to_usermode_loop+0x15c/0x220 [ 49.992431] do_syscall_64+0x4bc/0x640 [ 49.996829] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.002521] [ 50.002521] other info that might help us debug this: [ 50.002521] [ 50.010640] Chain exists of: [ 50.010640] event_mutex --> &cpuctx_mutex --> &event->child_mutex [ 50.010640] [ 50.021378] Possible unsafe locking scenario: [ 50.021378] [ 50.027407] CPU0 CPU1 [ 50.032060] ---- ---- [ 50.036701] lock(&event->child_mutex); [ 50.040738] lock(&cpuctx_mutex); [ 50.046771] lock(&event->child_mutex); [ 50.053323] lock(event_mutex); [ 50.056665] [ 50.056665] *** DEADLOCK *** [ 50.056665] [ 50.062712] 2 locks held by syz-executor357/7698: [ 50.067525] #0: (&ctx->mutex){+.+.}, at: [] perf_event_release_kernel+0x1fd/0x880 [ 50.076865] #1: (&event->child_mutex){+.+.}, at: [] perf_event_release_kernel+0x207/0x880 [ 50.086898] [ 50.086898] stack backtrace: [ 50.091381] CPU: 0 PID: 7698 Comm: syz-executor357 Not tainted 4.14.148 #0 [ 50.098368] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.107697] Call Trace: [ 50.110268] dump_stack+0x138/0x197 [ 50.113874] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 50.119215] __lock_acquire+0x2cb3/0x4620 [ 50.123351] ? event_function+0x28b/0x380 [ 50.127477] ? trace_hardirqs_on+0x10/0x10 [ 50.131693] lock_acquire+0x16f/0x430 [ 50.135472] ? perf_trace_destroy+0x28/0x100 [ 50.139863] ? perf_trace_destroy+0x28/0x100 [ 50.144335] __mutex_lock+0xe8/0x1470 [ 50.148206] ? perf_trace_destroy+0x28/0x100 [ 50.152591] ? perf_trace_destroy+0x28/0x100 [ 50.156972] ? alloc_perf_context+0xf0/0xf0 [ 50.161285] ? mutex_trylock+0x1c0/0x1c0 [ 50.165322] ? save_trace+0x290/0x290 [ 50.169099] ? __mutex_lock+0x36a/0x1470 [ 50.173135] ? perf_event_release_kernel+0x1f3/0x880 [ 50.178212] ? __lock_is_held+0xb6/0x140 [ 50.182251] ? check_preemption_disabled+0x3c/0x250 [ 50.187244] mutex_lock_nested+0x16/0x20 [ 50.191280] ? mutex_lock_nested+0x16/0x20 [ 50.195491] perf_trace_destroy+0x28/0x100 [ 50.199705] tp_perf_event_destroy+0x16/0x20 [ 50.204089] ? perf_tp_event_init+0xf0/0xf0 [ 50.208383] _free_event+0x330/0xe70 [ 50.212076] free_event+0x38/0x50 [ 50.215503] perf_event_release_kernel+0x364/0x880 [ 50.220407] ? perf_event_release_kernel+0x880/0x880 [ 50.225483] perf_release+0x37/0x50 [ 50.229087] __fput+0x275/0x7a0 [ 50.232344] ____fput+0x16/0x20 [ 50.235611] task_work_run+0x114/0x190 [ 50.239477] do_exit+0x7df/0x2c10 [ 50.242918] ? find_held_lock+0x35/0x130 [ 50.246974] ? mm_update_next_owner+0x5d0/0x5d0 [ 50.251630] do_group_exit+0x111/0x330 [ 50.255496] get_signal+0x381/0x1cd0 [ 50.259185] ? selinux_is_enabled+0x9/0x50 [ 50.263408] ? creds_are_invalid+0x48/0x110 [ 50.267716] do_signal+0x86/0x19a0 [ 50.271236] ? setup_sigcontext+0x7d0/0x7d0 [ 50.275536] ? __fsnotify_update_child_dentry_flags.part.0+0x300/0x300 [ 50.282179] ? fsnotify+0x11e0/0x11e0 [ 50.285958] ? security_file_permission+0x89/0x1f0 [ 50.290874] ? rw_verify_area+0xea/0x2b0 [ 50.294910] ? SyS_futex+0x215/0x302 [ 50.298615] ? SyS_futex+0x222/0x302 [ 50.302309] ? exit_to_usermode_loop+0x3d/0x220 [ 50.306968] exit_to_usermode_loop+0x15c/0x220 [ 50.311535] do_syscall_64+0x4bc/0x640 [ 50.315405] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 50.320234] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 50.325409] RIP: 0033:0x446969 [ 50.328576] RSP: 002b:00007fd9454a1db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca [ 50.336268] RAX: fffffffffffffe00 RBX: 00000000006dbc38 RCX: 0000000000446969 executing program executing program executing program executing program executing program executing program [ 50.343622] RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006dbc38 [ 50.350876] RBP: 00000000006dbc30 R08: 0000000000000000 R09: 0000000000000000 [ 50.358127] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc3c [ 50.365389] R13: 00007ffcc2130a9f R14: 00007fd9454a29c0 R15: 000000000000002d executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program