./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1034552437 <...> Warning: Permanently added '10.128.0.50' (ED25519) to the list of known hosts. execve("./syz-executor1034552437", ["./syz-executor1034552437"], 0x7ffeea6f9460 /* 10 vars */) = 0 brk(NULL) = 0x55555717a000 brk(0x55555717ad00) = 0x55555717ad00 arch_prctl(ARCH_SET_FS, 0x55555717a380) = 0 set_tid_address(0x55555717a650) = 5068 set_robust_list(0x55555717a660, 24) = 0 rseq(0x55555717aca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1034552437", 4096) = 28 getrandom("\x35\xb8\xb9\x88\xb0\x06\x6a\x4f", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555717ad00 brk(0x55555719bd00) = 0x55555719bd00 brk(0x55555719c000) = 0x55555719c000 mprotect(0x7f2b417e0000, 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 5069 attached , child_tidptr=0x55555717a650) = 5069 [pid 5069] set_robust_list(0x55555717a660, 24) = 0 [pid 5069] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5069] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5069] setsid() = 1 [pid 5069] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5069] unshare(CLONE_NEWNS) = 0 [pid 5069] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5069] unshare(CLONE_NEWIPC) = 0 [pid 5069] unshare(CLONE_NEWCGROUP) = 0 [pid 5069] unshare(CLONE_NEWUTS) = 0 [pid 5069] unshare(CLONE_SYSVSEM) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "16777216", 8) = 8 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "536870912", 9) = 9 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "8192", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5069] close(3) = 0 [pid 5069] getpid() = 1 [pid 5069] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [671], 571) = 549 [pid 5069] exit_group(1) = ? [ 60.736194][ T5069] syz-executor103 (5069): drop_caches: 3 [ 60.774348][ T5069] syz-executor103 (5069): drop_caches: 3 [ 60.787834][ T42] [ 60.790165][ T42] ====================================================== [ 60.797164][ T42] WARNING: possible circular locking dependency detected [ 60.804181][ T42] 6.7.0-rc8-syzkaller-00177-g52b1853b080a #0 Not tainted [ 60.811184][ T42] ------------------------------------------------------ [ 60.818184][ T42] kworker/u4:2/42 is trying to acquire lock: [ 60.824148][ T42] ffff888077240940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1a98/0x2430 [ 60.833039][ T42] [ 60.833039][ T42] but task is already holding lock: [ 60.840383][ T42] ffff888077243310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 60.849322][ T42] [ 60.849322][ T42] which lock already depends on the new lock. [ 60.849322][ T42] [ 60.859703][ T42] [ 60.859703][ T42] the existing dependency chain (in reverse order) is: [ 60.868695][ T42] [ 60.868695][ T42] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 60.876232][ T42] __mutex_lock+0x175/0x9d0 [ 60.881242][ T42] map_mft_record+0x4a/0x730 [ 60.886339][ T42] ntfs_attr_extend_allocation+0x268/0x3840 [ 60.892745][ T42] ntfs_file_write_iter+0xaa0/0x2070 [ 60.898536][ T42] do_iter_readv_writev+0x21e/0x3c0 [ 60.904238][ T42] do_iter_write+0x17f/0x7f0 [ 60.909328][ T42] vfs_writev+0x221/0x700 [ 60.914160][ T42] __x64_sys_pwritev+0x228/0x300 [ 60.919604][ T42] do_syscall_64+0x40/0x110 [ 60.924658][ T42] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 60.931066][ T42] [ 60.931066][ T42] -> #0 (&rl->lock){++++}-{3:3}: [ 60.938176][ T42] __lock_acquire+0x2433/0x3b20 [ 60.943553][ T42] lock_acquire+0x1ae/0x520 [ 60.948571][ T42] down_read+0x9a/0x330 [ 60.953229][ T42] ntfs_read_folio+0x1a98/0x2430 [ 60.958676][ T42] filemap_read_folio+0xe9/0x2c0 [ 60.964120][ T42] do_read_cache_folio+0x205/0x540 [ 60.969735][ T42] read_cache_page+0x5b/0x160 [ 60.974921][ T42] ntfs_sync_mft_mirror+0x242/0x1ed0 [ 60.980718][ T42] write_mft_record_nolock+0x1977/0x1da0 [ 60.986865][ T42] write_mft_record+0x14b/0x380 [ 60.992218][ T42] __ntfs_write_inode+0x91b/0xc30 [ 60.997754][ T42] __writeback_single_inode+0xa91/0xe90 [ 61.003810][ T42] writeback_sb_inodes+0x599/0x1080 [ 61.009520][ T42] wb_writeback+0x2a5/0xaa0 [ 61.014524][ T42] wb_workfn+0x29c/0xfe0 [ 61.019268][ T42] process_one_work+0x886/0x15d0 [ 61.024715][ T42] worker_thread+0x8b9/0x1290 [ 61.029903][ T42] kthread+0x2c6/0x3a0 [ 61.034477][ T42] ret_from_fork+0x45/0x80 [ 61.039400][ T42] ret_from_fork_asm+0x11/0x20 [ 61.044676][ T42] [ 61.044676][ T42] other info that might help us debug this: [ 61.044676][ T42] [ 61.054886][ T42] Possible unsafe locking scenario: [ 61.054886][ T42] [ 61.062315][ T42] CPU0 CPU1 [ 61.067661][ T42] ---- ---- [ 61.073005][ T42] lock(&ni->mrec_lock); [ 61.077321][ T42] lock(&rl->lock); [ 61.083725][ T42] lock(&ni->mrec_lock); [ 61.090554][ T42] rlock(&rl->lock); [ 61.094518][ T42] [ 61.094518][ T42] *** DEADLOCK *** [ 61.094518][ T42] [ 61.102639][ T42] 3 locks held by kworker/u4:2/42: [ 61.107730][ T42] #0: ffff888015671138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 [ 61.118332][ T42] #1: ffffc90000b2fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 [ 61.130144][ T42] #2: ffff888077243310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 61.139524][ T42] [ 61.139524][ T42] stack backtrace: [ 61.145392][ T42] CPU: 0 PID: 42 Comm: kworker/u4:2 Not tainted 6.7.0-rc8-syzkaller-00177-g52b1853b080a #0 [ 61.155350][ T42] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 61.165393][ T42] Workqueue: writeback wb_workfn (flush-7:0) [ 61.171369][ T42] Call Trace: [ 61.174634][ T42] [ 61.177556][ T42] dump_stack_lvl+0xd9/0x1b0 [ 61.182137][ T42] check_noncircular+0x317/0x400 [ 61.187072][ T42] ? print_circular_bug+0x5c0/0x5c0 [ 61.192267][ T42] ? lockdep_lock+0x1b5/0x200 [ 61.196934][ T42] ? hlock_class+0x130/0x130 [ 61.201514][ T42] __lock_acquire+0x2433/0x3b20 [ 61.206362][ T42] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 61.212336][ T42] lock_acquire+0x1ae/0x520 [ 61.216829][ T42] ? ntfs_read_folio+0x1a98/0x2430 [ 61.221931][ T42] ? lock_sync+0x190/0x190 [ 61.226338][ T42] ? find_held_lock+0x2d/0x110 [ 61.231089][ T42] ? preempt_count_sub+0x160/0x160 [ 61.236187][ T42] down_read+0x9a/0x330 [ 61.240326][ T42] ? ntfs_read_folio+0x1a98/0x2430 [ 61.245427][ T42] ? rwsem_down_read_slowpath+0xb20/0xb20 [ 61.251131][ T42] ? mark_held_locks+0x9f/0xe0 [ 61.255889][ T42] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 61.261771][ T42] ntfs_read_folio+0x1a98/0x2430 [ 61.266705][ T42] ? __print_lock_name+0x1b0/0x260 [ 61.271806][ T42] ? ntfs_end_buffer_async_read+0x18e0/0x18e0 [ 61.277866][ T42] ? folio_add_lru+0x451/0x7f0 [ 61.282613][ T42] ? ntfs_end_buffer_async_read+0x18e0/0x18e0 [ 61.288670][ T42] filemap_read_folio+0xe9/0x2c0 [ 61.293594][ T42] ? __folio_lock_killable+0x20/0x20 [ 61.298864][ T42] ? __filemap_get_folio+0x2b0/0xaa0 [ 61.304134][ T42] ? find_held_lock+0x2d/0x110 [ 61.308888][ T42] do_read_cache_folio+0x205/0x540 [ 61.313984][ T42] ? ntfs_end_buffer_async_read+0x18e0/0x18e0 [ 61.320045][ T42] read_cache_page+0x5b/0x160 [ 61.324709][ T42] ntfs_sync_mft_mirror+0x242/0x1ed0 [ 61.329982][ T42] ? should_fail_request+0x80/0x80 [ 61.335094][ T42] ? preempt_count_sub+0x160/0x160 [ 61.340194][ T42] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 61.347471][ T42] write_mft_record_nolock+0x1977/0x1da0 [ 61.353094][ T42] ? mark_held_locks+0x9f/0xe0 [ 61.357849][ T42] ? ntfs_sync_mft_mirror+0x1ed0/0x1ed0 [ 61.363380][ T42] ? preempt_count_sub+0x160/0x160 [ 61.368482][ T42] write_mft_record+0x14b/0x380 [ 61.373323][ T42] __ntfs_write_inode+0x91b/0xc30 [ 61.378334][ T42] __writeback_single_inode+0xa91/0xe90 [ 61.383869][ T42] ? __mark_inode_dirty+0xd60/0xd60 [ 61.389055][ T42] ? _raw_spin_unlock+0x28/0x40 [ 61.393893][ T42] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 61.399858][ T42] writeback_sb_inodes+0x599/0x1080 [ 61.405045][ T42] ? sync_inode_metadata+0xe0/0xe0 [ 61.410146][ T42] ? rcu_is_watching+0x12/0xb0 [ 61.414897][ T42] ? queue_io+0x3ed/0x4e0 [ 61.419211][ T42] wb_writeback+0x2a5/0xaa0 [ 61.423698][ T42] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 61.429141][ T42] ? reacquire_held_locks+0x4c0/0x4c0 [ 61.434505][ T42] ? mark_held_locks+0x9f/0xe0 [ 61.439260][ T42] wb_workfn+0x29c/0xfe0 [ 61.443485][ T42] ? lockdep_hardirqs_on_prepare+0x3f1/0x420 [ 61.449456][ T42] ? inode_wait_for_writeback+0x30/0x30 [ 61.454985][ T42] ? lock_sync+0x190/0x190 [ 61.459393][ T42] ? lock_sync+0x190/0x190 [ 61.463798][ T42] ? reacquire_held_locks+0x4c0/0x4c0 [ 61.469165][ T42] process_one_work+0x886/0x15d0 [ 61.474099][ T42] ? lock_sync+0x190/0x190 [ 61.478504][ T42] ? workqueue_congested+0x300/0x300 [ 61.483782][ T42] ? assign_work+0x1a0/0x250 [pid 5069] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5069, si_uid=0, si_status=1, si_utime=0, si_stime=81 /* 0.81 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 61.488358][ T42] worker_thread+0x8b9/0x1290 [ 61.493027][ T42] ? process_one_work+0x15d0/0x15d0 [ 61.498217][ T42] kthread+0x2c6/0x3a0 [ 61.502271][ T42] ? _raw_spin_unlock_irq+0x23/0x50 [ 61.507455][ T42] ? kthread_complete_and_exit+0x40/0x40 [ 61.513076][ T42] ret_from_fork+0x45/0x80 [ 61.517478][ T42] ? kthread_complete_and_exit+0x40/0x40 [ 61.523096][ T42] ret_from_fork_asm+0x11/0x20 [ 61.527853][ T42]