Warning: Permanently added '10.128.10.1' (ED25519) to the list of known hosts. executing program syzkaller login: [ 50.632099][ T3540] [ 50.634450][ T3540] ====================================================== [ 50.641442][ T3540] WARNING: possible circular locking dependency detected [ 50.648434][ T3540] 6.1.60-syzkaller #0 Not tainted [ 50.653428][ T3540] ------------------------------------------------------ [ 50.660417][ T3540] syz-executor427/3540 is trying to acquire lock: [ 50.666803][ T3540] ffff888140fa0400 (&sb->s_type->i_mutex_key#8){++++}-{3:3}, at: ext4_bmap+0x4b/0x410 [ 50.676356][ T3540] [ 50.676356][ T3540] but task is already holding lock: [ 50.683706][ T3540] ffff8880292aa3f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x323/0xc40 [ 50.694302][ T3540] [ 50.694302][ T3540] which lock already depends on the new lock. [ 50.694302][ T3540] [ 50.704683][ T3540] [ 50.704683][ T3540] the existing dependency chain (in reverse order) is: [ 50.713671][ T3540] [ 50.713671][ T3540] -> #3 (&journal->j_checkpoint_mutex){+.+.}-{3:3}: [ 50.722427][ T3540] lock_acquire+0x1f8/0x5a0 [ 50.727440][ T3540] mutex_lock_io_nested+0x134/0xab0 [ 50.733168][ T3540] jbd2_journal_flush+0x29b/0xc40 [ 50.738709][ T3540] ext4_ioctl+0x3986/0x5f60 [ 50.743720][ T3540] __se_sys_ioctl+0xf1/0x160 [ 50.748820][ T3540] do_syscall_64+0x3d/0xb0 [ 50.753746][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.760144][ T3540] [ 50.760144][ T3540] -> #2 (&journal->j_barrier){+.+.}-{3:3}: [ 50.768121][ T3540] lock_acquire+0x1f8/0x5a0 [ 50.773135][ T3540] __mutex_lock+0x132/0xd80 [ 50.778147][ T3540] jbd2_journal_lock_updates+0x2b0/0x380 [ 50.784286][ T3540] ext4_change_inode_journal_flag+0x1a8/0x6e0 [ 50.790861][ T3540] ext4_fileattr_set+0xe04/0x1770 [ 50.796408][ T3540] vfs_fileattr_set+0x8f3/0xd30 [ 50.801769][ T3540] do_vfs_ioctl+0x1cd1/0x2a90 [ 50.806957][ T3540] __se_sys_ioctl+0x81/0x160 [ 50.812061][ T3540] do_syscall_64+0x3d/0xb0 [ 50.816985][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.823389][ T3540] [ 50.823389][ T3540] -> #1 (&sbi->s_writepages_rwsem){++++}-{0:0}: [ 50.831798][ T3540] lock_acquire+0x1f8/0x5a0 [ 50.836813][ T3540] percpu_down_write+0x50/0x2f0 [ 50.842172][ T3540] ext4_ind_migrate+0x254/0x760 [ 50.847532][ T3540] ext4_fileattr_set+0xe9b/0x1770 [ 50.853062][ T3540] vfs_fileattr_set+0x8f3/0xd30 [ 50.858423][ T3540] do_vfs_ioctl+0x1cd1/0x2a90 [ 50.863609][ T3540] __se_sys_ioctl+0x81/0x160 [ 50.868707][ T3540] do_syscall_64+0x3d/0xb0 [ 50.873630][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.880031][ T3540] [ 50.880031][ T3540] -> #0 (&sb->s_type->i_mutex_key#8){++++}-{3:3}: [ 50.888618][ T3540] validate_chain+0x1667/0x58e0 [ 50.893982][ T3540] __lock_acquire+0x125b/0x1f80 [ 50.899340][ T3540] lock_acquire+0x1f8/0x5a0 [ 50.904355][ T3540] down_read+0xad/0xa30 [ 50.909028][ T3540] ext4_bmap+0x4b/0x410 [ 50.913689][ T3540] bmap+0xa1/0xd0 [ 50.917838][ T3540] jbd2_journal_flush+0x5b5/0xc40 [ 50.923375][ T3540] ext4_ioctl+0x3986/0x5f60 [ 50.928383][ T3540] __se_sys_ioctl+0xf1/0x160 [ 50.933482][ T3540] do_syscall_64+0x3d/0xb0 [ 50.938407][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 50.944804][ T3540] [ 50.944804][ T3540] other info that might help us debug this: [ 50.944804][ T3540] [ 50.955013][ T3540] Chain exists of: [ 50.955013][ T3540] &sb->s_type->i_mutex_key#8 --> &journal->j_barrier --> &journal->j_checkpoint_mutex [ 50.955013][ T3540] [ 50.970469][ T3540] Possible unsafe locking scenario: [ 50.970469][ T3540] [ 50.977897][ T3540] CPU0 CPU1 [ 50.983244][ T3540] ---- ---- [ 50.988591][ T3540] lock(&journal->j_checkpoint_mutex); [ 50.994124][ T3540] lock(&journal->j_barrier); [ 51.001391][ T3540] lock(&journal->j_checkpoint_mutex); [ 51.009437][ T3540] lock(&sb->s_type->i_mutex_key#8); [ 51.014800][ T3540] [ 51.014800][ T3540] *** DEADLOCK *** [ 51.014800][ T3540] [ 51.022926][ T3540] 2 locks held by syz-executor427/3540: [ 51.028449][ T3540] #0: ffff8880292aa170 (&journal->j_barrier){+.+.}-{3:3}, at: jbd2_journal_lock_updates+0x2b0/0x380 [ 51.039308][ T3540] #1: ffff8880292aa3f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x323/0xc40 [ 51.050351][ T3540] [ 51.050351][ T3540] stack backtrace: [ 51.056224][ T3540] CPU: 1 PID: 3540 Comm: syz-executor427 Not tainted 6.1.60-syzkaller #0 [ 51.064621][ T3540] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 51.074660][ T3540] Call Trace: [ 51.077932][ T3540] [ 51.080851][ T3540] dump_stack_lvl+0x1e3/0x2cb [ 51.085519][ T3540] ? nf_tcp_handle_invalid+0x642/0x642 [ 51.090968][ T3540] ? print_circular_bug+0x12b/0x1a0 [ 51.096159][ T3540] check_noncircular+0x2fa/0x3b0 [ 51.101088][ T3540] ? add_chain_block+0x850/0x850 [ 51.106016][ T3540] ? lockdep_lock+0x11f/0x2a0 [ 51.110687][ T3540] ? _find_first_zero_bit+0xd0/0x100 [ 51.115960][ T3540] validate_chain+0x1667/0x58e0 [ 51.120806][ T3540] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 51.126777][ T3540] ? reacquire_held_locks+0x660/0x660 [ 51.132141][ T3540] ? finish_task_switch+0x1ca/0x810 [ 51.137329][ T3540] ? validate_chain+0x115/0x58e0 [ 51.142262][ T3540] ? finish_task_switch+0x299/0x810 [ 51.147457][ T3540] ? mark_lock+0x9a/0x340 [ 51.151791][ T3540] __lock_acquire+0x125b/0x1f80 [ 51.156646][ T3540] lock_acquire+0x1f8/0x5a0 [ 51.161142][ T3540] ? ext4_bmap+0x4b/0x410 [ 51.165464][ T3540] ? read_lock_is_recursive+0x10/0x10 [ 51.170826][ T3540] ? __might_sleep+0xb0/0xb0 [ 51.175402][ T3540] ? __lock_acquire+0x125b/0x1f80 [ 51.180424][ T3540] down_read+0xad/0xa30 [ 51.184572][ T3540] ? ext4_bmap+0x4b/0x410 [ 51.188891][ T3540] ? __down_common+0x8b0/0x8b0 [ 51.193652][ T3540] ? jbd2_journal_flush+0x374/0xc40 [ 51.198843][ T3540] ? __lock_acquire+0x1f80/0x1f80 [ 51.203856][ T3540] ? jbd2_cleanup_journal_tail+0x1a7/0x2c0 [ 51.209659][ T3540] ? ext4_journalled_write_end+0xec0/0xec0 [ 51.215452][ T3540] ext4_bmap+0x4b/0x410 [ 51.219595][ T3540] ? ext4_journalled_write_end+0xec0/0xec0 [ 51.225389][ T3540] bmap+0xa1/0xd0 [ 51.229012][ T3540] jbd2_journal_flush+0x5b5/0xc40 [ 51.234028][ T3540] ? jbd2_journal_lock_updates+0x2b0/0x380 [ 51.239820][ T3540] ? stack_trace_save+0x113/0x1c0 [ 51.244834][ T3540] ? __bpf_trace_jbd2_shrink_checkpoint_list+0x50/0x50 [ 51.251672][ T3540] ? bpf_lsm_capable+0x5/0x10 [ 51.256387][ T3540] ? security_capable+0x86/0xb0 [ 51.261231][ T3540] ext4_ioctl+0x3986/0x5f60 [ 51.265721][ T3540] ? kasan_set_track+0x4b/0x70 [ 51.270474][ T3540] ? security_file_ioctl+0x6d/0xa0 [ 51.275575][ T3540] ? __se_sys_ioctl+0x47/0x160 [ 51.280344][ T3540] ? do_syscall_64+0x3d/0xb0 [ 51.284943][ T3540] ? ext4_fileattr_set+0x1770/0x1770 [ 51.290227][ T3540] ? do_vfs_ioctl+0x1ab2/0x2a90 [ 51.295072][ T3540] ? __x64_compat_sys_ioctl+0x80/0x80 [ 51.300434][ T3540] ? __lock_acquire+0x1f80/0x1f80 [ 51.305447][ T3540] ? lockdep_hardirqs_on+0x94/0x130 [ 51.310637][ T3540] ? __kmem_cache_free+0x25c/0x3c0 [ 51.315735][ T3540] ? tomoyo_path_number_perm+0x61b/0x7f0 [ 51.321362][ T3540] ? tomoyo_path_number_perm+0x68a/0x7f0 [ 51.326985][ T3540] ? tomoyo_path_number_perm+0x1f2/0x7f0 [ 51.332611][ T3540] ? tomoyo_check_path_acl+0x1c0/0x1c0 [ 51.338058][ T3540] ? lockdep_hardirqs_on+0x94/0x130 [ 51.343257][ T3540] ? kmem_cache_free+0x292/0x510 [ 51.348188][ T3540] ? do_sys_openat2+0x42b/0x500 [ 51.353033][ T3540] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 51.359004][ T3540] ? print_irqtrace_events+0x210/0x210 [ 51.364460][ T3540] ? print_irqtrace_events+0x210/0x210 [ 51.369914][ T3540] ? bpf_lsm_file_ioctl+0x5/0x10 [ 51.374841][ T3540] ? security_file_ioctl+0x7d/0xa0 [ 51.379944][ T3540] ? ext4_fileattr_set+0x1770/0x1770 [ 51.385219][ T3540] __se_sys_ioctl+0xf1/0x160 [ 51.389809][ T3540] do_syscall_64+0x3d/0xb0 [ 51.394227][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.400110][ T3540] RIP: 0033:0x7fe7974b7329 [ 51.404520][ T3540] 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 [ 51.424119][ T3540] RSP: 002b:00007ffe4e8b51e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 51.432523][ T3540] RAX: fffffffff