./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor384084901 <...> Warning: Permanently added '10.128.1.31' (ED25519) to the list of known hosts. execve("./syz-executor384084901", ["./syz-executor384084901"], 0x7ffd2a5b4190 /* 10 vars */) = 0 brk(NULL) = 0x555591296000 brk(0x555591296d00) = 0x555591296d00 arch_prctl(ARCH_SET_FS, 0x555591296380) = 0 set_tid_address(0x555591296650) = 5081 set_robust_list(0x555591296660, 24) = 0 rseq(0x555591296ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor384084901", 4096) = 27 getrandom("\x6c\xac\x30\xa7\x4e\x86\xc2\x53", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555591296d00 brk(0x5555912b7d00) = 0x5555912b7d00 brk(0x5555912b8000) = 0x5555912b8000 mprotect(0x7fe239e1a000, 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 5082 attached , child_tidptr=0x555591296650) = 5082 [pid 5082] set_robust_list(0x555591296660, 24) = 0 [pid 5082] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5082] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5082] setsid() = 1 [pid 5082] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5082] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5082] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5082] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5082] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5082] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5082] unshare(CLONE_NEWNS) = 0 [pid 5082] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5082] unshare(CLONE_NEWIPC) = 0 [pid 5082] unshare(CLONE_NEWCGROUP) = 0 [pid 5082] unshare(CLONE_NEWUTS) = 0 [pid 5082] unshare(CLONE_SYSVSEM) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "16777216", 8) = 8 [pid 5082] close(3) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "536870912", 9) = 9 [pid 5082] close(3) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "1024", 4) = 4 [pid 5082] close(3) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "8192", 4) = 4 [pid 5082] close(3) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "1024", 4) = 4 [pid 5082] close(3) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "1024", 4) = 4 [pid 5082] close(3) = 0 [pid 5082] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5082] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5082] close(3) = 0 [pid 5082] getpid() = 1 [pid 5082] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<rw_lock/1){+.+.}-{3:3}, at: ntfs_mark_rec_free+0x3f/0x2b0 [ 56.955395][ T2460] [ 56.955395][ T2460] but task is already holding lock: [ 56.962763][ T2460] ffff888054528100 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x1bc/0x1010 [ 56.971873][ T2460] [ 56.971873][ T2460] which lock already depends on the new lock. [ 56.971873][ T2460] [ 56.982253][ T2460] [ 56.982253][ T2460] the existing dependency chain (in reverse order) is: [ 56.991245][ T2460] [ 56.991245][ T2460] -> #1 (&ni->ni_lock#3){+.+.}-{3:3}: [ 56.998783][ T2460] lock_acquire+0x1ed/0x550 [ 57.003787][ T2460] __mutex_lock+0x136/0xd70 [ 57.008794][ T2460] ntfs_set_state+0x1ff/0x6c0 [ 57.013973][ T2460] mi_read+0x49e/0x5a0 [ 57.018539][ T2460] mi_format_new+0x1ab/0x5d0 [ 57.023630][ T2460] ni_add_subrecord+0xe2/0x430 [ 57.028890][ T2460] ntfs_look_free_mft+0x878/0x10c0 [ 57.034504][ T2460] ni_create_attr_list+0x9bd/0x1480 [ 57.040197][ T2460] ni_ins_attr_ext+0x369/0xbe0 [ 57.045460][ T2460] ni_add_name+0x809/0xe90 [ 57.050373][ T2460] ni_rename+0xc2/0x1e0 [ 57.055027][ T2460] ntfs_rename+0x7c1/0xd10 [ 57.059944][ T2460] vfs_rename+0xbdb/0xf00 [ 57.064774][ T2460] do_renameat2+0xd94/0x13f0 [ 57.069875][ T2460] __x64_sys_renameat2+0xd2/0xf0 [ 57.075322][ T2460] do_syscall_64+0xf5/0x240 [ 57.080339][ T2460] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 57.086741][ T2460] [ 57.086741][ T2460] -> #0 (&wnd->rw_lock/1){+.+.}-{3:3}: [ 57.094371][ T2460] validate_chain+0x18cb/0x58e0 [ 57.099723][ T2460] __lock_acquire+0x1346/0x1fd0 [ 57.105073][ T2460] lock_acquire+0x1ed/0x550 [ 57.110076][ T2460] down_write_nested+0x3d/0x50 [ 57.115343][ T2460] ntfs_mark_rec_free+0x3f/0x2b0 [ 57.120780][ T2460] ni_write_inode+0xbd9/0x1010 [ 57.126058][ T2460] __writeback_single_inode+0x6b9/0x10b0 [ 57.132192][ T2460] writeback_sb_inodes+0x99c/0x1380 [ 57.137891][ T2460] wb_writeback+0x481/0xd40 [ 57.142894][ T2460] wb_workfn+0x410/0x1090 [ 57.147722][ T2460] process_scheduled_works+0xa2c/0x1830 [ 57.153765][ T2460] worker_thread+0x86d/0xd70 [ 57.158852][ T2460] kthread+0x2f0/0x390 [ 57.163422][ T2460] ret_from_fork+0x4b/0x80 [ 57.168338][ T2460] ret_from_fork_asm+0x1a/0x30 [ 57.173603][ T2460] [ 57.173603][ T2460] other info that might help us debug this: [ 57.173603][ T2460] [ 57.183808][ T2460] Possible unsafe locking scenario: [ 57.183808][ T2460] [ 57.191236][ T2460] CPU0 CPU1 [ 57.196581][ T2460] ---- ---- [ 57.201925][ T2460] lock(&ni->ni_lock#3); [ 57.206248][ T2460] lock(&wnd->rw_lock/1); [ 57.213181][ T2460] lock(&ni->ni_lock#3); [ 57.220017][ T2460] lock(&wnd->rw_lock/1); [ 57.224416][ T2460] [ 57.224416][ T2460] *** DEADLOCK *** [ 57.224416][ T2460] [ 57.232543][ T2460] 3 locks held by kworker/u8:7/2460: [ 57.237810][ T2460] #0: ffff88801b2ce948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 [ 57.249014][ T2460] #1: ffffc90009fcfd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 [ 57.261429][ T2460] #2: ffff888054528100 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x1bc/0x1010 [ 57.270976][ T2460] [ 57.270976][ T2460] stack backtrace: [ 57.276842][ T2460] CPU: 0 PID: 2460 Comm: kworker/u8:7 Not tainted 6.9.0-syzkaller-08284-gea5f6ad9ad96 #0 [ 57.286626][ T2460] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 57.296663][ T2460] Workqueue: writeback wb_workfn (flush-7:0) [ 57.302636][ T2460] Call Trace: [ 57.305899][ T2460] [ 57.308809][ T2460] dump_stack_lvl+0x241/0x360 [ 57.313471][ T2460] ? __pfx_dump_stack_lvl+0x10/0x10 [ 57.318653][ T2460] ? print_circular_bug+0x130/0x1a0 [ 57.323835][ T2460] check_noncircular+0x36a/0x4a0 [ 57.328754][ T2460] ? __pfx_check_noncircular+0x10/0x10 [ 57.334199][ T2460] ? queued_spin_lock_slowpath+0x42/0x50 [ 57.339815][ T2460] ? lockdep_lock+0x1b0/0x2b0 [ 57.344473][ T2460] ? __pfx_validate_chain+0x10/0x10 [ 57.349649][ T2460] ? mark_lock+0x9a/0x350 [ 57.353957][ T2460] ? _find_first_zero_bit+0xd4/0x100 [ 57.359233][ T2460] validate_chain+0x18cb/0x58e0 [ 57.364070][ T2460] ? __pfx_validate_chain+0x10/0x10 [ 57.369246][ T2460] ? mark_lock+0x9a/0x350 [ 57.373571][ T2460] ? __lock_acquire+0x1346/0x1fd0 [ 57.378569][ T2460] ? cgroup_rstat_updated+0x13b/0xc60 [ 57.383923][ T2460] ? __pfx_cgroup_rstat_updated+0x10/0x10 [ 57.389623][ T2460] ? mark_lock+0x9a/0x350 [ 57.393932][ T2460] __lock_acquire+0x1346/0x1fd0 [ 57.398766][ T2460] lock_acquire+0x1ed/0x550 [ 57.403248][ T2460] ? ntfs_mark_rec_free+0x3f/0x2b0 [ 57.408343][ T2460] ? __pfx_lock_acquire+0x10/0x10 [ 57.413346][ T2460] ? __pfx___might_resched+0x10/0x10 [ 57.418612][ T2460] ? ntfs_write_bh+0x70c/0x7c0 [ 57.423358][ T2460] down_write_nested+0x3d/0x50 [ 57.428104][ T2460] ? ntfs_mark_rec_free+0x3f/0x2b0 [ 57.433196][ T2460] ntfs_mark_rec_free+0x3f/0x2b0 [ 57.438120][ T2460] ni_write_inode+0xbd9/0x1010 [ 57.442868][ T2460] ? __pfx_ni_write_inode+0x10/0x10 [ 57.448045][ T2460] ? do_raw_spin_unlock+0x13c/0x8b0 [ 57.453231][ T2460] __writeback_single_inode+0x6b9/0x10b0 [ 57.458849][ T2460] writeback_sb_inodes+0x99c/0x1380 [ 57.464032][ T2460] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 57.469640][ T2460] ? do_raw_spin_lock+0x14f/0x370 [ 57.474644][ T2460] ? __lock_acquire+0x1346/0x1fd0 [ 57.479654][ T2460] ? rcu_is_watching+0x15/0xb0 [ 57.484396][ T2460] ? queue_io+0x3d9/0x5a0 [ 57.488704][ T2460] wb_writeback+0x481/0xd40 [ 57.493187][ T2460] ? queue_io+0x371/0x5a0 [ 57.497494][ T2460] ? __pfx_wb_writeback+0x10/0x10 [ 57.502496][ T2460] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 57.508459][ T2460] wb_workfn+0x410/0x1090 [ 57.512779][ T2460] ? __pfx_wb_workfn+0x10/0x10 [ 57.517523][ T2460] ? __pfx_lock_acquire+0x10/0x10 [ 57.522523][ T2460] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 57.528478][ T2460] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 57.534787][ T2460] ? process_scheduled_works+0x945/0x1830 [ 57.540483][ T2460] process_scheduled_works+0xa2c/0x1830 [ 57.546013][ T2460] ? __pfx_process_scheduled_works+0x10/0x10 [ 57.551972][ T2460] ? assign_work+0x364/0x3d0 [ 57.556541][ T2460] worker_thread+0x86d/0xd70 [ 57.561110][ T2460] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 57.566988][ T2460] ? __kthread_parkme+0x169/0x1d0 [ 57.571988][ T2460] ? __pfx_worker_thread+0x10/0x10 [ 57.577079][ T2460] kthread+0x2f0/0x390 [pid 5082] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5082, si_uid=0, si_status=1, si_utime=0, si_stime=12 /* 0.12 s */} --- exit_group(0) = ? +++ exited with 0 +++ [