Warning: Permanently added '10.128.0.45' (ECDSA) to the list of known hosts. executing program [ 59.275132] audit: type=1400 audit(1546907831.039:36): avc: denied { map } for pid=8410 comm="syz-executor250" path="/root/syz-executor250940237" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 59.332102] [ 59.333742] ====================================================== [ 59.340044] WARNING: possible circular locking dependency detected [ 59.346344] 5.0.0-rc1+ #14 Not tainted [ 59.350213] ------------------------------------------------------ [ 59.356514] syz-executor250/8412 is trying to acquire lock: [ 59.362319] 0000000073a94331 (&pipe->mutex/1){+.+.}, at: fifo_open+0x159/0xb00 [ 59.369679] [ 59.369679] but task is already holding lock: [ 59.375813] 000000009315b79b (&sig->cred_guard_mutex){+.+.}, at: __do_execve_file.isra.0+0x45d/0x2700 [ 59.385171] [ 59.385171] which lock already depends on the new lock. [ 59.385171] [ 59.393564] [ 59.393564] the existing dependency chain (in reverse order) is: [ 59.401173] [ 59.401173] -> #1 (&sig->cred_guard_mutex){+.+.}: [ 59.407485] __mutex_lock+0x12f/0x1670 [ 59.411881] mutex_lock_interruptible_nested+0x16/0x20 [ 59.417678] proc_pid_attr_write+0x1fa/0x530 [ 59.422602] __vfs_write+0x116/0xb40 [ 59.427026] __kernel_write+0x110/0x3b0 [ 59.431515] write_pipe_buf+0x180/0x240 [ 59.435996] __splice_from_pipe+0x39a/0x7e0 [ 59.440821] splice_from_pipe+0x1ea/0x310 [ 59.445474] default_file_splice_write+0x3c/0x90 [ 59.450739] do_splice+0x64b/0x1410 [ 59.454880] __x64_sys_splice+0x2c6/0x330 [ 59.459556] do_syscall_64+0x1a3/0x800 [ 59.463954] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.469645] [ 59.469645] -> #0 (&pipe->mutex/1){+.+.}: [ 59.475260] lock_acquire+0x1db/0x570 [ 59.479581] __mutex_lock+0x12f/0x1670 [ 59.483977] mutex_lock_nested+0x16/0x20 [ 59.488544] fifo_open+0x159/0xb00 [ 59.492591] do_dentry_open+0x48a/0x1210 [ 59.497162] vfs_open+0xa0/0xd0 [ 59.500961] path_openat+0x144f/0x5650 [ 59.505354] do_filp_open+0x26f/0x370 [ 59.509661] do_open_execat+0x20e/0x930 [ 59.514425] __do_execve_file.isra.0+0x1966/0x2700 [ 59.520010] __x64_sys_execve+0x8f/0xc0 [ 59.524495] do_syscall_64+0x1a3/0x800 [ 59.528889] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 59.534594] [ 59.534594] other info that might help us debug this: [ 59.534594] [ 59.542719] Possible unsafe locking scenario: [ 59.542719] [ 59.548760] CPU0 CPU1 [ 59.553411] ---- ---- [ 59.558146] lock(&sig->cred_guard_mutex); [ 59.562450] lock(&pipe->mutex/1); [ 59.568580] lock(&sig->cred_guard_mutex); [ 59.575538] lock(&pipe->mutex/1); [ 59.579152] [ 59.579152] *** DEADLOCK *** [ 59.579152] [ 59.585191] 1 lock held by syz-executor250/8412: [ 59.589937] #0: 000000009315b79b (&sig->cred_guard_mutex){+.+.}, at: __do_execve_file.isra.0+0x45d/0x2700 [ 59.599727] [ 59.599727] stack backtrace: [ 59.604215] CPU: 1 PID: 8412 Comm: syz-executor250 Not tainted 5.0.0-rc1+ #14 [ 59.611477] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.620816] Call Trace: [ 59.623396] dump_stack+0x1db/0x2d0 [ 59.627013] ? dump_stack_print_info.cold+0x20/0x20 [ 59.632095] ? print_stack_trace+0x77/0xb0 [ 59.636470] ? vprintk_func+0x86/0x189 [ 59.640442] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 59.645800] __lock_acquire+0x3014/0x4a30 [ 59.649940] ? add_lock_to_list.isra.0+0x450/0x450 [ 59.654857] ? is_bpf_text_address+0xac/0x170 [ 59.659554] ? mark_held_locks+0x100/0x100 [ 59.663787] ? mark_held_locks+0xb1/0x100 [ 59.667938] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 59.673030] ? _raw_spin_unlock_irqrestore+0x6b/0xe0 [ 59.678124] ? lockdep_hardirqs_on+0x415/0x5d0 [ 59.682699] ? trace_hardirqs_off_caller+0x300/0x300 [ 59.687787] ? do_raw_spin_trylock+0x270/0x270 [ 59.692356] ? add_lock_to_list.isra.0+0x450/0x450 [ 59.697271] ? print_usage_bug+0xd0/0xd0 [ 59.701318] ? _raw_spin_unlock_irqrestore+0xa4/0xe0 [ 59.706407] ? __lock_is_held+0xb6/0x140 [ 59.710457] lock_acquire+0x1db/0x570 [ 59.714247] ? fifo_open+0x159/0xb00 [ 59.717951] ? ___might_sleep+0x1e7/0x310 [ 59.722085] ? lock_release+0xc40/0xc40 [ 59.726050] ? fifo_open+0x159/0xb00 [ 59.729753] ? fifo_open+0x159/0xb00 [ 59.733452] __mutex_lock+0x12f/0x1670 [ 59.737336] ? fifo_open+0x159/0xb00 [ 59.741038] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.746654] ? fifo_open+0x159/0xb00 [ 59.750434] ? check_preemption_disabled+0x48/0x290 [ 59.755662] ? lockdep_init_map+0x10c/0x5b0 [ 59.759979] ? mutex_trylock+0x2d0/0x2d0 [ 59.764029] ? add_lock_to_list.isra.0+0x450/0x450 [ 59.769029] ? __mutex_init+0x1f6/0x2a0 [ 59.773002] ? psi_task_change.cold+0x1ec/0x1ec [ 59.777661] ? fifo_open+0x2b5/0xb00 [ 59.781425] ? find_held_lock+0x35/0x120 [ 59.785480] ? fifo_open+0x2b5/0xb00 [ 59.789182] ? lock_acquire+0x1db/0x570 [ 59.793213] ? kasan_check_read+0x11/0x20 [ 59.797354] ? do_raw_spin_unlock+0xa0/0x330 [ 59.801752] ? do_raw_spin_trylock+0x270/0x270 [ 59.806501] mutex_lock_nested+0x16/0x20 [ 59.810833] ? _raw_spin_unlock+0x2d/0x50 [ 59.814974] ? mutex_lock_nested+0x16/0x20 [ 59.819203] fifo_open+0x159/0xb00 [ 59.822730] do_dentry_open+0x48a/0x1210 [ 59.826777] ? pipe_release+0x280/0x280 [ 59.830743] ? chown_common+0x740/0x740 [ 59.834706] ? security_inode_permission+0xd5/0x110 [ 59.839779] ? inode_permission+0xb4/0x570 [ 59.844012] vfs_open+0xa0/0xd0 [ 59.847279] path_openat+0x144f/0x5650 [ 59.851161] ? unwind_get_return_address+0x61/0xa0 [ 59.856081] ? __save_stack_trace+0x8a/0xf0 [ 59.860447] ? path_lookupat.isra.0+0xba0/0xba0 [ 59.865104] ? kmemdup+0x27/0x60 [ 59.868458] ? selinux_cred_prepare+0x49/0xb0 [ 59.872945] ? security_prepare_creds+0x7d/0xc0 [ 59.877807] ? prepare_exec_creds+0x12/0xf0 [ 59.882130] ? __do_execve_file.isra.0+0x47a/0x2700 [ 59.887133] ? __x64_sys_execve+0x8f/0xc0 [ 59.891271] ? __lock_acquire+0x572/0x4a30 [ 59.895491] ? __lock_is_held+0xb6/0x140 [ 59.899540] do_filp_open+0x26f/0x370 [ 59.903329] ? may_open_dev+0x100/0x100 [ 59.907291] ? add_lock_to_list.isra.0+0x450/0x450 [ 59.912208] ? add_lock_to_list.isra.0+0x450/0x450 [ 59.917130] ? __do_execve_file.isra.0+0x901/0x2700 [ 59.922134] do_open_execat+0x20e/0x930 [ 59.926098] ? unregister_binfmt+0x2b0/0x2b0 [ 59.930496] ? kasan_check_read+0x11/0x20 [ 59.934632] ? do_raw_spin_trylock+0x270/0x270 [ 59.939207] ? __phys_addr_symbol+0x30/0x70 [ 59.943519] __do_execve_file.isra.0+0x1966/0x2700 [ 59.948437] ? copy_strings_kernel+0x110/0x110 [ 59.953006] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 59.958529] ? strncpy_from_user+0x3aa/0x4e0 [ 59.962939] ? digsig_verify.cold+0x32/0x32 [ 59.967355] ? kmem_cache_alloc+0x341/0x710 [ 59.971674] ? do_syscall_64+0x8c/0x800 [ 59.975638] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 59.981160] ? getname_flags+0x277/0x5b0 [ 59.985207] ? trace_hardirqs_off_caller+0x300/0x300 [ 59.990301] __x64_sys_execve+0x8f/0xc0 [ 59.994266] do_syscall_64+0x1a3/0x800 [ 59.998144] ? syscall_return_slowpath+0x5f0/0x5f0 [ 60.003064] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 60.008450] ? __switch_to_asm+0x34/0x70 [ 60.012500] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 60.017333] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.022508] RIP: 0033:0x445709 [ 60.025691] Code: e8 ec b8 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 8b 12 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 60.044584] RSP: 002b:00007f79cc4d4d18 EFLAGS: 00000246 ORIG_RAX: 000000000000003b [ 60.052281] RAX: ffffffffffffffda RBX: 00000000006dac58 RCX: 0000000000445709 [ 60.059705] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000380 [ 60.066964] RBP: 00000000006dac50 R08: 68742f636f72702f R09: 68742f636f72702f [ 60.074221] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dac5c [ 60.081476] R13: 00007f79cc4d4d20 R14: 0030656