[ OK ] Started Getty on tty1. [ OK ] Found device /dev/ttyS0. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Started OpenBSD Secure Shell server. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.221' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 33.876742] EXT4-fs error (device loop0): ext4_quota_enable:5838: comm syz-executor198: Bad quota inode # 4 [ 33.887334] EXT4-fs warning (device loop0): ext4_enable_quotas:5875: Failed to enable quota tracking (type=1, err=-116). Please run e2fsck to fix. [ 33.902915] EXT4-fs (loop0): mount failed executing program [ 33.942295] EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 39.125766] [ 39.127438] ====================================================== [ 39.133755] WARNING: possible circular locking dependency detected [ 39.140100] 4.19.194-syzkaller #0 Not tainted [ 39.144593] ------------------------------------------------------ [ 39.150911] syz-executor198/8602 is trying to acquire lock: [ 39.156662] 00000000c8e05b3c (&dquot->dq_lock){+.+.}, at: dquot_commit+0x4d/0x400 [ 39.164447] [ 39.164447] but task is already holding lock: [ 39.170414] 00000000480561e3 (&ei->i_data_sem/2){++++}, at: ext4_map_blocks+0x740/0x1a50 [ 39.178647] [ 39.178647] which lock already depends on the new lock. [ 39.178647] [ 39.187200] [ 39.187200] the existing dependency chain (in reverse order) is: [ 39.194898] [ 39.194898] -> #2 (&ei->i_data_sem/2){++++}: [ 39.200779] ext4_map_blocks+0x33e/0x1a50 [ 39.205441] ext4_getblk+0xad/0x4f0 [ 39.209570] ext4_bread+0x7c/0x210 [ 39.213612] ext4_quota_write+0x205/0x530 [ 39.218271] write_blk+0x10a/0x200 [ 39.222333] get_free_dqblk+0xff/0x2d0 [ 39.226917] do_insert_tree+0x79c/0x1150 [ 39.231481] do_insert_tree+0xf5c/0x1150 [ 39.236061] qtree_write_dquot+0x1cb/0x570 [ 39.240972] v2_write_dquot+0x11c/0x250 [ 39.245464] dquot_acquire+0x25c/0x490 [ 39.249864] ext4_acquire_dquot+0x1e7/0x2d0 [ 39.254697] dqget+0x785/0xfc0 [ 39.258480] __dquot_initialize+0x3bd/0xb70 [ 39.263329] ext4_tmpfile+0x87/0x480 [ 39.267555] vfs_tmpfile+0x208/0x370 [ 39.271768] path_openat+0x1e02/0x2df0 [ 39.276156] do_filp_open+0x18c/0x3f0 [ 39.280465] do_sys_open+0x3b3/0x520 [ 39.284679] do_syscall_64+0xf9/0x620 [ 39.288991] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.294675] [ 39.294675] -> #1 (&s->s_dquot.dqio_sem){++++}: [ 39.300808] v2_read_dquot+0x49/0x120 [ 39.305124] dquot_acquire+0x121/0x490 [ 39.309549] ext4_acquire_dquot+0x1e7/0x2d0 [ 39.314375] dqget+0x785/0xfc0 [ 39.318089] __dquot_initialize+0x3bd/0xb70 [ 39.322916] ext4_tmpfile+0x87/0x480 [ 39.327142] vfs_tmpfile+0x208/0x370 [ 39.331379] path_openat+0x1e02/0x2df0 [ 39.335782] do_filp_open+0x18c/0x3f0 [ 39.340101] do_sys_open+0x3b3/0x520 [ 39.344322] do_syscall_64+0xf9/0x620 [ 39.348635] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.354337] [ 39.354337] -> #0 (&dquot->dq_lock){+.+.}: [ 39.360092] __mutex_lock+0xd7/0x1200 [ 39.364393] dquot_commit+0x4d/0x400 [ 39.368617] ext4_write_dquot+0x1e7/0x280 [ 39.373276] ext4_mark_dquot_dirty+0x111/0x1a0 [ 39.378559] __dquot_alloc_space+0x37e/0x860 [ 39.383467] ext4_mb_new_blocks+0x58c/0x4370 [ 39.388373] ext4_ext_map_blocks+0x2aa2/0x7390 [ 39.393467] ext4_map_blocks+0x7a2/0x1a50 [ 39.398223] _ext4_get_block+0x208/0x530 [ 39.402784] __block_write_begin_int+0x46c/0x17b0 [ 39.408137] ext4_write_begin+0x52d/0x1610 [ 39.412959] ext4_da_write_begin+0x737/0x10e0 [ 39.417972] generic_perform_write+0x1f8/0x4d0 [ 39.423052] __generic_file_write_iter+0x24b/0x610 [ 39.428480] ext4_file_write_iter+0x2fe/0xf20 [ 39.433521] do_iter_readv_writev+0x668/0x790 [ 39.438527] do_iter_write+0x182/0x5d0 [ 39.442932] vfs_writev+0x153/0x2e0 [ 39.447063] __x64_sys_pwritev+0x22b/0x310 [ 39.451798] do_syscall_64+0xf9/0x620 [ 39.456106] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.461790] [ 39.461790] other info that might help us debug this: [ 39.461790] [ 39.469921] Chain exists of: [ 39.469921] &dquot->dq_lock --> &s->s_dquot.dqio_sem --> &ei->i_data_sem/2 [ 39.469921] [ 39.481437] Possible unsafe locking scenario: [ 39.481437] [ 39.487470] CPU0 CPU1 [ 39.492122] ---- ---- [ 39.496764] lock(&ei->i_data_sem/2); [ 39.500645] lock(&s->s_dquot.dqio_sem); [ 39.507286] lock(&ei->i_data_sem/2); [ 39.513670] lock(&dquot->dq_lock); [ 39.517377] [ 39.517377] *** DEADLOCK *** [ 39.517377] [ 39.523413] 4 locks held by syz-executor198/8602: [ 39.528240] #0: 000000009bc8eb21 (sb_writers#3){.+.+}, at: vfs_writev+0x259/0x2e0 [ 39.535937] #1: 0000000052ec3999 (&sb->s_type->i_mutex_key#10){+.+.}, at: ext4_file_write_iter+0x21f/0xf20 [ 39.545815] #2: 00000000480561e3 (&ei->i_data_sem/2){++++}, at: ext4_map_blocks+0x740/0x1a50 [ 39.554474] #3: 000000008f04b416 (dquot_srcu){....}, at: __dquot_alloc_space+0x1ad/0x860 [ 39.562775] [ 39.562775] stack backtrace: [ 39.567272] CPU: 0 PID: 8602 Comm: syz-executor198 Not tainted 4.19.194-syzkaller #0 [ 39.575258] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.584622] Call Trace: [ 39.587344] dump_stack+0x1fc/0x2ef [ 39.590974] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 39.596774] __lock_acquire+0x30c9/0x3ff0 [ 39.600915] ? mark_held_locks+0xf0/0xf0 [ 39.604968] ? is_bpf_text_address+0xfc/0x1b0 [ 39.609467] ? kernel_text_address+0xbd/0xf0 [ 39.613856] ? unwind_get_return_address+0x51/0x90 [ 39.618766] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.624121] ? __save_stack_trace+0xaf/0x190 [ 39.628525] lock_acquire+0x170/0x3c0 [ 39.632332] ? dquot_commit+0x4d/0x400 [ 39.636203] ? dquot_commit+0x4d/0x400 [ 39.640071] __mutex_lock+0xd7/0x1200 [ 39.643853] ? dquot_commit+0x4d/0x400 [ 39.647731] ? dquot_commit+0x4d/0x400 [ 39.651607] ? mutex_trylock+0x1a0/0x1a0 [ 39.655675] ? dquot_add_space+0x3e6/0x10e0 [ 39.659976] dquot_commit+0x4d/0x400 [ 39.663669] ? ext4_write_dquot+0x1bf/0x280 [ 39.668081] ext4_write_dquot+0x1e7/0x280 [ 39.672327] ext4_mark_dquot_dirty+0x111/0x1a0 [ 39.676989] __dquot_alloc_space+0x37e/0x860 [ 39.681389] ? dquot_add_space+0x10e0/0x10e0 [ 39.685778] ? __percpu_counter_sum+0x131/0x1a0 [ 39.690422] ? clone_verify_area+0x240/0x240 [ 39.694838] ? check_preemption_disabled+0x41/0x280 [ 39.699846] ? percpu_counter_add_batch+0x126/0x180 [ 39.704861] ext4_mb_new_blocks+0x58c/0x4370 [ 39.709276] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 39.714287] ? ext4_cache_extents+0x68/0x2d0 [ 39.718688] ? ext4_find_extent+0x9bb/0xc70 [ 39.723004] ? ext4_discard_preallocations+0xfb0/0xfb0 [ 39.728350] ? ext4_ext_search_right+0x2c7/0xb60 [ 39.733089] ? ext4_inode_to_goal_block+0x2d2/0x3e0 [ 39.738099] ext4_ext_map_blocks+0x2aa2/0x7390 [ 39.742677] ? __lock_acquire+0x6de/0x3ff0 [ 39.746891] ? ext4_find_delalloc_cluster+0x1f0/0x1f0 [ 39.752070] ? mark_held_locks+0xf0/0xf0 [ 39.756114] ? create_page_buffers+0x212/0x350 [ 39.760820] ? __block_write_begin_int+0x22b/0x17b0 [ 39.765914] ? ext4_es_lookup_extent+0x375/0xb60 [ 39.770665] ? ext4_map_blocks+0x59f/0x1a50 [ 39.774978] ext4_map_blocks+0x7a2/0x1a50 [ 39.779116] ? ext4_issue_zeroout+0x160/0x160 [ 39.783597] ? alloc_buffer_head+0x20/0x130 [ 39.787907] ? create_page_buffers+0x212/0x350 [ 39.792482] _ext4_get_block+0x208/0x530 [ 39.796537] ? ext4_map_blocks+0x1a50/0x1a50 [ 39.800923] ? create_empty_buffers+0x4e7/0x760 [ 39.805576] ? do_raw_spin_unlock+0x171/0x230 [ 39.810051] ? _raw_spin_unlock+0x29/0x40 [ 39.814188] ? create_page_buffers+0x190/0x350 [ 39.818839] __block_write_begin_int+0x46c/0x17b0 [ 39.823659] ? _ext4_get_block+0x530/0x530 [ 39.827873] ? __breadahead_gfp+0x130/0x130 [ 39.832176] ext4_write_begin+0x52d/0x1610 [ 39.836393] ? ext4_truncate+0x1380/0x1380 [ 39.840611] ? current_time+0x6f/0x1c0 [ 39.844484] ext4_da_write_begin+0x737/0x10e0 [ 39.849052] ? mark_held_locks+0xa6/0xf0 [ 39.853094] ? iov_iter_fault_in_readable+0x1fc/0x3f0 [ 39.858265] ? ext4_write_begin+0x1610/0x1610 [ 39.862745] ? iov_iter_init+0x1d0/0x1d0 [ 39.866817] generic_perform_write+0x1f8/0x4d0 [ 39.871388] ? filemap_page_mkwrite+0x2f0/0x2f0 [ 39.876036] ? current_time+0x1c0/0x1c0 [ 39.880093] ? lock_acquire+0x170/0x3c0 [ 39.884045] __generic_file_write_iter+0x24b/0x610 [ 39.888956] ext4_file_write_iter+0x2fe/0xf20 [ 39.893514] ? __lock_acquire+0x6de/0x3ff0 [ 39.897780] ? ext4_file_open+0x600/0x600 [ 39.901926] ? common_file_perm+0x4e5/0x850 [ 39.906230] do_iter_readv_writev+0x668/0x790 [ 39.910713] ? clone_verify_area+0x240/0x240 [ 39.915125] ? security_file_permission+0x1c0/0x220 [ 39.920124] do_iter_write+0x182/0x5d0 [ 39.923996] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 39.929002] vfs_writev+0x153/0x2e0 [ 39.932614] ? vfs_iter_write+0xa0/0xa0 [ 39.936568] ? __do_page_fault+0x6d1/0xd60 [ 39.940786] ? lock_downgrade+0x720/0x720 [ 39.944920] __x64_sys_pwritev+0x22b/0x310 [ 39.949143] ? __ia32_sys_preadv2+0x150/0x150 [ 39.953620] ? trace_hardirqs_off_caller+0x6e/0x210 [ 39.958616] ? do_syscall_64+0x21/0x620 [ 39.962567] do_syscall_64+0xf9/0x620 [ 39.966502] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.971690] RIP: 0033:0x4453a9 [ 39.974873] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 40.000219] RSP: 002b:00007ffc62038b68 EFLAGS: 00000246 ORIG_RAX: 0000000000000128 [ 40.008144] RAX: ffffffffffffffda RBX: 0000000000488218 RCX: 00000000004453a9 [ 40.015487] RDX: 0000000000000018 RSI: 00000000200006c0 RDI: 0000000000000003 executing program [ 40.022739] RBP: 00000000004881d0 R08: 0000000000000004 R09: 000000000000000d [ 40.029992] R10: 000000000400fa7f R11: 0000000000000246 R12: 0000000000488188 [ 40.037358] R13: 00000000004880c0 R14: 0000000020011000 R15: 0000000020010e00 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program