./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1386977289 <...> Warning: Permanently added '10.128.0.153' (ED25519) to the list of known hosts. execve("./syz-executor1386977289", ["./syz-executor1386977289"], 0x7ffd2bdfd0a0 /* 10 vars */) = 0 brk(NULL) = 0x555556efb000 brk(0x555556efbd00) = 0x555556efbd00 arch_prctl(ARCH_SET_FS, 0x555556efb380) = 0 set_tid_address(0x555556efb650) = 5038 set_robust_list(0x555556efb660, 24) = 0 rseq(0x555556efbca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1386977289", 4096) = 28 getrandom("\x0c\x82\xde\x89\x69\x28\xcd\x43", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555556efbd00 brk(0x555556f1cd00) = 0x555556f1cd00 brk(0x555556f1d000) = 0x555556f1d000 mprotect(0x7feb11b05000, 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 5039 attached [pid 5039] set_robust_list(0x555556efb660, 24 [pid 5038] <... clone resumed>, child_tidptr=0x555556efb650) = 5039 [pid 5039] <... set_robust_list resumed>) = 0 [pid 5039] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5039] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5039] setsid() = 1 [pid 5039] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5039] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5039] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5039] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5039] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5039] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5039] unshare(CLONE_NEWNS) = 0 [pid 5039] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5039] unshare(CLONE_NEWIPC) = 0 [pid 5039] unshare(CLONE_NEWCGROUP) = 0 [pid 5039] unshare(CLONE_NEWUTS) = 0 [pid 5039] unshare(CLONE_SYSVSEM) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "16777216", 8) = 8 [pid 5039] close(3) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "536870912", 9) = 9 [pid 5039] close(3) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "1024", 4) = 4 [pid 5039] close(3) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "8192", 4) = 4 [pid 5039] close(3) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "1024", 4) = 4 [pid 5039] close(3) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "1024", 4) = 4 [pid 5039] close(3) = 0 [pid 5039] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5039] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5039] close(3) = 0 [pid 5039] getpid() = 1 [pid 5039] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1< [671], 72057594037930097) = 613 [pid 5039] exit_group(1) = ? [ 57.851783][ T5039] syz-executor138 (5039): drop_caches: 1 [ 57.888902][ T5039] syz-executor138 (5039): drop_caches: 1 [ 57.905670][ T2872] [ 57.908025][ T2872] ====================================================== [ 57.915018][ T2872] WARNING: possible circular locking dependency detected [ 57.922019][ T2872] 6.6.0-rc7-syzkaller-00123-g3a568e3a961b #0 Not tainted [ 57.929030][ T2872] ------------------------------------------------------ [ 57.936024][ T2872] kworker/u4:7/2872 is trying to acquire lock: [ 57.942154][ T2872] ffff88823bd6c940 (&rl->lock){++++}-{3:3}, at: ntfs_read_folio+0x1d7f/0x3080 [ 57.951014][ T2872] [ 57.951014][ T2872] but task is already holding lock: [ 57.958352][ T2872] ffff888075e7aad0 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 57.967282][ T2872] [ 57.967282][ T2872] which lock already depends on the new lock. [ 57.967282][ T2872] [ 57.977660][ T2872] [ 57.977660][ T2872] the existing dependency chain (in reverse order) is: [ 57.986648][ T2872] [ 57.986648][ T2872] -> #1 (&ni->mrec_lock){+.+.}-{3:3}: [ 57.994176][ T2872] __mutex_lock+0x181/0x1340 [ 57.999269][ T2872] map_mft_record+0x4a/0x730 [ 58.004364][ T2872] ntfs_truncate+0x263/0x2a50 [ 58.009541][ T2872] ntfs_setattr+0x3dd/0x5b0 [ 58.014580][ T2872] notify_change+0x742/0x11c0 [ 58.019762][ T2872] do_truncate+0x15c/0x220 [ 58.024683][ T2872] path_openat+0x23f1/0x29c0 [ 58.029777][ T2872] do_filp_open+0x1de/0x430 [ 58.034779][ T2872] do_sys_openat2+0x176/0x1e0 [ 58.039951][ T2872] __x64_sys_openat+0x175/0x210 [ 58.045296][ T2872] do_syscall_64+0x38/0xb0 [ 58.050211][ T2872] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 58.056616][ T2872] [ 58.056616][ T2872] -> #0 (&rl->lock){++++}-{3:3}: [ 58.063727][ T2872] __lock_acquire+0x2e3d/0x5de0 [ 58.069080][ T2872] lock_acquire+0x1ae/0x510 [ 58.074084][ T2872] down_read+0x9c/0x470 [ 58.078734][ T2872] ntfs_read_folio+0x1d7f/0x3080 [ 58.084170][ T2872] filemap_read_folio+0xe9/0x2c0 [ 58.089605][ T2872] do_read_cache_folio+0x205/0x540 [ 58.095213][ T2872] read_cache_page+0x5b/0x230 [ 58.100387][ T2872] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 58.106173][ T2872] write_mft_record_nolock+0x1967/0x1d90 [ 58.112309][ T2872] write_mft_record+0x14b/0x380 [ 58.117658][ T2872] __ntfs_write_inode+0x91b/0xc30 [ 58.123181][ T2872] __writeback_single_inode+0xa81/0xe70 [ 58.129243][ T2872] writeback_sb_inodes+0x599/0x1070 [ 58.134939][ T2872] wb_writeback+0x2a5/0xa90 [ 58.139939][ T2872] wb_workfn+0x29c/0xfd0 [ 58.144681][ T2872] process_one_work+0x884/0x15c0 [ 58.150119][ T2872] worker_thread+0x8b9/0x1290 [ 58.155296][ T2872] kthread+0x33c/0x440 [ 58.159864][ T2872] ret_from_fork+0x45/0x80 [ 58.164779][ T2872] ret_from_fork_asm+0x11/0x20 [ 58.170042][ T2872] [ 58.170042][ T2872] other info that might help us debug this: [ 58.170042][ T2872] [ 58.180248][ T2872] Possible unsafe locking scenario: [ 58.180248][ T2872] [ 58.187675][ T2872] CPU0 CPU1 [ 58.193017][ T2872] ---- ---- [ 58.198359][ T2872] lock(&ni->mrec_lock); [ 58.202665][ T2872] lock(&rl->lock); [ 58.209054][ T2872] lock(&ni->mrec_lock); [ 58.215874][ T2872] rlock(&rl->lock); [ 58.219832][ T2872] [ 58.219832][ T2872] *** DEADLOCK *** [ 58.219832][ T2872] [ 58.227950][ T2872] 3 locks held by kworker/u4:7/2872: [ 58.233209][ T2872] #0: ffff888013a9c138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x787/0x15c0 [ 58.243804][ T2872] #1: ffffc9000a217d80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7e9/0x15c0 [ 58.255603][ T2872] #2: ffff888075e7aad0 (&ni->mrec_lock){+.+.}-{3:3}, at: map_mft_record+0x4a/0x730 [ 58.264969][ T2872] [ 58.264969][ T2872] stack backtrace: [ 58.270833][ T2872] CPU: 1 PID: 2872 Comm: kworker/u4:7 Not tainted 6.6.0-rc7-syzkaller-00123-g3a568e3a961b #0 [ 58.280977][ T2872] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 58.291126][ T2872] Workqueue: writeback wb_workfn (flush-7:0) [ 58.297103][ T2872] Call Trace: [ 58.300364][ T2872] [ 58.303300][ T2872] dump_stack_lvl+0xd9/0x1b0 [ 58.307875][ T2872] check_noncircular+0x311/0x3f0 [ 58.312798][ T2872] ? print_circular_bug+0x750/0x750 [ 58.317980][ T2872] __lock_acquire+0x2e3d/0x5de0 [ 58.322813][ T2872] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 58.328777][ T2872] lock_acquire+0x1ae/0x510 [ 58.333277][ T2872] ? ntfs_read_folio+0x1d7f/0x3080 [ 58.338366][ T2872] ? lock_sync+0x190/0x190 [ 58.342761][ T2872] ? find_held_lock+0x2d/0x110 [ 58.347502][ T2872] ? preempt_count_sub+0x150/0x150 [ 58.352601][ T2872] down_read+0x9c/0x470 [ 58.356737][ T2872] ? ntfs_read_folio+0x1d7f/0x3080 [ 58.361828][ T2872] ? down_write_killable+0x250/0x250 [ 58.367090][ T2872] ? mark_held_locks+0x9f/0xe0 [ 58.371834][ T2872] ? _raw_read_unlock_irqrestore+0x4e/0x70 [ 58.377619][ T2872] ntfs_read_folio+0x1d7f/0x3080 [ 58.382538][ T2872] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 58.388587][ T2872] ? folio_add_lru+0x451/0x7d0 [ 58.393329][ T2872] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 58.399370][ T2872] filemap_read_folio+0xe9/0x2c0 [ 58.404288][ T2872] ? __folio_lock_killable+0x20/0x20 [ 58.409551][ T2872] ? __filemap_get_folio+0x31c/0xbc0 [ 58.414820][ T2872] ? find_held_lock+0x2d/0x110 [ 58.419563][ T2872] do_read_cache_folio+0x205/0x540 [ 58.424656][ T2872] ? ntfs_end_buffer_async_read+0x18d0/0x18d0 [ 58.430699][ T2872] read_cache_page+0x5b/0x230 [ 58.435358][ T2872] ntfs_sync_mft_mirror+0x242/0x1eb0 [ 58.440623][ T2872] ? should_fail_request+0x80/0x80 [ 58.445714][ T2872] ? preempt_count_sub+0x150/0x150 [ 58.450825][ T2872] ? ntfs_mft_bitmap_extend_allocation_nolock+0x1f10/0x1f10 [ 58.458093][ T2872] write_mft_record_nolock+0x1967/0x1d90 [ 58.463736][ T2872] ? ntfs_sync_mft_mirror+0x1eb0/0x1eb0 [ 58.469263][ T2872] ? preempt_count_sub+0x150/0x150 [ 58.474357][ T2872] write_mft_record+0x14b/0x380 [ 58.479186][ T2872] __ntfs_write_inode+0x91b/0xc30 [ 58.484194][ T2872] __writeback_single_inode+0xa81/0xe70 [ 58.489715][ T2872] ? __mark_inode_dirty+0xd50/0xd50 [ 58.494893][ T2872] ? _raw_spin_unlock+0x28/0x40 [ 58.499723][ T2872] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 58.505694][ T2872] writeback_sb_inodes+0x599/0x1070 [ 58.510874][ T2872] ? sync_inode_metadata+0xe0/0xe0 [ 58.515966][ T2872] ? rcu_is_watching+0x12/0xb0 [ 58.520708][ T2872] ? queue_io+0x3ed/0x4e0 [ 58.525018][ T2872] wb_writeback+0x2a5/0xa90 [ 58.529499][ T2872] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 58.534948][ T2872] ? reacquire_held_locks+0x4b0/0x4b0 [ 58.540300][ T2872] ? mark_held_locks+0x9f/0xe0 [ 58.545046][ T2872] wb_workfn+0x29c/0xfd0 [ 58.549269][ T2872] ? inode_wait_for_writeback+0x30/0x30 [ 58.554795][ T2872] ? lock_sync+0x190/0x190 [ 58.559190][ T2872] ? lock_sync+0x190/0x190 [ 58.563604][ T2872] ? reacquire_held_locks+0x4b0/0x4b0 [ 58.568956][ T2872] process_one_work+0x884/0x15c0 [ 58.573878][ T2872] ? lock_sync+0x190/0x190 [ 58.578273][ T2872] ? init_worker_pool+0x770/0x770 [ 58.583276][ T2872] ? assign_work+0x1a0/0x240 [ 58.587843][ T2872] worker_thread+0x8b9/0x1290 [ 58.592504][ T2872] ? process_one_work+0x15c0/0x15c0 [ 58.597682][ T2872] kthread+0x33c/0x440 [ 58.601731][ T2872] ? _raw_spin_unlock_irq+0x23/0x50 [pid 5039] +++ exited with 1 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5039, si_uid=0, si_status=1, si_utime=0, si_stime=26 /* 0.26 s */} --- exit_group(0) = ? +++ exited with 0 +++ [ 58.606907][ T2872] ? kth