Warning: Permanently added '10.128.0.80' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 50.450363][ T5951] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow [ 50.699748][ T5951] [ 50.702660][ T5951] ====================================================== [ 50.704412][ T5951] WARNING: possible circular locking dependency detected [ 50.706206][ T5951] 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 Not tainted [ 50.707837][ T5951] ------------------------------------------------------ [ 50.709600][ T5951] syz-executor285/5951 is trying to acquire lock: [ 50.711291][ T5951] ffff0000d8a34170 (&journal->j_barrier){+.+.}-{3:3}, at: jbd2_journal_lock_updates+0x260/0x324 [ 50.713973][ T5951] [ 50.713973][ T5951] but task is already holding lock: [ 50.715899][ T5951] ffff0000d8a30b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_change_inode_journal_flag+0x154/0x618 [ 50.718856][ T5951] [ 50.718856][ T5951] which lock already depends on the new lock. [ 50.718856][ T5951] [ 50.721495][ T5951] [ 50.721495][ T5951] the existing dependency chain (in reverse order) is: [ 50.723796][ T5951] [ 50.723796][ T5951] -> #4 (&sbi->s_writepages_rwsem){++++}-{0:0}: [ 50.726046][ T5951] percpu_down_write+0x78/0x2e0 [ 50.727458][ T5951] ext4_change_inode_journal_flag+0x154/0x618 [ 50.729171][ T5951] ext4_fileattr_set+0xb5c/0x12d0 [ 50.730595][ T5951] vfs_fileattr_set+0x70c/0xad4 [ 50.731980][ T5951] do_vfs_ioctl+0x14cc/0x26f8 [ 50.733320][ T5951] __arm64_sys_ioctl+0xe4/0x1c8 [ 50.734737][ T5951] invoke_syscall+0x98/0x2c0 [ 50.736036][ T5951] el0_svc_common+0x138/0x258 [ 50.737424][ T5951] do_el0_svc+0x64/0x198 [ 50.738648][ T5951] el0_svc+0x58/0x168 [ 50.739784][ T5951] el0t_64_sync_handler+0x84/0xf0 [ 50.741147][ T5951] el0t_64_sync+0x190/0x194 [ 50.742446][ T5951] [ 50.742446][ T5951] -> #3 (mapping.invalidate_lock){++++}-{3:3}: [ 50.744665][ T5951] down_write+0x5c/0xcc [ 50.745806][ T5951] ext4_setattr+0xc40/0x1628 [ 50.747128][ T5951] notify_change+0xa84/0xd20 [ 50.748448][ T5951] do_truncate+0x1c0/0x28c [ 50.749739][ T5951] do_sys_ftruncate+0x284/0x318 [ 50.751123][ T5951] __arm64_sys_ftruncate+0x60/0x74 [ 50.752538][ T5951] invoke_syscall+0x98/0x2c0 [ 50.753851][ T5951] el0_svc_common+0x138/0x258 [ 50.755167][ T5951] do_el0_svc+0x64/0x198 [ 50.756434][ T5951] el0_svc+0x58/0x168 [ 50.757570][ T5951] el0t_64_sync_handler+0x84/0xf0 [ 50.759013][ T5951] el0t_64_sync+0x190/0x194 [ 50.760300][ T5951] [ 50.760300][ T5951] -> #2 (&sb->s_type->i_mutex_key#8){++++}-{3:3}: [ 50.762506][ T5951] down_read+0x5c/0x78 [ 50.763648][ T5951] ext4_bmap+0x58/0x35c [ 50.764820][ T5951] bmap+0xa8/0xe8 [ 50.765842][ T5951] jbd2_journal_flush+0x4c0/0xa60 [ 50.767262][ T5951] ext4_ioctl+0x3860/0x6f58 [ 50.768581][ T5951] __arm64_sys_ioctl+0x14c/0x1c8 [ 50.769925][ T5951] invoke_syscall+0x98/0x2c0 [ 50.771249][ T5951] el0_svc_common+0x138/0x258 [ 50.772544][ T5951] do_el0_svc+0x64/0x198 [ 50.773723][ T5951] el0_svc+0x58/0x168 [ 50.774857][ T5951] el0t_64_sync_handler+0x84/0xf0 [ 50.776291][ T5951] el0t_64_sync+0x190/0x194 [ 50.777581][ T5951] [ 50.777581][ T5951] -> #1 (&journal->j_checkpoint_mutex){+.+.}-{3:3}: [ 50.779882][ T5951] __mutex_lock_common+0x190/0x21a0 [ 50.781372][ T5951] mutex_lock_io_nested+0x6c/0x88 [ 50.782806][ T5951] jbd2_journal_flush+0x210/0xa60 [ 50.784225][ T5951] ext4_ioctl+0x3860/0x6f58 [ 50.785496][ T5951] __arm64_sys_ioctl+0x14c/0x1c8 [ 50.786909][ T5951] invoke_syscall+0x98/0x2c0 [ 50.788256][ T5951] el0_svc_common+0x138/0x258 [ 50.789586][ T5951] do_el0_svc+0x64/0x198 [ 50.790773][ T5951] el0_svc+0x58/0x168 [ 50.791922][ T5951] el0t_64_sync_handler+0x84/0xf0 [ 50.793349][ T5951] el0t_64_sync+0x190/0x194 [ 50.794678][ T5951] [ 50.794678][ T5951] -> #0 (&journal->j_barrier){+.+.}-{3:3}: [ 50.796765][ T5951] __lock_acquire+0x3338/0x764c [ 50.798157][ T5951] lock_acquire+0x2f0/0x8c8 [ 50.799453][ T5951] __mutex_lock_common+0x190/0x21a0 [ 50.800879][ T5951] mutex_lock_nested+0x38/0x44 [ 50.802253][ T5951] jbd2_journal_lock_updates+0x260/0x324 [ 50.803839][ T5951] ext4_change_inode_journal_flag+0x15c/0x618 [ 50.805539][ T5951] ext4_fileattr_set+0xb5c/0x12d0 [ 50.806981][ T5951] vfs_fileattr_set+0x70c/0xad4 [ 50.808395][ T5951] do_vfs_ioctl+0x14cc/0x26f8 [ 50.809767][ T5951] __arm64_sys_ioctl+0xe4/0x1c8 [ 50.811117][ T5951] invoke_syscall+0x98/0x2c0 [ 50.812507][ T5951] el0_svc_common+0x138/0x258 [ 50.813879][ T5951] do_el0_svc+0x64/0x198 [ 50.815097][ T5951] el0_svc+0x58/0x168 [ 50.816294][ T5951] el0t_64_sync_handler+0x84/0xf0 [ 50.817719][ T5951] el0t_64_sync+0x190/0x194 [ 50.819004][ T5951] [ 50.819004][ T5951] other info that might help us debug this: [ 50.819004][ T5951] [ 50.821666][ T5951] Chain exists of: [ 50.821666][ T5951] &journal->j_barrier --> mapping.invalidate_lock --> &sbi->s_writepages_rwsem [ 50.821666][ T5951] [ 50.825609][ T5951] Possible unsafe locking scenario: [ 50.825609][ T5951] [ 50.827485][ T5951] CPU0 CPU1 [ 50.828876][ T5951] ---- ---- [ 50.830209][ T5951] lock(&sbi->s_writepages_rwsem); [ 50.831547][ T5951] lock(mapping.invalidate_lock); [ 50.833550][ T5951] lock(&sbi->s_writepages_rwsem); [ 50.835539][ T5951] lock(&journal->j_barrier); [ 50.836765][ T5951] [ 50.836765][ T5951] *** DEADLOCK *** [ 50.836765][ T5951] [ 50.838866][ T5951] 4 locks held by syz-executor285/5951: [ 50.840220][ T5951] #0: ffff0000d8a2e460 (sb_writers#3){.+.+}-{0:0}, at: mnt_want_write_file+0x64/0x1e8 [ 50.842760][ T5951] #1: ffff0000dd6b3628 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: vfs_fileattr_set+0x110/0xad4 [ 50.845459][ T5951] #2: ffff0000dd6b37c8 (mapping.invalidate_lock){++++}-{3:3}, at: ext4_change_inode_journal_flag+0xf0/0x618 [ 50.848529][ T5951] #3: ffff0000d8a30b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: ext4_change_inode_journal_flag+0x154/0x618 [ 50.851600][ T5951] [ 50.851600][ T5951] stack backtrace: [ 50.853082][ T5951] CPU: 0 PID: 5951 Comm: syz-executor285 Not tainted 6.3.0-rc1-syzkaller-gfe15c26ee26e #0 [ 50.855664][ T5951] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 [ 50.858232][ T5951] Call trace: [ 50.859067][ T5951] dump_backtrace+0x1c8/0x1f4 [ 50.860288][ T5951] show_stack+0x2c/0x3c [ 50.861378][ T5951] dump_stack_lvl+0xd0/0x124 [ 50.862585][ T5951] dump_stack+0x1c/0x28 [ 50.863677][ T5951] print_circular_bug+0x150/0x1b8 [ 50.865061][ T5951] check_noncircular+0x2cc/0x378 [ 50.866335][ T5951] __lock_acquire+0x3338/0x764c [ 50.867595][ T5951] lock_acquire+0x2f0/0x8c8 [ 50.868752][ T5951] __mutex_lock_common+0x190/0x21a0 [ 50.870094][ T5951] mutex_lock_nested+0x38/0x44 [ 50.871346][ T5951] jbd2_journal_lock_updates+0x260/0x324 [ 50.872826][ T5951] ext4_change_inode_journal_flag+0x15c/0x618 [ 50.874369][ T5951] ext4_fileattr_set+0xb5c/0x12d0 [ 50.875664][ T5951] vfs_fileattr_set+0x70c/0xad4 [ 50.876930][ T5951] do_vfs_ioctl+0x14cc/0x26f8 [ 50.878102][ T5951] __arm64_sys_ioctl+0xe4/0x1c8 [ 50.879307][ T5951] invoke_syscall+0x98/0x2c0 [ 50.880493][ T5951] el0_svc_common+0x138/0x258 [ 50.881710][ T5951] do_el0_svc+0x64/0x198 [ 50.882801][ T5951] el0_svc+0x58/0x168 [ 50.883791][ T5951] el0t_64_sync_handler+0x84/0xf0 [ 50.885120][ T5951] el0t_64_sync+0x190/0x194 executing program executing program [ 50.895064][ T5956] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 51.163388][ T5960] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 51.431422][ T5964] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 51.701596][ T5968] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 51.970723][ T5972] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 52.241128][ T5976] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 52.510455][ T5980] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 52.778966][ T5984] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 53.047973][ T5988] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow [ 55.467343][ T6024] ext4_ioctl_checkpoint: 8 callbacks suppressed executing program [ 55.467355][ T6024] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 55.736200][ T6028] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 56.004753][ T6032] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 56.273846][ T6036] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 56.542514][ T6040] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 56.811497][ T6044] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 57.080714][ T6048] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 57.350268][ T6052] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program [ 57.620302][ T6056] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 57.888781][ T6060] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow [ 60.578105][ T6100] ext4_ioctl_checkpoint: 9 callbacks suppressed