[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.59' (ECDSA) to the list of known hosts. syzkaller login: [ 33.702388] IPVS: ftp: loaded support on port[0] = 21 executing program executing program [ 33.878810] [ 33.880471] ====================================================== [ 33.887473] WARNING: possible circular locking dependency detected [ 33.893782] 4.19.211-syzkaller #0 Not tainted [ 33.898269] ------------------------------------------------------ [ 33.904575] syz-executor176/8140 is trying to acquire lock: [ 33.910273] 00000000bb4b6777 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 [ 33.919984] [ 33.919984] but task is already holding lock: [ 33.925948] 000000008525b6a7 (&tree->tree_lock){+.+.}, at: hfsplus_find_init+0x1b7/0x220 [ 33.934194] [ 33.934194] which lock already depends on the new lock. [ 33.934194] [ 33.942506] [ 33.942506] the existing dependency chain (in reverse order) is: [ 33.950115] [ 33.950115] -> #1 (&tree->tree_lock){+.+.}: [ 33.956047] hfsplus_file_truncate+0xde7/0x1040 [ 33.961217] hfsplus_delete_inode+0x18d/0x220 [ 33.966223] hfsplus_unlink+0x595/0x820 [ 33.970715] vfs_unlink+0x27d/0x4e0 [ 33.974848] do_unlinkat+0x3b8/0x660 [ 33.979056] __x64_sys_unlinkat+0xbd/0x120 [ 33.983787] do_syscall_64+0xf9/0x620 [ 33.988085] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.993767] [ 33.993767] -> #0 (&HFSPLUS_I(inode)->extents_lock){+.+.}: [ 34.000862] __mutex_lock+0xd7/0x1190 [ 34.005173] hfsplus_file_extend+0x1bb/0xf40 [ 34.010090] hfsplus_bmap_reserve+0x298/0x440 [ 34.015092] hfsplus_rename_cat+0x272/0x1490 [ 34.019998] hfsplus_unlink+0x49c/0x820 [ 34.024476] vfs_unlink+0x27d/0x4e0 [ 34.028605] do_unlinkat+0x3b8/0x660 [ 34.032902] do_coredump+0x1f9c/0x2d60 [ 34.037285] get_signal+0xed9/0x1f70 [ 34.041495] do_signal+0x8f/0x1670 [ 34.045530] exit_to_usermode_loop+0x204/0x2a0 [ 34.050615] prepare_exit_to_usermode+0x277/0x2d0 [ 34.055955] retint_user+0x8/0x18 [ 34.059905] [ 34.059905] other info that might help us debug this: [ 34.059905] [ 34.068028] Possible unsafe locking scenario: [ 34.068028] [ 34.074061] CPU0 CPU1 [ 34.078704] ---- ---- [ 34.083340] lock(&tree->tree_lock); [ 34.087865] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.095454] lock(&tree->tree_lock); [ 34.101741] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.106816] [ 34.106816] *** DEADLOCK *** [ 34.106816] [ 34.112855] 5 locks held by syz-executor176/8140: [ 34.117672] #0: 0000000078040b6d (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 34.125632] #1: 000000004d7e9a04 (&type->i_mutex_dir_key#7/1){+.+.}, at: do_unlinkat+0x27d/0x660 [ 34.134635] #2: 0000000018664581 (&sb->s_type->i_mutex_key#18){+.+.}, at: vfs_unlink+0xca/0x4e0 [ 34.143545] #3: 00000000b34336f2 (&sbi->vh_mutex){+.+.}, at: hfsplus_unlink+0x140/0x820 [ 34.151756] #4: 000000008525b6a7 (&tree->tree_lock){+.+.}, at: hfsplus_find_init+0x1b7/0x220 [ 34.160397] [ 34.160397] stack backtrace: [ 34.164881] CPU: 1 PID: 8140 Comm: syz-executor176 Not tainted 4.19.211-syzkaller #0 [ 34.172734] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 34.182060] Call Trace: [ 34.184627] dump_stack+0x1fc/0x2ef [ 34.188234] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 34.194012] __lock_acquire+0x30c9/0x3ff0 [ 34.198138] ? mark_held_locks+0xf0/0xf0 [ 34.202173] ? is_bpf_text_address+0xd5/0x1b0 [ 34.206643] ? lock_downgrade+0x720/0x720 [ 34.210767] ? lock_acquire+0x170/0x3c0 [ 34.214716] ? __bpf_address_lookup+0x330/0x330 [ 34.219359] ? check_preemption_disabled+0x41/0x280 [ 34.224349] ? __lock_acquire+0x6de/0x3ff0 [ 34.228558] lock_acquire+0x170/0x3c0 [ 34.232337] ? hfsplus_file_extend+0x1bb/0xf40 [ 34.236893] ? hfsplus_file_extend+0x1bb/0xf40 [ 34.241447] __mutex_lock+0xd7/0x1190 [ 34.245227] ? hfsplus_file_extend+0x1bb/0xf40 [ 34.249784] ? kasan_kmalloc+0x139/0x160 [ 34.253821] ? hfsplus_file_extend+0x1bb/0xf40 [ 34.258377] ? mutex_trylock+0x1a0/0x1a0 [ 34.262415] ? hfsplus_rename_cat+0x13f/0x1490 [ 34.266972] ? hfsplus_unlink+0x49c/0x820 [ 34.271095] ? vfs_unlink+0x27d/0x4e0 [ 34.274869] ? do_unlinkat+0x3b8/0x660 [ 34.278731] ? do_coredump+0x1f9c/0x2d60 [ 34.282769] ? get_signal+0xed9/0x1f70 [ 34.286634] ? do_signal+0x8f/0x1670 [ 34.290326] ? exit_to_usermode_loop+0x204/0x2a0 [ 34.295054] ? prepare_exit_to_usermode+0x277/0x2d0 [ 34.300043] ? retint_user+0x8/0x18 [ 34.303650] ? lock_acquire+0x170/0x3c0 [ 34.307597] ? hfsplus_find_init+0x1b7/0x220 [ 34.311981] hfsplus_file_extend+0x1bb/0xf40 [ 34.316365] ? hfsplus_free_fork+0x7e0/0x7e0 [ 34.320747] ? mutex_trylock+0x1a0/0x1a0 [ 34.324785] ? lock_acquire+0x170/0x3c0 [ 34.328735] ? check_preemption_disabled+0x41/0x280 [ 34.333725] hfsplus_bmap_reserve+0x298/0x440 [ 34.338197] hfsplus_rename_cat+0x272/0x1490 [ 34.342583] ? hfsplus_delete_cat+0xe30/0xe30 [ 34.347051] ? __lock_acquire+0x6de/0x3ff0 [ 34.351263] ? mark_held_locks+0xf0/0xf0 [ 34.355301] ? number+0x7ca/0xa90 [ 34.358731] ? __sanitizer_cov_trace_switch+0x4b/0x80 [ 34.363893] ? put_dec+0xd0/0xd0 [ 34.367235] ? enable_ptr_key_workfn+0x30/0x30 [ 34.371793] ? __lock_acquire+0x6de/0x3ff0 [ 34.376003] ? vsnprintf+0x2cc/0x14f0 [ 34.379781] ? pointer+0x850/0x850 [ 34.383295] ? hfsplus_unlink+0x140/0x820 [ 34.387420] ? sprintf+0xc0/0x100 [ 34.390848] ? snprintf+0xf0/0xf0 [ 34.394279] ? common_perm+0x4be/0x800 [ 34.398142] hfsplus_unlink+0x49c/0x820 [ 34.402093] ? hfsplus_symlink+0x2e0/0x2e0 [ 34.406303] ? vfs_unlink+0xca/0x4e0 [ 34.409995] vfs_unlink+0x27d/0x4e0 [ 34.413607] do_unlinkat+0x3b8/0x660 [ 34.417300] ? __ia32_sys_rmdir+0x40/0x40 [ 34.421425] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 34.426416] ? memcpy+0x35/0x50 [ 34.429671] do_coredump+0x1f9c/0x2d60 [ 34.433536] ? trace_hardirqs_off+0x64/0x200 [ 34.437919] ? get_signal+0xc70/0x1f70 [ 34.441784] ? cn_esc_printf+0x510/0x510 [ 34.445831] ? _raw_spin_unlock_irqrestore+0x66/0xe0 [ 34.450908] ? try_to_wake_up+0x733/0x1050 [ 34.455117] ? __sigqueue_alloc+0x18a/0x4c0 [ 34.459410] ? debug_check_no_obj_freed+0x201/0x490 [ 34.464402] ? lock_downgrade+0x720/0x720 [ 34.468526] ? trace_hardirqs_off+0x64/0x200 [ 34.472912] ? _raw_spin_unlock_irq+0x24/0x80 [ 34.477380] get_signal+0xed9/0x1f70 [ 34.481073] do_signal+0x8f/0x1670 [ 34.484593] ? setup_sigcontext+0x820/0x820 [ 34.488895] ? __do_page_fault+0x180/0xd60 [ 34.493104] ? exit_to_usermode_loop+0x36/0x2a0 [ 34.497747] exit_to_usermode_loop+0x204/0x2a0 [ 34.502303] prepare_exit_to_usermode+0x277/0x2d0 [ 34.507122] ? page_fault+0x8/0x30 [ 34.510639] retint_user+0x8/0x18 [ 34.514063] RIP: 0033: (null) [ 34.517919] Code: Bad RIP value. [ 34.521258] RSP: 002b:0000000020000048 EFLAGS: 00010217 [ 34.526591] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00007fdcf1fabb29 [ 34.533832] RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000080 [ 34.541073] RBP: 00007ffff7555890 R08: 0000000000000000 R09: 0000000000000003 [ 34.548315] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 34.555557] R13: 00007ffff7555880 R14: 00007ffff7555870 R15: 0000000000000000 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program