[ OK ] Started Getty on tty2. [ OK ] Started Serial Getty on ttyS0. [ OK ] Started Getty on tty1. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.141' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 26.828361] hfsplus: xattr searching failed [ 26.834692] hfsplus: xattr searching failed [ 26.839286] [ 26.840908] ============================================ [ 26.846339] WARNING: possible recursive locking detected [ 26.851940] 4.14.302-syzkaller #0 Not tainted [ 26.856405] -------------------------------------------- [ 26.861825] syz-executor556/7995 is trying to acquire lock: [ 26.867503] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 26.877448] [ 26.877448] but task is already holding lock: [ 26.883406] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_extend+0x188/0xef0 [ 26.893519] [ 26.893519] other info that might help us debug this: [ 26.900154] Possible unsafe locking scenario: [ 26.900154] [ 26.906180] CPU0 [ 26.908732] ---- [ 26.911282] lock(&HFSPLUS_I(inode)->extents_lock); [ 26.916447] lock(&HFSPLUS_I(inode)->extents_lock); [ 26.921606] [ 26.921606] *** DEADLOCK *** [ 26.921606] [ 26.927635] May be due to missing lock nesting notation [ 26.927635] [ 26.934533] 4 locks held by syz-executor556/7995: [ 26.939341] #0: (sb_writers#10){.+.+}, at: [] vfs_writev+0x208/0x290 [ 26.947549] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] generic_file_write_iter+0x99/0x650 [ 26.958013] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_extend+0x188/0xef0 [ 26.968561] #3: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_allocate+0xd2/0x910 [ 26.978069] [ 26.978069] stack backtrace: [ 26.982536] CPU: 0 PID: 7995 Comm: syz-executor556 Not tainted 4.14.302-syzkaller #0 [ 26.990385] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 26.999709] Call Trace: [ 27.002273] dump_stack+0x1b2/0x281 [ 27.005874] __lock_acquire.cold+0x180/0x97c [ 27.010343] ? register_lock_class+0x1d0/0x1180 [ 27.014992] ? trace_hardirqs_on+0x10/0x10 [ 27.019219] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 27.024557] ? save_trace+0xd6/0x290 [ 27.028241] ? __lock_acquire+0x2190/0x3f20 [ 27.032536] lock_acquire+0x170/0x3f0 [ 27.036314] ? hfsplus_get_block+0x1f9/0x820 [ 27.040699] ? hfsplus_get_block+0x1f9/0x820 [ 27.045078] __mutex_lock+0xc4/0x1310 [ 27.048852] ? hfsplus_get_block+0x1f9/0x820 [ 27.053231] ? hfsplus_get_block+0x1f9/0x820 [ 27.057633] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 27.063059] ? lock_acquire+0x170/0x3f0 [ 27.067006] ? create_page_buffers+0x14d/0x1c0 [ 27.071559] hfsplus_get_block+0x1f9/0x820 [ 27.075765] ? _raw_spin_unlock+0x29/0x40 [ 27.079883] ? create_page_buffers+0xce/0x1c0 [ 27.084350] block_read_full_page+0x25e/0x8d0 [ 27.088816] ? hfsplus_file_extend+0xef0/0xef0 [ 27.093457] ? __lru_cache_add+0x178/0x250 [ 27.097663] ? __bread_gfp+0x2e0/0x2e0 [ 27.101526] ? add_to_page_cache_lru+0x136/0x2b0 [ 27.106254] ? add_to_page_cache_locked+0x40/0x40 [ 27.111241] ? alloc_pages_current+0x15d/0x260 [ 27.115797] do_read_cache_page+0x38e/0xc10 [ 27.120092] ? hfsplus_bmap+0x30/0x30 [ 27.123868] hfsplus_block_allocate+0x189/0x910 [ 27.128516] ? __lock_acquire+0x5fc/0x3f20 [ 27.132723] hfsplus_file_extend+0x421/0xef0 [ 27.137107] ? hfsplus_free_fork+0x720/0x720 [ 27.141487] ? deref_stack_reg+0x124/0x1a0 [ 27.146129] ? trace_hardirqs_on+0x10/0x10 [ 27.150336] ? is_bpf_text_address+0x91/0x150 [ 27.154801] hfsplus_get_block+0x15b/0x820 [ 27.159009] ? find_get_entry+0x312/0x630 [ 27.163126] ? create_page_buffers+0xce/0x1c0 [ 27.167593] __block_write_begin_int+0x35c/0x11d0 [ 27.172404] ? hfsplus_file_extend+0xef0/0xef0 [ 27.176959] ? __breadahead_gfp+0x150/0x150 [ 27.181250] ? wait_for_stable_page+0xe3/0x260 [ 27.185803] ? hfsplus_file_extend+0xef0/0xef0 [ 27.190355] block_write_begin+0x58/0x270 [ 27.194485] cont_write_begin+0x4a3/0x740 [ 27.198604] ? block_write_begin+0x270/0x270 [ 27.202984] ? trace_hardirqs_on+0x10/0x10 [ 27.207189] hfsplus_write_begin+0x87/0x130 [ 27.211481] ? hfsplus_file_extend+0xef0/0xef0 [ 27.216034] cont_write_begin+0x296/0x740 [ 27.220157] ? block_write_begin+0x270/0x270 [ 27.224557] ? iov_iter_fault_in_readable+0x1b9/0x360 [ 27.229719] hfsplus_write_begin+0x87/0x130 [ 27.234010] ? hfsplus_file_extend+0xef0/0xef0 [ 27.238576] generic_perform_write+0x1d5/0x430 [ 27.243134] ? __mnt_drop_write_file+0x5f/0x90 [ 27.247686] ? filemap_page_mkwrite+0x2d0/0x2d0 [ 27.252326] ? current_time+0xb0/0xb0 [ 27.256103] ? lock_acquire+0x170/0x3f0 [ 27.260051] __generic_file_write_iter+0x227/0x590 [ 27.264955] generic_file_write_iter+0x36f/0x650 [ 27.269683] do_iter_readv_writev+0x4cf/0x5f0 [ 27.274150] ? clone_verify_area+0x1e0/0x1e0 [ 27.278534] ? rw_verify_area+0xe1/0x2a0 [ 27.282569] do_iter_write+0x152/0x550 [ 27.286428] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 27.291853] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 27.296842] vfs_writev+0x125/0x290 [ 27.300446] ? vfs_iter_write+0xa0/0xa0 [ 27.304391] ? debug_check_no_obj_freed+0x2c0/0x680 [ 27.309380] ? __fd_install+0x227/0x5c0 [ 27.313328] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 27.318747] ? putname+0xcd/0x110 [ 27.322173] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 27.327189] ? kmem_cache_free+0x23a/0x2b0 [ 27.331395] ? putname+0xcd/0x110 [ 27.334818] SyS_pwritev2+0x195/0x230 [ 27.338596] ? SyS_pwritev+0x200/0x200 [ 27.342455] ? do_syscall_64+0x4c/0x640 [ 27.346403] ? SyS_pwritev+0x200/0x200 [ 27.350261] do_syscall_64+0x1d5/0x640 [ 27.354121] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 27.359282] RIP: 0033:0x7f1af92b77e9 [ 27.362964] RSP: 002b:00007ffe23cb7788 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 [ 27.370642] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f1af92b77e9 [ 27.377892] RDX: 000000000000000