Warning: Permanently added '10.128.0.86' (ED25519) to the list of known hosts. executing program [ 56.496608][ T4161] loop0: detected capacity change from 0 to 64 [ 56.555190][ T4161] ======================================================= [ 56.555190][ T4161] WARNING: The mand mount option has been deprecated and [ 56.555190][ T4161] and is ignored by this kernel. Remove the mand [ 56.555190][ T4161] option from the mount to silence this warning. [ 56.555190][ T4161] ======================================================= [ 57.136578][ T4161] [ 57.139058][ T4161] ============================================ [ 57.145209][ T4161] WARNING: possible recursive locking detected [ 57.151338][ T4161] 5.15.175-syzkaller #0 Not tainted [ 57.156516][ T4161] -------------------------------------------- [ 57.162653][ T4161] syz-executor783/4161 is trying to acquire lock: [ 57.169044][ T4161] ffff88802b35a0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 57.178833][ T4161] [ 57.178833][ T4161] but task is already holding lock: [ 57.186176][ T4161] ffff88802b35a0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 57.195482][ T4161] [ 57.195482][ T4161] other info that might help us debug this: [ 57.203536][ T4161] Possible unsafe locking scenario: [ 57.203536][ T4161] [ 57.210994][ T4161] CPU0 [ 57.214261][ T4161] ---- [ 57.217537][ T4161] lock(&tree->tree_lock/1); [ 57.222292][ T4161] lock(&tree->tree_lock/1); [ 57.226955][ T4161] [ 57.226955][ T4161] *** DEADLOCK *** [ 57.226955][ T4161] [ 57.235076][ T4161] May be due to missing lock nesting notation [ 57.235076][ T4161] [ 57.243373][ T4161] 5 locks held by syz-executor783/4161: [ 57.248899][ T4161] #0: ffff88802c0c6460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 [ 57.257768][ T4161] #1: ffff88802b0d9628 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x7c/0x1b0 [ 57.269061][ T4161] #2: ffff88802b0d9478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xfb/0x1440 [ 57.279881][ T4161] #3: ffff88802b35a0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 57.289614][ T4161] #4: ffff88802b0d80f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xfb/0x1440 [ 57.301027][ T4161] [ 57.301027][ T4161] stack backtrace: [ 57.306909][ T4161] CPU: 0 PID: 4161 Comm: syz-executor783 Not tainted 5.15.175-syzkaller #0 [ 57.315537][ T4161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 57.325616][ T4161] Call Trace: [ 57.328887][ T4161] [ 57.331808][ T4161] dump_stack_lvl+0x1e3/0x2d0 [ 57.336484][ T4161] ? io_uring_drop_tctx_refs+0x1a0/0x1a0 [ 57.342105][ T4161] ? panic+0x860/0x860 [ 57.346163][ T4161] validate_chain+0x46d2/0x5930 [ 57.351018][ T4161] ? __lock_acquire+0x1295/0x1ff0 [ 57.356045][ T4161] ? reacquire_held_locks+0x660/0x660 [ 57.361413][ T4161] ? mark_lock+0x98/0x340 [ 57.365728][ T4161] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 57.371697][ T4161] ? mark_lock+0x98/0x340 [ 57.376061][ T4161] __lock_acquire+0x1295/0x1ff0 [ 57.381124][ T4161] lock_acquire+0x1db/0x4f0 [ 57.385632][ T4161] ? hfs_find_init+0x16a/0x1e0 [ 57.390387][ T4161] ? read_lock_is_recursive+0x10/0x10 [ 57.395746][ T4161] ? ____kasan_kmalloc+0xd1/0xf0 [ 57.400691][ T4161] ? __might_sleep+0xc0/0xc0 [ 57.405271][ T4161] ? __hfs_ext_write_extent+0x22e/0x4f0 [ 57.411258][ T4161] ? __hfs_ext_cache_extent+0x6a/0x990 [ 57.416724][ T4161] ? hfs_extend_file+0x340/0x1440 [ 57.421746][ T4161] ? hfs_get_block+0x3e0/0xb60 [ 57.426507][ T4161] ? __block_write_begin_int+0x60b/0x1650 [ 57.432224][ T4161] ? cont_write_begin+0x5d6/0x840 [ 57.437240][ T4161] ? hfs_write_begin+0x92/0xd0 [ 57.442144][ T4161] ? generic_perform_write+0x2bf/0x5b0 [ 57.447601][ T4161] ? __generic_file_write_iter+0x243/0x4f0 [ 57.453399][ T4161] ? vfs_write+0xacd/0xe50 [ 57.457804][ T4161] ? ksys_write+0x1a2/0x2c0 [ 57.462296][ T4161] ? do_syscall_64+0x3b/0xb0 [ 57.466876][ T4161] __mutex_lock_common+0x1da/0x25a0 [ 57.472082][ T4161] ? hfs_find_init+0x16a/0x1e0 [ 57.476869][ T4161] ? hfs_find_init+0x16a/0x1e0 [ 57.481620][ T4161] ? mutex_lock_io_nested+0x60/0x60 [ 57.486813][ T4161] ? __kmalloc+0x168/0x300 [ 57.491222][ T4161] ? hfs_find_init+0x8c/0x1e0 [ 57.495882][ T4161] mutex_lock_nested+0x17/0x20 [ 57.500645][ T4161] hfs_find_init+0x16a/0x1e0 [ 57.505388][ T4161] hfs_extend_file+0x317/0x1440 [ 57.510242][ T4161] ? hfs_rename+0x320/0x320 [ 57.514744][ T4161] ? hfs_get_block+0xb60/0xb60 [ 57.519508][ T4161] ? hfs_find_exit+0xa0/0xa0 [ 57.524089][ T4161] ? do_raw_spin_unlock+0x137/0x8b0 [ 57.529307][ T4161] ? hfs_brec_find+0x40b/0x570 [ 57.534075][ T4161] hfs_bmap_reserve+0xd5/0x3f0 [ 57.538834][ T4161] __hfs_ext_write_extent+0x22e/0x4f0 [ 57.544221][ T4161] __hfs_ext_cache_extent+0x6a/0x990 [ 57.549505][ T4161] ? mutex_lock_nested+0x17/0x20 [ 57.554436][ T4161] ? hfs_find_init+0x16a/0x1e0 [ 57.559185][ T4161] hfs_extend_file+0x340/0x1440 [ 57.564025][ T4161] ? hfs_get_block+0xb60/0xb60 [ 57.568864][ T4161] ? find_lock_entries+0x1030/0x1030 [ 57.574138][ T4161] ? __lock_acquire+0x1ff0/0x1ff0 [ 57.579164][ T4161] ? pagevec_lookup_range+0x2e/0x70 [ 57.584366][ T4161] ? clean_bdev_aliases+0x801/0x940 [ 57.589555][ T4161] hfs_get_block+0x3e0/0xb60 [ 57.594135][ T4161] ? hfs_free_extents+0x420/0x420 [ 57.599150][ T4161] ? create_page_buffers+0x24b/0x330 [ 57.604445][ T4161] __block_write_begin_int+0x60b/0x1650 [ 57.609990][ T4161] ? hfs_free_extents+0x420/0x420 [ 57.615002][ T4161] ? page_zero_new_buffers+0x510/0x510 [ 57.620449][ T4161] ? exc_page_fault+0x342/0x700 [ 57.625288][ T4161] ? wait_for_stable_page+0xe2/0x110 [ 57.630567][ T4161] cont_write_begin+0x5d6/0x840 [ 57.635438][ T4161] ? generic_cont_expand_simple+0x230/0x230 [ 57.641310][ T4161] ? fault_in_readable+0x1d5/0x2e0 [ 57.646410][ T4161] ? fault_in_safe_writeable+0x250/0x250 [ 57.652048][ T4161] hfs_write_begin+0x92/0xd0 [ 57.656623][ T4161] ? hfs_free_extents+0x420/0x420 [ 57.661632][ T4161] generic_perform_write+0x2bf/0x5b0 [ 57.666906][ T4161] ? grab_cache_page_write_begin+0x90/0x90 [ 57.672694][ T4161] ? file_remove_privs+0x610/0x610 [ 57.677784][ T4161] ? rwsem_write_trylock+0x166/0x210 [ 57.683056][ T4161] __generic_file_write_iter+0x243/0x4f0 [ 57.688672][ T4161] generic_file_write_iter+0xa7/0x1b0 [ 57.694028][ T4161] vfs_write+0xacd/0xe50 [ 57.698260][ T4161] ? file_end_write+0x250/0x250 [ 57.703099][ T4161] ? rcu_lock_acquire+0x30/0x30 [ 57.707943][ T4161] ? __fdget_pos+0x2d2/0x380 [ 57.712520][ T4161] ksys_write+0x1a2/0x2c0 [ 57.716835][ T4161] ? print_irqtrace_events+0x210/0x210 [ 57.722279][ T4161] ? __ia32_sys_read+0x80/0x80 [ 57.727028][ T4161] ? syscall_enter_from_user_mode+0x2e/0x240 [ 57.733015][ T4161] ? lockdep_hardirqs_on+0x94/0x130 [ 57.738200][ T4161] ? syscall_enter_from_user_mode+0x2e/0x240 [ 57.744168][ T4161] do_syscall_64+0x3b/0xb0 [ 57.748570][ T4161] ? clear_bhb_loop+0x15/0x70 [ 57.753253][ T4161] entry_SYSCALL_64_after_hwframe+0x66/0xd0 [ 57.759141][ T4161] RIP: 0033:0x7fa6df5cca79 [ 57.763565][ T4161] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 [ 57.783269][ T4161] RSP: 002b:00007fff682f3598 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 57.791690][ T4161] RAX: ffffffffffffffda RBX: 00007fa6df61505e RCX: 00007fa6df5cca79 [ 57.799654][ T4161] RDX: 00000000ffffff6a RSI: 0000000020000000 RDI: 0000000000000004 [ 57.807615][ T4161] RBP: 00007fa6df63f610 R08: 00007fff682f3337 R09: 00007fff682f3768 [ 57.815573][ T4161] R10: 0000000000000012 R11: 0000000000000246 R12: 0000000000000001 [ 57.823532][ T4161] R13: 00007fff682f3758 R14: 0000000000000001 R15: 0000000000000001 [ 57.831498][ T4161] [ 57.834544][ C0] sched: RT throttling activated [ 61.616320][ T9] attempt to access beyond end of device [ 61.616320][ T9] loop0: rw=1048577, want=4170, limit=64 [ 61.627476][ T9] Buffer I/O error on dev loop0, logical block 4169, lost async page write [ 61.636123][ T9] attempt to access beyond end of device [ 61.636123][ T9] loop0: rw=1048577, want=4171, limit=64 [ 61.647254][ T9] Buffer I/O error on dev loop0, logical block 4170, lost async page write [ 61.655911][ T9] attempt to access beyond end of device [ 61.655911][ T9] loop0: rw=1048577, want=4173, limit=64 [ 61.667104][ T9] Buffer I/O error on dev loop0, logical block 4172, lost async page write [ 61.675789][ T9] attempt to access beyond end of device [ 61.675789][ T9] loop0: rw=1048577, want=4174, limit=64 [ 61.686907][ T9] Buffer I/O error on dev loop0, logical block 4173, lost async page write [ 61.695822][ T9] attempt to access beyond end of device [ 61.695822][ T9] loop0: rw=1048577, want=4175, limit=64 [ 61.707040][ T9] Buffer I/O error on dev loop0, logical block 4174, lost async page write [ 61.715688][ T9] attempt to access beyond end of device [ 61.715688][ T9] loop0: rw=1048577, want=4176, limit=64 [ 61.726825][ T9] Buffer I/O error on dev loop0, logical block 4175, lost async page write [ 61.735554][ T9] attempt to access beyond end of device [ 61.735554][ T9] loop0: rw=1048577, want=4177, limit=64 [ 61.746671][ T9] Buffer I/O error on dev loop0, logical block 4176, lost async page write [ 61.755300][ T9] attempt to access beyond end of device [ 61.755300][ T9] loop0: rw=1048577, want=4178, limit=64 [ 61.766409][ T9] Buffer I/O error on dev loop0, logical block 4177, lost async page write [ 61.775071][ T9] attempt to access beyond end of device [ 61.775071][ T9] loop0: rw=1048577, want=4194, limit=64 [ 61.786468][ T9] attempt to access beyond end of device [ 61.786468][ T9] loop0: rw=1048577, want=4356, limit=64 [ 61.797709][ T9] Buffer I/O error on dev loop0, logical block 4356, lost async page write [ 61.806325][ T9] Buffer I/O error on dev loop0, logical block 4357, lost async page write