Warning: Permanently added '10.128.0.108' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 27.915442] ====================================================== [ 27.915442] WARNING: the mand mount option is being deprecated and [ 27.915442] will be removed in v5.15! [ 27.915442] ====================================================== [ 27.945872] [ 27.947515] ============================================ [ 27.952952] WARNING: possible recursive locking detected [ 27.958384] 4.14.302-syzkaller #0 Not tainted [ 27.962862] -------------------------------------------- [ 27.968296] syz-executor355/7969 is trying to acquire lock: [ 27.973983] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_get_block+0x1f9/0x820 [ 27.983933] [ 27.983933] but task is already holding lock: [ 27.989873] (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.000164] [ 28.000164] other info that might help us debug this: [ 28.006798] Possible unsafe locking scenario: [ 28.006798] [ 28.012836] CPU0 [ 28.015388] ---- [ 28.017939] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.023017] lock(&HFSPLUS_I(inode)->extents_lock); [ 28.028089] [ 28.028089] *** DEADLOCK *** [ 28.028089] [ 28.034113] May be due to missing lock nesting notation [ 28.034113] [ 28.041011] 5 locks held by syz-executor355/7969: [ 28.045821] #0: (sb_writers#10){.+.+}, at: [] mnt_want_write+0x3a/0xb0 [ 28.054202] #1: (&sb->s_type->i_mutex_key#17){+.+.}, at: [] do_truncate+0xf0/0x1a0 [ 28.063630] #2: (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: [] hfsplus_file_truncate+0x1ba/0xe80 [ 28.074356] #3: (&tree->tree_lock/1){+.+.}, at: [] hfsplus_find_init+0x161/0x220 [ 28.083715] #4: (&sbi->alloc_mutex){+.+.}, at: [] hfsplus_block_free+0xc7/0x560 [ 28.092891] [ 28.092891] stack backtrace: [ 28.097360] CPU: 0 PID: 7969 Comm: syz-executor355 Not tainted 4.14.302-syzkaller #0 [ 28.105210] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 28.114538] Call Trace: [ 28.117103] dump_stack+0x1b2/0x281 [ 28.120705] __lock_acquire.cold+0x180/0x97c [ 28.125084] ? register_lock_class+0x1d0/0x1180 [ 28.129725] ? trace_hardirqs_on+0x10/0x10 [ 28.133935] ? add_lock_to_list.constprop.0+0x17d/0x330 [ 28.139270] ? save_trace+0xd6/0x290 [ 28.142957] ? __lock_acquire+0x2190/0x3f20 [ 28.147250] lock_acquire+0x170/0x3f0 [ 28.151021] ? hfsplus_get_block+0x1f9/0x820 [ 28.155403] ? hfsplus_get_block+0x1f9/0x820 [ 28.159781] __mutex_lock+0xc4/0x1310 [ 28.163566] ? hfsplus_get_block+0x1f9/0x820 [ 28.167945] ? __alloc_bootmem_low_node+0x7a/0xc3 [ 28.172761] ? hfsplus_get_block+0x1f9/0x820 [ 28.177140] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.182560] ? lock_acquire+0x170/0x3f0 [ 28.186504] ? create_page_buffers+0x14d/0x1c0 [ 28.191057] hfsplus_get_block+0x1f9/0x820 [ 28.195267] ? _raw_spin_unlock+0x29/0x40 [ 28.199387] ? create_page_buffers+0xce/0x1c0 [ 28.203850] block_read_full_page+0x25e/0x8d0 [ 28.208316] ? hfsplus_file_extend+0xef0/0xef0 [ 28.212868] ? __lru_cache_add+0x178/0x250 [ 28.217073] ? __bread_gfp+0x2e0/0x2e0 [ 28.220932] ? add_to_page_cache_lru+0x136/0x2b0 [ 28.225673] ? add_to_page_cache_locked+0x40/0x40 [ 28.230486] ? alloc_pages_current+0x15d/0x260 [ 28.235037] do_read_cache_page+0x38e/0xc10 [ 28.239329] ? hfsplus_bmap+0x30/0x30 [ 28.243101] ? __ww_mutex_wakeup_for_backoff+0x210/0x210 [ 28.248522] hfsplus_block_free+0x177/0x560 [ 28.252818] hfsplus_free_extents+0x170/0x440 [ 28.257288] hfsplus_file_truncate+0xbc0/0xe80 [ 28.261841] ? hfsplus_get_block+0x820/0x820 [ 28.266220] ? up_write+0x17/0x60 [ 28.269641] ? unmap_mapping_range+0xe9/0x250 [ 28.274107] ? inode_newsize_ok+0x145/0x1c0 [ 28.278398] hfsplus_setattr+0x182/0x310 [ 28.282427] ? hfsplus_file_fsync+0x4a0/0x4a0 [ 28.286894] notify_change+0x56b/0xd10 [ 28.290751] do_truncate+0xff/0x1a0 [ 28.294368] ? finish_open+0x170/0x170 [ 28.298227] ? apparmor_path_truncate+0x163/0x1d0 [ 28.303042] path_openat+0x1dcc/0x2970 [ 28.306902] ? path_lookupat+0x780/0x780 [ 28.310940] ? trace_hardirqs_on+0x10/0x10 [ 28.315147] ? trace_hardirqs_on+0x10/0x10 [ 28.319352] do_filp_open+0x179/0x3c0 [ 28.323144] ? may_open_dev+0xe0/0xe0 [ 28.326912] ? lock_downgrade+0x740/0x740 [ 28.331028] ? do_raw_spin_unlock+0x164/0x220 [ 28.335495] ? _raw_spin_unlock+0x29/0x40 [ 28.339612] ? __alloc_fd+0x1be/0x490 [ 28.343380] ? _raw_spin_unlock_irq+0x24/0x80 [ 28.347844] do_sys_open+0x296/0x410 [ 28.351528] ? filp_open+0x60/0x60 [ 28.355036] ? do_syscall_64+0x4c/0x640 [ 28.358979] ? compat_SyS_openat+0x30/0x30 [ 28.363183] do_syscall_64+0x1d5/0x640 [ 28.367041] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 28.372201] RIP: 0033:0x7f99afc86779 [ 28.375881] RSP: 002b:00007ffe489ab528 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 28.383559] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f99afc86779 [ 28.390799] RDX: 00007f99afc44df3 RSI: 0000000000000000 RDI: 0000000020000280 [ 28.398039] RBP: 00007f99afc46010 R08: 0000000000000604 R09: 0000000000000000 [ 28.405278] R10: 00007ffe489ab3f0 R11: 0000000000000246 R12: 00007f99afc460a0 [ 28.412518] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000