[ 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.21' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 33.236687] ====================================================== [ 33.236687] WARNING: the mand mount option is being deprecated and [ 33.236687] will be removed in v5.15! [ 33.236687] ====================================================== [ 33.269640] [ 33.271285] ============================================ [ 33.276725] WARNING: possible recursive locking detected [ 33.282166] 4.19.211-syzkaller #0 Not tainted [ 33.286650] -------------------------------------------- [ 33.292097] syz-executor171/8106 is trying to acquire lock: [ 33.297802] 00000000ee41e724 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_get_block+0x292/0x960 [ 33.307346] [ 33.307346] but task is already holding lock: [ 33.313300] 00000000a3b49951 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 33.323256] [ 33.323256] other info that might help us debug this: [ 33.329908] Possible unsafe locking scenario: [ 33.329908] [ 33.335948] CPU0 [ 33.338507] ---- [ 33.341064] lock(&HFSPLUS_I(inode)->extents_lock); [ 33.346232] lock(&HFSPLUS_I(inode)->extents_lock); [ 33.351313] [ 33.351313] *** DEADLOCK *** [ 33.351313] [ 33.357365] May be due to missing lock nesting notation [ 33.357365] [ 33.364270] 4 locks held by syz-executor171/8106: [ 33.369086] #0: 00000000024f9685 (sb_writers#11){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 33.377044] #1: 00000000cf0c7efc (&sb->s_type->i_mutex_key#17){+.+.}, at: do_truncate+0x125/0x1f0 [ 33.386126] #2: 00000000a3b49951 (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x1e2/0x1040 [ 33.396513] #3: 00000000bdcf2196 (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0xdb/0x5d0 [ 33.405333] [ 33.405333] stack backtrace: [ 33.409898] CPU: 1 PID: 8106 Comm: syz-executor171 Not tainted 4.19.211-syzkaller #0 [ 33.417752] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 33.427089] Call Trace: [ 33.429660] dump_stack+0x1fc/0x2ef [ 33.433268] __lock_acquire.cold+0x121/0x57e [ 33.437659] ? mark_held_locks+0xf0/0xf0 [ 33.441699] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 33.447043] ? save_trace+0xd6/0x290 [ 33.450756] ? __lock_acquire+0x22f9/0x3ff0 [ 33.455057] lock_acquire+0x170/0x3c0 [ 33.458839] ? hfsplus_get_block+0x292/0x960 [ 33.463228] ? hfsplus_get_block+0x292/0x960 [ 33.467614] __mutex_lock+0xd7/0x1190 [ 33.471392] ? hfsplus_get_block+0x292/0x960 [ 33.475782] ? check_preemption_disabled+0x41/0x280 [ 33.480782] ? hfsplus_get_block+0x292/0x960 [ 33.485169] ? mutex_trylock+0x1a0/0x1a0 [ 33.489210] ? create_page_buffers+0x212/0x350 [ 33.493775] ? alloc_page_buffers+0x2da/0x5c0 [ 33.498250] ? lock_downgrade+0x720/0x720 [ 33.502384] ? do_raw_spin_lock+0xcb/0x220 [ 33.506620] hfsplus_get_block+0x292/0x960 [ 33.510845] block_read_full_page+0x288/0xd10 [ 33.515325] ? hfsplus_file_extend+0xf40/0xf40 [ 33.519889] ? __bread_gfp+0x300/0x300 [ 33.523768] ? add_to_page_cache_locked+0x40/0x40 [ 33.528597] do_read_cache_page+0x533/0x1170 [ 33.532985] ? hfsplus_bmap+0x30/0x30 [ 33.536766] hfsplus_block_free+0x18b/0x5d0 [ 33.541066] ? __mutex_unlock_slowpath+0xea/0x610 [ 33.545887] hfsplus_free_extents+0x228/0x520 [ 33.550363] hfsplus_file_truncate+0xd96/0x1040 [ 33.555014] ? hfsplus_get_block+0x960/0x960 [ 33.559404] ? up_write+0x18/0x150 [ 33.562928] ? unmap_mapping_pages+0x121/0x2b0 [ 33.567492] ? inode_newsize_ok+0x121/0x1e0 [ 33.571793] hfsplus_setattr+0x1e7/0x310 [ 33.575835] ? hfsplus_file_open+0x140/0x140 [ 33.580911] notify_change+0x70b/0xfc0 [ 33.585672] do_truncate+0x134/0x1f0 [ 33.589361] ? dentry_open+0x1d0/0x1d0 [ 33.593230] ? apparmor_path_truncate+0x183/0x200 [ 33.598051] ? inode_permission+0x3d/0x140 [ 33.602264] path_openat+0x2308/0x2df0 [ 33.606223] ? path_lookupat+0x8d0/0x8d0 [ 33.610263] ? mark_held_locks+0xf0/0xf0 [ 33.614300] ? __lock_acquire+0x6de/0x3ff0 [ 33.618540] do_filp_open+0x18c/0x3f0 [ 33.622318] ? may_open_dev+0xf0/0xf0 [ 33.626102] ? lock_downgrade+0x720/0x720 [ 33.630406] ? lock_acquire+0x170/0x3c0 [ 33.634362] ? __alloc_fd+0x34/0x570 [ 33.638054] ? do_raw_spin_unlock+0x171/0x230 [ 33.642527] ? _raw_spin_unlock+0x29/0x40 [ 33.646652] ? __alloc_fd+0x28d/0x570 [ 33.650430] do_sys_open+0x3b3/0x520 [ 33.654124] ? filp_open+0x70/0x70 [ 33.657645] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.662985] ? trace_hardirqs_off_caller+0x6e/0x210 [ 33.667976] ? do_syscall_64+0x21/0x620 [ 33.671928] do_syscall_64+0xf9/0x620 [ 33.675707] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 33.680873] RIP: 0033:0x7fc0d6a18779 [ 33.684567] 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 ff ff ff f7 d8 64 89 01 48 [ 33.703452] RSP: 002b:00007fff02690ec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 33.711136] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc0d6a18779 [ 33.718381] RDX: 00007fc0d69d6df3 RSI: 0000000000000000 RDI: 0000000020000300 [ 33.725633] RBP: 00007fc0d69d8010 R08: 0000000000000604 R09: 0000000000000000 [ 33.732878] R10: 00007fff02690d90 R11: 0000000000000246 R12: 00007fc