Warning: Permanently added '10.128.0.244' (ECDSA) to the list of known hosts. executing program [ 49.842074][ T3595] loop0: detected capacity change from 0 to 253999 [ 49.855178][ T3595] F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0) [ 49.863295][ T3595] F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock [ 49.874030][ T3595] F2FS-fs (loop0): invalid crc_offset: 0 [ 49.885247][ T3595] F2FS-fs (loop0): Disable nat_bits due to incorrect cp_ver (8221872453892455638, 0) [ 49.924903][ T3595] F2FS-fs (loop0): Try to recover 2th superblock, ret: 0 [ 49.932040][ T3595] F2FS-fs (loop0): Mounted with checkpoint version = 7ad43cd6 [ 49.957689][ T3595] [ 49.960042][ T3595] ============================================ [ 49.966168][ T3595] WARNING: possible recursive locking detected [ 49.972301][ T3595] 5.17.0-rc2-next-20220202-syzkaller #0 Not tainted [ 49.978869][ T3595] -------------------------------------------- [ 49.984996][ T3595] syz-executor316/3595 is trying to acquire lock: [ 49.991383][ T3595] ffff88801d514390 (&sem->internal_rwsem#2){++++}-{3:3}, at: f2fs_write_checkpoint+0x535/0x5c90 [ 50.001859][ T3595] [ 50.001859][ T3595] but task is already holding lock: [ 50.009206][ T3595] ffff88801d515398 (&sem->internal_rwsem#2){++++}-{3:3}, at: f2fs_issue_checkpoint+0x149/0x480 [ 50.019556][ T3595] [ 50.019556][ T3595] other info that might help us debug this: [ 50.027596][ T3595] Possible unsafe locking scenario: [ 50.027596][ T3595] [ 50.035199][ T3595] CPU0 [ 50.038466][ T3595] ---- [ 50.041728][ T3595] lock(&sem->internal_rwsem#2); [ 50.046744][ T3595] lock(&sem->internal_rwsem#2); [ 50.051764][ T3595] [ 50.051764][ T3595] *** DEADLOCK *** [ 50.051764][ T3595] [ 50.059976][ T3595] May be due to missing lock nesting notation [ 50.059976][ T3595] [ 50.068274][ T3595] 2 locks held by syz-executor316/3595: [ 50.073804][ T3595] #0: ffff888074db00e0 (&type->s_umount_key#46){+.+.}-{3:3}, at: deactivate_super+0xa5/0xd0 [ 50.083995][ T3595] #1: ffff88801d515398 (&sem->internal_rwsem#2){++++}-{3:3}, at: f2fs_issue_checkpoint+0x149/0x480 [ 50.094884][ T3595] [ 50.094884][ T3595] stack backtrace: [ 50.100755][ T3595] CPU: 0 PID: 3595 Comm: syz-executor316 Not tainted 5.17.0-rc2-next-20220202-syzkaller #0 [ 50.110720][ T3595] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.120764][ T3595] Call Trace: [ 50.124032][ T3595] [ 50.126952][ T3595] dump_stack_lvl+0xcd/0x134 [ 50.131554][ T3595] __lock_acquire.cold+0x149/0x3ab [ 50.136672][ T3595] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 50.142656][ T3595] lock_acquire+0x1ab/0x510 [ 50.147157][ T3595] ? f2fs_write_checkpoint+0x535/0x5c90 [ 50.152696][ T3595] ? lock_release+0x720/0x720 [ 50.157371][ T3595] ? add_lock_to_list.constprop.0+0x185/0x370 [ 50.163440][ T3595] down_write+0x90/0x150 [ 50.167680][ T3595] ? f2fs_write_checkpoint+0x535/0x5c90 [ 50.173216][ T3595] ? down_write_killable_nested+0x180/0x180 [ 50.179106][ T3595] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 50.185085][ T3595] ? add_lock_to_list.constprop.0+0x185/0x370 [ 50.191154][ T3595] f2fs_write_checkpoint+0x535/0x5c90 [ 50.204598][ T3595] ? lock_release+0x720/0x720 [ 50.215638][ T3595] ? sync_inodes_sb+0x6c6/0x9e0 [ 50.226676][ T3595] ? f2fs_get_sectors_written+0x410/0x410 [ 50.233299][ T3595] ? down_write+0xde/0x150 [ 50.237712][ T3595] ? down_write_killable_nested+0x180/0x180 [ 50.243606][ T3595] ? wait_for_completion_io+0x270/0x270 [ 50.249141][ T3595] ? sync_inodes_sb+0x69a/0x9e0 [ 50.253993][ T3595] f2fs_issue_checkpoint+0x156/0x480 [ 50.259271][ T3595] ? f2fs_destroy_checkpoint_caches+0x20/0x20 [ 50.265330][ T3595] ? _raw_spin_unlock_irq+0x1f/0x40 [ 50.270529][ T3595] ? sync_inodes_sb+0x6cb/0x9e0 [ 50.275375][ T3595] ? inode_to_bdi+0x98/0x150 [ 50.279965][ T3595] ? try_to_writeback_inodes_sb+0xc0/0xc0 [ 50.285685][ T3595] ? filemap_fdatawrite_range+0xe0/0xe0 [ 50.291237][ T3595] f2fs_sync_fs+0x20f/0x420 [ 50.295734][ T3595] ? f2fs_drop_inode+0xa20/0xa20 [ 50.300670][ T3595] sync_filesystem.part.0+0x13c/0x1d0 [ 50.306035][ T3595] sync_filesystem+0x8b/0xc0 [ 50.310617][ T3595] generic_shutdown_super+0x70/0x400 [ 50.315900][ T3595] kill_block_super+0x97/0xf0 [ 50.320572][ T3595] kill_f2fs_super+0x2b3/0x3c0 [ 50.325333][ T3595] ? f2fs_dquot_commit+0xd0/0xd0 [ 50.330270][ T3595] ? kfree+0x1ed/0x2d0 [ 50.334328][ T3595] ? up_write+0x148/0x470 [ 50.338658][ T3595] ? unregister_shrinker+0x1f5/0x2f0 [ 50.343942][ T3595] deactivate_locked_super+0x94/0x160 [ 50.349337][ T3595] deactivate_super+0xad/0xd0 [ 50.354010][ T3595] cleanup_mnt+0x3a2/0x540 [ 50.358422][ T3595] task_work_run+0xdd/0x1a0 [ 50.362924][ T3595] do_exit+0xb29/0x2b10 [ 50.367081][ T3595] ? lock_downgrade+0x6e0/0x6e0 [ 50.371930][ T3595] ? lock_downgrade+0x6e0/0x6e0 [ 50.376865][ T3595] ? mm_update_next_owner+0x7a0/0x7a0 [ 50.382245][ T3595] do_group_exit+0xd2/0x2f0 [ 50.386747][ T3595] __x64_sys_exit_group+0x3a/0x50 [ 50.391771][ T3595] do_syscall_64+0x35/0xb0 [ 50.396179][ T3595] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 50.402075][ T3595] RIP: 0033:0x7f93b7998639 [ 50.406478][ T3595] Code: Unable to access opcode bytes at RIP 0x7f93b799860f. [ 50.413825][ T3595] RSP: 002b:00007fffe1dc7708 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 50.422235][ T3595] RAX: ffffffffffffffda RBX: 00007f93b7a0d3