Warning: Permanently added '10.128.0.160' (ECDSA) to the list of known hosts. executing program [ 44.344067][ T3498] loop0: detected capacity change from 0 to 1024 [ 44.352005][ T3498] ======================================================= [ 44.352005][ T3498] WARNING: The mand mount option has been deprecated and [ 44.352005][ T3498] and is ignored by this kernel. Remove the mand [ 44.352005][ T3498] option from the mount to silence this warning. [ 44.352005][ T3498] ======================================================= [ 44.399518][ T3498] [ 44.401870][ T3498] ====================================================== [ 44.408968][ T3498] WARNING: possible circular locking dependency detected [ 44.415989][ T3498] 5.15.118-syzkaller #0 Not tainted [ 44.421188][ T3498] ------------------------------------------------------ [ 44.428275][ T3498] syz-executor320/3498 is trying to acquire lock: [ 44.434664][ T3498] ffff8880794320b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x864/0xb80 [ 44.444484][ T3498] [ 44.444484][ T3498] but task is already holding lock: [ 44.451826][ T3498] ffff888015ba2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2e1/0xb80 [ 44.463110][ T3498] [ 44.463110][ T3498] which lock already depends on the new lock. [ 44.463110][ T3498] [ 44.473495][ T3498] [ 44.473495][ T3498] the existing dependency chain (in reverse order) is: [ 44.482718][ T3498] [ 44.482718][ T3498] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 44.491734][ T3498] lock_acquire+0x1db/0x4f0 [ 44.496831][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 44.502530][ T3498] mutex_lock_nested+0x17/0x20 [ 44.508143][ T3498] hfsplus_file_extend+0x1d2/0x1b10 [ 44.513849][ T3498] hfsplus_bmap_reserve+0x101/0x4e0 [ 44.519562][ T3498] hfsplus_create_cat+0x1a9/0x1ba0 [ 44.525182][ T3498] hfsplus_fill_super+0x13e6/0x1c90 [ 44.530884][ T3498] mount_bdev+0x2c9/0x3f0 [ 44.535844][ T3498] legacy_get_tree+0xeb/0x180 [ 44.541217][ T3498] vfs_get_tree+0x88/0x270 [ 44.546137][ T3498] do_new_mount+0x28b/0xae0 [ 44.551139][ T3498] __se_sys_mount+0x2d5/0x3c0 [ 44.556312][ T3498] do_syscall_64+0x3d/0xb0 [ 44.561234][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.567621][ T3498] [ 44.567621][ T3498] -> #0 (&tree->tree_lock){+.+.}-{3:3}: [ 44.575440][ T3498] validate_chain+0x1646/0x58b0 [ 44.580789][ T3498] __lock_acquire+0x1295/0x1ff0 [ 44.586134][ T3498] lock_acquire+0x1db/0x4f0 [ 44.591138][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 44.596831][ T3498] mutex_lock_nested+0x17/0x20 [ 44.602088][ T3498] hfsplus_file_truncate+0x864/0xb80 [ 44.607868][ T3498] hfsplus_setattr+0x1b9/0x280 [ 44.613132][ T3498] notify_change+0xd4d/0x1000 [ 44.618315][ T3498] do_truncate+0x21c/0x300 [ 44.623225][ T3498] vfs_truncate+0x2dd/0x3a0 [ 44.628223][ T3498] do_sys_truncate+0xda/0x190 [ 44.633395][ T3498] do_syscall_64+0x3d/0xb0 [ 44.638314][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.644702][ T3498] [ 44.644702][ T3498] other info that might help us debug this: [ 44.644702][ T3498] [ 44.654904][ T3498] Possible unsafe locking scenario: [ 44.654904][ T3498] [ 44.662323][ T3498] CPU0 CPU1 [ 44.667663][ T3498] ---- ---- [ 44.673000][ T3498] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.678866][ T3498] lock(&tree->tree_lock); [ 44.685861][ T3498] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.694158][ T3498] lock(&tree->tree_lock); [ 44.698638][ T3498] [ 44.698638][ T3498] *** DEADLOCK *** [ 44.698638][ T3498] [ 44.706756][ T3498] 3 locks held by syz-executor320/3498: [ 44.712273][ T3498] #0: ffff888019f18460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 44.721394][ T3498] #1: ffff888015ba2b80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x208/0x300 [ 44.731717][ T3498] #2: ffff888015ba2988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2e1/0xb80 [ 44.743249][ T3498] [ 44.743249][ T3498] stack backtrace: [ 44.749113][ T3498] CPU: 0 PID: 3498 Comm: syz-executor320 Not tainted 5.15.118-syzkaller #0 [ 44.757672][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 44.767882][ T3498] Call Trace: [ 44.771140][ T3498] [ 44.774050][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 44.778711][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 44.784347][ T3498] ? print_circular_bug+0x12b/0x1a0 [ 44.789521][ T3498] check_noncircular+0x2f8/0x3b0 [ 44.794437][ T3498] ? add_chain_block+0x850/0x850 [ 44.799391][ T3498] ? lockdep_lock+0x11f/0x2a0 [ 44.804049][ T3498] ? add_chain_block+0x850/0x850 [ 44.808970][ T3498] validate_chain+0x1646/0x58b0 [ 44.813886][ T3498] ? reacquire_held_locks+0x660/0x660 [ 44.819236][ T3498] ? reacquire_held_locks+0x660/0x660 [ 44.824584][ T3498] ? look_up_lock_class+0x77/0x120 [ 44.829674][ T3498] ? register_lock_class+0x100/0x9a0 [ 44.834945][ T3498] ? mark_lock+0x98/0x340 [ 44.839256][ T3498] ? is_dynamic_key+0x1f0/0x1f0 [ 44.844082][ T3498] ? __lock_acquire+0x1295/0x1ff0 [ 44.849083][ T3498] ? mark_lock+0x98/0x340 [ 44.853390][ T3498] __lock_acquire+0x1295/0x1ff0 [ 44.858227][ T3498] lock_acquire+0x1db/0x4f0 [ 44.862710][ T3498] ? hfsplus_file_truncate+0x864/0xb80 [ 44.868147][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 44.873585][ T3498] ? __might_sleep+0xc0/0xc0 [ 44.878156][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 44.883332][ T3498] ? hfsplus_file_truncate+0x864/0xb80 [ 44.888855][ T3498] ? hfsplus_file_truncate+0x864/0xb80 [ 44.894325][ T3498] ? mutex_lock_io_nested+0x60/0x60 [ 44.899504][ T3498] ? hfsplus_free_extents+0x47e/0xae0 [ 44.904853][ T3498] mutex_lock_nested+0x17/0x20 [ 44.909598][ T3498] hfsplus_file_truncate+0x864/0xb80 [ 44.914863][ T3498] ? hfsplus_add_extent+0x880/0x880 [ 44.920037][ T3498] ? unmap_mapping_range+0x1ae/0x3e0 [ 44.925994][ T3498] ? unmap_mapping_pages+0x1e0/0x1e0 [ 44.931281][ T3498] ? truncate_setsize+0xcb/0xf0 [ 44.936497][ T3498] hfsplus_setattr+0x1b9/0x280 [ 44.941249][ T3498] ? hfsplus_write_failed+0x90/0x90 [ 44.946552][ T3498] notify_change+0xd4d/0x1000 [ 44.951227][ T3498] do_truncate+0x21c/0x300 [ 44.955625][ T3498] ? put_page_bootmem+0x280/0x280 [ 44.960642][ T3498] ? bpf_lsm_path_truncate+0x5/0x10 [ 44.965968][ T3498] vfs_truncate+0x2dd/0x3a0 [ 44.970468][ T3498] do_sys_truncate+0xda/0x190 [ 44.975135][ T3498] ? break_lease+0xd0/0xd0 [ 44.979533][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 44.985497][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 44.990831][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 44.996791][ T3498] do_syscall_64+0x3d/0xb0 [ 45.001193][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 45.007072][ T3498] RIP: 0033:0x7f8c612347c9 [ 45.011500][ T3498] 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 [ 45.031350][ T3498] RSP: 002b:00007fff45983b58 EFLAGS: 00000246 ORIG_RAX: 000000000000004c [ 45.040093][ T3498] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f8c612347c9 [ 45.048044][ T3498] RDX: 00007f8c611f2e43 RSI: 00