./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1677250763 <...> Warning: Permanently added '10.128.0.7' (ECDSA) to the list of known hosts. execve("./syz-executor1677250763", ["./syz-executor1677250763"], 0x7ffed43c8fc0 /* 10 vars */) = 0 brk(NULL) = 0x55555593f000 brk(0x55555593fc40) = 0x55555593fc40 arch_prctl(ARCH_SET_FS, 0x55555593f300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1677250763", 4096) = 28 brk(0x555555960c40) = 0x555555960c40 brk(0x555555961000) = 0x555555961000 mprotect(0x7f5fe42b7000, 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 5069 attached , child_tidptr=0x55555593f5d0) = 5069 [pid 5069] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5069] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5069] setsid() = 1 [pid 5069] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5069] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5069] unshare(CLONE_NEWNS) = 0 [pid 5069] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [pid 5069] unshare(CLONE_NEWIPC) = 0 [pid 5069] unshare(CLONE_NEWCGROUP) = 0 [pid 5069] unshare(CLONE_NEWUTS) = 0 [pid 5069] unshare(CLONE_SYSVSEM) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "16777216", 8) = 8 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "536870912", 9) = 9 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "8192", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024", 4) = 4 [pid 5069] close(3) = 0 [pid 5069] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5069] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5069] close(3) = 0 [pid 5069] getpid() = 1 [pid 5069] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 49.895882][ T11] [ 49.895882][ T11] but task is already holding lock: [ 49.903323][ T11] ffff88807966c0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 49.912982][ T11] [ 49.912982][ T11] other info that might help us debug this: [ 49.921046][ T11] Possible unsafe locking scenario: [ 49.921046][ T11] [ 49.928478][ T11] CPU0 [ 49.931746][ T11] ---- [ 49.935015][ T11] lock(&tree->tree_lock/1); [ 49.939687][ T11] lock(&tree->tree_lock/1); [ 49.944357][ T11] [ 49.944357][ T11] *** DEADLOCK *** [ 49.944357][ T11] [ 49.952487][ T11] May be due to missing lock nesting notation [ 49.952487][ T11] [ 49.960788][ T11] 5 locks held by kworker/u4:1/11: [ 49.965972][ T11] #0: ffff888016615938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 [ 49.976591][ T11] #1: ffffc90000107d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 [ 49.988410][ T11] #2: ffff88807b7ca988 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_ext_write_extent+0x8e/0x1f0 [ 49.999018][ T11] #3: ffff88807966c0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 50.009106][ T11] #4: ffff88807b7c8108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d6/0x1b10 [ 50.020580][ T11] [ 50.020580][ T11] stack backtrace: [ 50.026453][ T11] CPU: 0 PID: 11 Comm: kworker/u4:1 Not tainted 6.3.0-rc4-syzkaller-00195-g5a57b48fdfcb #0 [ 50.036414][ T11] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 [ 50.046456][ T11] Workqueue: writeback wb_workfn (flush-7:0) [ 50.052443][ T11] Call Trace: [ 50.055718][ T11] [ 50.058647][ T11] dump_stack_lvl+0x1e7/0x2d0 [ 50.063341][ T11] ? nf_tcp_handle_invalid+0x650/0x650 [ 50.068794][ T11] ? panic+0x770/0x770 [ 50.072858][ T11] validate_chain+0x472a/0x58e0 [ 50.077727][ T11] ? reacquire_held_locks+0x660/0x660 [ 50.083094][ T11] ? mark_lock+0x9a/0x340 [ 50.087414][ T11] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 50.093384][ T11] ? mark_lock+0x9a/0x340 [ 50.097701][ T11] __lock_acquire+0x125b/0x1f80 [ 50.102568][ T11] lock_acquire+0x1e1/0x520 [ 50.107059][ T11] ? hfsplus_find_init+0x14a/0x1c0 [ 50.112167][ T11] ? read_lock_is_recursive+0x20/0x20 [ 50.117528][ T11] ? hfsplus_bmap_reserve+0x105/0x4e0 [ 50.122896][ T11] ? __hfsplus_ext_write_extent+0x2a4/0x5b0 [ 50.128797][ T11] ? __might_sleep+0xc0/0xc0 [ 50.133378][ T11] ? wb_writeback+0x458/0xc70 [ 50.138048][ T11] ? wb_workfn+0x400/0xff0 [ 50.142457][ T11] ? process_one_work+0x8a0/0x10e0 [ 50.147573][ T11] ? worker_thread+0xa63/0x1210 [ 50.152414][ T11] ? kthread+0x270/0x300 [ 50.157084][ T11] ? ret_from_fork+0x1f/0x30 [ 50.161683][ T11] __mutex_lock_common+0x1d8/0x2530 [ 50.166879][ T11] ? hfsplus_find_init+0x14a/0x1c0 [ 50.172001][ T11] ? hfsplus_find_init+0x14a/0x1c0 [ 50.177107][ T11] ? mutex_lock_io_nested+0x60/0x60 [ 50.182299][ T11] ? hfsplus_find_init+0x85/0x1c0 [ 50.187314][ T11] ? rcu_is_watching+0x15/0xb0 [ 50.192067][ T11] ? hfsplus_find_init+0x85/0x1c0 [ 50.197080][ T11] ? __kmalloc+0xe6/0x230 [ 50.201400][ T11] mutex_lock_nested+0x1b/0x20 [ 50.206154][ T11] hfsplus_find_init+0x14a/0x1c0 [ 50.211087][ T11] hfsplus_file_extend+0x40e/0x1b10 [ 50.216279][ T11] ? hfsplus_get_block+0x14e0/0x14e0 [ 50.221554][ T11] ? rcu_is_watching+0x15/0xb0 [ 50.226304][ T11] ? trace_contention_end+0x3c/0xf0 [ 50.231501][ T11] ? __mutex_lock_common+0x42d/0x2530 [ 50.236879][ T11] ? hfsplus_brec_find+0x19d/0x570 [ 50.241982][ T11] hfsplus_bmap_reserve+0x105/0x4e0 [ 50.247181][ T11] __hfsplus_ext_write_extent+0x2a4/0x5b0 [ 50.252896][ T11] hfsplus_ext_write_extent+0x16a/0x1f0 [ 50.258432][ T11] ? hfsplus_ext_cmp_key+0x2f0/0x2f0 [ 50.263713][ T11] ? do_raw_spin_lock+0x14d/0x3a0 [ 50.268729][ T11] hfsplus_write_inode+0x22/0x5e0 [ 50.273746][ T11] __writeback_single_inode+0x69b/0xfb0 [ 50.279286][ T11] writeback_sb_inodes+0x8ef/0x11d0 [ 50.284490][ T11] ? queue_io+0x570/0x570 [ 50.288811][ T11] ? __writeback_inodes_wb+0x260/0x260 [ 50.294264][ T11] ? queue_io+0x3d5/0x570 [ 50.298586][ T11] wb_writeback+0x458/0xc70 [ 50.303095][ T11] ? rcu_lock_release+0x30/0x30 [ 50.308036][ T11] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 50.314009][ T11] wb_workfn+0x400/0xff0 [ 50.318248][ T11] ? inode_wait_for_writeback+0x290/0x290 [ 50.323959][ T11] ? read_lock_is_recursive+0x20/0x20 [ 50.329324][ T11] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 50.335292][ T11] ? print_irqtrace_events+0x220/0x220 [ 50.340735][ T11] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 50.346624][ T11] process_one_work+0x8a0/0x10e0 [ 50.351564][ T11] ? worker_detach_from_pool+0x290/0x290 [ 50.357185][ T11] ? _raw_spin_lock_irqsave+0x120/0x120 [ 50.362735][ T11] ? kthread_data+0x52/0xc0 [ 50.367226][ T11] ? wq_worker_running+0x9b/0x1a0 [ 50.372238][ T11] worker_thread+0xa63/0x1210 [ 50.376914][ T11] kthread+0x270/0x300 [ 50.380981][ T11] ? pr_cont_work+0x5e0/0x5e0 [ 50.385646][ T11] ? kthread_blkcg+0xd0/0xd0 [ 50.390223][ T11] ret_from_fork+0x1f/0x30 [ 50.394637][ T11]