Warning: Permanently added '10.128.1.50' (ECDSA) to the list of known hosts. executing program [ 44.708125][ T3499] loop0: detected capacity change from 0 to 4096 [ 44.717968][ T3499] ntfs3: loop0: Different NTFS' sector size (4096) and media sector size (512) [ 44.753579][ T3499] [ 44.755942][ T3499] ============================================ [ 44.762083][ T3499] WARNING: possible recursive locking detected [ 44.768232][ T3499] 5.15.113-syzkaller #0 Not tainted [ 44.773420][ T3499] -------------------------------------------- [ 44.779597][ T3499] syz-executor106/3499 is trying to acquire lock: [ 44.785988][ T3499] ffff888075e61e80 (&ni->ni_lock/4){+.+.}-{3:3}, at: mi_read+0x2f2/0x560 [ 44.794433][ T3499] [ 44.794433][ T3499] but task is already holding lock: [ 44.801784][ T3499] ffff888075e66840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf5/0x1f0 [ 44.810748][ T3499] [ 44.810748][ T3499] other info that might help us debug this: [ 44.818968][ T3499] Possible unsafe locking scenario: [ 44.818968][ T3499] [ 44.826500][ T3499] CPU0 [ 44.829767][ T3499] ---- [ 44.833021][ T3499] lock(&ni->ni_lock/4); [ 44.837337][ T3499] lock(&ni->ni_lock/4); [ 44.841645][ T3499] [ 44.841645][ T3499] *** DEADLOCK *** [ 44.841645][ T3499] [ 44.849866][ T3499] May be due to missing lock nesting notation [ 44.849866][ T3499] [ 44.858172][ T3499] 2 locks held by syz-executor106/3499: [ 44.863707][ T3499] #0: ffff888075e66ae0 (&type->i_mutex_dir_key#6){++++}-{3:3}, at: lookup_slow+0x45/0x70 [ 44.873610][ T3499] #1: ffff888075e66840 (&ni->ni_lock/4){+.+.}-{3:3}, at: ntfs_lookup+0xf5/0x1f0 [ 44.882727][ T3499] [ 44.882727][ T3499] stack backtrace: [ 44.888690][ T3499] CPU: 1 PID: 3499 Comm: syz-executor106 Not tainted 5.15.113-syzkaller #0 [ 44.897372][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 44.908367][ T3499] Call Trace: [ 44.911635][ T3499] [ 44.914555][ T3499] dump_stack_lvl+0x1e3/0x2cb [ 44.919219][ T3499] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 44.925079][ T3499] ? panic+0x84d/0x84d [ 44.929147][ T3499] validate_chain+0x46cf/0x58b0 [ 44.934009][ T3499] ? check_path+0x21/0x40 [ 44.938319][ T3499] ? lockdep_unlock+0x166/0x300 [ 44.943523][ T3499] ? lockdep_lock+0x2a0/0x2a0 [ 44.948211][ T3499] ? reacquire_held_locks+0x660/0x660 [ 44.953779][ T3499] ? validate_chain+0x13b7/0x58b0 [ 44.958869][ T3499] ? look_up_lock_class+0x77/0x120 [ 44.964047][ T3499] ? register_lock_class+0x100/0x9a0 [ 44.969489][ T3499] ? is_dynamic_key+0x1f0/0x1f0 [ 44.974493][ T3499] ? mark_lock+0x98/0x340 [ 44.979523][ T3499] __lock_acquire+0x1295/0x1ff0 [ 44.984444][ T3499] lock_acquire+0x1db/0x4f0 [ 44.988925][ T3499] ? mi_read+0x2f2/0x560 [ 44.993232][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 44.998582][ T3499] ? __might_sleep+0xc0/0xc0 [ 45.003147][ T3499] ? ntfs_read_run_nb+0x356/0xe60 [ 45.008155][ T3499] __mutex_lock_common+0x1da/0x25a0 [ 45.013414][ T3499] ? mi_read+0x2f2/0x560 [ 45.017814][ T3499] ? mi_read+0x2f2/0x560 [ 45.022065][ T3499] ? mi_read+0x1c7/0x560 [ 45.026298][ T3499] ? mutex_lock_io_nested+0x60/0x60 [ 45.031482][ T3499] ? up_read+0x20/0x20 [ 45.035535][ T3499] mutex_lock_nested+0x17/0x20 [ 45.040291][ T3499] mi_read+0x2f2/0x560 [ 45.044349][ T3499] ntfs_iget5+0x45b/0x37f0 [ 45.048841][ T3499] ? indx_find+0x8a0/0xb60 [ 45.053865][ T3499] ? check_index_root+0x680/0x680 [ 45.058870][ T3499] ? dir_search_u+0x166/0x390 [ 45.063544][ T3499] dir_search_u+0x2f6/0x390 [ 45.068027][ T3499] ? ntfs_nls_to_utf16+0xc50/0xc50 [ 45.073202][ T3499] ? ntfs_utf16_to_nls+0x730/0x730 [ 45.078300][ T3499] ? rcu_is_watching+0x11/0xa0 [ 45.083163][ T3499] ? kmem_cache_alloc+0x128/0x280 [ 45.088280][ T3499] ntfs_lookup+0x102/0x1f0 [ 45.092702][ T3499] __lookup_slow+0x275/0x3d0 [ 45.097890][ T3499] ? lookup_one_len+0x2d0/0x2d0 [ 45.102901][ T3499] ? down_read+0x1b3/0x2e0 [ 45.107387][ T3499] lookup_slow+0x53/0x70 [ 45.111609][ T3499] walk_component+0x48c/0x610 [ 45.116266][ T3499] ? nd_alloc_stack+0xf0/0xf0 [ 45.121145][ T3499] ? handle_lookup_down+0x130/0x130 [ 45.126848][ T3499] path_lookupat+0x16f/0x450 [ 45.131454][ T3499] filename_lookup+0x230/0x5c0 [ 45.136311][ T3499] ? hashlen_string+0x110/0x110 [ 45.141260][ T3499] ? getname_flags+0x1ec/0x4e0 [ 45.146286][ T3499] user_path_at_empty+0x40/0x180 [ 45.151211][ T3499] path_setxattr+0xae/0x2a0 [ 45.155738][ T3499] ? simple_xattr_list_add+0xf0/0xf0 [ 45.161393][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 45.167456][ T3499] __x64_sys_setxattr+0xb7/0xd0 [ 45.172371][ T3499] do_syscall_64+0x3d/0xb0 [ 45.176780][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 45.182672][ T3499] RIP: 0033:0x7fe038cda7b9 [ 45.187114][ T3499] 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 [ 45.207174][ T3499] RSP: 002b:00007ffd58c31dc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc [ 45.215810][ T3499] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fe038cda7b9 [ 45.223767][ T3499] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180 [ 45.231811][ T3499] RBP: 00007fe038c9a050 R08: 0000000000000000 R09: 0000000000000000 [ 45.239762][ T3499] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe038c9a0e0 [ 45.247717][ T3499] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.2