Warning: Permanently added '10.128.1.44' (ECDSA) to the list of known hosts. executing program executing program [ 54.219375] audit: type=1400 audit(1572781597.740:36): avc: denied { map } for pid=7766 comm="syz-executor484" path="/root/syz-executor484847875" 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 [ 54.249025] block nbd0: Receive control failed (result -22) [ 54.257784] block nbd0: shutting down sockets [ 54.298304] block nbd0: Receive control failed (result -22) [ 54.305776] block nbd0: shutting down sockets executing program [ 54.377792] block nbd0: Receive control failed (result -22) [ 54.384592] block nbd0: shutting down sockets executing program executing program [ 54.457072] block nbd0: Receive control failed (result -22) [ 54.464316] block nbd0: shutting down sockets executing program [ 54.517237] block nbd0: Receive control failed (result -22) [ 54.524506] block nbd0: shutting down sockets executing program [ 54.586697] block nbd0: Receive control failed (result -22) [ 54.593902] block nbd0: shutting down sockets executing program [ 54.656394] block nbd0: Receive control failed (result -22) [ 54.663594] block nbd0: shutting down sockets executing program [ 54.716988] block nbd0: Receive control failed (result -22) [ 54.724219] block nbd0: shutting down sockets executing program [ 54.777505] block nbd0: Receive control failed (result -22) [ 54.784703] block nbd0: shutting down sockets executing program [ 54.846642] block nbd0: Receive control failed (result -22) [ 54.853825] block nbd0: shutting down sockets executing program [ 54.917000] block nbd0: Receive control failed (result -22) [ 54.923984] block nbd0: shutting down sockets executing program [ 54.977257] block nbd0: Receive control failed (result -22) [ 54.984250] block nbd0: shutting down sockets executing program [ 55.037306] block nbd0: Receive control failed (result -22) [ 55.044193] block nbd0: shutting down sockets executing program [ 55.096522] block nbd0: Receive control failed (result -22) [ 55.103503] block nbd0: shutting down sockets executing program [ 55.157091] block nbd0: Receive control failed (result -22) [ 55.163966] block nbd0: shutting down sockets executing program [ 55.217114] block nbd0: Receive control failed (result -22) [ 55.224397] block nbd0: shutting down sockets executing program [ 55.266409] block nbd0: Receive control failed (result -22) [ 55.273701] [ 55.275358] ====================================================== [ 55.276178] block nbd0: Device being setup by another task [ 55.281682] WARNING: possible circular locking dependency detected [ 55.281691] 4.19.81 #0 Not tainted [ 55.281694] ------------------------------------------------------ [ 55.281700] kworker/u5:0/1169 is trying to acquire lock: [ 55.281706] 00000000b25d9c5a (&nbd->config_lock){+.+.}, at: refcount_dec_and_mutex_lock+0x56/0x90 [ 55.318143] [ 55.318143] but task is already holding lock: [ 55.324113] 0000000008c0b3f9 ((work_completion)(&args->work)){+.+.}, at: process_one_work+0x8b4/0x1750 [ 55.333568] [ 55.333568] which lock already depends on the new lock. [ 55.333568] [ 55.341891] [ 55.341891] the existing dependency chain (in reverse order) is: [ 55.349535] [ 55.349535] -> #2 ((work_completion)(&args->work)){+.+.}: [ 55.356563] process_one_work+0x90f/0x1750 [ 55.361322] worker_thread+0x98/0xe40 [ 55.365654] kthread+0x354/0x420 [ 55.369552] ret_from_fork+0x24/0x30 [ 55.373775] [ 55.373775] -> #1 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}: [ 55.381543] flush_workqueue+0x126/0x14b0 [ 55.386222] drain_workqueue+0x1b4/0x470 [ 55.390806] destroy_workqueue+0x21/0x6b0 [ 55.395474] nbd_config_put+0x3cf/0x860 [ 55.399993] nbd_release+0xf6/0x140 [ 55.404139] __blkdev_put+0x4d1/0x810 [ 55.408459] blkdev_put+0x98/0x560 [ 55.412528] blkdev_close+0x8b/0xb0 [ 55.416680] __fput+0x2dd/0x8b0 [ 55.420481] ____fput+0x16/0x20 [ 55.424279] task_work_run+0x145/0x1c0 [ 55.428773] do_exit+0x994/0x2fa0 [ 55.432749] do_group_exit+0x135/0x370 [ 55.437300] __x64_sys_exit_group+0x44/0x50 [ 55.442319] do_syscall_64+0xfd/0x620 [ 55.446694] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.452401] [ 55.452401] -> #0 (&nbd->config_lock){+.+.}: [ 55.458425] lock_acquire+0x16f/0x3f0 [ 55.462743] __mutex_lock+0xf7/0x1300 [ 55.467179] mutex_lock_nested+0x16/0x20 [ 55.471763] refcount_dec_and_mutex_lock+0x56/0x90 [ 55.477310] nbd_config_put+0x31/0x860 [ 55.481718] recv_work+0x19b/0x200 [ 55.485792] process_one_work+0x989/0x1750 [ 55.490548] worker_thread+0x98/0xe40 [ 55.494867] kthread+0x354/0x420 [ 55.498755] ret_from_fork+0x24/0x30 [ 55.502983] [ 55.502983] other info that might help us debug this: [ 55.502983] [ 55.511208] Chain exists of: [ 55.511208] &nbd->config_lock --> (wq_completion)"knbd%d-recv"nbd->index --> (work_completion)(&args->work) [ 55.511208] [ 55.525719] Possible unsafe locking scenario: [ 55.525719] [ 55.531763] CPU0 CPU1 [ 55.536504] ---- ---- [ 55.541175] lock((work_completion)(&args->work)); [ 55.546189] lock((wq_completion)"knbd%d-recv"nbd->index); [ 55.554427] lock((work_completion)(&args->work)); [ 55.561963] lock(&nbd->config_lock); [ 55.565842] [ 55.565842] *** DEADLOCK *** [ 55.565842] [ 55.571898] 2 locks held by kworker/u5:0/1169: [ 55.576468] #0: 00000000d822469c ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at: process_one_work+0x87e/0x1750 [ 55.587060] #1: 0000000008c0b3f9 ((work_completion)(&args->work)){+.+.}, at: process_one_work+0x8b4/0x1750 [ 55.596967] [ 55.596967] stack backtrace: [ 55.601481] CPU: 0 PID: 1169 Comm: kworker/u5:0 Not tainted 4.19.81 #0 [ 55.608310] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.617890] Workqueue: knbd0-recv recv_work [ 55.622215] Call Trace: [ 55.624801] dump_stack+0x172/0x1f0 [ 55.628432] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 55.633800] __lock_acquire+0x2e19/0x49c0 [ 55.637946] ? mark_held_locks+0x100/0x100 [ 55.642193] ? find_held_lock+0x35/0x130 [ 55.646272] ? update_curr+0x3c2/0x8a0 [ 55.650157] ? mark_held_locks+0x100/0x100 [ 55.654391] ? _raw_spin_unlock_irq+0x28/0x90 [ 55.658885] ? finish_task_switch+0x146/0x7c0 [ 55.663375] ? _raw_spin_unlock_irq+0x28/0x90 [ 55.667885] ? lockdep_hardirqs_on+0x415/0x5d0 [ 55.672480] ? __lock_is_held+0xb6/0x140 [ 55.676543] ? refcount_dec_and_mutex_lock+0x56/0x90 [ 55.681659] lock_acquire+0x16f/0x3f0 [ 55.685473] ? refcount_dec_and_mutex_lock+0x56/0x90 [ 55.690581] ? refcount_dec_and_mutex_lock+0x56/0x90 [ 55.695700] __mutex_lock+0xf7/0x1300 [ 55.699496] ? refcount_dec_and_mutex_lock+0x56/0x90 [ 55.704605] ? refcount_dec_and_mutex_lock+0x56/0x90 [ 55.712334] ? __wake_up_common_lock+0xfe/0x190 [ 55.717143] ? mutex_trylock+0x1e0/0x1e0 [ 55.721200] ? preempt_schedule_common+0x4f/0xe0 [ 55.725958] ? preempt_schedule+0x4b/0x60 [ 55.730104] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.735655] ? refcount_dec_not_one+0x143/0x1f0 [ 55.740332] ? refcount_dec_checked+0x70/0x70 [ 55.744829] ? _raw_spin_unlock_irqrestore+0xbd/0xe0 [ 55.749960] mutex_lock_nested+0x16/0x20 [ 55.754029] ? mutex_lock_nested+0x16/0x20 [ 55.758260] refcount_dec_and_mutex_lock+0x56/0x90 [ 55.763191] nbd_config_put+0x31/0x860 [ 55.767098] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.772638] recv_work+0x19b/0x200 [ 55.776203] process_one_work+0x989/0x1750 [ 55.780559] ? pwq_dec_nr_in_flight+0x320/0x320 [ 55.785281] ? lock_acquire+0x16f/0x3f0 [ 55.789280] ? kasan_check_write+0x14/0x20 [ 55.794407] ? do_raw_spin_lock+0xc8/0x240 [ 55.798739] worker_thread+0x98/0xe40 [ 55.802547] kthread+0x354/0x420 [ 55.805914] ? process_one_work+0x1750/0x1750 [ 55.810419] ? kthread_cancel_delayed_work_sync+0x20/0x20 executing program [ 55.815966] ret_from_fork+0x24/0x30 [ 55.821464] block nbd0: shutting down sockets