INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-3,10.128.0.47' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 32.528186] [ 32.529816] ====================================================== [ 32.536096] WARNING: possible circular locking dependency detected [ 32.542376] 4.13.0-mm1+ #7 Not tainted [ 32.546222] ------------------------------------------------------ [ 32.552500] loop0/2991 is trying to acquire lock: [ 32.557301] (&sb->s_type->i_mutex_key#9){++++}, at: [] generic_file_write_iter+0xdc/0x7a0 [ 32.567239] [ 32.567239] but now in release context of a crosslock acquired at the following: [ 32.576211] ((complete)&ret.event){+.+.}, at: [] submit_bio_wait+0x15e/0x200 [ 32.585017] [ 32.585017] which lock already depends on the new lock. [ 32.585017] [ 32.593294] [ 32.593294] the existing dependency chain (in reverse order) is: [ 32.600884] [ 32.600884] -> #4 ((complete)&ret.event){+.+.}: [ 32.607000] __lock_acquire+0x328f/0x4620 [ 32.611665] lock_acquire+0x1d5/0x580 [ 32.615950] wait_for_completion_io+0xc8/0x770 [ 32.621017] submit_bio_wait+0x15e/0x200 [ 32.625564] blkdev_issue_zeroout+0x13c/0x1d0 [ 32.630544] ext4_init_inode_table+0x4fd/0xdb1 [ 32.635611] ext4_lazyinit_thread+0x81a/0xd40 [ 32.640589] kthread+0x39c/0x470 [ 32.644438] ret_from_fork+0x2a/0x40 [ 32.648633] [ 32.648633] -> #3 (&meta_group_info[i]->alloc_sem){++++}: [ 32.655625] __lock_acquire+0x328f/0x4620 [ 32.660259] lock_acquire+0x1d5/0x580 [ 32.664540] down_read+0x96/0x150 [ 32.668475] __ext4_new_inode+0x26dc/0x4f00 [ 32.673286] ext4_symlink+0x2d9/0xae0 [ 32.677581] vfs_symlink+0x323/0x560 [ 32.681777] SyS_symlink+0x134/0x200 [ 32.685980] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.691216] [ 32.691216] -> #2 (jbd2_handle){.+.+}: [ 32.696548] __lock_acquire+0x328f/0x4620 [ 32.701177] lock_acquire+0x1d5/0x580 [ 32.705463] start_this_handle+0x4b8/0x1080 [ 32.710266] jbd2__journal_start+0x389/0x9f0 [ 32.715157] __ext4_journal_start_sb+0x15f/0x550 [ 32.720395] ext4_dirty_inode+0x56/0xa0 [ 32.724852] __mark_inode_dirty+0x912/0x1170 [ 32.729742] generic_update_time+0x1b2/0x270 [ 32.734633] touch_atime+0x26d/0x2f0 [ 32.738834] ext4_file_mmap+0x161/0x1b0 [ 32.743302] mmap_region+0xa99/0x15a0 [ 32.747591] do_mmap+0x6a1/0xd50 [ 32.751443] vm_mmap_pgoff+0x1de/0x280 [ 32.755811] SyS_mmap_pgoff+0x462/0x5f0 [ 32.760269] SyS_mmap+0x16/0x20 [ 32.764034] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.769273] [ 32.769273] -> #1 (&mm->mmap_sem){++++}: [ 32.774780] __lock_acquire+0x328f/0x4620 [ 32.779410] lock_acquire+0x1d5/0x580 [ 32.783696] __might_fault+0x13a/0x1d0 [ 32.788068] _copy_to_user+0x2c/0xc0 [ 32.792265] filldir+0x1a7/0x320 [ 32.796114] dcache_readdir+0x12d/0x5e0 [ 32.800571] iterate_dir+0x4b2/0x5d0 [ 32.804768] SyS_getdents+0x225/0x450 [ 32.809059] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 32.814297] [ 32.814297] -> #0 (&sb->s_type->i_mutex_key#9){++++}: [ 32.820933] down_write+0x87/0x120 [ 32.824967] generic_file_write_iter+0xdc/0x7a0 [ 32.830119] do_iter_readv_writev+0x531/0x7f0 [ 32.835096] do_iter_write+0x15a/0x540 [ 32.839466] vfs_iter_write+0x77/0xb0 [ 32.843750] [ 32.843750] other info that might help us debug this: [ 32.843750] [ 32.851859] Chain exists of: [ 32.851859] &sb->s_type->i_mutex_key#9 --> &meta_group_info[i]->alloc_sem --> (complete)&ret.event [ 32.851859] [ 32.865443] Possible unsafe locking scenario by crosslock: [ 32.865443] [ 32.872589] CPU0 CPU1 [ 32.877218] ---- ---- [ 32.881850] lock(&meta_group_info[i]->alloc_sem); [ 32.886828] lock((complete)&ret.event); [ 32.890938] lock(&sb->s_type->i_mutex_key#9); [ 32.898085] unlock((complete)&ret.event); [ 32.904888] [ 32.904888] *** DEADLOCK *** [ 32.904888] [ 32.910909] 1 lock held by loop0/2991: [ 32.914755] #0: (&x->wait#14){..-.}, at: [] complete+0x18/0x80 [ 32.922432] [ 32.922432] stack backtrace: [ 32.926891] CPU: 1 PID: 2991 Comm: loop0 Not tainted 4.13.0-mm1+ #7 [ 32.933256] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.942572] Call Trace: [ 32.945126] dump_stack+0x194/0x257 [ 32.948717] ? arch_local_irq_restore+0x53/0x53 [ 32.953359] print_circular_bug+0x503/0x710 [ 32.957648] ? print_circular_bug_entry+0xb0/0xb0 [ 32.962454] ? debug_check_no_locks_freed+0x3d0/0x3d0 [ 32.967611] check_prev_add+0x865/0x1520 [ 32.971647] ? shmem_unused_huge_scan+0x160/0x160 [ 32.976463] ? graph_lock+0x170/0x170 [ 32.980228] ? check_usage+0xb70/0xb70 [ 32.984080] ? memcpy+0x45/0x50 [ 32.987322] ? iov_iter_advance+0x2a1/0x13f0 [ 32.991693] ? hlock_class+0x140/0x140 [ 32.995550] lock_commit_crosslock+0xe73/0x1d10 [ 33.000182] ? lock_commit_crosslock+0xe73/0x1d10 [ 33.004991] ? check_prev_add+0x1520/0x1520 [ 33.009277] ? lock_acquire+0x1d5/0x580 [ 33.013214] ? complete+0x18/0x80 [ 33.016633] ? lock_release+0xd70/0xd70 [ 33.020571] ? find_held_lock+0x39/0x1d0 [ 33.024603] complete+0x24/0x80 [ 33.027852] submit_bio_wait_endio+0x9c/0xd0 [ 33.032224] ? bio_iov_iter_get_pages+0x4e0/0x4e0 [ 33.037030] bio_endio+0x2f8/0x8d0 [ 33.040539] ? bio_dirty_fn+0x3e0/0x3e0 [ 33.044482] ? rcu_pm_notify+0xc0/0xc0 [ 33.048334] ? bio_advance+0xf8/0x370 [ 33.052099] blk_update_request+0x2a6/0xe20 [ 33.056387] ? blk_account_io_completion+0x410/0x410 [ 33.061467] blk_mq_end_request+0x54/0x120 [ 33.065670] lo_complete_rq+0xbe/0x1f0 [ 33.069522] __blk_mq_complete_request+0x38f/0x6c0 [ 33.074416] blk_mq_complete_request+0x4f/0x60 [ 33.078960] loop_queue_work+0x26b/0x3900 [ 33.083076] ? do_raw_spin_trylock+0x190/0x190 [ 33.087637] ? lo_rw_aio+0x1e70/0x1e70 [ 33.091491] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.095952] ? finish_task_switch+0x1d3/0x740 [ 33.100410] ? finish_task_switch+0x1aa/0x740 [ 33.104869] ? preempt_notifier_dec+0x20/0x20 [ 33.109330] ? check_noncircular+0x20/0x20 [ 33.113531] ? __schedule+0x8f0/0x2070 [ 33.117386] ? do_raw_spin_trylock+0x190/0x190 [ 33.121930] ? lock_release+0xd70/0xd70 [ 33.125868] ? compat_start_thread+0x80/0x80 [ 33.130242] ? find_held_lock+0x39/0x1d0 [ 33.134271] ? finish_task_switch+0x1aa/0x740 [ 33.138733] ? kthread_worker_fn+0x4ad/0x9b0 [ 33.143106] ? do_raw_spin_trylock+0x190/0x190 [ 33.147655] ? check_same_owner+0x320/0x320 [ 33.151945] ? _raw_spin_unlock_irq+0x27/0x70 [ 33.156404] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.161384] kthread_worker_fn+0x340/0x9b0 [ 33.165608] ? kthread_flush_work+0x560/0x560 [ 33.170065] ? lock_downgrade+0x990/0x990 [ 33.174179] ? complete+0x18/0x80 [ 33.177609] ? schedule+0x108/0x440 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 33.181200] ? __schedule+0x2070/0x2070 [ 33.185138] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 33.190202] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.195180] ? trace_hardirqs_on+0xd/0x10 [ 33.199292] loop_kthread_worker_fn+0x51/0x60 [ 33.203749] kthread+0x39c/0x470 [ 33.207077] ? loop_get_status64+0x110/0x110 [ 33.211447] ? kthread_create_on_node+0x100/0x100 [ 33.216251] ret_from_fork+0x2a/0x40 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program