./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1919935051 <...> Warning: Permanently added '10.128.1.87' (ED25519) to the list of known hosts. execve("./syz-executor1919935051", ["./syz-executor1919935051"], 0x7ffdce8dc620 /* 10 vars */) = 0 brk(NULL) = 0x555555d94000 brk(0x555555d94d00) = 0x555555d94d00 arch_prctl(ARCH_SET_FS, 0x555555d94380) = 0 set_tid_address(0x555555d94650) = 5036 set_robust_list(0x555555d94660, 24) = 0 rseq(0x555555d94ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1919935051", 4096) = 28 getrandom("\x14\x7f\x5c\x06\x19\xa1\xdd\x49", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555d94d00 brk(0x555555db5d00) = 0x555555db5d00 brk(0x555555db6000) = 0x555555db6000 mprotect(0x7f68bd3f7000, 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 5037 attached [pid 5037] set_robust_list(0x555555d94660, 24) = 0 [pid 5036] <... clone resumed>, child_tidptr=0x555555d94650) = 5037 [pid 5037] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5037] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5037] setsid() = 1 [pid 5037] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5037] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5037] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5037] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5037] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5037] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5037] unshare(CLONE_NEWNS) = 0 [pid 5037] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5037] unshare(CLONE_NEWIPC) = 0 [pid 5037] unshare(CLONE_NEWCGROUP) = 0 [pid 5037] unshare(CLONE_NEWUTS) = 0 [pid 5037] unshare(CLONE_SYSVSEM) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "16777216", 8) = 8 [pid 5037] close(3) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "536870912", 9) = 9 [pid 5037] close(3) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "1024", 4) = 4 [pid 5037] close(3) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "8192", 4) = 4 [pid 5037] close(3) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "1024", 4) = 4 [pid 5037] close(3) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "1024", 4) = 4 [pid 5037] close(3) = 0 [pid 5037] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5037] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5037] close(3) = 0 [pid 5037] getpid() = 1 [pid 5037] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [671], 553) = 553 [pid 5037] exit_group(1) = ? [ 73.021822][ T5037] syz-executor191 (5037): drop_caches: 1 [ 73.044938][ T5037] syz-executor191 (5037): drop_caches: 1 [ 73.060192][ T2810] [ 73.062523][ T2810] ====================================================== [ 73.069516][ T2810] WARNING: possible circular locking dependency detected [ 73.076520][ T2810] 6.6.0-rc4-syzkaller-00298-g37faf07bf90a #0 Not tainted [ 73.083513][ T2810] ------------------------------------------------------ [ 73.090504][ T2810] kworker/u4:9/2810 is trying to acquire lock: [ 73.096625][ T2810] ffff888077b38940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1d7f/0x3080 [ 73.105498][ T2810] [ 73.105498][ T2810] but task is already holding lock: [ 73.112851][ T2810] ffff888077b3b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 73.121779][ T2810] [ 73.121779][ T2810] which lock already depends on the new lock. [ 73.121779][ T2810] [ 73.132150][ T2810] [ 73.132150][ T2810] the existing dependency chain (in reverse order) is: [ 73.141143][ T2810] [ 73.141143][ T2810] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 73.148667][ T2810] __mutex_lock+0x181/0x1340 [ 73.153763][ T2810] map_mft_record+0x4a/0x730 [ 73.158853][ T2810] ntfs_truncate+0x263/0x2a50 [ 73.164028][ T2810] ntfs_setattr+0x3dd/0x5b0 [ 73.169026][ T2810] notify_change+0x742/0x11c0 [ 73.174215][ T2810] do_truncate+0x15c/0x220 [ 73.179133][ T2810] do_sys_ftruncate+0x6a2/0x790 [ 73.184481][ T2810] do_syscall_64+0x38/0xb0 [ 73.189394][ T2810] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 73.195783][ T2810] [ 73.195783][ T2810] -> #0 (&rl->lock){++++}-{3:3}: [ 73.202875][ T2810] __lock_acquire+0x2e3d/0x5de0 [ 73.208224][ T2810] lock_acquire+0x1ae/0x510 [ 73.213222][ T2810] down_read+0x9c/0x470 [ 73.217877][ T2810] ntfs_read_folio+0x1d7f/0x3080 [ 73.223308][ T2810] filemap_read_folio+0xe9/0x2c0 [ 73.228742][ T2810] do_read_cache_folio+0x205/0x540 [ 73.234350][ T2810] read_cache_page+0x5b/0x230 [ 73.239523][ T2810] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 73.245305][ T2810] write_mft_record_nolock+0x1967/0x1d90 [ 73.251433][ T2810] write_mft_record+0x14b/0x380 [ 73.256778][ T2810] __ntfs_write_inode+0x91b/0xc30 [ 73.262298][ T2810] __writeback_single_inode+0xa81/0xe70 [ 73.268340][ T2810] writeback_sb_inodes+0x599/0x1070 [ 73.274054][ T2810] wb_writeback+0x2a5/0xa90 [ 73.279051][ T2810] wb_workfn+0x29c/0xfd0 [ 73.283791][ T2810] process_one_work+0x884/0x15c0 [ 73.289223][ T2810] worker_thread+0x8b9/0x1290 [ 73.294395][ T2810] kthread+0x33c/0x440 [ 73.298958][ T2810] ret_from_fork+0x45/0x80 [ 73.303876][ T2810] ret_from_fork_asm+0x11/0x20 [ 73.309155][ T2810] [ 73.309155][ T2810] other info that might help us debug this: [ 73.309155][ T2810] [ 73.319355][ T2810] Possible unsafe locking scenario: [ 73.319355][ T2810] [ 73.326777][ T2810] CPU0 CPU1 [ 73.332115][ T2810] ---- ---- [ 73.337472][ T2810] lock(&ni->mrec_lock); [ 73.341780][ T2810] lock(&rl->lock); [ 73.348185][ T2810] lock(&ni->mrec_lock); [ 73.355019][ T2810] rlock(&rl->lock); [ 73.358974][ T2810] [ 73.358974][ T2810] *** DEADLOCK *** [ 73.358974][ T2810] [ 73.367113][ T2810] 3 locks held by kworker/u4:9/2810: [ 73.372378][ T2810] #0: ffff888140050138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 [ 73.382966][ T2810] #1: ffffc9000a52fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 [ 73.394761][ T2810] #2: ffff888077b3b310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 73.404125][ T2810] [ 73.404125][ T2810] stack backtrace: [ 73.409983][ T2810] CPU: 0 PID: 2810 Comm: kworker/u4:9 Not tainted 6.6.0-rc4-syzkaller-00298-g37faf07bf90a #0 [ 73.420107][ T2810] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 [ 73.430138][ T2810] Workqueue: writeback wb_workfn (flush-7:0) [ 73.436115][ T2810] Call Trace: [ 73.439373][ T2810] [ 73.442281][ T2810] dump_stack_lvl+0xd9/0x1b0 [ 73.446849][ T2810] check_noncircular+0x311/0x3f0 [ 73.451783][ T2810] ? print_circular_bug+0x750/0x750 [ 73.456961][ T2810] ? native_queued_spin_lock_slowpath+0x9c0/0x9c0 [ 73.463355][ T2810] __lock_acquire+0x2e3d/0x5de0 [ 73.468188][ T2810] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 73.474145][ T2810] lock_acquire+0x1ae/0x510 [ 73.478627][ T2810] ? ntfs_read_folio+0x1d7f/0x3080 [ 73.483715][ T2810] ? lock_sync+0x190/0x190 [ 73.488122][ T2810] ? find_held_lock+0x2d/0x110 [ 73.492876][ T2810] ? preempt_count_sub+0x150/0x150 [ 73.497987][ T2810] down_read+0x9c/0x470 [ 73.502122][ T2810] ? ntfs_read_folio+0x1d7f/0x3080 [ 73.507210][ T2810] ? down_write_killable+0x250/0x250 [ 73.512473][ T2810] ? mark_held_locks+0x9f/0xe0 [ 73.517220][ T2810] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 73.523002][ T2810] ntfs_read_folio+0x1d7f/0x3080 [ 73.527921][ T2810] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 73.533966][ T2810] ? folio_add_lru+0x451/0x7d0 [ 73.538708][ T2810] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 73.544755][ T2810] filemap_read_folio+0xe9/0x2c0 [ 73.549670][ T2810] ? __folio_lock_killable+0x20/0x20 [ 73.554932][ T2810] ? __filemap_get_folio+0x31c/0xbc0 [ 73.560201][ T2810] ? find_held_lock+0x2d/0x110 [ 73.564941][ T2810] do_read_cache_folio+0x205/0x540 [ 73.570033][ T2810] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 73.576097][ T2810] read_cache_page+0x5b/0x230 [ 73.580756][ T2810] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 73.586063][ T2810] ? should_fail_request+0x80/0x80 [ 73.591153][ T2810] ? preempt_count_sub+0x150/0x150 [ 73.596242][ T2810] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 73.603508][ T2810] write_mft_record_nolock+0x1967/0x1d90 [ 73.609126][ T2810] ? ntfs_sync_mft_mirror+0x1eb0/0x1eb0 [ 73.614649][ T2810] ? preempt_count_sub+0x150/0x150 [ 73.619744][ T2810] write_mft_record+0x14b/0x380 [ 73.624574][ T2810] __ntfs_write_inode+0x91b/0xc30 [ 73.629592][ T2810] __writeback_single_inode+0xa81/0xe70 [ 73.635112][ T2810] ? __mark_inode_dirty+0xd50/0xd50 [ 73.640285][ T2810] ? _raw_spin_unlock+0x28/0x40 [ 73.645125][ T2810] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 73.651081][ T2810] writeback_sb_inodes+0x599/0x1070 [ 73.656277][ T2810] ? sync_inode_metadata+0xe0/0xe0 [ 73.661373][ T2810] ? rcu_is_watching+0x12/0xb0 [ 73.666120][ T2810] ? queue_io+0x3ed/0x4e0 [ 73.670424][ T2810] wb_writeback+0x2a5/0xa90 [ 73.674903][ T2810] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 73.680356][ T2810] ? reacquire_held_locks+0x4b0/0x4b0 [ 73.685724][ T2810] ? mark_held_locks+0x9f/0xe0 [ 73.690469][ T2810] wb_workfn+0x29c/0xfd0 [ 73.694708][ T2810] ? inode_wait_for_writeback+0x30/0x30 [ 73.700235][ T2810] ? lock_sync+0x190/0x190 [ 73.704628][ T2810] ? lock_sync+0x190/0x190 [ 73.709024][ T2810] ? reacquire_held_locks+0x4b0/0x4b0 [ 73.714374][ T2810] process_one_work+0x884/0x15c0 [ 73.719297][ T2810] ? lock_sync+0x190/0x190 [ 73.723693][ T2810] ? init_worker_pool+0x770/0x770 [ 73.728699][ T2810] ? assign_work+0x1a0/0x240 [ 73.733267][ T2810] worker_thread+0x8b9/0x1290 [ 73.737929][ T2810] ? process_one_work+0x15c0/0x15c0 [ 73.743104][ T2810] kthread+0x33c/0x440 [ 73.747152][ T2810] ? _raw_spin_unlock_irq+0x23/0x50 [ 73.752346][ T2810] ? kthread_complete_and_exit+0x40/0x40 [ 73.757957][ T2810] ret_from_fork+0x45/0x80 [ 73.762351][ T2810] ? kthread_complete_and_exit+0x40/0x40 [ 73.767959][ T2810] ret_from_fork_asm+0x11/0x20 [pid 5037] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5037, si_uid=0, si_status=1, si_utime=0, si_stime=49 /* 0.49 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 73.772706][ T2810]