./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor598635275 <...> [ 28.685243][ T3213] dhcpcd-run-hook (3213) used greatest stack depth: 16624 bytes left forked to background, child pid 3209 [ 30.549249][ T3210] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.559200][ T3210] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.33' (ECDSA) to the list of known hosts. execve("./syz-executor598635275", ["./syz-executor598635275"], 0x7ffd83f9a510 /* 10 vars */) = 0 brk(NULL) = 0x55555604d000 brk(0x55555604dc40) = 0x55555604dc40 arch_prctl(ARCH_SET_FS, 0x55555604d300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor598635275", 4096) = 27 brk(0x55555606ec40) = 0x55555606ec40 brk(0x55555606f000) = 0x55555606f000 mprotect(0x7f2503108000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f24fac00000 write(3, "\xeb\x52\x90\x4e\x54\x46\x53\x20\x20\x20\x20\x00\x02\x02\x00\x00\x00\x00\x00\x00\x00\xf8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x80\x00\xff\x0f\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\xff\x03\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x04\x00\x00\x00\x8f\x24\x2d\x5f\x49\x6d\x50\x0b\x00\x00\x00\x00\x0e\x1f\xbe\x71\x7c\xac\x22\xc0\x74\x0b\x56\xb4\x0e\xbb\x07\x00"..., 2097152) = 2097152 munmap(0x7f24fac00000, 2097152) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 mount("/dev/loop0", "./file0", "ntfs3", 0, "discard,gid=0x0000000000000000,force,sparse,iocharset=cp855,gid=0x000000000000ee01,sparse,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, "./file0", O_RDONLY) = 4 ioctl(4, FS_IOC_FIEMAP, {fm_start=7, fm_length=9223372036854775807, fm_flags=FIEMAP_FLAG_SYNC, fm_extent_count=2} => {fm_flags=FIEMAP_FLAG_SYNC, fm_mapped_extents=1, ...}) = 1 creat("./bus", 000) = 5 ftruncate(5, 32768) = 0 open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_LARGEFILE|O_NOFOLLOW|O_NOATIME|O_CLOEXEC|FASYNC, 000) = 6 syzkaller login: [ 51.500023][ T3631] loop0: detected capacity change from 0 to 4096 [ 51.540690][ T3631] [ 51.543049][ T3631] ====================================================== [ 51.550054][ T3631] WARNING: possible circular locking dependency detected [ 51.557061][ T3631] 6.1.0-rc7-syzkaller-00200-gc2bf05db6c78 #0 Not tainted [ 51.564069][ T3631] ------------------------------------------------------ [ 51.571061][ T3631] syz-executor598/3631 is trying to acquire lock: [ 51.577446][ T3631] ffff888072430860 (&ni->ni_lock/4){+.+.}-{3:3}, at: attr_data_get_block+0x301/0x2370 [ 51.587000][ T3631] [ 51.587000][ T3631] but task is already holding lock: [ 51.594342][ T3631] ffff888022a38898 (&mm->mmap_lock#2){++++}-{3:3}, at: vm_mmap_pgoff+0x14d/0x2b0 [ 51.603469][ T3631] [ 51.603469][ T3631] which lock already depends on the new lock. [ 51.603469][ T3631] [ 51.613853][ T3631] [ 51.613853][ T3631] the existing dependency chain (in reverse order) is: [ 51.622845][ T3631] [ 51.622845][ T3631] -> #1 (&mm->mmap_lock#2){++++}-{3:3}: [ 51.630562][ T3631] lock_acquire+0x182/0x3c0 [ 51.635576][ T3631] __might_fault+0xb2/0x110 [ 51.640586][ T3631] _copy_to_user+0x26/0x130 [ 51.645603][ T3631] fiemap_fill_next_extent+0x22e/0x410 [ 51.651571][ T3631] ni_fiemap+0xf57/0x1130 [ 51.656405][ T3631] ntfs_fiemap+0x134/0x180 [ 51.661326][ T3631] do_vfs_ioctl+0x187f/0x29a0 [ 51.666511][ T3631] __se_sys_ioctl+0x83/0x170 [ 51.671781][ T3631] do_syscall_64+0x3d/0xb0 [ 51.676703][ T3631] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.683104][ T3631] [ 51.683104][ T3631] -> #0 (&ni->ni_lock/4){+.+.}-{3:3}: [ 51.690649][ T3631] validate_chain+0x1898/0x6ae0 [ 51.696008][ T3631] __lock_acquire+0x1292/0x1f60 [ 51.701363][ T3631] lock_acquire+0x182/0x3c0 [ 51.706373][ T3631] __mutex_lock_common+0x1bd/0x26e0 [ 51.712080][ T3631] mutex_lock_nested+0x17/0x20 [ 51.717372][ T3631] attr_data_get_block+0x301/0x2370 [ 51.723082][ T3631] ntfs_file_mmap+0x48c/0x730 [ 51.728269][ T3631] mmap_region+0xfe6/0x1e20 [ 51.733284][ T3631] do_mmap+0x8d9/0xf30 [ 51.737880][ T3631] vm_mmap_pgoff+0x19e/0x2b0 [ 51.742996][ T3631] ksys_mmap_pgoff+0x48c/0x6d0 [ 51.748284][ T3631] do_syscall_64+0x3d/0xb0 [ 51.753214][ T3631] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.759621][ T3631] [ 51.759621][ T3631] other info that might help us debug this: [ 51.759621][ T3631] [ 51.769837][ T3631] Possible unsafe locking scenario: [ 51.769837][ T3631] [ 51.777269][ T3631] CPU0 CPU1 [ 51.782616][ T3631] ---- ---- [ 51.787970][ T3631] lock(&mm->mmap_lock#2); [ 51.792469][ T3631] lock(&ni->ni_lock/4); [ 51.799307][ T3631] lock(&mm->mmap_lock#2); [ 51.806337][ T3631] lock(&ni->ni_lock/4); [ 51.810665][ T3631] [ 51.810665][ T3631] *** DEADLOCK *** [ 51.810665][ T3631] [ 51.818795][ T3631] 1 lock held by syz-executor598/3631: [ 51.824238][ T3631] #0: ffff888022a38898 (&mm->mmap_lock#2){++++}-{3:3}, at: vm_mmap_pgoff+0x14d/0x2b0 [ 51.833806][ T3631] [ 51.833806][ T3631] stack backtrace: [ 51.839682][ T3631] CPU: 1 PID: 3631 Comm: syz-executor598 Not tainted 6.1.0-rc7-syzkaller-00200-gc2bf05db6c78 #0 [ 51.850078][ T3631] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 51.860117][ T3631] Call Trace: [ 51.863394][ T3631] [ 51.866313][ T3631] dump_stack_lvl+0x1b1/0x28e [ 51.870979][ T3631] ? nf_tcp_handle_invalid+0x62e/0x62e [ 51.876428][ T3631] ? print_circular_bug+0x13e/0x1c0 [ 51.881615][ T3631] check_noncircular+0x2cc/0x390 [ 51.886546][ T3631] ? add_chain_block+0x850/0x850 [ 51.891472][ T3631] ? lockdep_lock+0x102/0x290 [ 51.896136][ T3631] ? unwind_get_return_address+0x48/0x80 [ 51.901756][ T3631] ? arch_stack_walk+0x98/0xe0 [ 51.906510][ T3631] ? _find_first_zero_bit+0xe8/0x110 [ 51.911797][ T3631] validate_chain+0x1898/0x6ae0 [ 51.916642][ T3631] ? reacquire_held_locks+0x650/0x650 [ 51.921999][ T3631] ? lockdep_unlock+0x144/0x2e0 [ 51.926835][ T3631] ? lockdep_lock+0x290/0x290 [ 51.931495][ T3631] ? add_lock_to_list+0x1c7/0x2d0 [ 51.936508][ T3631] ? validate_chain+0x1478/0x6ae0 [ 51.941528][ T3631] ? reacquire_held_locks+0x650/0x650 [ 51.946891][ T3631] ? validate_chain+0x177/0x6ae0 [ 51.951816][ T3631] ? validate_chain+0x177/0x6ae0 [ 51.956742][ T3631] ? reacquire_held_locks+0x650/0x650 [ 51.962111][ T3631] ? check_noncircular+0x1aa/0x390 [ 51.967210][ T3631] ? lockdep_lock+0x102/0x290 [ 51.971876][ T3631] ? lockdep_unlock+0x144/0x2e0 [ 51.976715][ T3631] ? reacquire_held_locks+0x650/0x650 [ 51.982082][ T3631] ? validate_chain+0x177/0x6ae0 [ 51.987006][ T3631] ? reacquire_held_locks+0x650/0x650 [ 51.992365][ T3631] ? _find_first_zero_bit+0xe8/0x110 [ 51.997640][ T3631] ? validate_chain+0x1478/0x6ae0 [ 52.002658][ T3631] ? validate_chain+0x177/0x6ae0 [ 52.007586][ T3631] ? reacquire_held_locks+0x650/0x650 [ 52.012947][ T3631] ? validate_chain+0x177/0x6ae0 [ 52.017872][ T3631] ? reacquire_held_locks+0x650/0x650 [ 52.023234][ T3631] ? validate_chain+0x177/0x6ae0 [ 52.028162][ T3631] ? reacquire_held_locks+0x650/0x650 [ 52.033520][ T3631] ? validate_chain+0x177/0x6ae0 [ 52.038451][ T3631] ? validate_chain+0x177/0x6ae0 [ 52.043377][ T3631] ? validate_chain+0x177/0x6ae0 [ 52.048306][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.053320][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.058938][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.064910][ T3631] ? rcu_lock_release+0x5/0x20 [ 52.069665][ T3631] ? mas_wr_modify+0x8a2/0x6d60 [ 52.074507][ T3631] ? read_lock_is_recursive+0x10/0x10 [ 52.079865][ T3631] ? rcu_lock_release+0x5/0x20 [ 52.084620][ T3631] ? deref_stack_reg+0x17a/0x210 [ 52.089549][ T3631] ? preempt_count_add+0x8d/0x180 [ 52.094567][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.099577][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.105194][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.111164][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.116179][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.121800][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.126812][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.132431][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.138401][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.143422][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.149040][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.155008][ T3631] ? rcu_lock_release+0x5/0x20 [ 52.159765][ T3631] ? read_lock_is_recursive+0x10/0x10 [ 52.165124][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.170138][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.175758][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.181722][ T3631] ? preempt_count_add+0x8d/0x180 [ 52.186750][ T3631] ? rcu_lock_release+0x5/0x20 [ 52.191503][ T3631] ? trace_lock_release+0x95/0x220 [ 52.196605][ T3631] ? rcu_lock_release+0x5/0x20 [ 52.201358][ T3631] ? lock_release+0x81/0x820 [ 52.205935][ T3631] ? read_lock_is_recursive+0x10/0x10 [ 52.211294][ T3631] ? deref_stack_reg+0x17a/0x210 [ 52.216219][ T3631] ? __lock_acquire+0x1f60/0x1f60 [ 52.221230][ T3631] ? unwind_next_frame+0x1b06/0x24c0 [ 52.226504][ T3631] ? deref_stack_reg+0x17a/0x210 [ 52.231427][ T3631] ? preempt_count_add+0x8d/0x180 [ 52.236443][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.241457][ T3631] ? is_bpf_text_address+0x253/0x270 [ 52.246746][ T3631] ? stack_trace_save+0x1e0/0x1e0 [ 52.251845][ T3631] ? kernel_text_address+0x9e/0xd0 [ 52.256948][ T3631] ? register_lock_class+0xc2/0x930 [ 52.262132][ T3631] ? arch_stack_walk+0x98/0xe0 [ 52.266883][ T3631] ? is_dynamic_key+0x1f0/0x1f0 [ 52.271723][ T3631] ? mark_lock+0x9a/0x350 [ 52.276043][ T3631] __lock_acquire+0x1292/0x1f60 [ 52.280889][ T3631] lock_acquire+0x182/0x3c0 [ 52.285379][ T3631] ? attr_data_get_block+0x301/0x2370 [ 52.290745][ T3631] ? read_lock_is_recursive+0x10/0x10 [ 52.296105][ T3631] ? __might_sleep+0xc0/0xc0 [ 52.300685][ T3631] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.306304][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.312271][ T3631] __mutex_lock_common+0x1bd/0x26e0 [ 52.317458][ T3631] ? attr_data_get_block+0x301/0x2370 [ 52.322821][ T3631] ? read_lock_is_recursive+0x10/0x10 [ 52.328177][ T3631] ? attr_data_get_block+0x301/0x2370 [ 52.333538][ T3631] ? attr_data_get_block+0x198/0x2370 [ 52.338899][ T3631] ? mutex_lock_io_nested+0x60/0x60 [ 52.344097][ T3631] ? __up_read+0x251/0x690 [ 52.348501][ T3631] ? up_read+0x20/0x20 [ 52.352556][ T3631] ? run_lookup_entry+0x414/0x560 [ 52.357573][ T3631] mutex_lock_nested+0x17/0x20 [ 52.362325][ T3631] attr_data_get_block+0x301/0x2370 [ 52.367514][ T3631] ? __stack_depot_save+0x36/0x4a0 [ 52.372614][ T3631] ? kasan_set_track+0x52/0x60 [ 52.377367][ T3631] ? kmem_cache_alloc+0x1cc/0x300 [ 52.382384][ T3631] ? do_mmap+0x8d9/0xf30 [ 52.386617][ T3631] ? vm_mmap_pgoff+0xb1/0x2b0 [ 52.391287][ T3631] ? ksys_mmap_pgoff+0x48c/0x6d0 [ 52.396215][ T3631] ? do_syscall_64+0x3d/0xb0 [ 52.400825][ T3631] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.406882][ T3631] ? get_pre_allocated+0x130/0x130 [ 52.411992][ T3631] ntfs_file_mmap+0x48c/0x730 [ 52.416661][ T3631] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.422644][ T3631] ? ntfs_compat_ioctl+0x30/0x30 [ 52.427568][ T3631] ? trace_kmem_cache_alloc+0x30/0xe0 [ 52.432927][ T3631] ? vm_area_alloc+0x20/0xe0 [ 52.437506][ T3631] ? memset+0x1f/0x40 [ 52.441478][ T3631] mmap_region+0xfe6/0x1e20 [ 52.445980][ T3631] ? file_mmap_ok+0x150/0x150 [ 52.450646][ T3631] ? validate_mm+0x2a4/0x330 [ 52.455225][ T3631] ? cap_mmap_addr+0x164/0x2d0 [ 52.459980][ T3631] ? omfs_lookup+0x2/0x480 [ 52.464391][ T3631] do_mmap+0x8d9/0xf30 [ 52.468453][ T3631] ? mlock_future_check+0x100/0x100 [ 52.473640][ T3631] ? down_write+0x270/0x270 [ 52.478140][ T3631] ? apparmor_file_free_security+0xf0/0xf0 [ 52.483930][ T3631] ? bpf_lsm_mmap_file+0x5/0x10 [ 52.488774][ T3631] vm_mmap_pgoff+0x19e/0x2b0 [ 52.493354][ T3631] ? lockdep_hardirqs_on+0x8d/0x130 [ 52.498540][ T3631] ? account_locked_vm+0xd0/0xd0 [ 52.503472][ T3631] ksys_mmap_pgoff+0x48c/0x6d0 [ 52.508236][ T3631] do_syscall_64+0x3d/0xb0 [ 52.512641][ T3631] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.518520][ T3631] RIP: 0033:0x7f250307bcf9 [ 52.522921][ T3631] 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 mmap(0x20001000, 40960, PROT_WRITE|PROT_EXEC|0x800000, MAP_SHARED|MAP_FIXED, 6, 0) = 0x20001000 exit_group(0) = ? +++ exited with 0 +++ [ 52.542511][ T3631] RSP: 002b: