./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3275278799 <...> Warning: Permanently added '10.128.1.51' (ED25519) to the list of known hosts. execve("./syz-executor3275278799", ["./syz-executor3275278799"], 0x7ffc31ac7bd0 /* 10 vars */) = 0 brk(NULL) = 0x55555588f000 brk(0x55555588fd00) = 0x55555588fd00 arch_prctl(ARCH_SET_FS, 0x55555588f380) = 0 set_tid_address(0x55555588f650) = 5037 set_robust_list(0x55555588f660, 24) = 0 rseq(0x55555588fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3275278799", 4096) = 28 getrandom("\x7b\xc3\x25\xd4\x95\x6e\xc0\x16", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555588fd00 brk(0x5555558b0d00) = 0x5555558b0d00 brk(0x5555558b1000) = 0x5555558b1000 mprotect(0x7ffbfb5f5000, 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 5038 attached [pid 5038] set_robust_list(0x55555588f660, 24) = 0 [pid 5037] <... clone resumed>, child_tidptr=0x55555588f650) = 5038 [pid 5038] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5038] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5038] setsid() = 1 [pid 5038] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5038] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5038] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5038] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5038] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5038] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5038] unshare(CLONE_NEWNS) = 0 [pid 5038] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5038] unshare(CLONE_NEWIPC) = 0 [pid 5038] unshare(CLONE_NEWCGROUP) = 0 [pid 5038] unshare(CLONE_NEWUTS) = 0 [pid 5038] unshare(CLONE_SYSVSEM) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "16777216", 8) = 8 [pid 5038] close(3) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "536870912", 9) = 9 [pid 5038] close(3) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "1024", 4) = 4 [pid 5038] close(3) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "8192", 4) = 4 [pid 5038] close(3) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "1024", 4) = 4 [pid 5038] close(3) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "1024", 4) = 4 [pid 5038] close(3) = 0 [pid 5038] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5038] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5038] close(3) = 0 [pid 5038] getpid() = 1 [pid 5038] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [671], 553) = 553 [pid 5038] exit_group(1) = ? [ 55.423985][ T5038] syz-executor327 (5038): drop_caches: 1 [ 55.459807][ T5038] syz-executor327 (5038): drop_caches: 1 [ 55.477330][ T2853] [ 55.479664][ T2853] ====================================================== [ 55.486665][ T2853] WARNING: possible circular locking dependency detected [ 55.493670][ T2853] 6.6.0-rc6-syzkaller-00182-gce55c22ec8b2 #0 Not tainted [ 55.500690][ T2853] ------------------------------------------------------ [ 55.507700][ T2853] kworker/u4:13/2853 is trying to acquire lock: [ 55.514089][ T2853] ffff8880760e8940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1d7f/0x3080 [ 55.522966][ T2853] [ 55.522966][ T2853] but task is already holding lock: [ 55.530301][ T2853] ffff8880760eb310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 55.539225][ T2853] [ 55.539225][ T2853] which lock already depends on the new lock. [ 55.539225][ T2853] [ 55.549599][ T2853] [ 55.549599][ T2853] the existing dependency chain (in reverse order) is: [ 55.558684][ T2853] [ 55.558684][ T2853] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 55.566214][ T2853] __mutex_lock+0x181/0x1340 [ 55.571399][ T2853] map_mft_record+0x4a/0x730 [ 55.576487][ T2853] ntfs_truncate+0x263/0x2a50 [ 55.581660][ T2853] ntfs_setattr+0x3dd/0x5b0 [ 55.586664][ T2853] notify_change+0x742/0x11c0 [ 55.591894][ T2853] do_truncate+0x15c/0x220 [ 55.596824][ T2853] do_sys_ftruncate+0x6a2/0x790 [ 55.602185][ T2853] do_syscall_64+0x38/0xb0 [ 55.607103][ T2853] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.613531][ T2853] [ 55.613531][ T2853] -> #0 (&rl->lock){++++}-{3:3}: [ 55.620631][ T2853] __lock_acquire+0x2e3d/0x5de0 [ 55.625982][ T2853] lock_acquire+0x1ae/0x510 [ 55.630984][ T2853] down_read+0x9c/0x470 [ 55.635637][ T2853] ntfs_read_folio+0x1d7f/0x3080 [ 55.641160][ T2853] filemap_read_folio+0xe9/0x2c0 [ 55.646612][ T2853] do_read_cache_folio+0x205/0x540 [ 55.652221][ T2853] read_cache_page+0x5b/0x230 [ 55.657399][ T2853] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 55.663183][ T2853] write_mft_record_nolock+0x1967/0x1d90 [ 55.669343][ T2853] write_mft_record+0x14b/0x380 [ 55.674694][ T2853] __ntfs_write_inode+0x91b/0xc30 [ 55.680221][ T2853] __writeback_single_inode+0xa81/0xe70 [ 55.686271][ T2853] writeback_sb_inodes+0x599/0x1070 [ 55.691971][ T2853] wb_writeback+0x2a5/0xa90 [ 55.696967][ T2853] wb_workfn+0x29c/0xfd0 [ 55.701732][ T2853] process_one_work+0x884/0x15c0 [ 55.707182][ T2853] worker_thread+0x8b9/0x1290 [ 55.712358][ T2853] kthread+0x33c/0x440 [ 55.716931][ T2853] ret_from_fork+0x45/0x80 [ 55.721864][ T2853] ret_from_fork_asm+0x11/0x20 [ 55.727130][ T2853] [ 55.727130][ T2853] other info that might help us debug this: [ 55.727130][ T2853] [ 55.737349][ T2853] Possible unsafe locking scenario: [ 55.737349][ T2853] [ 55.744795][ T2853] CPU0 CPU1 [ 55.750139][ T2853] ---- ---- [ 55.755478][ T2853] lock(&ni->mrec_lock); [ 55.759785][ T2853] lock(&rl->lock); [ 55.766183][ T2853] lock(&ni->mrec_lock); [ 55.773007][ T2853] rlock(&rl->lock); [ 55.776960][ T2853] [ 55.776960][ T2853] *** DEADLOCK *** [ 55.776960][ T2853] [ 55.785079][ T2853] 3 locks held by kworker/u4:13/2853: [ 55.790423][ T2853] #0: ffff888142e61138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 [ 55.801034][ T2853] #1: ffffc9000a437d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 [ 55.812832][ T2853] #2: ffff8880760eb310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 55.822220][ T2853] [ 55.822220][ T2853] stack backtrace: [ 55.828098][ T2853] CPU: 0 PID: 2853 Comm: kworker/u4:13 Not tainted 6.6.0-rc6-syzkaller-00182-gce55c22ec8b2 #0 [ 55.838307][ T2853] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 [ 55.848342][ T2853] Workqueue: writeback wb_workfn (flush-7:0) [ 55.854311][ T2853] Call Trace: [ 55.857581][ T2853] [ 55.860491][ T2853] dump_stack_lvl+0xd9/0x1b0 [ 55.865085][ T2853] check_noncircular+0x311/0x3f0 [ 55.870005][ T2853] ? print_circular_bug+0x750/0x750 [ 55.875181][ T2853] ? native_queued_spin_lock_slowpath+0x9c0/0x9c0 [ 55.881584][ T2853] __lock_acquire+0x2e3d/0x5de0 [ 55.886483][ T2853] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 55.892446][ T2853] lock_acquire+0x1ae/0x510 [ 55.896926][ T2853] ? ntfs_read_folio+0x1d7f/0x3080 [ 55.902034][ T2853] ? lock_sync+0x190/0x190 [ 55.906439][ T2853] ? find_held_lock+0x2d/0x110 [ 55.911196][ T2853] ? preempt_count_sub+0x150/0x150 [ 55.916304][ T2853] down_read+0x9c/0x470 [ 55.920451][ T2853] ? ntfs_read_folio+0x1d7f/0x3080 [ 55.925540][ T2853] ? down_write_killable+0x250/0x250 [ 55.930806][ T2853] ? mark_held_locks+0x9f/0xe0 [ 55.935547][ T2853] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 55.941345][ T2853] ntfs_read_folio+0x1d7f/0x3080 [ 55.946265][ T2853] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 55.952311][ T2853] ? folio_add_lru+0x451/0x7d0 [ 55.957073][ T2853] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 55.963118][ T2853] filemap_read_folio+0xe9/0x2c0 [ 55.968051][ T2853] ? __folio_lock_killable+0x20/0x20 [ 55.973313][ T2853] ? __filemap_get_folio+0x31c/0xbc0 [ 55.978592][ T2853] ? find_held_lock+0x2d/0x110 [ 55.983344][ T2853] do_read_cache_folio+0x205/0x540 [ 55.988522][ T2853] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 55.994566][ T2853] read_cache_page+0x5b/0x230 [ 55.999222][ T2853] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 56.004490][ T2853] ? should_fail_request+0x80/0x80 [ 56.009577][ T2853] ? preempt_count_sub+0x150/0x150 [ 56.014668][ T2853] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 56.022038][ T2853] write_mft_record_nolock+0x1967/0x1d90 [ 56.027659][ T2853] ? ntfs_sync_mft_mirror+0x1eb0/0x1eb0 [ 56.033187][ T2853] ? preempt_count_sub+0x150/0x150 [ 56.038283][ T2853] write_mft_record+0x14b/0x380 [ 56.043113][ T2853] __ntfs_write_inode+0x91b/0xc30 [ 56.048118][ T2853] __writeback_single_inode+0xa81/0xe70 [ 56.053639][ T2853] ? __mark_inode_dirty+0xd50/0xd50 [ 56.058812][ T2853] ? _raw_spin_unlock+0x28/0x40 [ 56.063643][ T2853] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 56.069619][ T2853] writeback_sb_inodes+0x599/0x1070 [ 56.074800][ T2853] ? sync_inode_metadata+0xe0/0xe0 [ 56.079891][ T2853] ? rcu_is_watching+0x12/0xb0 [ 56.084630][ T2853] ? queue_io+0x3ed/0x4e0 [ 56.088929][ T2853] wb_writeback+0x2a5/0xa90 [ 56.093409][ T2853] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 56.098841][ T2853] ? reacquire_held_locks+0x4b0/0x4b0 [ 56.104206][ T2853] ? mark_held_locks+0x9f/0xe0 [ 56.108957][ T2853] wb_workfn+0x29c/0xfd0 [ 56.113180][ T2853] ? inode_wait_for_writeback+0x30/0x30 [ 56.118704][ T2853] ? lock_sync+0x190/0x190 [ 56.123102][ T2853] ? lock_sync+0x190/0x190 [ 56.127494][ T2853] ? reacquire_held_locks+0x4b0/0x4b0 [ 56.132847][ T2853] process_one_work+0x884/0x15c0 [ 56.137772][ T2853] ? lock_sync+0x190/0x190 [ 56.142166][ T2853] ? init_worker_pool+0x770/0x770 [ 56.147169][ T2853] ? assign_work+0x1a0/0x240 [ 56.151736][ T2853] worker_thread+0x8b9/0x1290 [ 56.156392][ T2853] ? process_one_work+0x15c0/0x15c0 [ 56.161767][ T2853] kthread+0x33c/0x440 [ 56.165812][ T2853] ? _raw_spin_unlock_irq+0x23/0x50 [ 56.170990][ T2853] ? kthread_complete_and_exit+0x40/0x40 [pid 5038] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5038, si_uid=0, si_status=1, si_utime=0, si_stime=38 /* 0.38 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 56.176600][ T2853] ret_from_fork+0x45/0