./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor713267334 <...> Warning: Permanently added '10.128.0.168' (ED25519) to the list of known hosts. execve("./syz-executor713267334", ["./syz-executor713267334"], 0x7ffe830f8340 /* 10 vars */) = 0 brk(NULL) = 0x5555879ab000 brk(0x5555879abd00) = 0x5555879abd00 arch_prctl(ARCH_SET_FS, 0x5555879ab380) = 0 set_tid_address(0x5555879ab650) = 5085 set_robust_list(0x5555879ab660, 24) = 0 rseq(0x5555879abca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor713267334", 4096) = 27 getrandom("\x82\xbe\x7c\x57\x36\x96\xb6\xa8", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555879abd00 brk(0x5555879ccd00) = 0x5555879ccd00 brk(0x5555879cd000) = 0x5555879cd000 mprotect(0x7f28d3887000, 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 5086 attached , child_tidptr=0x5555879ab650) = 5086 [pid 5086] set_robust_list(0x5555879ab660, 24) = 0 [pid 5086] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5086] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5086] setsid() = 1 [pid 5086] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5086] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5086] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5086] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5086] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5086] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5086] unshare(CLONE_NEWNS) = 0 [pid 5086] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5086] unshare(CLONE_NEWIPC) = 0 [pid 5086] unshare(CLONE_NEWCGROUP) = 0 [pid 5086] unshare(CLONE_NEWUTS) = 0 [pid 5086] unshare(CLONE_SYSVSEM) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "16777216", 8) = 8 [pid 5086] close(3) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "536870912", 9) = 9 [pid 5086] close(3) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "1024", 4) = 4 [pid 5086] close(3) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "8192", 4) = 4 [pid 5086] close(3) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "1024", 4) = 4 [pid 5086] close(3) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "1024", 4) = 4 [pid 5086] close(3) = 0 [pid 5086] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5086] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5086] close(3) = 0 [pid 5086] getpid() = 1 [pid 5086] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<rw_lock/1){+.+.}-{3:3}, at: ntfs_mark_rec_free+0x3f/0x2b0 [ 76.251587][ T2438] [ 76.251587][ T2438] but task is already holding lock: [ 76.258944][ T2438] ffff888078e10860 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x1bc/0x1010 [ 76.268175][ T2438] [ 76.268175][ T2438] which lock already depends on the new lock. [ 76.268175][ T2438] [ 76.278571][ T2438] [ 76.278571][ T2438] the existing dependency chain (in reverse order) is: [ 76.287587][ T2438] [ 76.287587][ T2438] -> #1 (&ni->ni_lock#3){+.+.}-{3:3}: [ 76.295246][ T2438] lock_acquire+0x1ed/0x550 [ 76.300275][ T2438] __mutex_lock+0x136/0xd70 [ 76.305309][ T2438] ntfs_set_state+0x1ff/0x6c0 [ 76.310512][ T2438] mi_read+0x49e/0x5a0 [ 76.315106][ T2438] mi_format_new+0x1ab/0x5d0 [ 76.320227][ T2438] ni_add_subrecord+0xe2/0x430 [ 76.325512][ T2438] ntfs_look_free_mft+0x878/0x10c0 [ 76.331149][ T2438] ni_create_attr_list+0x9bd/0x1480 [ 76.336873][ T2438] ni_ins_attr_ext+0x369/0xbe0 [ 76.342164][ T2438] ni_add_name+0x809/0xe90 [ 76.347099][ T2438] ni_rename+0xc2/0x1e0 [ 76.351794][ T2438] ntfs_rename+0x7c1/0xd10 [ 76.356732][ T2438] vfs_rename+0xbdb/0xf00 [ 76.361592][ T2438] do_renameat2+0xd94/0x13f0 [ 76.366702][ T2438] __x64_sys_renameat2+0xd2/0xf0 [ 76.372158][ T2438] do_syscall_64+0xf5/0x240 [ 76.377186][ T2438] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.383610][ T2438] [ 76.383610][ T2438] -> #0 (&wnd->rw_lock/1){+.+.}-{3:3}: [ 76.391263][ T2438] validate_chain+0x18cb/0x58e0 [ 76.396650][ T2438] __lock_acquire+0x1346/0x1fd0 [ 76.402023][ T2438] lock_acquire+0x1ed/0x550 [ 76.407046][ T2438] down_write_nested+0x3d/0x50 [ 76.412337][ T2438] ntfs_mark_rec_free+0x3f/0x2b0 [ 76.417815][ T2438] ni_write_inode+0xbd9/0x1010 [ 76.423130][ T2438] __writeback_single_inode+0x6b9/0x10b0 [ 76.429287][ T2438] writeback_sb_inodes+0x99c/0x1380 [ 76.435015][ T2438] wb_writeback+0x481/0xd40 [ 76.440036][ T2438] wb_workfn+0x410/0x1090 [ 76.444911][ T2438] process_scheduled_works+0xa2c/0x1830 [ 76.450972][ T2438] worker_thread+0x86d/0xd70 [ 76.456081][ T2438] kthread+0x2f0/0x390 [ 76.460671][ T2438] ret_from_fork+0x4b/0x80 [ 76.465613][ T2438] ret_from_fork_asm+0x1a/0x30 [ 76.470915][ T2438] [ 76.470915][ T2438] other info that might help us debug this: [ 76.470915][ T2438] [ 76.481143][ T2438] Possible unsafe locking scenario: [ 76.481143][ T2438] [ 76.489385][ T2438] CPU0 CPU1 [ 76.494772][ T2438] ---- ---- [ 76.500133][ T2438] lock(&ni->ni_lock#3); [ 76.504486][ T2438] lock(&wnd->rw_lock/1); [ 76.511442][ T2438] lock(&ni->ni_lock#3); [ 76.518326][ T2438] lock(&wnd->rw_lock/1); [ 76.522757][ T2438] [ 76.522757][ T2438] *** DEADLOCK *** [ 76.522757][ T2438] [ 76.530897][ T2438] 3 locks held by kworker/u8:8/2438: [ 76.536204][ T2438] #0: ffff88801be8f148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 [ 76.547442][ T2438] #1: ffffc900094bfd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 [ 76.559914][ T2438] #2: ffff888078e10860 (&ni->ni_lock#3){+.+.}-{3:3}, at: ni_write_inode+0x1bc/0x1010 [ 76.569507][ T2438] [ 76.569507][ T2438] stack backtrace: [ 76.575391][ T2438] CPU: 1 PID: 2438 Comm: kworker/u8:8 Not tainted 6.9.0-syzkaller-08284-gea5f6ad9ad96 #0 [ 76.585188][ T2438] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 76.595251][ T2438] Workqueue: writeback wb_workfn (flush-7:0) [ 76.601263][ T2438] Call Trace: [ 76.604549][ T2438] [ 76.607480][ T2438] dump_stack_lvl+0x241/0x360 [ 76.612262][ T2438] ? __pfx_dump_stack_lvl+0x10/0x10 [ 76.617480][ T2438] ? print_circular_bug+0x130/0x1a0 [ 76.622681][ T2438] check_noncircular+0x36a/0x4a0 [ 76.627631][ T2438] ? __pfx_check_noncircular+0x10/0x10 [ 76.633107][ T2438] ? queued_spin_lock_slowpath+0x42/0x50 [ 76.638768][ T2438] ? lockdep_lock+0x1b0/0x2b0 [ 76.643447][ T2438] ? __pfx_validate_chain+0x10/0x10 [ 76.648645][ T2438] ? mark_lock+0x9a/0x350 [ 76.652998][ T2438] ? _find_first_zero_bit+0xd4/0x100 [ 76.658316][ T2438] validate_chain+0x18cb/0x58e0 [ 76.663204][ T2438] ? __pfx_validate_chain+0x10/0x10 [ 76.668517][ T2438] ? mark_lock+0x9a/0x350 [ 76.672869][ T2438] ? __lock_acquire+0x1346/0x1fd0 [ 76.678089][ T2438] ? cgroup_rstat_updated+0x13b/0xc60 [ 76.683495][ T2438] ? __pfx_cgroup_rstat_updated+0x10/0x10 [ 76.689243][ T2438] ? mark_lock+0x9a/0x350 [ 76.693580][ T2438] __lock_acquire+0x1346/0x1fd0 [ 76.698440][ T2438] lock_acquire+0x1ed/0x550 [ 76.702942][ T2438] ? ntfs_mark_rec_free+0x3f/0x2b0 [ 76.708075][ T2438] ? __pfx_lock_acquire+0x10/0x10 [ 76.713112][ T2438] ? __pfx___might_resched+0x10/0x10 [ 76.718576][ T2438] ? ntfs_write_bh+0x70c/0x7c0 [ 76.723349][ T2438] down_write_nested+0x3d/0x50 [ 76.728136][ T2438] ? ntfs_mark_rec_free+0x3f/0x2b0 [ 76.733259][ T2438] ntfs_mark_rec_free+0x3f/0x2b0 [ 76.738206][ T2438] ni_write_inode+0xbd9/0x1010 [ 76.742974][ T2438] ? __pfx_ni_write_inode+0x10/0x10 [ 76.748173][ T2438] ? do_raw_spin_unlock+0x13c/0x8b0 [ 76.753385][ T2438] __writeback_single_inode+0x6b9/0x10b0 [ 76.759109][ T2438] writeback_sb_inodes+0x99c/0x1380 [ 76.764325][ T2438] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 76.769954][ T2438] ? do_raw_spin_lock+0x14f/0x370 [ 76.775081][ T2438] ? __lock_acquire+0x1346/0x1fd0 [ 76.780127][ T2438] ? rcu_is_watching+0x15/0xb0 [ 76.784898][ T2438] ? queue_io+0x3d9/0x5a0 [ 76.789237][ T2438] wb_writeback+0x481/0xd40 [ 76.793755][ T2438] ? queue_io+0x371/0x5a0 [ 76.798125][ T2438] ? __pfx_wb_writeback+0x10/0x10 [ 76.803150][ T2438] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 76.809593][ T2438] wb_workfn+0x410/0x1090 [ 76.814145][ T2438] ? __pfx_wb_workfn+0x10/0x10 [ 76.818931][ T2438] ? __pfx_lock_acquire+0x10/0x10 [ 76.823964][ T2438] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 76.829947][ T2438] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 76.836284][ T2438] ? process_scheduled_works+0x945/0x1830 [ 76.842014][ T2438] process_scheduled_works+0xa2c/0x1830 [ 76.847579][ T2438] ? __pfx_process_scheduled_works+0x10/0x10 [ 76.853661][ T2438] ? assign_work+0x364/0x3d0 [ 76.858263][ T2438] worker_thread+0x86d/0xd70 [ 76.862862][ T2438] ? __kthread_parkme+0x169/0x1d0 [ 76.867901][ T2438] ? __pfx_worker_thread+0x10/0x10 [ 76.873012][ T2438] kthread+0x2f0/0x390 [ 76.877086][ T2438] ? __pfx_worker_thread+0x10/0x10 [pid 5086] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5086, si_uid=0, si_status=1, si_utime=1 /* 0.01 s */, si_stime=16 /* 0.16 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 76.8821