./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor225081625 <...> Warning: Permanently added '10.128.0.112' (ED25519) to the list of known hosts. execve("./syz-executor225081625", ["./syz-executor225081625"], 0x7ffd0aa44bf0 /* 10 vars */) = 0 brk(NULL) = 0x555555c0f000 brk(0x555555c0fd00) = 0x555555c0fd00 arch_prctl(ARCH_SET_FS, 0x555555c0f380) = 0 set_tid_address(0x555555c0f650) = 5052 set_robust_list(0x555555c0f660, 24) = 0 rseq(0x555555c0fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor225081625", 4096) = 27 getrandom("\x28\x9b\xc2\x68\xed\x11\xc0\x42", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555c0fd00 brk(0x555555c30d00) = 0x555555c30d00 brk(0x555555c31000) = 0x555555c31000 mprotect(0x7f05d2dd3000, 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=0x555555c0f650) = 5053 ./strace-static-x86_64: Process 5053 attached [pid 5053] set_robust_list(0x555555c0f660, 24) = 0 [pid 5053] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5053] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5053] setsid() = 1 [pid 5053] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5053] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5053] unshare(CLONE_NEWNS) = 0 [pid 5053] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5053] unshare(CLONE_NEWIPC) = 0 [pid 5053] unshare(CLONE_NEWCGROUP) = 0 [pid 5053] unshare(CLONE_NEWUTS) = 0 [pid 5053] unshare(CLONE_SYSVSEM) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "16777216", 8) = 8 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "536870912", 9) = 9 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "8192", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024", 4) = 4 [pid 5053] close(3) = 0 [pid 5053] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5053] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5053] close(3) = 0 [pid 5053] getpid() = 1 [pid 5053] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [671], 72057594037930097) = 613 [pid 5053] exit_group(1) = ? [ 56.651353][ T5053] syz-executor225 (5053): drop_caches: 1 [ 56.691015][ T5053] syz-executor225 (5053): drop_caches: 1 [ 56.709355][ T48] [ 56.711722][ T48] ====================================================== [ 56.718729][ T48] WARNING: possible circular locking dependency detected [ 56.725728][ T48] 6.6.0-syzkaller-06824-g8bc9e6515183 #0 Not tainted [ 56.732380][ T48] ------------------------------------------------------ [ 56.739393][ T48] kworker/u4:3/48 is trying to acquire lock: [ 56.745348][ T48] ffff8880778f8940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1d7f/0x3080 [ 56.754222][ T48] [ 56.754222][ T48] but task is already holding lock: [ 56.761565][ T48] ffff8880778fb310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 56.770513][ T48] [ 56.770513][ T48] which lock already depends on the new lock. [ 56.770513][ T48] [ 56.780900][ T48] [ 56.780900][ T48] the existing dependency chain (in reverse order) is: [ 56.789897][ T48] [ 56.789897][ T48] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 56.797427][ T48] __mutex_lock+0x181/0x1340 [ 56.802554][ T48] map_mft_record+0x4a/0x730 [ 56.807645][ T48] ntfs_truncate+0x263/0x2a10 [ 56.812823][ T48] ntfs_setattr+0x44d/0x640 [ 56.817828][ T48] notify_change+0x742/0x11c0 [ 56.823008][ T48] do_truncate+0x15c/0x220 [ 56.827925][ T48] path_openat+0x2601/0x2c40 [ 56.833013][ T48] do_filp_open+0x1de/0x430 [ 56.838014][ T48] do_sys_openat2+0x176/0x1e0 [ 56.843195][ T48] __x64_sys_openat+0x175/0x210 [ 56.848547][ T48] do_syscall_64+0x3f/0x110 [ 56.853587][ T48] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 56.860011][ T48] [ 56.860011][ T48] -> #0 (&rl->lock){++++}-{3:3}: [ 56.867106][ T48] __lock_acquire+0x2e3d/0x5de0 [ 56.872465][ T48] lock_acquire+0x1ae/0x510 [ 56.877474][ T48] down_read+0x9c/0x470 [ 56.882133][ T48] ntfs_read_folio+0x1d7f/0x3080 [ 56.887574][ T48] filemap_read_folio+0xe9/0x2c0 [ 56.893016][ T48] do_read_cache_folio+0x205/0x540 [ 56.898631][ T48] read_cache_page+0x5b/0x230 [ 56.903816][ T48] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 56.909602][ T48] write_mft_record_nolock+0x1967/0x1d90 [ 56.915739][ T48] write_mft_record+0x14b/0x380 [ 56.921091][ T48] __ntfs_write_inode+0x91b/0xc30 [ 56.926616][ T48] __writeback_single_inode+0xa81/0xe70 [ 56.932666][ T48] writeback_sb_inodes+0x599/0x1070 [ 56.938366][ T48] wb_writeback+0x2a5/0xa90 [ 56.943371][ T48] wb_workfn+0x29c/0xfd0 [ 56.948115][ T48] process_one_work+0x884/0x15c0 [ 56.953558][ T48] worker_thread+0x8b9/0x1290 [ 56.958765][ T48] kthread+0x33c/0x440 [ 56.963336][ T48] ret_from_fork+0x45/0x80 [ 56.968252][ T48] ret_from_fork_asm+0x11/0x20 [ 56.973522][ T48] [ 56.973522][ T48] other info that might help us debug this: [ 56.973522][ T48] [ 56.983729][ T48] Possible unsafe locking scenario: [ 56.983729][ T48] [ 56.991154][ T48] CPU0 CPU1 [ 56.996496][ T48] ---- ---- [ 57.001844][ T48] lock(&ni->mrec_lock); [ 57.006155][ T48] lock(&rl->lock); [ 57.012576][ T48] lock(&ni->mrec_lock); [ 57.019402][ T48] rlock(&rl->lock); [ 57.023365][ T48] [ 57.023365][ T48] *** DEADLOCK *** [ 57.023365][ T48] [ 57.031511][ T48] 3 locks held by kworker/u4:3/48: [ 57.036625][ T48] #0: ffff88801566b938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 [ 57.047217][ T48] #1: ffffc90000b8fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 [ 57.059025][ T48] #2: ffff8880778fb310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 57.068400][ T48] [ 57.068400][ T48] stack backtrace: [ 57.074267][ T48] CPU: 1 PID: 48 Comm: kworker/u4:3 Not tainted 6.6.0-syzkaller-06824-g8bc9e6515183 #0 [ 57.083876][ T48] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 57.093918][ T48] Workqueue: writeback wb_workfn (flush-7:0) [ 57.100004][ T48] Call Trace: [ 57.103271][ T48] [ 57.106192][ T48] dump_stack_lvl+0xd9/0x1b0 [ 57.110774][ T48] check_noncircular+0x311/0x3f0 [ 57.115705][ T48] ? print_circular_bug+0x750/0x750 [ 57.120917][ T48] ? rcu_is_watching+0x12/0xb0 [ 57.125670][ T48] __lock_acquire+0x2e3d/0x5de0 [ 57.130517][ T48] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 57.136515][ T48] lock_acquire+0x1ae/0x510 [ 57.141008][ T48] ? ntfs_read_folio+0x1d7f/0x3080 [ 57.146111][ T48] ? lock_sync+0x190/0x190 [ 57.150517][ T48] ? find_held_lock+0x2d/0x110 [ 57.155266][ T48] ? preempt_count_sub+0x150/0x150 [ 57.160363][ T48] down_read+0x9c/0x470 [ 57.164509][ T48] ? ntfs_read_folio+0x1d7f/0x3080 [ 57.169604][ T48] ? down_write_killable+0x250/0x250 [ 57.174909][ T48] ? mark_held_locks+0x9f/0xe0 [ 57.179666][ T48] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 57.185463][ T48] ntfs_read_folio+0x1d7f/0x3080 [ 57.190389][ T48] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 57.196440][ T48] ? folio_add_lru+0x451/0x7d0 [ 57.201187][ T48] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 57.207236][ T48] filemap_read_folio+0xe9/0x2c0 [ 57.212164][ T48] ? __folio_lock_killable+0x20/0x20 [ 57.217437][ T48] ? __filemap_get_folio+0x31c/0xbc0 [ 57.222707][ T48] ? find_held_lock+0x2d/0x110 [ 57.227453][ T48] do_read_cache_folio+0x205/0x540 [ 57.232549][ T48] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 57.238597][ T48] read_cache_page+0x5b/0x230 [ 57.243263][ T48] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 57.248535][ T48] ? should_fail_request+0x80/0x80 [ 57.253633][ T48] ? preempt_count_sub+0x150/0x150 [ 57.258728][ T48] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 57.265997][ T48] write_mft_record_nolock+0x1967/0x1d90 [ 57.271623][ T48] ? ntfs_sync_mft_mirror+0x1eb0/0x1eb0 [ 57.277156][ T48] ? preempt_count_sub+0x150/0x150 [ 57.282252][ T48] write_mft_record+0x14b/0x380 [ 57.287084][ T48] __ntfs_write_inode+0x91b/0xc30 [ 57.292092][ T48] __writeback_single_inode+0xa81/0xe70 [ 57.297625][ T48] ? __mark_inode_dirty+0xd50/0xd50 [ 57.302808][ T48] ? _raw_spin_unlock+0x28/0x40 [ 57.307646][ T48] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 57.313633][ T48] writeback_sb_inodes+0x599/0x1070 [ 57.318832][ T48] ? sync_inode_metadata+0xe0/0xe0 [ 57.323928][ T48] ? rcu_is_watching+0x12/0xb0 [ 57.328720][ T48] ? queue_io+0x3ed/0x4e0 [ 57.333050][ T48] wb_writeback+0x2a5/0xa90 [ 57.337551][ T48] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 57.342997][ T48] ? reacquire_held_locks+0x4b0/0x4b0 [ 57.348377][ T48] ? mark_held_locks+0x9f/0xe0 [ 57.353131][ T48] wb_workfn+0x29c/0xfd0 [ 57.357388][ T48] ? inode_wait_for_writeback+0x30/0x30 [ 57.362926][ T48] ? lock_sync+0x190/0x190 [ 57.367330][ T48] ? lock_sync+0x190/0x190 [ 57.371738][ T48] ? reacquire_held_locks+0x4b0/0x4b0 [ 57.377103][ T48] process_one_work+0x884/0x15c0 [ 57.382031][ T48] ? lock_sync+0x190/0x190 [ 57.386452][ T48] ? init_worker_pool+0x770/0x770 [ 57.391458][ T48] ? assign_work+0x1a0/0x240 [ 57.396030][ T48] worker_thread+0x8b9/0x1290 [ 57.400693][ T48] ? process_one_work+0x15c0/0x15c0 [ 57.405874][ T48] kthread+0x33c/0x440 [pid 5053] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5053, si_uid=0, si_status=1, si_utime=1 /* 0.01 s */, si_stime=24 /* 0.24 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 57.409923][ T48] ? _raw