./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor453491144 <...> Warning: Permanently added '10.128.0.212' (ED25519) to the list of known hosts. execve("./syz-executor453491144", ["./syz-executor453491144"], 0x7fffed522240 /* 10 vars */) = 0 brk(NULL) = 0x555555a00000 brk(0x555555a00d00) = 0x555555a00d00 arch_prctl(ARCH_SET_FS, 0x555555a00380) = 0 set_tid_address(0x555555a00650) = 5065 set_robust_list(0x555555a00660, 24) = 0 rseq(0x555555a00ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor453491144", 4096) = 27 getrandom("\x66\x90\x0a\xbe\x1a\x3b\x1d\x00", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555a00d00 brk(0x555555a21d00) = 0x555555a21d00 brk(0x555555a22000) = 0x555555a22000 mprotect(0x7efdcef5b000, 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 5066 attached , child_tidptr=0x555555a00650) = 5066 [pid 5066] set_robust_list(0x555555a00660, 24) = 0 [pid 5066] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5066] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5066] setsid() = 1 [pid 5066] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5066] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5066] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5066] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5066] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5066] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5066] unshare(CLONE_NEWNS) = 0 [pid 5066] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5066] unshare(CLONE_NEWIPC) = 0 [pid 5066] unshare(CLONE_NEWCGROUP) = 0 [pid 5066] unshare(CLONE_NEWUTS) = 0 [pid 5066] unshare(CLONE_SYSVSEM) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "16777216", 8) = 8 [pid 5066] close(3) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "536870912", 9) = 9 [pid 5066] close(3) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "1024", 4) = 4 [pid 5066] close(3) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "8192", 4) = 4 [pid 5066] close(3) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "1024", 4) = 4 [pid 5066] close(3) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "1024", 4) = 4 [pid 5066] close(3) = 0 [pid 5066] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5066] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5066] close(3) = 0 [pid 5066] getpid() = 1 [pid 5066] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [671], 553) = 553 [pid 5066] exit_group(1) = ? [ 57.550427][ T5066] syz-executor453 (5066): drop_caches: 1 [ 57.567460][ T63] [ 57.569790][ T63] ====================================================== [ 57.576781][ T63] WARNING: possible circular locking dependency detected [ 57.583789][ T63] 6.6.0-syzkaller-14500-g1c41041124bd #0 Not tainted [ 57.590433][ T63] ------------------------------------------------------ [ 57.597419][ T63] kworker/u4:5/63 is trying to acquire lock: [ 57.603366][ T63] ffff88807dd50940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1a96/0x2420 [ 57.612233][ T63] [ 57.612233][ T63] but task is already holding lock: [ 57.619579][ T63] ffff88807dd53310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 57.628528][ T63] [ 57.628528][ T63] which lock already depends on the new lock. [ 57.628528][ T63] [ 57.638909][ T63] [ 57.638909][ T63] the existing dependency chain (in reverse order) is: [ 57.647902][ T63] [ 57.647902][ T63] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 57.655444][ T63] __mutex_lock+0x181/0x1340 [ 57.660555][ T63] map_mft_record+0x4a/0x730 [ 57.665660][ T63] ntfs_attr_extend_allocation+0x268/0x3830 [ 57.672060][ T63] ntfs_file_write_iter+0xaa0/0x2060 [ 57.677857][ T63] vfs_write+0x64f/0xdf0 [ 57.682617][ T63] ksys_write+0x12f/0x250 [ 57.687459][ T63] do_syscall_64+0x3f/0x110 [ 57.692478][ T63] entry_SYSCALL_64_after_hwframe+0x63/0x6b [ 57.698893][ T63] [ 57.698893][ T63] -> #0 (&rl->lock){++++}-{3:3}: [ 57.705998][ T63] __lock_acquire+0x2e3d/0x5de0 [ 57.711365][ T63] lock_acquire+0x1ae/0x510 [ 57.716405][ T63] down_read+0x9c/0x470 [ 57.721102][ T63] ntfs_read_folio+0x1a96/0x2420 [ 57.726554][ T63] filemap_read_folio+0xe9/0x2c0 [ 57.732017][ T63] do_read_cache_folio+0x205/0x540 [ 57.737642][ T63] read_cache_page+0x5b/0x160 [ 57.742830][ T63] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 57.748629][ T63] write_mft_record_nolock+0x1967/0x1d90 [ 57.754771][ T63] write_mft_record+0x14b/0x380 [ 57.760131][ T63] __ntfs_write_inode+0x91b/0xc30 [ 57.765666][ T63] __writeback_single_inode+0xa81/0xe70 [ 57.771736][ T63] writeback_sb_inodes+0x599/0x1070 [ 57.777447][ T63] wb_writeback+0x2a5/0xa90 [ 57.782460][ T63] wb_workfn+0x29c/0xfd0 [ 57.787214][ T63] process_one_work+0x884/0x15c0 [ 57.792666][ T63] worker_thread+0x8b9/0x1290 [ 57.797850][ T63] kthread+0x33c/0x440 [ 57.802430][ T63] ret_from_fork+0x45/0x80 [ 57.807359][ T63] ret_from_fork_asm+0x11/0x20 [ 57.812640][ T63] [ 57.812640][ T63] other info that might help us debug this: [ 57.812640][ T63] [ 57.822848][ T63] Possible unsafe locking scenario: [ 57.822848][ T63] [ 57.830283][ T63] CPU0 CPU1 [ 57.835631][ T63] ---- ---- [ 57.840978][ T63] lock(&ni->mrec_lock); [ 57.845292][ T63] lock(&rl->lock); [ 57.851696][ T63] lock(&ni->mrec_lock); [ 57.858528][ T63] rlock(&rl->lock); [ 57.862495][ T63] [ 57.862495][ T63] *** DEADLOCK *** [ 57.862495][ T63] [ 57.870618][ T63] 3 locks held by kworker/u4:5/63: [ 57.875711][ T63] #0: ffff88801566f938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 [ 57.886331][ T63] #1: ffffc900015e7d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 [ 57.898152][ T63] #2: ffff88807dd53310 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 57.907541][ T63] [ 57.907541][ T63] stack backtrace: [ 57.913414][ T63] CPU: 0 PID: 63 Comm: kworker/u4:5 Not tainted 6.6.0-syzkaller-14500-g1c41041124bd #0 [ 57.923031][ T63] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 57.933077][ T63] Workqueue: writeback wb_workfn (flush-7:0) [ 57.939068][ T63] Call Trace: [ 57.942335][ T63] [ 57.945254][ T63] dump_stack_lvl+0xd9/0x1b0 [ 57.949839][ T63] check_noncircular+0x311/0x3f0 [ 57.954777][ T63] ? print_circular_bug+0x750/0x750 [ 57.959997][ T63] ? native_queued_spin_lock_slowpath+0x9c0/0x9c0 [ 57.966409][ T63] __lock_acquire+0x2e3d/0x5de0 [ 57.971262][ T63] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 57.977242][ T63] lock_acquire+0x1ae/0x510 [ 57.981740][ T63] ? ntfs_read_folio+0x1a96/0x2420 [ 57.986843][ T63] ? lock_sync+0x190/0x190 [ 57.991254][ T63] ? find_held_lock+0x2d/0x110 [ 57.996006][ T63] ? preempt_count_sub+0x150/0x150 [ 58.001107][ T63] down_read+0x9c/0x470 [ 58.005266][ T63] ? ntfs_read_folio+0x1a96/0x2420 [ 58.010369][ T63] ? down_write_killable+0x250/0x250 [ 58.015650][ T63] ? mark_held_locks+0x9f/0xe0 [ 58.020409][ T63] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 58.026209][ T63] ntfs_read_folio+0x1a96/0x2420 [ 58.031140][ T63] ? __print_lock_name+0x200/0x260 [ 58.036248][ T63] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 58.042310][ T63] ? folio_add_lru+0x451/0x7d0 [ 58.047075][ T63] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 58.053130][ T63] filemap_read_folio+0xe9/0x2c0 [ 58.058068][ T63] ? __folio_lock_killable+0x20/0x20 [ 58.063346][ T63] ? __filemap_get_folio+0x2b0/0xa90 [ 58.068625][ T63] ? find_held_lock+0x2d/0x110 [ 58.073384][ T63] do_read_cache_folio+0x205/0x540 [ 58.078496][ T63] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 58.084554][ T63] read_cache_page+0x5b/0x160 [ 58.089232][ T63] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 58.094512][ T63] ? should_fail_request+0x80/0x80 [ 58.099624][ T63] ? preempt_count_sub+0x150/0x150 [ 58.104724][ T63] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 58.112004][ T63] write_mft_record_nolock+0x1967/0x1d90 [ 58.117638][ T63] ? mark_held_locks+0x9f/0xe0 [ 58.122400][ T63] ? ntfs_sync_mft_mirror+0x1eb0/0x1eb0 [ 58.127938][ T63] ? preempt_count_sub+0x150/0x150 [ 58.133035][ T63] write_mft_record+0x14b/0x380 [ 58.137878][ T63] __ntfs_write_inode+0x91b/0xc30 [ 58.142893][ T63] __writeback_single_inode+0xa81/0xe70 [ 58.148438][ T63] ? __mark_inode_dirty+0xd50/0xd50 [ 58.153628][ T63] ? _raw_spin_unlock+0x28/0x40 [ 58.158468][ T63] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 58.164445][ T63] writeback_sb_inodes+0x599/0x1070 [ 58.169642][ T63] ? sync_inode_metadata+0xe0/0xe0 [ 58.174758][ T63] ? rcu_is_watching+0x12/0xb0 [ 58.179510][ T63] ? queue_io+0x3ed/0x4e0 [ 58.183830][ T63] wb_writeback+0x2a5/0xa90 [ 58.188332][ T63] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 58.193783][ T63] ? reacquire_held_locks+0x4b0/0x4b0 [ 58.199152][ T63] ? mark_held_locks+0x9f/0xe0 [ 58.203908][ T63] wb_workfn+0x29c/0xfd0 [ 58.208152][ T63] ? inode_wait_for_writeback+0x30/0x30 [ 58.213693][ T63] ? lock_sync+0x190/0x190 [ 58.218100][ T63] ? lock_sync+0x190/0x190 [ 58.222510][ T63] ? reacquire_held_locks+0x4b0/0x4b0 [ 58.227879][ T63] process_one_work+0x884/0x15c0 [ 58.232812][ T63] ? lock_sync+0x190/0x190 [ 58.237218][ T63] ? init_worker_pool+0x770/0x770 [ 58.242233][ T63] ? assign_work+0x1a0/0x240 [ 58.246813][ T63] worker_thread+0x8b9/0x1290 [pid 5066] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5066, si_uid=0, si_status=1, si_utime=0, si_stime=47 /* 0.47 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 58.251487][ T63] ? process_one_work+0x15c0/0x15c0 [ 58.256695][ T63] kthread+0x33c/0x440 [ 58.260757][ T63] ? _raw_spin_unlock_irq+0x23/0x50 [ 58.265945][ T63] ? kthread_complete_and_exit+0x40/0x40 [ 58.271572][ T63] ret_from_fork+0x45/0x80 [ 58.275983][ T63] ? kthread_complete_and_exit+0x40/0x40 [ 58.281607][ T63] ret_from_fork_asm+0x11/0x20 [ 58.286371][ T63]