Warning: Permanently added '10.128.0.8' (ED25519) to the list of known hosts. executing program [ 42.743635][ T3965] loop0: detected capacity change from 0 to 1024 [ 42.861622][ T136] [ 42.862312][ T136] ============================================ [ 42.863855][ T136] WARNING: possible recursive locking detected [ 42.865372][ T136] 5.15.158-syzkaller #0 Not tainted [ 42.866716][ T136] -------------------------------------------- [ 42.868304][ T136] kworker/u4:1/136 is trying to acquire lock: [ 42.869879][ T136] ffff0000c84c80b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 42.872374][ T136] [ 42.872374][ T136] but task is already holding lock: [ 42.874284][ T136] ffff0000c84c80b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 42.876884][ T136] [ 42.876884][ T136] other info that might help us debug this: [ 42.879010][ T136] Possible unsafe locking scenario: [ 42.879010][ T136] [ 42.880975][ T136] CPU0 [ 42.881845][ T136] ---- [ 42.882702][ T136] lock(&tree->tree_lock/1); [ 42.883921][ T136] lock(&tree->tree_lock/1); [ 42.885156][ T136] [ 42.885156][ T136] *** DEADLOCK *** [ 42.885156][ T136] [ 42.887270][ T136] May be due to missing lock nesting notation [ 42.887270][ T136] [ 42.889495][ T136] 5 locks held by kworker/u4:1/136: [ 42.890875][ T136] #0: ffff0000c21c8138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 [ 42.893675][ T136] #1: ffff80001a357c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 [ 42.896802][ T136] #2: ffff0000c7c9a988 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_ext_write_extent+0x8c/0x1d8 [ 42.899646][ T136] #3: ffff0000c84c80b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 42.902404][ T136] #4: ffff0000c7c98108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x198/0x14e0 [ 42.905411][ T136] [ 42.905411][ T136] stack backtrace: [ 42.906971][ T136] CPU: 1 PID: 136 Comm: kworker/u4:1 Not tainted 5.15.158-syzkaller #0 [ 42.909159][ T136] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 42.911881][ T136] Workqueue: writeback wb_workfn (flush-7:0) [ 42.913552][ T136] Call trace: [ 42.914428][ T136] dump_backtrace+0x0/0x530 [ 42.915653][ T136] show_stack+0x2c/0x3c [ 42.916835][ T136] dump_stack_lvl+0x108/0x170 [ 42.918087][ T136] dump_stack+0x1c/0x58 [ 42.919225][ T136] __lock_acquire+0x62bc/0x7638 [ 42.920559][ T136] lock_acquire+0x240/0x77c [ 42.921740][ T136] __mutex_lock_common+0x194/0x2154 [ 42.923124][ T136] mutex_lock_nested+0xa4/0xf8 [ 42.924443][ T136] hfsplus_find_init+0x144/0x1bc [ 42.925730][ T136] hfsplus_file_extend+0x364/0x14e0 [ 42.927151][ T136] hfsplus_bmap_reserve+0xec/0x474 [ 42.928548][ T136] __hfsplus_ext_write_extent+0x1e8/0x4bc [ 42.930085][ T136] hfsplus_ext_write_extent+0x158/0x1d8 [ 42.931516][ T136] hfsplus_write_inode+0x34/0x4ec [ 42.932836][ T136] __writeback_single_inode+0x584/0x13a4 [ 42.934286][ T136] writeback_sb_inodes+0x94c/0x1654 [ 42.935641][ T136] wb_writeback+0x3fc/0xfc8 [ 42.936840][ T136] wb_workfn+0x3a4/0x1070 [ 42.937977][ T136] process_one_work+0x790/0x11b8 [ 42.939302][ T136] worker_thread+0x910/0x1034 [ 42.940574][ T136] kthread+0x37c/0x45c [ 42.941634][ T136] ret_from_fork+0x10/0x20