Warning: Permanently added '10.128.0.244' (ECDSA) to the list of known hosts. executing program [ 56.958632][ T3546] loop0: detected capacity change from 0 to 4096 [ 56.969266][ T3546] ntfs3: loop0: Different NTFS' sector size (4096) and media sector size (512) [ 57.007227][ T3546] [ 57.009623][ T3546] ============================================ [ 57.015781][ T3546] WARNING: possible recursive locking detected [ 57.021932][ T3546] 6.1.31-syzkaller #0 Not tainted [ 57.026943][ T3546] -------------------------------------------- [ 57.033080][ T3546] syz-executor407/3546 is trying to acquire lock: [ 57.039482][ T3546] ffff8880708f9e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2f2/0x560 [ 57.047973][ T3546] [ 57.047973][ T3546] but task is already holding lock: [ 57.055336][ T3546] ffff8880708fe840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf5/0x1f0 [ 57.064056][ T3546] [ 57.064056][ T3546] other info that might help us debug this: [ 57.072111][ T3546] Possible unsafe locking scenario: [ 57.072111][ T3546] [ 57.079554][ T3546] CPU0 [ 57.082824][ T3546] ---- [ 57.086093][ T3546] lock(&ni->ni_lock/4); [ 57.090420][ T3546] lock(&ni->ni_lock/4); [ 57.094746][ T3546] [ 57.094746][ T3546] *** DEADLOCK *** [ 57.094746][ T3546] [ 57.102879][ T3546] May be due to missing lock nesting notation [ 57.102879][ T3546] [ 57.111183][ T3546] 2 locks held by syz-executor407/3546: [ 57.116714][ T3546] #0: ffff8880708feae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: lookup_slow+0x45/0x70 [ 57.126637][ T3546] #1: ffff8880708fe840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf5/0x1f0 [ 57.135775][ T3546] [ 57.135775][ T3546] stack backtrace: [ 57.141658][ T3546] CPU: 0 PID: 3546 Comm: syz-executor407 Not tainted 6.1.31-syzkaller #0 [ 57.150066][ T3546] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 57.160116][ T3546] Call Trace: [ 57.163389][ T3546] [ 57.166318][ T3546] dump_stack_lvl+0x1e3/0x2cb [ 57.171008][ T3546] ? nf_tcp_handle_invalid+0x642/0x642 [ 57.176467][ T3546] ? panic+0x75d/0x75d [ 57.180550][ T3546] validate_chain+0x4726/0x58e0 [ 57.185403][ T3546] ? check_path+0x21/0x40 [ 57.189749][ T3546] ? lockdep_unlock+0x165/0x300 [ 57.194606][ T3546] ? lockdep_lock+0x2a0/0x2a0 [ 57.199289][ T3546] ? __lock_acquire+0x125b/0x1f80 [ 57.204310][ T3546] ? reacquire_held_locks+0x660/0x660 [ 57.209678][ T3546] ? validate_chain+0x13d1/0x58e0 [ 57.214702][ T3546] ? look_up_lock_class+0x77/0x140 [ 57.219821][ T3546] ? register_lock_class+0x100/0x990 [ 57.225108][ T3546] ? is_dynamic_key+0x1f0/0x1f0 [ 57.229999][ T3546] ? mark_lock+0x9a/0x340 [ 57.234328][ T3546] __lock_acquire+0x125b/0x1f80 [ 57.239187][ T3546] lock_acquire+0x1f8/0x5a0 [ 57.243699][ T3546] ? mi_read+0x2f2/0x560 [ 57.247942][ T3546] ? read_lock_is_recursive+0x10/0x10 [ 57.253314][ T3546] ? __might_sleep+0xb0/0xb0 [ 57.257902][ T3546] ? ntfs_read_run_nb+0x356/0xe60 [ 57.262932][ T3546] __mutex_lock_common+0x1d4/0x2520 [ 57.268134][ T3546] ? mi_read+0x2f2/0x560 [ 57.272377][ T3546] ? mi_read+0x2f2/0x560 [ 57.276614][ T3546] ? mi_read+0x1c7/0x560 [ 57.280854][ T3546] ? __might_sleep+0xb0/0xb0 [ 57.285452][ T3546] ? mutex_lock_io_nested+0x60/0x60 [ 57.290658][ T3546] ? up_read+0x20/0x20 [ 57.294734][ T3546] mutex_lock_nested+0x17/0x20 [ 57.299499][ T3546] mi_read+0x2f2/0x560 [ 57.303568][ T3546] ntfs_iget5+0x453/0x3750 [ 57.307999][ T3546] ? indx_read+0x6fc/0x910 [ 57.312414][ T3546] ? indx_find+0x899/0xb00 [ 57.316827][ T3546] ? check_index_root+0x680/0x680 [ 57.321863][ T3546] dir_search_u+0x2f6/0x390 [ 57.326369][ T3546] ? ntfs_nls_to_utf16+0xc50/0xc50 [ 57.331477][ T3546] ? ntfs_utf16_to_nls+0x730/0x730 [ 57.336583][ T3546] ? rcu_is_watching+0x11/0xb0 [ 57.341349][ T3546] ? kmem_cache_alloc+0x13a/0x2d0 [ 57.346373][ T3546] ? ntfs_lookup+0x4d/0x1f0 [ 57.350873][ T3546] ntfs_lookup+0x102/0x1f0 [ 57.355285][ T3546] __lookup_slow+0x27e/0x3d0 [ 57.359879][ T3546] ? lookup_one_len+0x2d0/0x2d0 [ 57.364731][ T3546] ? try_to_unlazy+0x35c/0x5b0 [ 57.369496][ T3546] ? down_read+0x1b1/0x2e0 [ 57.373915][ T3546] lookup_slow+0x53/0x70 [ 57.378247][ T3546] walk_component+0x2d0/0x400 [ 57.382925][ T3546] path_lookupat+0x16f/0x450 [ 57.387514][ T3546] filename_lookup+0x251/0x600 [ 57.392280][ T3546] ? hashlen_string+0x110/0x110 [ 57.397144][ T3546] ? strncpy_from_user+0x1f9/0x360 [ 57.402251][ T3546] ? getname_flags+0x1ec/0x4e0 [ 57.407014][ T3546] user_path_at_empty+0x40/0x180 [ 57.411954][ T3546] path_setxattr+0xae/0x2a0 [ 57.416457][ T3546] ? simple_xattr_list_add+0xf0/0xf0 [ 57.421739][ T3546] ? syscall_enter_from_user_mode+0x2e/0x220 [ 57.427718][ T3546] __x64_sys_setxattr+0xb7/0xd0 [ 57.432565][ T3546] do_syscall_64+0x3d/0xb0 [ 57.437069][ T3546] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 57.442966][ T3546] RIP: 0033:0x7f4d119cd7b9 [ 57.447378][ T3546] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48 [ 57.466981][ T3546] RSP: 002b:00007ffcb1ca93a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 57.475392][ T3546] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f4d119cd7b9 [ 57.483459][ T3546] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 [ 57.491776][ T3546] RBP: 00007f4d1198d050 R08: 0000000000000000 R09: 0000000000000000 [ 57.499742][ T3546] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4d1198d0e0 [ 57.507709][ T3546]