./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3893051260 <...> Warning: Permanently added '10.128.10.62' (ED25519) to the list of known hosts. execve("./syz-executor3893051260", ["./syz-executor3893051260"], 0x7fff35fdeb20 /* 10 vars */) = 0 brk(NULL) = 0x555555595000 brk(0x555555595d00) = 0x555555595d00 arch_prctl(ARCH_SET_FS, 0x555555595380) = 0 set_tid_address(0x555555595650) = 5053 set_robust_list(0x555555595660, 24) = 0 rseq(0x555555595ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3893051260", 4096) = 28 getrandom("\xd6\x7e\x02\xcd\xad\xd5\x38\xf1", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555595d00 brk(0x5555555b6d00) = 0x5555555b6d00 brk(0x5555555b7000) = 0x5555555b7000 mprotect(0x7f0f7c9cd000, 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 5054 attached , child_tidptr=0x555555595650) = 5054 [pid 5054] set_robust_list(0x555555595660, 24) = 0 [pid 5054] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5054] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5054] setsid() = 1 [pid 5054] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5054] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5054] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5054] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5054] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5054] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5054] unshare(CLONE_NEWNS) = 0 [pid 5054] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5054] unshare(CLONE_NEWIPC) = 0 [pid 5054] unshare(CLONE_NEWCGROUP) = 0 [pid 5054] unshare(CLONE_NEWUTS) = 0 [pid 5054] unshare(CLONE_SYSVSEM) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "16777216", 8) = 8 [pid 5054] close(3) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "536870912", 9) = 9 [pid 5054] close(3) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "1024", 4) = 4 [pid 5054] close(3) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "8192", 4) = 4 [pid 5054] close(3) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "1024", 4) = 4 [pid 5054] close(3) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "1024", 4) = 4 [pid 5054] close(3) = 0 [pid 5054] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5054] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5054] close(3) = 0 [pid 5054] getpid() = 1 [pid 5054] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 55.203830][ T139] [ 55.203830][ T139] but task is already holding lock: [ 55.211170][ T139] ffff88801e8760b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 55.220809][ T139] [ 55.220809][ T139] other info that might help us debug this: [ 55.228845][ T139] Possible unsafe locking scenario: [ 55.228845][ T139] [ 55.236274][ T139] CPU0 [ 55.239534][ T139] ---- [ 55.242792][ T139] lock(&tree->tree_lock/1); [ 55.247456][ T139] lock(&tree->tree_lock/1); [ 55.252122][ T139] [ 55.252122][ T139] *** DEADLOCK *** [ 55.252122][ T139] [ 55.260245][ T139] May be due to missing lock nesting notation [ 55.260245][ T139] [ 55.268542][ T139] 5 locks held by kworker/u4:5/139: [ 55.273719][ T139] #0: ffff888141a51d38 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 [ 55.284923][ T139] #1: ffffc90002d37d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 [ 55.297341][ T139] #2: ffff88807b0f0108 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_ext_write_extent+0x8e/0x1f0 [ 55.307941][ T139] #3: ffff88801e8760b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 55.318016][ T139] #4: ffff888023638108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 55.329476][ T139] [ 55.329476][ T139] stack backtrace: [ 55.335342][ T139] CPU: 0 PID: 139 Comm: kworker/u4:5 Not tainted 6.6.0-syzkaller-15601-g4bbdb725a36b #0 [ 55.345039][ T139] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 55.355075][ T139] Workqueue: writeback wb_workfn (flush-7:0) [ 55.361050][ T139] Call Trace: [ 55.364312][ T139] [ 55.367226][ T139] dump_stack_lvl+0x1e7/0x2d0 [ 55.371899][ T139] ? nf_tcp_handle_invalid+0x650/0x650 [ 55.377347][ T139] ? print_deadlock_bug+0x462/0x600 [ 55.382534][ T139] ? _find_first_zero_bit+0xd4/0x100 [ 55.387805][ T139] __lock_acquire+0x6a81/0x7f70 [ 55.392651][ T139] ? verify_lock_unused+0x140/0x140 [ 55.397831][ T139] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 55.403793][ T139] ? print_irqtrace_events+0x220/0x220 [ 55.409246][ T139] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 55.415131][ T139] ? lockdep_hardirqs_on+0x98/0x140 [ 55.420319][ T139] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 55.426200][ T139] ? _raw_spin_unlock+0x40/0x40 [ 55.431038][ T139] ? stack_trace_save+0x117/0x1c0 [ 55.436048][ T139] ? stack_trace_snprint+0xf0/0xf0 [ 55.441145][ T139] lock_acquire+0x1e3/0x520 [ 55.445639][ T139] ? hfsplus_find_init+0x14a/0x1c0 [ 55.450736][ T139] ? read_lock_is_recursive+0x20/0x20 [ 55.456090][ T139] ? __writeback_single_inode+0x69b/0xfa0 [ 55.461794][ T139] ? writeback_sb_inodes+0x8e3/0x1210 [ 55.467150][ T139] ? __might_sleep+0xc0/0xc0 [ 55.471723][ T139] ? kthread+0x2d3/0x370 [ 55.475945][ T139] ? ret_from_fork+0x48/0x80 [ 55.480516][ T139] ? ret_from_fork_asm+0x11/0x20 [ 55.485442][ T139] __mutex_lock+0x136/0xd60 [ 55.489932][ T139] ? hfsplus_find_init+0x14a/0x1c0 [ 55.495029][ T139] ? hfsplus_find_init+0x14a/0x1c0 [ 55.500124][ T139] ? mutex_lock_nested+0x20/0x20 [ 55.505048][ T139] ? hfsplus_find_init+0x85/0x1c0 [ 55.510055][ T139] ? rcu_is_watching+0x15/0xb0 [ 55.514802][ T139] ? hfsplus_find_init+0x85/0x1c0 [ 55.519809][ T139] ? __kmalloc+0xe6/0x230 [ 55.524123][ T139] ? rcu_is_watching+0x15/0xb0 [ 55.528875][ T139] hfsplus_find_init+0x14a/0x1c0 [ 55.533800][ T139] hfsplus_file_extend+0x454/0x1b70 [ 55.539002][ T139] ? hfsplus_get_block+0x14e0/0x14e0 [ 55.544284][ T139] ? rcu_is_watching+0x15/0xb0 [ 55.549034][ T139] ? trace_contention_end+0x3c/0xf0 [ 55.554217][ T139] ? hfsplus_brec_find+0x19d/0x570 [ 55.559315][ T139] ? hfsplus_find_init+0x14a/0x1c0 [ 55.564414][ T139] hfsplus_bmap_reserve+0x105/0x4e0 [ 55.569599][ T139] __hfsplus_ext_write_extent+0x2a4/0x5b0 [ 55.575305][ T139] hfsplus_ext_write_extent+0x16a/0x1f0 [ 55.580836][ T139] ? hfsplus_ext_cmp_key+0x2f0/0x2f0 [ 55.586109][ T139] ? do_raw_spin_lock+0x14d/0x3a0 [ 55.591121][ T139] hfsplus_write_inode+0x22/0x5e0 [ 55.596131][ T139] __writeback_single_inode+0x69b/0xfa0 [ 55.601675][ T139] writeback_sb_inodes+0x8e3/0x1210 [ 55.606877][ T139] ? queue_io+0x570/0x570 [ 55.611194][ T139] ? __writeback_inodes_wb+0x260/0x260 [ 55.616641][ T139] ? queue_io+0x3d5/0x570 [ 55.620956][ T139] wb_writeback+0x44d/0xc60 [ 55.625458][ T139] ? percpu_ref_tryget+0x260/0x260 [ 55.630555][ T139] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 55.636523][ T139] wb_workfn+0x400/0xff0 [ 55.640758][ T139] ? inode_wait_for_writeback+0x290/0x290 [ 55.646463][ T139] ? read_lock_is_recursive+0x20/0x20 [ 55.651819][ T139] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 55.657784][ T139] ? print_irqtrace_events+0x220/0x220 [ 55.663229][ T139] ? process_scheduled_works+0x825/0x1400 [ 55.668934][ T139] process_scheduled_works+0x90f/0x1400 [ 55.674473][ T139] ? assign_work+0x3d0/0x3d0 [ 55.679046][ T139] ? assign_work+0x364/0x3d0 [ 55.683622][ T139] worker_thread+0xa5f/0xff0 [ 55.688202][ T139] kthread+0x2d3/0x370 [ 55.692254][ T139] ? pr_cont_work+0x5e0/0x5e0 [ 55.696914][ T139] ? kthread_blkcg+0xd0/0xd0 [ 55.701485][ T139] ret_from_fork+0x48/0x80 [ 55.705887][ T139] ? kthread_blkcg+0xd0/0xd0 [ 55.710460][ T139] ret_from_fork_asm+0x11/0x20 [ 55.715216][ T139]