Warning: Permanently added '10.128.0.202' (ECDSA) to the list of known hosts. [ 48.076486] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 48.196372] audit: type=1400 audit(1567657666.575:36): avc: denied { map } for pid=7054 comm="syz-executor887" path="/root/syz-executor887415014" 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 [ 48.271040] [ 48.272705] ====================================================== [ 48.279004] WARNING: possible circular locking dependency detected [ 48.285300] 4.14.141 #37 Not tainted [ 48.288985] ------------------------------------------------------ [ 48.295467] syz-executor887/7054 is trying to acquire lock: [ 48.301687] (event_mutex){+.+.}, at: [] perf_trace_init+0x58/0xaa0 [ 48.310557] [ 48.310557] but task is already holding lock: [ 48.316514] (&cpuctx_mutex/1){+.+.}, at: [] perf_event_ctx_lock_nested+0x150/0x2c0 [ 48.325904] [ 48.325904] which lock already depends on the new lock. [ 48.325904] [ 48.334224] [ 48.334224] the existing dependency chain (in reverse order) is: [ 48.341822] [ 48.341822] -> #5 (&cpuctx_mutex/1){+.+.}: [ 48.347556] lock_acquire+0x16f/0x430 [ 48.351872] __mutex_lock+0xe8/0x1470 [ 48.356171] mutex_lock_nested+0x16/0x20 [ 48.360736] SYSC_perf_event_open+0x134c/0x2690 [ 48.365904] SyS_perf_event_open+0x34/0x40 [ 48.370642] do_syscall_64+0x1e8/0x640 [ 48.375397] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.381082] [ 48.381082] -> #4 (&cpuctx_mutex){+.+.}: [ 48.386792] lock_acquire+0x16f/0x430 [ 48.391102] __mutex_lock+0xe8/0x1470 [ 48.395401] mutex_lock_nested+0x16/0x20 [ 48.399964] perf_event_init_cpu+0xc2/0x170 [ 48.404791] perf_event_init+0x2d8/0x31a [ 48.409363] start_kernel+0x3b6/0x6fd [ 48.413659] x86_64_start_reservations+0x29/0x2b [ 48.418934] x86_64_start_kernel+0x77/0x7b [ 48.423685] secondary_startup_64+0xa5/0xb0 [ 48.428509] [ 48.428509] -> #3 (pmus_lock){+.+.}: [ 48.433845] lock_acquire+0x16f/0x430 [ 48.438593] __mutex_lock+0xe8/0x1470 [ 48.442950] mutex_lock_nested+0x16/0x20 [ 48.447519] perf_event_init_cpu+0x2f/0x170 [ 48.452348] cpuhp_invoke_callback+0x1ea/0x1ab0 [ 48.457530] _cpu_up+0x228/0x530 [ 48.461483] do_cpu_up+0x121/0x150 [ 48.465561] cpu_up+0x1b/0x20 [ 48.469193] smp_init+0x157/0x170 [ 48.473155] kernel_init_freeable+0x30b/0x532 [ 48.478188] kernel_init+0x12/0x162 [ 48.482317] ret_from_fork+0x24/0x30 [ 48.486543] [ 48.486543] -> #2 (cpu_hotplug_lock.rw_sem){++++}: [ 48.492937] lock_acquire+0x16f/0x430 [ 48.497251] cpus_read_lock+0x3d/0xc0 [ 48.501573] static_key_slow_inc+0x13/0x30 [ 48.506320] tracepoint_probe_register_prio+0x4d6/0x6d0 [ 48.512184] tracepoint_probe_register+0x2b/0x40 [ 48.517453] trace_event_reg+0x277/0x330 [ 48.522016] perf_trace_init+0x449/0xaa0 [ 48.526579] perf_tp_event_init+0x7d/0xf0 [ 48.531222] perf_try_init_event+0x164/0x200 [ 48.536127] perf_event_alloc.part.0+0xd90/0x25b0 [ 48.541465] SYSC_perf_event_open+0xad1/0x2690 [ 48.546560] SyS_perf_event_open+0x34/0x40 [ 48.551292] do_syscall_64+0x1e8/0x640 [ 48.555795] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.561493] [ 48.561493] -> #1 (tracepoints_mutex){+.+.}: [ 48.567558] lock_acquire+0x16f/0x430 [ 48.571876] __mutex_lock+0xe8/0x1470 [ 48.576181] mutex_lock_nested+0x16/0x20 [ 48.580751] tracepoint_probe_register_prio+0x36/0x6d0 [ 48.586607] tracepoint_probe_register+0x2b/0x40 [ 48.591895] trace_event_reg+0x277/0x330 [ 48.596558] perf_trace_init+0x449/0xaa0 [ 48.601126] perf_tp_event_init+0x7d/0xf0 [ 48.605797] perf_try_init_event+0x164/0x200 [ 48.610709] perf_event_alloc.part.0+0xd90/0x25b0 [ 48.616065] SYSC_perf_event_open+0xad1/0x2690 [ 48.621184] SyS_perf_event_open+0x34/0x40 [ 48.625923] do_syscall_64+0x1e8/0x640 [ 48.630316] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.636002] [ 48.636002] -> #0 (event_mutex){+.+.}: [ 48.641767] __lock_acquire+0x2cb3/0x4620 [ 48.646613] lock_acquire+0x16f/0x430 [ 48.650942] __mutex_lock+0xe8/0x1470 [ 48.655471] mutex_lock_nested+0x16/0x20 [ 48.660089] perf_trace_init+0x58/0xaa0 [ 48.664595] perf_tp_event_init+0x7d/0xf0 [ 48.669249] perf_try_init_event+0xe6/0x200 [ 48.674090] perf_event_alloc.part.0+0xd90/0x25b0 [ 48.679440] SYSC_perf_event_open+0xad1/0x2690 [ 48.684529] SyS_perf_event_open+0x34/0x40 [ 48.689278] do_syscall_64+0x1e8/0x640 [ 48.693678] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.699370] [ 48.699370] other info that might help us debug this: [ 48.699370] [ 48.707984] Chain exists of: [ 48.707984] event_mutex --> &cpuctx_mutex --> &cpuctx_mutex/1 [ 48.707984] [ 48.718390] Possible unsafe locking scenario: [ 48.718390] [ 48.724664] CPU0 CPU1 [ 48.729337] ---- ---- [ 48.734115] lock(&cpuctx_mutex/1); [ 48.737958] lock(&cpuctx_mutex); [ 48.744019] lock(&cpuctx_mutex/1); [ 48.750239] lock(event_mutex); [ 48.753583] [ 48.753583] *** DEADLOCK *** [ 48.753583] [ 48.759631] 2 locks held by syz-executor887/7054: [ 48.764463] #0: (&pmus_srcu){....}, at: [] perf_event_alloc.part.0+0xbaa/0x25b0 [ 48.773667] #1: (&cpuctx_mutex/1){+.+.}, at: [] perf_event_ctx_lock_nested+0x150/0x2c0 [ 48.783448] [ 48.783448] stack backtrace: [ 48.787997] CPU: 1 PID: 7054 Comm: syz-executor887 Not tainted 4.14.141 #37 [ 48.795090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.804563] Call Trace: [ 48.807147] dump_stack+0x138/0x197 [ 48.810770] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 48.816265] __lock_acquire+0x2cb3/0x4620 [ 48.820400] ? trace_hardirqs_on+0x10/0x10 [ 48.824940] ? trace_hardirqs_on+0x10/0x10 [ 48.829161] lock_acquire+0x16f/0x430 [ 48.832948] ? perf_trace_init+0x58/0xaa0 [ 48.837206] ? perf_trace_init+0x58/0xaa0 [ 48.841377] __mutex_lock+0xe8/0x1470 [ 48.845264] ? perf_trace_init+0x58/0xaa0 [ 48.849543] ? perf_event_ctx_lock_nested+0x150/0x2c0 [ 48.854729] ? perf_trace_init+0x58/0xaa0 [ 48.859083] ? __mutex_lock+0x36a/0x1470 [ 48.863177] ? trace_hardirqs_on+0x10/0x10 [ 48.867560] ? perf_try_init_event+0xf2/0x200 [ 48.872173] ? mutex_trylock+0x1c0/0x1c0 [ 48.876508] ? perf_event_ctx_lock_nested+0x150/0x2c0 [ 48.881691] ? perf_try_init_event+0xf2/0x200 [ 48.886178] ? mutex_trylock+0x1c0/0x1c0 [ 48.890392] ? find_held_lock+0x35/0x130 [ 48.894519] ? perf_event_ctx_lock_nested+0x119/0x2c0 [ 48.899712] mutex_lock_nested+0x16/0x20 [ 48.903775] ? lock_downgrade+0x6e0/0x6e0 [ 48.907924] ? mutex_lock_nested+0x16/0x20 [ 48.912148] perf_trace_init+0x58/0xaa0 [ 48.916101] ? mutex_lock_nested+0x16/0x20 [ 48.920339] perf_tp_event_init+0x7d/0xf0 [ 48.924467] perf_try_init_event+0xe6/0x200 [ 48.928834] perf_event_alloc.part.0+0xd90/0x25b0 [ 48.933791] SYSC_perf_event_open+0xad1/0x2690 [ 48.939230] ? perf_event_set_output+0x460/0x460 [ 48.943999] ? lock_downgrade+0x6e0/0x6e0 [ 48.948136] SyS_perf_event_open+0x34/0x40 [ 48.952359] ? perf_bp_event+0x170/0x170 [ 48.956405] do_syscall_64+0x1e8/0x640 [ 48.960285] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 48.965117] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 48.970437] RIP: 0033:0x440449 [ 48.