Warning: Permanently added '10.128.1.65' (ED25519) to the list of known hosts. executing program [ 41.900922][ T3487] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow [ 41.923412][ T3487] [ 41.935289][ T3487] ====================================================== [ 41.942278][ T3487] WARNING: possible circular locking dependency detected [ 41.949277][ T3487] 5.15.127-syzkaller #0 Not tainted [ 41.954462][ T3487] ------------------------------------------------------ [ 41.961450][ T3487] syz-executor237/3487 is trying to acquire lock: [ 41.967848][ T3487] ffff8881467b83f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_bmap+0x4b/0x410 [ 41.977615][ T3487] [ 41.977615][ T3487] but task is already holding lock: [ 41.984967][ T3487] ffff8880246fc3f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x31c/0xc90 [ 41.995587][ T3487] [ 41.995587][ T3487] which lock already depends on the new lock. [ 41.995587][ T3487] [ 42.005972][ T3487] [ 42.005972][ T3487] the existing dependency chain (in reverse order) is: [ 42.014963][ T3487] [ 42.014963][ T3487] -> #3 (&journal->j_checkpoint_mutex){+.+.}-{3:3}: [ 42.023804][ T3487] lock_acquire+0x1db/0x4f0 [ 42.028810][ T3487] __mutex_lock_common+0x1da/0x25a0 [ 42.034505][ T3487] mutex_lock_io_nested+0x45/0x60 [ 42.040084][ T3487] jbd2_journal_flush+0x290/0xc90 [ 42.045603][ T3487] ext4_ioctl+0x3249/0x5b80 [ 42.050605][ T3487] __se_sys_ioctl+0xf1/0x160 [ 42.055788][ T3487] do_syscall_64+0x3d/0xb0 [ 42.060701][ T3487] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.067183][ T3487] [ 42.067183][ T3487] -> #2 (&journal->j_barrier){+.+.}-{3:3}: [ 42.075378][ T3487] lock_acquire+0x1db/0x4f0 [ 42.081100][ T3487] __mutex_lock_common+0x1da/0x25a0 [ 42.086811][ T3487] mutex_lock_nested+0x17/0x20 [ 42.092080][ T3487] jbd2_journal_lock_updates+0x4a9/0x580 [ 42.098217][ T3487] ext4_change_inode_journal_flag+0x1a8/0x6e0 [ 42.104792][ T3487] ext4_fileattr_set+0xdf4/0x1750 [ 42.110325][ T3487] vfs_fileattr_set+0x8f3/0xd30 [ 42.115683][ T3487] do_vfs_ioctl+0x1d85/0x2b70 [ 42.120897][ T3487] __se_sys_ioctl+0x81/0x160 [ 42.126094][ T3487] do_syscall_64+0x3d/0xb0 [ 42.131014][ T3487] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.137418][ T3487] [ 42.137418][ T3487] -> #1 (&sbi->s_writepages_rwsem){++++}-{0:0}: [ 42.145812][ T3487] lock_acquire+0x1db/0x4f0 [ 42.150829][ T3487] percpu_down_write+0x52/0x2d0 [ 42.156180][ T3487] ext4_ind_migrate+0x254/0x760 [ 42.161532][ T3487] ext4_fileattr_set+0xe8b/0x1750 [ 42.167289][ T3487] vfs_fileattr_set+0x8f3/0xd30 [ 42.172653][ T3487] do_vfs_ioctl+0x1d85/0x2b70 [ 42.177833][ T3487] __se_sys_ioctl+0x81/0x160 [ 42.182923][ T3487] do_syscall_64+0x3d/0xb0 [ 42.187839][ T3487] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.194236][ T3487] [ 42.194236][ T3487] -> #0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}: [ 42.202908][ T3487] validate_chain+0x1646/0x58b0 [ 42.208336][ T3487] __lock_acquire+0x1295/0x1ff0 [ 42.213700][ T3487] lock_acquire+0x1db/0x4f0 [ 42.218714][ T3487] down_read+0x45/0x2e0 [ 42.223366][ T3487] ext4_bmap+0x4b/0x410 [ 42.228039][ T3487] bmap+0xa1/0xd0 [ 42.232171][ T3487] jbd2_journal_flush+0x7a2/0xc90 [ 42.237700][ T3487] ext4_ioctl+0x3249/0x5b80 [ 42.242803][ T3487] __se_sys_ioctl+0xf1/0x160 [ 42.247904][ T3487] do_syscall_64+0x3d/0xb0 [ 42.252945][ T3487] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.259438][ T3487] [ 42.259438][ T3487] other info that might help us debug this: [ 42.259438][ T3487] [ 42.269734][ T3487] Chain exists of: [ 42.269734][ T3487] &sb->s_type->i_mutex_key#9 --> &journal->j_barrier --> &journal->j_checkpoint_mutex [ 42.269734][ T3487] [ 42.285257][ T3487] Possible unsafe locking scenario: [ 42.285257][ T3487] [ 42.292679][ T3487] CPU0 CPU1 [ 42.298046][ T3487] ---- ---- [ 42.303382][ T3487] lock(&journal->j_checkpoint_mutex); [ 42.308899][ T3487] lock(&journal->j_barrier); [ 42.316150][ T3487] lock(&journal->j_checkpoint_mutex); [ 42.324183][ T3487] lock(&sb->s_type->i_mutex_key#9); [ 42.329530][ T3487] [ 42.329530][ T3487] *** DEADLOCK *** [ 42.329530][ T3487] [ 42.337647][ T3487] 2 locks held by syz-executor237/3487: [ 42.343165][ T3487] #0: ffff8880246fc170 (&journal->j_barrier){+.+.}-{3:3}, at: jbd2_journal_lock_updates+0x4a9/0x580 [ 42.354005][ T3487] #1: ffff8880246fc3f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x31c/0xc90 [ 42.365103][ T3487] [ 42.365103][ T3487] stack backtrace: [ 42.371056][ T3487] CPU: 1 PID: 3487 Comm: syz-executor237 Not tainted 5.15.127-syzkaller #0 [ 42.379611][ T3487] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 [ 42.389639][ T3487] Call Trace: [ 42.392918][ T3487] [ 42.395828][ T3487] dump_stack_lvl+0x1e3/0x2cb [ 42.400491][ T3487] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 42.406112][ T3487] ? print_circular_bug+0x12b/0x1a0 [ 42.411285][ T3487] check_noncircular+0x2f8/0x3b0 [ 42.416197][ T3487] ? add_chain_block+0x850/0x850 [ 42.421106][ T3487] ? lockdep_lock+0x11f/0x2a0 [ 42.425754][ T3487] ? print_irqtrace_events+0x210/0x210 [ 42.431197][ T3487] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.436389][ T3487] validate_chain+0x1646/0x58b0 [ 42.441223][ T3487] ? lockdep_hardirqs_on+0x94/0x130 [ 42.446403][ T3487] ? reacquire_held_locks+0x660/0x660 [ 42.451840][ T3487] ? reacquire_held_locks+0x660/0x660 [ 42.457186][ T3487] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 42.463139][ T3487] ? __sched_text_start+0x8/0x8 [ 42.467975][ T3487] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.473233][ T3487] ? mark_lock+0x98/0x340 [ 42.477554][ T3487] __lock_acquire+0x1295/0x1ff0 [ 42.482380][ T3487] lock_acquire+0x1db/0x4f0 [ 42.486867][ T3487] ? ext4_bmap+0x4b/0x410 [ 42.491171][ T3487] ? read_lock_is_recursive+0x10/0x10 [ 42.496519][ T3487] ? bit_waitqueue+0x30/0x30 [ 42.501101][ T3487] ? __might_sleep+0xc0/0xc0 [ 42.505773][ T3487] ? ext4_journalled_write_end+0xee0/0xee0 [ 42.511671][ T3487] down_read+0x45/0x2e0 [ 42.515816][ T3487] ? ext4_bmap+0x4b/0x410 [ 42.520121][ T3487] ? ext4_journalled_write_end+0xee0/0xee0 [ 42.525918][ T3487] ext4_bmap+0x4b/0x410 [ 42.530052][ T3487] ? ext4_journalled_write_end+0xee0/0xee0 [ 42.535833][ T3487] bmap+0xa1/0xd0 [ 42.539443][ T3487] jbd2_journal_flush+0x7a2/0xc90 [ 42.544441][ T3487] ? mutex_lock_nested+0x17/0x20 [ 42.549357][ T3487] ? __bpf_trace_jbd2_shrink_checkpoint_list+0x50/0x50 [ 42.556181][ T3487] ? bpf_lsm_capable+0x5/0x10 [ 42.560923][ T3487] ? security_capable+0x86/0xb0 [ 42.566010][ T3487] ext4_ioctl+0x3249/0x5b80 [ 42.570664][ T3487] ? do_vfs_ioctl+0x1b66/0x2b70 [ 42.575498][ T3487] ? ext4_fileattr_set+0x1750/0x1750 [ 42.580760][ T3487] ? __x64_compat_sys_ioctl+0x80/0x80 [ 42.586194][ T3487] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.591222][ T3487] ? slab_free_freelist_hook+0xdd/0x160 [ 42.596763][ T3487] ? tomoyo_path_number_perm+0x648/0x810 [ 42.602745][ T3487] ? kfree+0xf1/0x270 [ 42.606703][ T3487] ? tomoyo_path_number_perm+0x6ab/0x810 [ 42.612309][ T3487] ? tomoyo_check_path_acl+0x1c0/0x1c0 [ 42.617747][ T3487] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 42.623706][ T3487] ? print_irqtrace_events+0x210/0x210 [ 42.629136][ T3487] ? vtime_user_exit+0x2d1/0x400 [ 42.634046][ T3487] ? bpf_lsm_file_ioctl+0x5/0x10 [ 42.638960][ T3487] ? security_file_ioctl+0x7d/0xa0 [ 42.644046][ T3487] ? ext4_fileattr_set+0x1750/0x1750 [ 42.649307][ T3487] __se_sys_ioctl+0xf1/0x160 [ 42.653871][ T3487] do_syscall_64+0x3d/0xb0 [ 42.658281][ T3487] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 42.664151][ T3487] RIP: 0033:0x7f195b3b8329 [ 42.668541][ T3487] Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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 b8 ff ff ff f7 d8 64 89 01 48 [ 42.688152][ T3487] RSP: 002b:00007ffffd266f78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 42.696540][ T3487] RAX: ffffffffffffffda RBX: 00007ffffd267148 RCX: 00007f195b3b8329 [ 42.704575][ T3487] RDX: 00000000200005c0 RSI: 000000004004662b RDI: 0000000000000004 [ 42.712523][ T3487] RBP: 00007f195b42b610 R08: 00007ffffd267148 R09: 00007ffffd267148 [ 42.720492][ T3487] R10: 00007ffffd267148 R11: 0000000000000246 R12: 0