Warning: Permanently added '10.128.1.59' (ED25519) to the list of known hosts. executing program [ 41.467994][ T3498] [ 41.470331][ T3498] ====================================================== [ 41.477344][ T3498] WARNING: possible circular locking dependency detected [ 41.484357][ T3498] 5.15.156-syzkaller #0 Not tainted [ 41.489558][ T3498] ------------------------------------------------------ [ 41.496561][ T3498] syz-executor854/3498 is trying to acquire lock: [ 41.502954][ T3498] ffff8880122803f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_bmap+0x4b/0x410 [ 41.512537][ T3498] [ 41.512537][ T3498] but task is already holding lock: [ 41.519880][ T3498] ffff88814b2723f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x31c/0xc90 [ 41.530480][ T3498] [ 41.530480][ T3498] which lock already depends on the new lock. [ 41.530480][ T3498] [ 41.540868][ T3498] [ 41.540868][ T3498] the existing dependency chain (in reverse order) is: [ 41.549877][ T3498] [ 41.549877][ T3498] -> #4 (&journal->j_checkpoint_mutex){+.+.}-{3:3}: [ 41.558707][ T3498] lock_acquire+0x1db/0x4f0 [ 41.563725][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 41.569421][ T3498] mutex_lock_io_nested+0x45/0x60 [ 41.575219][ T3498] jbd2_journal_flush+0x290/0xc90 [ 41.580801][ T3498] ext4_ioctl+0x3249/0x5b80 [ 41.585822][ T3498] __se_sys_ioctl+0xf1/0x160 [ 41.590927][ T3498] do_syscall_64+0x3b/0xb0 [ 41.595840][ T3498] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 41.602234][ T3498] [ 41.602234][ T3498] -> #3 (&journal->j_barrier){+.+.}-{3:3}: [ 41.610210][ T3498] lock_acquire+0x1db/0x4f0 [ 41.615385][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 41.621077][ T3498] mutex_lock_nested+0x17/0x20 [ 41.626339][ T3498] jbd2_journal_lock_updates+0x2aa/0x370 [ 41.632466][ T3498] ext4_change_inode_journal_flag+0x1a8/0x6e0 [ 41.639233][ T3498] ext4_fileattr_set+0xdf4/0x1750 [ 41.644750][ T3498] vfs_fileattr_set+0x8f3/0xd30 [ 41.650091][ T3498] do_vfs_ioctl+0x1d85/0x2b70 [ 41.655265][ T3498] __se_sys_ioctl+0x81/0x160 [ 41.660359][ T3498] do_syscall_64+0x3b/0xb0 [ 41.665271][ T3498] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 41.671662][ T3498] [ 41.671662][ T3498] -> #2 (&sbi->s_writepages_rwsem){++++}-{0:0}: [ 41.680237][ T3498] lock_acquire+0x1db/0x4f0 [ 41.685237][ T3498] percpu_down_write+0x52/0x2d0 [ 41.690597][ T3498] ext4_change_inode_journal_flag+0x1a0/0x6e0 [ 41.697157][ T3498] ext4_fileattr_set+0xdf4/0x1750 [ 41.702674][ T3498] vfs_fileattr_set+0x8f3/0xd30 [ 41.708019][ T3498] do_vfs_ioctl+0x1d85/0x2b70 [ 41.713220][ T3498] __se_sys_ioctl+0x81/0x160 [ 41.718306][ T3498] do_syscall_64+0x3b/0xb0 [ 41.723216][ T3498] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 41.729603][ T3498] [ 41.729603][ T3498] -> #1 (mapping.invalidate_lock){++++}-{3:3}: [ 41.737908][ T3498] lock_acquire+0x1db/0x4f0 [ 41.742904][ T3498] down_write+0x38/0x60 [ 41.747549][ T3498] ext4_setattr+0xd6c/0x1990 [ 41.752629][ T3498] notify_change+0xc6d/0xf50 [ 41.757714][ T3498] do_truncate+0x21c/0x300 [ 41.762622][ T3498] do_sys_ftruncate+0x2eb/0x390 [ 41.767966][ T3498] do_syscall_64+0x3b/0xb0 [ 41.772875][ T3498] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 41.779274][ T3498] [ 41.779274][ T3498] -> #0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}: [ 41.787855][ T3498] validate_chain+0x1649/0x5930 [ 41.793393][ T3498] __lock_acquire+0x1295/0x1ff0 [ 41.798754][ T3498] lock_acquire+0x1db/0x4f0 [ 41.803766][ T3498] down_read+0x45/0x2e0 [ 41.808425][ T3498] ext4_bmap+0x4b/0x410 [ 41.813077][ T3498] bmap+0xa1/0xd0 [ 41.817203][ T3498] jbd2_journal_flush+0x7a2/0xc90 [ 41.822722][ T3498] ext4_ioctl+0x3249/0x5b80 [ 41.827720][ T3498] __se_sys_ioctl+0xf1/0x160 [ 41.832822][ T3498] do_syscall_64+0x3b/0xb0 [ 41.837731][ T3498] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 41.844133][ T3498] [ 41.844133][ T3498] other info that might help us debug this: [ 41.844133][ T3498] [ 41.854338][ T3498] Chain exists of: [ 41.854338][ T3498] &sb->s_type->i_mutex_key#9 --> &journal->j_barrier --> &journal->j_checkpoint_mutex [ 41.854338][ T3498] [ 41.869780][ T3498] Possible unsafe locking scenario: [ 41.869780][ T3498] [ 41.877209][ T3498] CPU0 CPU1 [ 41.882828][ T3498] ---- ---- [ 41.888184][ T3498] lock(&journal->j_checkpoint_mutex); [ 41.893705][ T3498] lock(&journal->j_barrier); [ 41.900961][ T3498] lock(&journal->j_checkpoint_mutex); [ 41.909124][ T3498] lock(&sb->s_type->i_mutex_key#9); [ 41.914483][ T3498] [ 41.914483][ T3498] *** DEADLOCK *** [ 41.914483][ T3498] [ 41.922597][ T3498] 2 locks held by syz-executor854/3498: [ 41.928109][ T3498] #0: ffff88814b272170 (&journal->j_barrier){+.+.}-{3:3}, at: jbd2_journal_lock_updates+0x2aa/0x370 [ 41.938965][ T3498] #1: ffff88814b2723f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x31c/0xc90 [ 41.950410][ T3498] [ 41.950410][ T3498] stack backtrace: [ 41.956286][ T3498] CPU: 1 PID: 3498 Comm: syz-executor854 Not tainted 5.15.156-syzkaller #0 [ 41.964841][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 41.975590][ T3498] Call Trace: [ 41.978885][ T3498] [ 41.981791][ T3498] dump_stack_lvl+0x1e3/0x2d0 [ 41.986447][ T3498] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 41.992057][ T3498] ? print_circular_bug+0x12b/0x1a0 [ 41.997228][ T3498] check_noncircular+0x2f8/0x3b0 [ 42.002137][ T3498] ? add_chain_block+0x850/0x850 [ 42.007047][ T3498] ? lockdep_lock+0x11f/0x2a0 [ 42.011698][ T3498] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.016867][ T3498] validate_chain+0x1649/0x5930 [ 42.021693][ T3498] ? finish_lock_switch+0x8f/0x100 [ 42.026784][ T3498] ? reacquire_held_locks+0x660/0x660 [ 42.032132][ T3498] ? mark_lock+0x98/0x340 [ 42.036432][ T3498] ? reacquire_held_locks+0x660/0x660 [ 42.041779][ T3498] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 42.047918][ T3498] ? release_firmware_map_entry+0x190/0x190 [ 42.053874][ T3498] ? do_raw_spin_unlock+0x137/0x8b0 [ 42.059045][ T3498] ? mark_lock+0x98/0x340 [ 42.063345][ T3498] ? schedule+0x132/0x1f0 [ 42.067646][ T3498] __lock_acquire+0x1295/0x1ff0 [ 42.072491][ T3498] lock_acquire+0x1db/0x4f0 [ 42.076971][ T3498] ? ext4_bmap+0x4b/0x410 [ 42.081363][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 42.086799][ T3498] ? __might_sleep+0xc0/0xc0 [ 42.091366][ T3498] ? ext4_journalled_write_end+0xee0/0xee0 [ 42.097147][ T3498] down_read+0x45/0x2e0 [ 42.101280][ T3498] ? ext4_bmap+0x4b/0x410 [ 42.105581][ T3498] ? ext4_journalled_write_end+0xee0/0xee0 [ 42.111360][ T3498] ext4_bmap+0x4b/0x410 [ 42.115598][ T3498] ? ext4_journalled_write_end+0xee0/0xee0 [ 42.121465][ T3498] bmap+0xa1/0xd0 [ 42.125074][ T3498] jbd2_journal_flush+0x7a2/0xc90 [ 42.130076][ T3498] ? __bpf_trace_jbd2_shrink_checkpoint_list+0x50/0x50 [ 42.136898][ T3498] ? bpf_lsm_capable+0x5/0x10 [ 42.141549][ T3498] ? security_capable+0x86/0xb0 [ 42.146472][ T3498] ext4_ioctl+0x3249/0x5b80 [ 42.150950][ T3498] ? do_vfs_ioctl+0x1b66/0x2b70 [ 42.155774][ T3498] ? ext4_fileattr_set+0x1750/0x1750 [ 42.161059][ T3498] ? __x64_compat_sys_ioctl+0x80/0x80 [ 42.166415][ T3498] ? __lock_acquire+0x1ff0/0x1ff0 [ 42.171413][ T3498] ? slab_free_freelist_hook+0xdd/0x160 [ 42.177108][ T3498] ? tomoyo_path_number_perm+0x648/0x810 [ 42.182717][ T3498] ? kfree+0xf1/0x270 [ 42.186673][ T3498] ? tomoyo_path_number_perm+0x6ab/0x810 [ 42.192281][ T3498] ? tomoyo_check_path_acl+0x1c0/0x1c0 [ 42.197728][ T3498] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 42.203680][ T3498] ? print_irqtrace_events+0x210/0x210 [ 42.209114][ T3498] ? vtime_user_exit+0x2d1/0x400 [ 42.214028][ T3498] ? bpf_lsm_file_ioctl+0x5/0x10 [ 42.218938][ T3498] ? security_file_ioctl+0x7d/0xa0 [ 42.224032][ T3498] ? ext4_fileattr_set+0x1750/0x1750 [ 42.229293][ T3498] __se_sys_ioctl+0xf1/0x160 [ 42.233862][ T3498] do_syscall_64+0x3b/0xb0 [ 42.238253][ T3498] ? clear_bhb_loop+0x15/0x70 [ 42.242902][ T3498] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 42.248769][ T3498] RIP: 0033:0x7f2227d21369 [ 42.253168][ T3498] 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.272743][ T3498] RSP: 002b:00007ffe6a728b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 42.281129][ T3498] RAX: ffffffffffffffda RBX: 0073746e6576652e RCX: 00007f2227d21369 [ 42.289091][ T3498] RDX: 0000000020000000 RSI: 000000004004662b RDI: 0000000000000005 [ 42.297039][ T3498] RBP: 652e79726f6d656d R08: 00000000000ac5f8 R09: 00000000000ac5f8 [ 42.304982][ T3498] R10: 00000000000ac5f8 R11: 0000000000000246 R12: 0000000000000001 [ 42.312931][ T3498] R13: 00007ffe6a728d58 R14: 0000000000000001 R15: 0000000000000001 [ 42.320