./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor598063766 <...> Warning: Permanently added '10.128.10.59' (ED25519) to the list of known hosts. execve("./syz-executor598063766", ["./syz-executor598063766"], 0x7fff792741d0 /* 10 vars */) = 0 brk(NULL) = 0x555582f5c000 brk(0x555582f5cd00) = 0x555582f5cd00 arch_prctl(ARCH_SET_FS, 0x555582f5c380) = 0 set_tid_address(0x555582f5c650) = 5080 set_robust_list(0x555582f5c660, 24) = 0 rseq(0x555582f5cca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor598063766", 4096) = 27 getrandom("\x00\xcf\x05\x10\x6b\x2f\xea\xb9", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555582f5cd00 brk(0x555582f7dd00) = 0x555582f7dd00 brk(0x555582f7e000) = 0x555582f7e000 mprotect(0x7fb549d4a000, 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 unshare(CLONE_NEWPID) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5081 attached , child_tidptr=0x555582f5c650) = 5081 [pid 5081] set_robust_list(0x555582f5c660, 24) = 0 [pid 5081] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5081] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5081] setsid() = 1 [pid 5081] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5081] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5081] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5081] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5081] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5081] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5081] unshare(CLONE_NEWNS) = 0 [pid 5081] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5081] unshare(CLONE_NEWIPC) = 0 [pid 5081] unshare(CLONE_NEWCGROUP) = 0 [pid 5081] unshare(CLONE_NEWUTS) = 0 [pid 5081] unshare(CLONE_SYSVSEM) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "16777216", 8) = 8 [pid 5081] close(3) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "536870912", 9) = 9 [pid 5081] close(3) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "1024", 4) = 4 [pid 5081] close(3) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "8192", 4) = 4 [pid 5081] close(3) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "1024", 4) = 4 [pid 5081] close(3) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "1024", 4) = 4 [pid 5081] close(3) = 0 [pid 5081] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5081] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5081] close(3) = 0 [pid 5081] getpid() = 1 [pid 5081] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<rw_lock/1){+.+.}-{3:3}, at: ntfs_mark_rec_free+0x3f/0x2b0 [ 60.353122][ T1110] [ 60.353122][ T1110] but task is already holding lock: [ 60.360477][ T1110] ffff88807761d980 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x1bc/0x1010 [ 60.369612][ T1110] [ 60.369612][ T1110] which lock already depends on the new lock. [ 60.369612][ T1110] [ 60.379998][ T1110] [ 60.379998][ T1110] the existing dependency chain (in reverse order) is: [ 60.388994][ T1110] [ 60.388994][ T1110] -> #1 (&ni->ni_lock#3){+.+.}-{3:3}: [ 60.396537][ T1110] lock_acquire+0x1ed/0x550 [ 60.401545][ T1110] __mutex_lock+0x136/0xd70 [ 60.406581][ T1110] ntfs_set_state+0x1ff/0x6c0 [ 60.411772][ T1110] mi_read+0x49e/0x5a0 [ 60.416352][ T1110] mi_format_new+0x1ab/0x5d0 [ 60.421453][ T1110] ni_add_subrecord+0xe2/0x430 [ 60.426727][ T1110] ntfs_look_free_mft+0x878/0x10c0 [ 60.432355][ T1110] ni_create_attr_list+0x9bd/0x1480 [ 60.438062][ T1110] ni_ins_attr_ext+0x369/0xbe0 [ 60.443389][ T1110] ni_add_name+0x809/0xe90 [ 60.448317][ T1110] ni_rename+0xc2/0x1e0 [ 60.452981][ T1110] ntfs_rename+0x7c1/0xd10 [ 60.457908][ T1110] vfs_rename+0xbdb/0xf00 [ 60.462760][ T1110] do_renameat2+0xd94/0x13f0 [ 60.467858][ T1110] __x64_sys_renameat2+0xd2/0xf0 [ 60.473401][ T1110] do_syscall_64+0xf5/0x240 [ 60.478418][ T1110] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 60.484823][ T1110] [ 60.484823][ T1110] -> #0 (&wnd->rw_lock/1){+.+.}-{3:3}: [ 60.492469][ T1110] validate_chain+0x18cb/0x58e0 [ 60.497839][ T1110] __lock_acquire+0x1346/0x1fd0 [ 60.503200][ T1110] lock_acquire+0x1ed/0x550 [ 60.508213][ T1110] down_write_nested+0x3d/0x50 [ 60.513489][ T1110] ntfs_mark_rec_free+0x3f/0x2b0 [ 60.518944][ T1110] ni_write_inode+0xbd9/0x1010 [ 60.524391][ T1110] __writeback_single_inode+0x6b9/0x10b0 [ 60.530548][ T1110] writeback_sb_inodes+0x99c/0x1380 [ 60.536257][ T1110] wb_writeback+0x481/0xd40 [ 60.541269][ T1110] wb_workfn+0x410/0x1090 [ 60.546111][ T1110] process_scheduled_works+0xa2c/0x1830 [ 60.552167][ T1110] worker_thread+0x86d/0xd70 [ 60.557277][ T1110] kthread+0x2f0/0x390 [ 60.561863][ T1110] ret_from_fork+0x4b/0x80 [ 60.566796][ T1110] ret_from_fork_asm+0x1a/0x30 [ 60.572078][ T1110] [ 60.572078][ T1110] other info that might help us debug this: [ 60.572078][ T1110] [ 60.582293][ T1110] Possible unsafe locking scenario: [ 60.582293][ T1110] [ 60.589730][ T1110] CPU0 CPU1 [ 60.595086][ T1110] ---- ---- [ 60.600456][ T1110] lock(&ni->ni_lock#3); [ 60.604805][ T1110] lock(&wnd->rw_lock/1); [ 60.611747][ T1110] lock(&ni->ni_lock#3); [ 60.618595][ T1110] lock(&wnd->rw_lock/1); [ 60.623007][ T1110] [ 60.623007][ T1110] *** DEADLOCK *** [ 60.623007][ T1110] [ 60.631134][ T1110] 3 locks held by kworker/u8:6/1110: [ 60.636407][ T1110] #0: ffff88801bab6148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 [ 60.647629][ T1110] #1: ffffc90004e67d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 [ 60.660063][ T1110] #2: ffff88807761d980 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x1bc/0x1010 [ 60.669720][ T1110] [ 60.669720][ T1110] stack backtrace: [ 60.675597][ T1110] CPU: 0 PID: 1110 Comm: kworker/u8:6 Not tainted 6.9.0-syzkaller-08284-gea5f6ad9ad96 #0 [ 60.685383][ T1110] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 60.695603][ T1110] Workqueue: writeback wb_workfn (flush-7:0) [ 60.701590][ T1110] Call Trace: [ 60.704863][ T1110] [ 60.707822][ T1110] dump_stack_lvl+0x241/0x360 [ 60.712503][ T1110] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.717727][ T1110] ? print_circular_bug+0x130/0x1a0 [ 60.722923][ T1110] check_noncircular+0x36a/0x4a0 [ 60.727858][ T1110] ? __pfx_check_noncircular+0x10/0x10 [ 60.733309][ T1110] ? lockdep_lock+0x123/0x2b0 [ 60.737982][ T1110] ? __pfx_validate_chain+0x10/0x10 [ 60.743260][ T1110] ? mark_lock+0x9a/0x350 [ 60.747664][ T1110] ? _find_first_zero_bit+0xd4/0x100 [ 60.752961][ T1110] validate_chain+0x18cb/0x58e0 [ 60.757902][ T1110] ? __pfx_validate_chain+0x10/0x10 [ 60.763091][ T1110] ? mark_lock+0x9a/0x350 [ 60.767414][ T1110] ? __lock_acquire+0x1346/0x1fd0 [ 60.772427][ T1110] ? cgroup_rstat_updated+0x13b/0xc60 [ 60.777797][ T1110] ? __pfx_cgroup_rstat_updated+0x10/0x10 [ 60.783602][ T1110] ? mark_lock+0x9a/0x350 [ 60.787924][ T1110] __lock_acquire+0x1346/0x1fd0 [ 60.792784][ T1110] lock_acquire+0x1ed/0x550 [ 60.797278][ T1110] ? ntfs_mark_rec_free+0x3f/0x2b0 [ 60.802389][ T1110] ? __pfx_lock_acquire+0x10/0x10 [ 60.807492][ T1110] ? __pfx___might_resched+0x10/0x10 [ 60.812775][ T1110] ? ntfs_write_bh+0x70c/0x7c0 [ 60.817537][ T1110] down_write_nested+0x3d/0x50 [ 60.822292][ T1110] ? ntfs_mark_rec_free+0x3f/0x2b0 [ 60.827398][ T1110] ntfs_mark_rec_free+0x3f/0x2b0 [ 60.832331][ T1110] ni_write_inode+0xbd9/0x1010 [ 60.837089][ T1110] ? __pfx_ni_write_inode+0x10/0x10 [ 60.842277][ T1110] ? do_raw_spin_unlock+0x13c/0x8b0 [ 60.847477][ T1110] __writeback_single_inode+0x6b9/0x10b0 [ 60.853106][ T1110] writeback_sb_inodes+0x99c/0x1380 [ 60.858322][ T1110] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 60.863948][ T1110] ? do_raw_spin_lock+0x14f/0x370 [ 60.868965][ T1110] ? __lock_acquire+0x1346/0x1fd0 [ 60.874689][ T1110] ? rcu_is_watching+0x15/0xb0 [ 60.879444][ T1110] ? queue_io+0x3d9/0x5a0 [ 60.883773][ T1110] wb_writeback+0x481/0xd40 [ 60.888272][ T1110] ? queue_io+0x371/0x5a0 [ 60.892597][ T1110] ? __pfx_wb_writeback+0x10/0x10 [ 60.897618][ T1110] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.903597][ T1110] wb_workfn+0x410/0x1090 [ 60.907934][ T1110] ? __pfx_wb_workfn+0x10/0x10 [ 60.912791][ T1110] ? __pfx_lock_acquire+0x10/0x10 [ 60.917805][ T1110] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.923773][ T1110] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 60.930094][ T1110] ? process_scheduled_works+0x945/0x1830 [ 60.935804][ T1110] process_scheduled_works+0xa2c/0x1830 [ 60.941381][ T1110] ? __pfx_process_scheduled_works+0x10/0x10 [ 60.947353][ T1110] ? assign_work+0x364/0x3d0 [ 60.951937][ T1110] worker_thread+0x86d/0xd70 [ 60.956521][ T1110] ? __kthread_parkme+0x169/0x1d0 [ 60.961542][ T1110] ? __pfx_worker_thread+0x10/0x10 [ 60.966644][ T1110] kthread+0x2f0/0x390 [ 60.970706][ T1110] ? __pfx_worker_thread+0x10/0x10 [ 60.975821][ T1110] ? __pfx_kthread+0x10/0x10 [ 60.980518][ T1110] ret_from_fork+0x4b/0x80 [pid 5081] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5081, si_uid=0, si_status=1, si_utime=0, si_stime=15 /* 0.15 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 60.984945