[ 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.218' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 34.906658] hfsplus: xattr searching failed [ 34.913482] hfsplus: xattr searching failed [ 34.918401] [ 34.920028] ============================================ [ 34.925456] WARNING: possible recursive locking detected [ 34.930878] 4.19.211-syzkaller #0 Not tainted [ 34.935349] -------------------------------------------- [ 34.940806] syz-executor123/8098 is trying to acquire lock: [ 34.946498] 00000000870ea52c (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 34.956016] [ 34.956016] but task is already holding lock: [ 34.961958] 000000001cfe7903 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 [ 34.971642] [ 34.971642] other info that might help us debug this: [ 34.978276] Possible unsafe locking scenario: [ 34.978276] [ 34.984304] CPU0 [ 34.986856] ---- [ 34.989408] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.994481] lock(&HFSPLUS_I(inode)->extents_lock); [ 34.999552] [ 34.999552] *** DEADLOCK *** [ 34.999552] [ 35.005581] May be due to missing lock nesting notation [ 35.005581] [ 35.012498] 4 locks held by syz-executor123/8098: [ 35.017312] #0: 00000000e0cd3ab0 (sb_writers#11){.+.+}, at: vfs_writev+0x259/0x2e0 [ 35.025605] #1: 00000000d5aa7aec (&sb->s_type->i_mutex_key#17){+.+.}, at: generic_file_write_iter+0x99/0x730 [ 35.035638] #2: 000000001cfe7903 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_extend+0x1bb/0xf40 [ 35.045757] #3: 00000000f4d99e6c (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_allocate+0xe0/0xa60 [ 35.054833] [ 35.054833] stack backtrace: [ 35.059305] CPU: 1 PID: 8098 Comm: syz-executor123 Not tainted 4.19.211-syzkaller #0 [ 35.067153] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 35.076477] Call Trace: [ 35.079042] dump_stack+0x1fc/0x2ef [ 35.082646] __lock_acquire.cold+0x121/0x57e [ 35.087060] ? mark_held_locks+0xf0/0xf0 [ 35.091096] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 35.096433] ? save_trace+0xd6/0x290 [ 35.100121] ? __lock_acquire+0x22f9/0x3ff0 [ 35.104419] lock_acquire+0x170/0x3c0 [ 35.108196] ? hfsplus_get_block+0x292/0x960 [ 35.112593] ? hfsplus_get_block+0x292/0x960 [ 35.116975] __mutex_lock+0xd7/0x1190 [ 35.120752] ? hfsplus_get_block+0x292/0x960 [ 35.125137] ? check_preemption_disabled+0x41/0x280 [ 35.130127] ? hfsplus_get_block+0x292/0x960 [ 35.134510] ? mutex_trylock+0x1a0/0x1a0 [ 35.138548] ? create_page_buffers+0x212/0x350 [ 35.143104] ? alloc_page_buffers+0x2da/0x5c0 [ 35.147575] ? lock_downgrade+0x720/0x720 [ 35.151695] ? do_raw_spin_lock+0xcb/0x220 [ 35.155911] hfsplus_get_block+0x292/0x960 [ 35.160121] block_read_full_page+0x288/0xd10 [ 35.164592] ? hfsplus_file_extend+0xf40/0xf40 [ 35.169147] ? __bread_gfp+0x300/0x300 [ 35.173010] ? add_to_page_cache_locked+0x40/0x40 [ 35.177827] do_read_cache_page+0x533/0x1170 [ 35.182210] ? hfsplus_bmap+0x30/0x30 [ 35.185988] hfsplus_block_allocate+0x197/0xa60 [ 35.190631] ? __lock_acquire+0x6de/0x3ff0 [ 35.194841] hfsplus_file_extend+0x436/0xf40 [ 35.199225] ? hfsplus_free_fork+0x7e0/0x7e0 [ 35.203609] ? __radix_tree_lookup+0x216/0x370 [ 35.208166] ? find_get_entry+0x4cd/0x8a0 [ 35.212288] hfsplus_get_block+0x196/0x960 [ 35.216497] __block_write_begin_int+0x46c/0x17b0 [ 35.221315] ? hfsplus_file_extend+0xf40/0xf40 [ 35.225872] ? __breadahead_gfp+0x130/0x130 [ 35.230169] ? wait_for_stable_page+0x122/0x360 [ 35.234812] ? hfsplus_file_extend+0xf40/0xf40 [ 35.239367] block_write_begin+0x58/0x2e0 [ 35.243490] cont_write_begin+0x55a/0x820 [ 35.247614] ? __lock_acquire+0x22f9/0x3ff0 [ 35.251910] ? hfsplus_file_extend+0xf40/0xf40 [ 35.256472] ? block_write_begin+0x2e0/0x2e0 [ 35.260856] ? mark_held_locks+0xf0/0xf0 [ 35.264899] hfsplus_write_begin+0x87/0x150 [ 35.269193] ? hfsplus_file_extend+0xf40/0xf40 [ 35.273749] cont_write_begin+0x2ee/0x820 [ 35.277873] ? hfsplus_file_extend+0xf40/0xf40 [ 35.282433] ? block_write_begin+0x2e0/0x2e0 [ 35.286816] ? lock_downgrade+0x720/0x720 [ 35.290942] ? check_preemption_disabled+0x41/0x280 [ 35.295932] ? iov_iter_fault_in_readable+0x1fc/0x3f0 [ 35.301098] hfsplus_write_begin+0x87/0x150 [ 35.305396] ? hfsplus_file_extend+0xf40/0xf40 [ 35.309955] generic_perform_write+0x1f8/0x4d0 [ 35.314514] ? __mnt_drop_write_file+0x6f/0xa0 [ 35.319071] ? filemap_page_mkwrite+0x2f0/0x2f0 [ 35.323712] ? current_time+0x1c0/0x1c0 [ 35.327660] ? lock_acquire+0x170/0x3c0 [ 35.331608] __generic_file_write_iter+0x24b/0x610 [ 35.336513] generic_file_write_iter+0x3f8/0x730 [ 35.341247] ? common_file_perm+0x4e5/0x850 [ 35.345543] do_iter_readv_writev+0x668/0x790 [ 35.350015] ? clone_verify_area+0x240/0x240 [ 35.354401] ? security_file_permission+0x1c0/0x220 [ 35.359391] do_iter_write+0x182/0x5d0 [ 35.363256] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 35.368245] vfs_writev+0x153/0x2e0 [ 35.371851] ? vfs_iter_write+0xa0/0xa0 [ 35.375799] ? lock_downgrade+0x720/0x720 [ 35.379921] ? debug_check_no_obj_freed+0xb5/0x490 [ 35.384825] ? trace_hardirqs_off+0x64/0x200 [ 35.389207] ? debug_check_no_obj_freed+0x201/0x490 [ 35.394200] ? check_preemption_disabled+0x41/0x280 [ 35.399189] ? putname+0xe1/0x120 [ 35.402616] ? putname+0xe1/0x120 [ 35.406043] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 35.411034] ? kmem_cache_free+0x226/0x260 [ 35.415244] do_pwritev+0x1b6/0x270 [ 35.418846] ? do_writev+0x330/0x330 [ 35.422536] ? filp_open+0x70/0x70 [ 35.426052] __x64_sys_pwritev2+0xeb/0x150 [ 35.430261] do_syscall_64+0xf9/0x620 [ 35.434038] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.439202] RIP: 0033:0x7f19076887d9 [ 35.442896] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 f