./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1311885529 <...> Warning: Permanently added '10.128.1.28' (ED25519) to the list of known hosts. execve("./syz-executor1311885529", ["./syz-executor1311885529"], 0x7ffd3e6545c0 /* 10 vars */) = 0 brk(NULL) = 0x55555715e000 brk(0x55555715ed00) = 0x55555715ed00 arch_prctl(ARCH_SET_FS, 0x55555715e380) = 0 set_tid_address(0x55555715e650) = 5068 set_robust_list(0x55555715e660, 24) = 0 rseq(0x55555715eca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1311885529", 4096) = 28 getrandom("\xf8\x5a\xdf\x77\x53\x14\x61\x84", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555715ed00 brk(0x55555717fd00) = 0x55555717fd00 brk(0x555557180000) = 0x555557180000 mprotect(0x7fd3d6b65000, 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, child_tidptr=0x55555715e650) = 5069 ./strace-static-x86_64: Process 5069 attached [pid 5069] set_robust_list(0x55555715e660, 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< [97], 9) = 9 [pid 5069] exit_group(1) = ? [ 55.657773][ T5069] syz-executor131 (5069): drop_caches: 1 [ 55.672536][ T42] [ 55.674865][ T42] ====================================================== [ 55.681861][ T42] WARNING: possible circular locking dependency detected [ 55.688854][ T42] 6.7.0-rc3-syzkaller-00014-gdf60cee26a2e #0 Not tainted [ 55.695853][ T42] ------------------------------------------------------ [ 55.702846][ T42] kworker/u4:2/42 is trying to acquire lock: [ 55.708799][ T42] ffff88806c238940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1a98/0x2430 [ 55.717672][ T42] [ 55.717672][ T42] but task is already holding lock: [ 55.725014][ T42] ffff88806c23b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 55.733945][ T42] [ 55.733945][ T42] which lock already depends on the new lock. [ 55.733945][ T42] [ 55.744434][ T42] [ 55.744434][ T42] the existing dependency chain (in reverse order) is: [ 55.753438][ T42] [ 55.753438][ T42] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 55.761065][ T42] __mutex_lock+0x175/0x9d0 [ 55.766082][ T42] map_mft_record+0x4a/0x730 [ 55.771176][ T42] ntfs_attr_extend_allocation+0x268/0x3840 [ 55.777574][ T42] ntfs_file_write_iter+0xaa0/0x2070 [ 55.783362][ T42] do_iter_readv_writev+0x21e/0x3c0 [ 55.789062][ T42] do_iter_write+0x17f/0x7f0 [ 55.794148][ T42] vfs_writev+0x221/0x700 [ 55.798984][ T42] do_pwritev+0x1af/0x260 [ 55.803814][ T42] __x64_sys_pwritev2+0xef/0x150 [ 55.809253][ T42] do_syscall_64+0x40/0x110 [ 55.814272][ T42] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 55.820671][ T42] [ 55.820671][ T42] -> #0 (&rl->lock){++++}-{3:3}: [ 55.827763][ T42] __lock_acquire+0x2433/0x3b20 [ 55.833132][ T42] lock_acquire+0x1ae/0x520 [ 55.838138][ T42] down_read+0x9a/0x330 [ 55.842795][ T42] ntfs_read_folio+0x1a98/0x2430 [ 55.848234][ T42] filemap_read_folio+0xe9/0x2c0 [ 55.853670][ T42] do_read_cache_folio+0x205/0x540 [ 55.859282][ T42] read_cache_page+0x5b/0x160 [ 55.864459][ T42] ntfs_sync_mft_mirror+0x242/0x1ed0 [ 55.870426][ T42] write_mft_record_nolock+0x1977/0x1da0 [ 55.876579][ T42] write_mft_record+0x14b/0x380 [ 55.881947][ T42] __ntfs_write_inode+0x91b/0xc30 [ 55.887516][ T42] __writeback_single_inode+0xa91/0xe90 [ 55.893566][ T42] writeback_sb_inodes+0x599/0x1080 [ 55.899270][ T42] wb_writeback+0x2a5/0xaa0 [ 55.904281][ T42] wb_workfn+0x29c/0xfe0 [ 55.909026][ T42] process_one_work+0x886/0x15d0 [ 55.914472][ T42] worker_thread+0x8b9/0x1290 [ 55.919648][ T42] kthread+0x2c6/0x3a0 [ 55.924245][ T42] ret_from_fork+0x45/0x80 [ 55.929179][ T42] ret_from_fork_asm+0x11/0x20 [ 55.934463][ T42] [ 55.934463][ T42] other info that might help us debug this: [ 55.934463][ T42] [ 55.944669][ T42] Possible unsafe locking scenario: [ 55.944669][ T42] [ 55.952123][ T42] CPU0 CPU1 [ 55.957466][ T42] ---- ---- [ 55.962807][ T42] lock(&ni->mrec_lock); [ 55.967139][ T42] lock(&rl->lock); [ 55.973530][ T42] lock(&ni->mrec_lock); [ 55.980386][ T42] rlock(&rl->lock); [ 55.984342][ T42] [ 55.984342][ T42] *** DEADLOCK *** [ 55.984342][ T42] [ 55.992461][ T42] 3 locks held by kworker/u4:2/42: [ 55.997550][ T42] #0: ffff888015664d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 [ 56.008139][ T42] #1: ffffc90000b2fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 [ 56.019949][ T42] #2: ffff88806c23b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 56.029326][ T42] [ 56.029326][ T42] stack backtrace: [ 56.035191][ T42] CPU: 1 PID: 42 Comm: kworker/u4:2 Not tainted 6.7.0-rc3-syzkaller-00014-gdf60cee26a2e #0 [ 56.045145][ T42] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 56.055185][ T42] Workqueue: writeback wb_workfn (flush-7:0) [ 56.061203][ T42] Call Trace: [ 56.064466][ T42] [ 56.067376][ T42] dump_stack_lvl+0xd9/0x1b0 [ 56.071951][ T42] check_noncircular+0x317/0x400 [ 56.076873][ T42] ? print_circular_bug+0x5c0/0x5c0 [ 56.082062][ T42] ? lockdep_lock+0x1b5/0x200 [ 56.086725][ T42] ? hlock_class+0x130/0x130 [ 56.091301][ T42] __lock_acquire+0x2433/0x3b20 [ 56.096144][ T42] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 56.102111][ T42] lock_acquire+0x1ae/0x520 [ 56.106597][ T42] ? ntfs_read_folio+0x1a98/0x2430 [ 56.111690][ T42] ? lock_sync+0x190/0x190 [ 56.116090][ T42] ? find_held_lock+0x2d/0x110 [ 56.120835][ T42] ? preempt_count_sub+0x160/0x160 [ 56.125930][ T42] down_read+0x9a/0x330 [ 56.130178][ T42] ? ntfs_read_folio+0x1a98/0x2430 [ 56.135274][ T42] ? rwsem_down_read_slowpath+0xb20/0xb20 [ 56.140979][ T42] ? mark_held_locks+0x9f/0xe0 [ 56.145733][ T42] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 56.151523][ T42] ntfs_read_folio+0x1a98/0x2430 [ 56.156448][ T42] ? find_held_lock+0x10/0x110 [ 56.161196][ T42] ? ntfs_end_buffer_async_read+0x18e0/0x18e0 [ 56.167245][ T42] ? folio_add_lru+0x451/0x7f0 [ 56.171986][ T42] ? ntfs_end_buffer_async_read+0x18e0/0x18e0 [ 56.178034][ T42] filemap_read_folio+0xe9/0x2c0 [ 56.182953][ T42] ? __folio_lock_killable+0x20/0x20 [ 56.188217][ T42] ? __filemap_get_folio+0x2b0/0xaa0 [ 56.193478][ T42] ? find_held_lock+0x2d/0x110 [ 56.198228][ T42] do_read_cache_folio+0x205/0x540 [ 56.203319][ T42] ? ntfs_end_buffer_async_read+0x18e0/0x18e0 [ 56.209371][ T42] read_cache_page+0x5b/0x160 [ 56.214029][ T42] ntfs_sync_mft_mirror+0x242/0x1ed0 [ 56.219302][ T42] ? should_fail_request+0x80/0x80 [ 56.224400][ T42] ? preempt_count_sub+0x160/0x160 [ 56.229491][ T42] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 56.236755][ T42] write_mft_record_nolock+0x1977/0x1da0 [ 56.242369][ T42] ? mark_held_locks+0x9f/0xe0 [ 56.247118][ T42] ? ntfs_sync_mft_mirror+0x1ed0/0x1ed0 [ 56.252643][ T42] ? preempt_count_sub+0x160/0x160 [ 56.257816][ T42] write_mft_record+0x14b/0x380 [ 56.262644][ T42] __ntfs_write_inode+0x91b/0xc30 [ 56.267644][ T42] __writeback_single_inode+0xa91/0xe90 [ 56.273171][ T42] ? __mark_inode_dirty+0xd60/0xd60 [ 56.278346][ T42] ? _raw_spin_unlock+0x28/0x40 [ 56.283178][ T42] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 56.289141][ T42] writeback_sb_inodes+0x599/0x1080 [ 56.294325][ T42] ? sync_inode_metadata+0xe0/0xe0 [ 56.299418][ T42] ? rcu_is_watching+0x12/0xb0 [ 56.304160][ T42] ? queue_io+0x3ed/0x4e0 [ 56.308465][ T42] wb_writeback+0x2a5/0xaa0 [ 56.312947][ T42] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 56.318425][ T42] ? reacquire_held_locks+0x4c0/0x4c0 [ 56.323786][ T42] ? mark_held_locks+0x9f/0xe0 [ 56.328537][ T42] wb_workfn+0x29c/0xfe0 [ 56.332761][ T42] ? lockdep_hardirqs_on_prepare+0x3b1/0x420 [ 56.338724][ T42] ? inode_wait_for_writeback+0x30/0x30 [ 56.344251][ T42] ? lock_sync+0x190/0x190 [ 56.348646][ T42] ? lock_sync+0x190/0x190 [ 56.353044][ T42] ? reacquire_held_locks+0x4c0/0x4c0 [ 56.358402][ T42] process_one_work+0x886/0x15d0 [ 56.363329][ T42] ? lock_sync+0x190/0x190 [ 56.367732][ T42] ? workqueue_congested+0x300/0x300 [ 56.373003][ T42] ? assign_work+0x1a0/0x250 [ 56.377579][ T42] worker_thread+0x8b9/0x1290 [ 56.382283][ T42] ? process_one_work+0x15d0/0x15d0 [ 56.387458][ T42] kthread+0x2c6/0x3a0 [ 56.391506][ T42] ? _raw_spin_unlock_irq+0x23/0x50 [ 56.396680][ T42] ? kthread_complete_and_exit+0x40/0x40 [ 56.402298][ T42] ret_from_fork+0x45/0x80 [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=21 /* 0.21 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 56.406697][ T42] ? kthread_complete_and_exit+