Warning: Permanently added '10.128.1.183' (ED25519) to the list of known hosts. executing program syzkaller login: [ 36.148127][ T4232] loop0: detected capacity change from 0 to 1024 [ 36.180769][ T9] [ 36.181467][ T9] ============================================ [ 36.183205][ T9] WARNING: possible recursive locking detected [ 36.184918][ T9] 6.1.82-syzkaller #0 Not tainted [ 36.186305][ T9] -------------------------------------------- [ 36.188018][ T9] kworker/u4:0/9 is trying to acquire lock: [ 36.189615][ T9] ffff0000d85f60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 36.192348][ T9] [ 36.192348][ T9] but task is already holding lock: [ 36.194327][ T9] ffff0000d85f60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 36.196997][ T9] [ 36.196997][ T9] other info that might help us debug this: [ 36.199141][ T9] Possible unsafe locking scenario: [ 36.199141][ T9] [ 36.201242][ T9] CPU0 [ 36.202162][ T9] ---- [ 36.203050][ T9] lock(&tree->tree_lock/1); [ 36.204374][ T9] lock(&tree->tree_lock/1); [ 36.205618][ T9] [ 36.205618][ T9] *** DEADLOCK *** [ 36.205618][ T9] [ 36.207802][ T9] May be due to missing lock nesting notation [ 36.207802][ T9] [ 36.210152][ T9] 5 locks held by kworker/u4:0/9: [ 36.211510][ T9] #0: ffff0000c2e4d938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x664/0x1404 [ 36.214457][ T9] #1: ffff800019e17c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a8/0x1404 [ 36.217706][ T9] #2: ffff0000d855a988 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_ext_write_extent+0x8c/0x1d8 [ 36.220688][ T9] #3: ffff0000d85f60b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x144/0x1bc [ 36.223482][ T9] #4: ffff0000d8558108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x198/0x14cc [ 36.226689][ T9] [ 36.226689][ T9] stack backtrace: [ 36.228259][ T9] CPU: 1 PID: 9 Comm: kworker/u4:0 Not tainted 6.1.82-syzkaller #0 [ 36.230449][ T9] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 [ 36.233170][ T9] Workqueue: writeback wb_workfn (flush-7:0) [ 36.234829][ T9] Call trace: [ 36.235710][ T9] dump_backtrace+0x1c8/0x1f4 [ 36.237010][ T9] show_stack+0x2c/0x3c [ 36.238150][ T9] dump_stack_lvl+0x108/0x170 [ 36.239449][ T9] dump_stack+0x1c/0x58 [ 36.240625][ T9] __lock_acquire+0x6310/0x7680 [ 36.242009][ T9] lock_acquire+0x26c/0x7cc [ 36.243320][ T9] __mutex_lock_common+0x190/0x21a0 [ 36.244749][ T9] mutex_lock_nested+0x38/0x44 [ 36.246181][ T9] hfsplus_find_init+0x144/0x1bc [ 36.247590][ T9] hfsplus_file_extend+0x364/0x14cc [ 36.248987][ T9] hfsplus_bmap_reserve+0xec/0x474 [ 36.250405][ T9] __hfsplus_ext_write_extent+0x1e8/0x4ac [ 36.251955][ T9] hfsplus_ext_write_extent+0x158/0x1d8 [ 36.253480][ T9] hfsplus_write_inode+0x34/0x4dc [ 36.254810][ T9] __writeback_single_inode+0x614/0x1770 [ 36.256353][ T9] writeback_sb_inodes+0x978/0x1718 [ 36.257772][ T9] wb_writeback+0x414/0x1130 [ 36.258990][ T9] wb_workfn+0x3a8/0x1034 [ 36.260151][ T9] process_one_work+0x7ac/0x1404 [ 36.261507][ T9] worker_thread+0x8e4/0xfec [ 36.262768][ T9] kthread+0x250/0x2d8 [ 36.263814][ T9] ret_from_fork+0x10/0x20