Warning: Permanently added '10.128.1.50' (ECDSA) to the list of known hosts.
[   59.925414] random: sshd: uninitialized urandom read (32 bytes read)
executing program
[   60.043750] audit: type=1400 audit(1560559242.530:36): avc:  denied  { map } for  pid=7164 comm="syz-executor584" path="/root/syz-executor584840997" 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
[   60.071450] 
[   60.073080] ======================================================
[   60.079370] WARNING: possible circular locking dependency detected
[   60.085694] 4.14.125 #19 Not tainted
[   60.089405] ------------------------------------------------------
[   60.095700] syz-executor584/7164 is trying to acquire lock:
[   60.101411]  (&cpuctx_mutex/1){+.+.}, at: [<ffffffff816d369f>] SYSC_perf_event_open+0x121f/0x24b0
[   60.110411] 
[   60.110411] but task is already holding lock:
[   60.116378]  (&cpuctx_mutex){+.+.}, at: [<ffffffff816d3692>] SYSC_perf_event_open+0x1212/0x24b0
[   60.125223] 
[   60.125223] which lock already depends on the new lock.
[   60.125223] 
[   60.133514] 
[   60.133514] the existing dependency chain (in reverse order) is:
[   60.141114] 
[   60.141114] -> #5 (&cpuctx_mutex){+.+.}:
[   60.146647]        lock_acquire+0x16f/0x430
[   60.150949]        __mutex_lock+0xe8/0x1470
[   60.155248]        mutex_lock_nested+0x16/0x20
[   60.159808]        perf_event_init_cpu+0xc2/0x170
[   60.164628]        perf_event_init+0x2d8/0x31a
[   60.169185]        start_kernel+0x3b6/0x6fd
[   60.173486]        x86_64_start_reservations+0x29/0x2b
[   60.179695]        x86_64_start_kernel+0x77/0x7b
[   60.184446]        secondary_startup_64+0xa5/0xb0
[   60.189277] 
[   60.189277] -> #4 (pmus_lock){+.+.}:
[   60.194452]        lock_acquire+0x16f/0x430
[   60.198751]        __mutex_lock+0xe8/0x1470
[   60.203048]        mutex_lock_nested+0x16/0x20
[   60.207609]        perf_event_init_cpu+0x2f/0x170
[   60.212447]        cpuhp_invoke_callback+0x1ea/0x1ab0
[   60.217612]        _cpu_up+0x228/0x530
[   60.221475]        do_cpu_up+0x121/0x150
[   60.225538]        cpu_up+0x1b/0x20
[   60.229158]        smp_init+0x157/0x170
[   60.233109]        kernel_init_freeable+0x30b/0x532
[   60.238125]        kernel_init+0x12/0x162
[   60.242268]        ret_from_fork+0x24/0x30
[   60.246498] 
[   60.246498] -> #3 (cpu_hotplug_lock.rw_sem){++++}:
[   60.252994]        lock_acquire+0x16f/0x430
[   60.257316]        cpus_read_lock+0x3d/0xc0
[   60.261615]        static_key_slow_inc+0x13/0x30
[   60.266347]        tracepoint_probe_register_prio+0x4d6/0x6d0
[   60.272206]        tracepoint_probe_register+0x2b/0x40
[   60.277473]        trace_event_reg+0x277/0x330
[   60.282048]        perf_trace_init+0x449/0xaa0
[   60.286605]        perf_tp_event_init+0x7d/0xf0
[   60.291312]        perf_try_init_event+0x164/0x200
[   60.296218]        perf_event_alloc.part.0+0xd48/0x2530
[   60.301573]        SYSC_perf_event_open+0xa2d/0x24b0
[   60.306654]        SyS_perf_event_open+0x34/0x40
[   60.311391]        do_syscall_64+0x1e8/0x640
[   60.315781]        entry_SYSCALL_64_after_hwframe+0x42/0xb7
[   60.321464] 
[   60.321464] -> #2 (tracepoints_mutex){+.+.}:
[   60.327344]        lock_acquire+0x16f/0x430
[   60.331658]        __mutex_lock+0xe8/0x1470
[   60.335971]        mutex_lock_nested+0x16/0x20
[   60.340549]        tracepoint_probe_register_prio+0x36/0x6d0
[   60.346322]        tracepoint_probe_register+0x2b/0x40
[   60.351599]        trace_event_reg+0x277/0x330
[   60.356165]        perf_trace_init+0x449/0xaa0
[   60.360726]        perf_tp_event_init+0x7d/0xf0
[   60.365408]        perf_try_init_event+0x164/0x200
[   60.370369]        perf_event_alloc.part.0+0xd48/0x2530
[   60.375719]        SYSC_perf_event_open+0xa2d/0x24b0
[   60.380798]        SyS_perf_event_open+0x34/0x40
[   60.385528]        do_syscall_64+0x1e8/0x640
[   60.390009]        entry_SYSCALL_64_after_hwframe+0x42/0xb7
[   60.395702] 
[   60.395702] -> #1 (event_mutex){+.+.}:
[   60.401053]        lock_acquire+0x16f/0x430
[   60.405366]        __mutex_lock+0xe8/0x1470
[   60.409695]        mutex_lock_nested+0x16/0x20
[   60.414278]        perf_trace_init+0x58/0xaa0
[   60.418754]        perf_tp_event_init+0x7d/0xf0
[   60.423487]        perf_try_init_event+0xe6/0x200
[   60.428323]        perf_event_alloc.part.0+0xd48/0x2530
[   60.433767]        SYSC_perf_event_open+0xa2d/0x24b0
[   60.438847]        SyS_perf_event_open+0x34/0x40
[   60.443579]        do_syscall_64+0x1e8/0x640
[   60.447966]        entry_SYSCALL_64_after_hwframe+0x42/0xb7
[   60.453650] 
[   60.453650] -> #0 (&cpuctx_mutex/1){+.+.}:
[   60.459380]        __lock_acquire+0x2c89/0x45e0
[   60.464040]        lock_acquire+0x16f/0x430
[   60.468338]        __mutex_lock+0xe8/0x1470
[   60.472655]        mutex_lock_nested+0x16/0x20
[   60.477217]        SYSC_perf_event_open+0x121f/0x24b0
[   60.482387]        SyS_perf_event_open+0x34/0x40
[   60.487121]        do_syscall_64+0x1e8/0x640
[   60.491632]        entry_SYSCALL_64_after_hwframe+0x42/0xb7
[   60.497337] 
[   60.497337] other info that might help us debug this:
[   60.497337] 
[   60.505458] Chain exists of:
[   60.505458]   &cpuctx_mutex/1 --> pmus_lock --> &cpuctx_mutex
[   60.505458] 
[   60.515675]  Possible unsafe locking scenario:
[   60.515675] 
[   60.521815]        CPU0                    CPU1
[   60.526459]        ----                    ----
[   60.531104]   lock(&cpuctx_mutex);
[   60.534620]                                lock(pmus_lock);
[   60.540324]                                lock(&cpuctx_mutex);
[   60.548236]   lock(&cpuctx_mutex/1);
[   60.551976] 
[   60.551976]  *** DEADLOCK ***
[   60.551976] 
[   60.558035] 1 lock held by syz-executor584/7164:
[   60.562854]  #0:  (&cpuctx_mutex){+.+.}, at: [<ffffffff816d3692>] SYSC_perf_event_open+0x1212/0x24b0
[   60.572265] 
[   60.572265] stack backtrace:
[   60.576743] CPU: 0 PID: 7164 Comm: syz-executor584 Not tainted 4.14.125 #19
[   60.583826] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[   60.593179] Call Trace:
[   60.595751]  dump_stack+0x138/0x19c
[   60.599361]  print_circular_bug.isra.0.cold+0x1cc/0x28f
[   60.604712]  __lock_acquire+0x2c89/0x45e0
[   60.608838]  ? trace_hardirqs_on+0x10/0x10
[   60.613053]  lock_acquire+0x16f/0x430
[   60.616852]  ? SYSC_perf_event_open+0x121f/0x24b0
[   60.621672]  ? SYSC_perf_event_open+0x121f/0x24b0
[   60.626493]  __mutex_lock+0xe8/0x1470
[   60.630272]  ? SYSC_perf_event_open+0x121f/0x24b0
[   60.635090]  ? lockdep_init_map+0x9/0x10
[   60.639130]  ? debug_mutex_init+0x2d/0x5a
[   60.643273]  ? SYSC_perf_event_open+0x121f/0x24b0
[   60.648193]  ? __mutex_init+0xd3/0x110
[   60.652062]  ? mutex_trylock+0x1c0/0x1c0
[   60.656109]  ? find_held_lock+0x35/0x130
[   60.660166]  ? SYSC_perf_event_open+0x11b4/0x24b0
[   60.664990]  ? lock_downgrade+0x6e0/0x6e0
[   60.669119]  mutex_lock_nested+0x16/0x20
[   60.673181]  ? mutex_lock_nested+0x16/0x20
[   60.677406]  SYSC_perf_event_open+0x121f/0x24b0
[   60.682075]  ? perf_event_set_output+0x460/0x460
[   60.686815]  ? lock_downgrade+0x6e0/0x6e0
[   60.690943]  SyS_perf_event_open+0x34/0x40
[   60.695180]  ? perf_bp_event+0x170/0x170
[   60.699222]  do_syscall_64+0x1e8/0x640
[   60.703090]  ? trace_hardirqs_off_thunk+0x1a/0x1c
[   60.707919]  entry_SYSCALL_64_after_hwframe+0x42/0xb7
[   60.713089] RIP: 0033:0x440579
[   60.716275] RSP: 002b:00007ffde2bf1288 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
[   60.723963] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440579
[   60.731228] RDX: 0000000000000000 RSI: 00000000ffffffff RDI: 0000000020000200
[   60.738476] RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
[   60.745725] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000401e00
[   60.752973] R13: 0000000000401e90 R14: 0000000000000000 R15: 0000000000000000