Warning: Permanently added '10.128.1.99' (ECDSA) to the list of known hosts. [ 37.976517] IPVS: ftp: loaded support on port[0] = 21 executing program [ 38.080229] [ 38.081891] ============================================ [ 38.087540] WARNING: possible recursive locking detected [ 38.092977] 4.19.211-syzkaller #0 Not tainted [ 38.097456] -------------------------------------------- [ 38.102891] kworker/u4:4/1530 is trying to acquire lock: [ 38.108345] 000000008d64b6c6 (&tree->tree_lock/1){+.+.}, at: hfs_find_init+0x17e/0x230 [ 38.116414] [ 38.116414] but task is already holding lock: [ 38.122370] 000000008d64b6c6 (&tree->tree_lock/1){+.+.}, at: hfs_find_init+0x17e/0x230 [ 38.130596] [ 38.130596] other info that might help us debug this: [ 38.137440] Possible unsafe locking scenario: [ 38.137440] [ 38.143478] CPU0 [ 38.146039] ---- [ 38.148597] lock(&tree->tree_lock/1); [ 38.152584] lock(&tree->tree_lock/1); [ 38.156904] [ 38.156904] *** DEADLOCK *** [ 38.156904] [ 38.162947] May be due to missing lock nesting notation [ 38.162947] [ 38.169861] 4 locks held by kworker/u4:4/1530: [ 38.174518] #0: 00000000a9ed9130 ((wq_completion)"writeback"){+.+.}, at: process_one_work+0x767/0x1570 [ 38.184055] #1: 00000000dc3b79d5 ((work_completion)(&(&wb->dwork)->work)){+.+.}, at: process_one_work+0x79c/0x1570 [ 38.194691] #2: 000000008d64b6c6 (&tree->tree_lock/1){+.+.}, at: hfs_find_init+0x17e/0x230 [ 38.203550] #3: 0000000083ad5da7 (&HFS_I(tree->inode)->extents_lock){+.+.}, at: hfs_extend_file+0x93/0xac0 [ 38.213629] [ 38.213629] stack backtrace: [ 38.218116] CPU: 1 PID: 1530 Comm: kworker/u4:4 Not tainted 4.19.211-syzkaller #0 [ 38.225806] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 38.235150] Workqueue: writeback wb_workfn (flush-7:0) [ 38.240501] Call Trace: [ 38.243080] dump_stack+0x1fc/0x2ef [ 38.246699] __lock_acquire.cold+0x121/0x57e [ 38.251095] ? mark_held_locks+0xf0/0xf0 [ 38.255141] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 38.260259] ? depot_save_stack+0x258/0x410 [ 38.264564] ? kasan_kmalloc+0x139/0x160 [ 38.268702] ? __kmalloc+0x15a/0x3c0 [ 38.272415] ? hfs_find_init+0x91/0x230 [ 38.276373] ? hfs_ext_read_extent+0x191/0xa20 [ 38.280940] ? hfs_extend_file+0x4a0/0xac0 [ 38.285165] ? hfs_bmap_reserve+0x241/0x390 [ 38.289470] ? __hfs_ext_write_extent+0x3c1/0x510 [ 38.294317] ? hfs_ext_write_extent+0x1a2/0x1f0 [ 38.298969] ? hfs_write_inode+0x8f/0x930 [ 38.303111] ? __writeback_single_inode+0x733/0x11d0 [ 38.308347] ? writeback_sb_inodes+0x537/0xef0 [ 38.312917] ? wb_writeback+0x28d/0xcc0 [ 38.316881] ? wb_workfn+0x29b/0x1250 [ 38.320676] lock_acquire+0x170/0x3c0 [ 38.324472] ? hfs_find_init+0x17e/0x230 [ 38.328521] ? hfs_find_init+0x17e/0x230 [ 38.332562] __mutex_lock+0xd7/0x1190 [ 38.336510] ? hfs_find_init+0x17e/0x230 [ 38.340557] ? hfs_find_init+0x17e/0x230 [ 38.344601] ? mutex_trylock+0x1a0/0x1a0 [ 38.348729] ? lock_acquire+0x170/0x3c0 [ 38.352687] ? check_preemption_disabled+0x41/0x280 [ 38.357708] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 38.362708] ? __kmalloc+0x38e/0x3c0 [ 38.366402] ? hfs_find_init+0x91/0x230 [ 38.370773] hfs_find_init+0x17e/0x230 [ 38.374679] hfs_ext_read_extent+0x191/0xa20 [ 38.379080] ? __hfs_ext_write_extent+0x510/0x510 [ 38.384104] ? do_raw_spin_unlock+0x171/0x230 [ 38.388611] ? _raw_spin_unlock+0x29/0x40 [ 38.392741] hfs_extend_file+0x4a0/0xac0 [ 38.396787] ? hfs_free_fork+0x920/0x920 [ 38.400850] hfs_bmap_reserve+0x241/0x390 [ 38.404985] __hfs_ext_write_extent+0x3c1/0x510 [ 38.409636] hfs_ext_write_extent+0x1a2/0x1f0 [ 38.414111] ? hfs_ext_keycmp+0x300/0x300 [ 38.418256] ? mpage_writepages+0x1a4/0x230 [ 38.422571] ? __mpage_writepage+0x1570/0x1570 [ 38.427437] ? hfs_extend_file+0xac0/0xac0 [ 38.431744] hfs_write_inode+0x8f/0x930 [ 38.435701] ? hfs_inode_write_fork+0x1c0/0x1c0 [ 38.440359] ? do_writepages+0x1f5/0x290 [ 38.444400] ? __writeback_single_inode+0x306/0x11d0 [ 38.449507] ? lock_downgrade+0x720/0x720 [ 38.453641] ? lock_acquire+0x170/0x3c0 [ 38.457692] ? check_preemption_disabled+0x41/0x280 [ 38.462698] __writeback_single_inode+0x733/0x11d0 [ 38.467637] writeback_sb_inodes+0x537/0xef0 [ 38.472378] ? wbc_detach_inode+0x840/0x840 [ 38.476688] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 38.481708] ? queue_io+0x448/0x590 [ 38.485421] wb_writeback+0x28d/0xcc0 [ 38.489218] ? writeback_inodes_wb.constprop.0+0x1d0/0x1d0 [ 38.494862] wb_workfn+0x29b/0x1250 [ 38.498527] ? inode_wait_for_writeback+0x30/0x30 [ 38.503544] ? check_preemption_disabled+0x41/0x280 [ 38.508605] process_one_work+0x864/0x1570 [ 38.512997] ? pwq_dec_nr_in_flight+0x2d0/0x2d0 [ 38.517790] worker_thread+0x64c/0x1130 [ 38.521998] ? __kthread_parkme+0x133/0x1e0 [ 38.526319] ? process_one_work+0x1570/0x1570 [ 38.530800] kthread+0x33f/0x460 [ 38.534152] ? kthread_park+0x180/0x180 [ 38.538134] ret_from_fork+0x24/0x30