Warning: Permanently added '10.128.1.86' (ED25519) to the list of known hosts. executing program [ 42.300005][ T6082] syz-executor377[6082]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 42.309325][ T6082] loop0: detected capacity change from 0 to 1024 [ 42.337107][ T11] hfsplus: b-tree write err: -5, ino 8 [ 42.338921][ T11] [ 42.339580][ T11] ============================================ [ 42.341164][ T11] WARNING: possible recursive locking detected [ 42.342721][ T11] 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Not tainted [ 42.344428][ T11] -------------------------------------------- [ 42.346024][ T11] kworker/u4:0/11 is trying to acquire lock: [ 42.347595][ T11] ffff0000d74c00b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 42.350242][ T11] [ 42.350242][ T11] but task is already holding lock: [ 42.352148][ T11] ffff0000d74c00b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 42.354682][ T11] [ 42.354682][ T11] other info that might help us debug this: [ 42.356805][ T11] Possible unsafe locking scenario: [ 42.356805][ T11] [ 42.358782][ T11] CPU0 [ 42.359646][ T11] ---- [ 42.360518][ T11] lock(&tree->tree_lock/1); [ 42.361731][ T11] lock(&tree->tree_lock/1); [ 42.362931][ T11] [ 42.362931][ T11] *** DEADLOCK *** [ 42.362931][ T11] [ 42.365100][ T11] May be due to missing lock nesting notation [ 42.365100][ T11] [ 42.367238][ T11] 5 locks held by kworker/u4:0/11: [ 42.368559][ T11] #0: ffff0000c1c0e138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 [ 42.371463][ T11] #1: ffff800092d67c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 [ 42.374508][ T11] #2: ffff0000d55ea988 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_ext_write_extent+0x8c/0x1d8 [ 42.377308][ T11] #3: ffff0000d74c00b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 42.379986][ T11] #4: ffff0000d55e8108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d0/0x1544 [ 42.383051][ T11] [ 42.383051][ T11] stack backtrace: [ 42.384527][ T11] CPU: 1 PID: 11 Comm: kworker/u4:0 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 [ 42.387039][ T11] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 42.389779][ T11] Workqueue: writeback wb_workfn (flush-7:0) [ 42.391386][ T11] Call trace: [ 42.392310][ T11] dump_backtrace+0x1b8/0x1e4 [ 42.393567][ T11] show_stack+0x2c/0x44 [ 42.394829][ T11] dump_stack_lvl+0xd0/0x124 [ 42.396096][ T11] dump_stack+0x1c/0x28 [ 42.397120][ T11] print_deadlock_bug+0x4e4/0x660 [ 42.398488][ T11] __lock_acquire+0x5fd0/0x75e8 [ 42.399715][ T11] lock_acquire+0x23c/0x71c [ 42.400996][ T11] __mutex_lock_common+0x190/0x21a0 [ 42.402377][ T11] mutex_lock_nested+0x2c/0x38 [ 42.403642][ T11] hfsplus_find_init+0x144/0x1bc [ 42.405170][ T11] hfsplus_file_extend+0x370/0x1544 [ 42.406575][ T11] hfsplus_bmap_reserve+0xec/0x474 [ 42.407922][ T11] __hfsplus_ext_write_extent+0x1e8/0x4ac [ 42.409377][ T11] hfsplus_ext_write_extent+0x158/0x1d8 [ 42.410839][ T11] hfsplus_write_inode+0x34/0x4dc [ 42.412158][ T11] __writeback_single_inode+0x5a8/0x146c [ 42.413695][ T11] writeback_sb_inodes+0x718/0x1010 [ 42.415041][ T11] wb_writeback+0x3f4/0xfc0 [ 42.416277][ T11] wb_workfn+0x37c/0xf9c [ 42.417335][ T11] process_one_work+0x694/0x1204 [ 42.418625][ T11] worker_thread+0x938/0xef4 [ 42.419841][ T11] kthread+0x288/0x310 [ 42.420953][ T11] ret_from_fork+0x10/0x20