Warning: Permanently added '10.128.0.250' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 31.371695] [ 31.373346] ============================================ [ 31.378782] WARNING: possible recursive locking detected [ 31.384218] 4.14.302-syzkaller #0 Not tainted [ 31.388694] -------------------------------------------- [ 31.394116] syz-executor109/7967 is trying to acquire lock: [ 31.399794] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 31.409772] [ 31.409772] but task is already holding lock: [ 31.415714] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_extend+0x188/0xef0 [ 31.425833] [ 31.425833] other info that might help us debug this: [ 31.432466] Possible unsafe locking scenario: [ 31.432466] [ 31.438492] CPU0 [ 31.441042] ---- [ 31.443594] lock(&HFSPLUS_I(inode)->extents_lock); [ 31.448666] lock(&HFSPLUS_I(inode)->extents_lock); [ 31.453740] [ 31.453740] *** DEADLOCK *** [ 31.453740] [ 31.459766] May be due to missing lock nesting notation [ 31.459766] [ 31.466668] 5 locks held by syz-executor109/7967: [ 31.471479] #0: (&type->s_umount_key#46/1){+.+.}, at: [] sget_userns+0x556/0xc10 [ 31.480736] #1: (&sbi->vh_mutex){+.+.}, at: [] hfsplus_fill_super+0x1314/0x1850 [ 31.489894] #2: (&tree->tree_lock){+.+.}, at: [] hfsplus_find_init+0x1a8/0x220 [ 31.498964] #3: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_extend+0x188/0xef0 [ 31.509516] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_allocate+0xd2/0x910 [ 31.519023] [ 31.519023] stack backtrace: [ 31.523490] CPU: 1 PID: 7967 Comm: syz-executor109 Not tainted 4.14.302-syzkaller #0 [ 31.531337] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 31.540662] Call Trace: [ 31.543226] dump_stack+0x1b2/0x281 [ 31.546829] __lock_acquire.cold+0x180/0x97c [ 31.551210] ? kasan_kmalloc+0x139/0x160 [ 31.555248] ? trace_hardirqs_on+0x10/0x10 [ 31.559460] ? alloc_buffer_head+0x20/0x110 [ 31.563756] ? alloc_page_buffers+0xb3/0x1f0 [ 31.568135] ? create_empty_buffers+0x2c/0x470 [ 31.572694] ? create_page_buffers+0x14d/0x1c0 [ 31.577243] ? block_read_full_page+0xb9/0x8d0 [ 31.581799] ? do_read_cache_page+0x38e/0xc10 [ 31.586269] ? hfsplus_block_allocate+0x5d3/0x910 [ 31.591082] ? hfsplus_file_extend+0x421/0xef0 [ 31.595633] ? hfsplus_bmap_reserve+0x26e/0x410 [ 31.600272] ? hfsplus_create_cat+0x1af/0x10d0 [ 31.604827] ? __lock_acquire+0x5fc/0x3f20 [ 31.609035] lock_acquire+0x170/0x3f0 [ 31.612808] ? hfsplus_get_block+0x1f9/0x820 [ 31.617192] ? hfsplus_get_block+0x1f9/0x820 [ 31.621572] __mutex_lock+0xc4/0x1310 [ 31.625341] ? hfsplus_get_block+0x1f9/0x820 [ 31.629728] ? hfsplus_get_block+0x1f9/0x820 [ 31.634106] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.639529] ? lock_acquire+0x170/0x3f0 [ 31.643474] ? create_page_buffers+0x14d/0x1c0 [ 31.648026] hfsplus_get_block+0x1f9/0x820 [ 31.652234] ? _raw_spin_unlock+0x29/0x40 [ 31.656352] ? create_page_buffers+0xce/0x1c0 [ 31.660821] block_read_full_page+0x25e/0x8d0 [ 31.665292] ? hfsplus_file_extend+0xef0/0xef0 [ 31.669847] ? __lru_cache_add+0x178/0x250 [ 31.674076] ? __bread_gfp+0x2e0/0x2e0 [ 31.677946] ? add_to_page_cache_lru+0x136/0x2b0 [ 31.682674] ? add_to_page_cache_locked+0x40/0x40 [ 31.687489] ? alloc_pages_current+0x15d/0x260 [ 31.692044] do_read_cache_page+0x38e/0xc10 [ 31.696364] ? hfsplus_bmap+0x30/0x30 [ 31.700138] hfsplus_block_allocate+0x5d3/0x910 [ 31.704780] hfsplus_file_extend+0x421/0xef0 [ 31.709160] ? hfsplus_free_fork+0x720/0x720 [ 31.713540] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 31.718962] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 31.724388] hfsplus_bmap_reserve+0x26e/0x410 [ 31.728857] hfsplus_create_cat+0x1af/0x10d0 [ 31.733240] ? unwind_get_return_address+0x51/0x90 [ 31.738140] ? hfsplus_find_cat+0x430/0x430 [ 31.742435] ? debug_object_activate+0x292/0x490 [ 31.747161] ? lock_acquire+0x170/0x3f0 [ 31.751105] ? lock_downgrade+0x740/0x740 [ 31.755227] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 31.760300] ? mod_timer+0x4e7/0xf70 [ 31.763985] ? check_preemption_disabled+0x35/0x240 [ 31.768972] ? lock_downgrade+0x740/0x740 [ 31.773090] ? calc_wheel_index+0x50/0x1c0 [ 31.777297] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 31.782371] ? mod_timer+0x4ec/0xf70 [ 31.786056] ? hfsplus_mark_mdb_dirty+0x166/0x1e0 [ 31.790868] ? lock_downgrade+0x740/0x740 [ 31.794987] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 31.799973] ? do_raw_spin_unlock+0x164/0x220 [ 31.804437] ? _raw_spin_unlock+0x29/0x40 [ 31.808556] ? hfsplus_mark_mdb_dirty+0x166/0x1e0 [ 31.813368] ? hfsplus_new_inode+0x6b1/0xb30 [ 31.817751] hfsplus_fill_super+0x1386/0x1850 [ 31.822227] ? hfsplus_iget+0x700/0x700 [ 31.826171] ? string+0x17e/0x1d0 [ 31.829598] ? bdev_name.constprop.0+0x1cd/0x240 [ 31.834329] ? pointer+0x31f/0x9e0 [ 31.837840] ? netdev_bits+0xa0/0xa0 [ 31.841522] ? format_decode+0x1cb/0x890 [ 31.845561] ? set_precision+0x150/0x150 [ 31.849595] ? reacquire_held_locks+0xb5/0x3f0 [ 31.854147] ? vsnprintf+0x260/0x1340 [ 31.857918] ? pointer+0x9e0/0x9e0 [ 31.861429] ? lock_downgrade+0x740/0x740 [ 31.865550] ? snprintf+0xa5/0xd0 [ 31.868971] ? vsprintf+0x30/0x30 [ 31.872397] ? ns_test_super+0x50/0x50 [ 31.876255] ? set_blocksize+0x125/0x380 [ 31.880285] mount_bdev+0x2b3/0x360 [ 31.883888] ? hfsplus_iget+0x700/0x700 [ 31.887835] mount_fs+0x92/0x2a0 [ 31.891172] vfs_kern_mount.part.0+0x5b/0x470 [ 31.895642] do_mount+0xe65/0x2a30 [ 31.899155] ? retint_kernel+0x2d/0x2d [ 31.903015] ? copy_mount_string+0x40/0x40 [ 31.907220] ? memset+0x20/0x40 [ 31.910467] ? copy_mount_options+0x1fa/0x2f0 [ 31.914931] ? copy_mnt_ns+0xa30/0xa30 [ 31.918792] SyS_mount+0xa8/0x120 [ 31.922214] ? copy_mnt_ns+0xa30/0xa30 [ 31.926073] do_syscall_64+0x1d5/0x640 [ 31.929932] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 31.935096] RIP: 0033:0x7f54d849ae8a [ 31.938777] RSP: 002b:00007ffec5d56068 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 [ 31.946456] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f54d849ae8a [ 31.953698] RDX: 0000000020000600 RSI: 00000000200000c0 RDI: 00007ffec5d56080 [ 31.960945] RBP: 00007ffec5d56080 R08: 00007ffec5d560c0 R09: 0000000000000618 [ 31.968193] R10: 0000000002a14010 R11: 0000000000000286 R12: 0000000000000004 [ 31.975883] R13: 0000555555f972c0 R14: 0000000002a14010 R15: 00007ffec5d560c0