Warning: Permanently added '10.128.0.195' (ED25519) to the list of known hosts. executing program [ 51.354348][ T3542] loop0: detected capacity change from 0 to 64 [ 51.433681][ T3542] [ 51.436385][ T3542] ============================================ [ 51.442519][ T3542] WARNING: possible recursive locking detected [ 51.448757][ T3542] 6.1.53-syzkaller #0 Not tainted [ 51.453758][ T3542] -------------------------------------------- [ 51.459883][ T3542] syz-executor225/3542 is trying to acquire lock: [ 51.466289][ T3542] ffff8880760700b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 51.475769][ T3542] [ 51.475769][ T3542] but task is already holding lock: [ 51.483804][ T3542] ffff8880760700b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 51.493088][ T3542] [ 51.493088][ T3542] other info that might help us debug this: [ 51.501158][ T3542] Possible unsafe locking scenario: [ 51.501158][ T3542] [ 51.508589][ T3542] CPU0 [ 51.511860][ T3542] ---- [ 51.515115][ T3542] lock(&tree->tree_lock/1); [ 51.519772][ T3542] lock(&tree->tree_lock/1); [ 51.524425][ T3542] [ 51.524425][ T3542] *** DEADLOCK *** [ 51.524425][ T3542] [ 51.532541][ T3542] May be due to missing lock nesting notation [ 51.532541][ T3542] [ 51.540830][ T3542] 5 locks held by syz-executor225/3542: [ 51.546349][ T3542] #0: ffff8880745f6460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x269/0xba0 [ 51.555200][ T3542] #1: ffff888073e882a8 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x7f/0x310 [ 51.566485][ T3542] #2: ffff888073e880f8 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xfb/0x1440 [ 51.577167][ T3542] #3: ffff8880760700b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 51.586880][ T3542] #4: ffff88807c0d80f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xfb/0x1440 [ 51.598073][ T3542] [ 51.598073][ T3542] stack backtrace: [ 51.603935][ T3542] CPU: 0 PID: 3542 Comm: syz-executor225 Not tainted 6.1.53-syzkaller #0 [ 51.612332][ T3542] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 [ 51.622364][ T3542] Call Trace: [ 51.625646][ T3542] [ 51.628562][ T3542] dump_stack_lvl+0x1e3/0x2cb [ 51.633228][ T3542] ? nf_tcp_handle_invalid+0x642/0x642 [ 51.638664][ T3542] ? panic+0x75d/0x75d [ 51.642749][ T3542] validate_chain+0x4726/0x58e0 [ 51.647583][ T3542] ? reacquire_held_locks+0x660/0x660 [ 51.652933][ T3542] ? mark_lock+0x9a/0x340 [ 51.657235][ T3542] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 51.663207][ T3542] ? mark_lock+0x9a/0x340 [ 51.667511][ T3542] __lock_acquire+0x125b/0x1f80 [ 51.672338][ T3542] lock_acquire+0x1f8/0x5a0 [ 51.676907][ T3542] ? hfs_find_init+0x16a/0x1e0 [ 51.681835][ T3542] ? read_lock_is_recursive+0x10/0x10 [ 51.687179][ T3542] ? hfs_find_init+0x8c/0x1e0 [ 51.691924][ T3542] ? hfs_extend_file+0x317/0x1440 [ 51.696928][ T3542] ? __might_sleep+0xb0/0xb0 [ 51.701493][ T3542] ? hfs_get_block+0x3e0/0xb60 [ 51.706242][ T3542] ? __block_write_begin_int+0x544/0x1a30 [ 51.711936][ T3542] ? block_write_begin+0x98/0x1f0 [ 51.716937][ T3542] ? cont_write_begin+0x63f/0x880 [ 51.722028][ T3542] ? hfs_write_begin+0x86/0xd0 [ 51.726800][ T3542] ? generic_perform_write+0x2fc/0x5e0 [ 51.732264][ T3542] ? __generic_file_write_iter+0x176/0x400 [ 51.738052][ T3542] ? generic_file_write_iter+0xab/0x310 [ 51.743576][ T3542] ? vfs_write+0x7ae/0xba0 [ 51.748229][ T3542] ? do_syscall_64+0x3d/0xb0 [ 51.752798][ T3542] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.758845][ T3542] __mutex_lock_common+0x1d4/0x2520 [ 51.764051][ T3542] ? hfs_find_init+0x16a/0x1e0 [ 51.768834][ T3542] ? hfs_find_init+0x16a/0x1e0 [ 51.773664][ T3542] ? mutex_lock_io_nested+0x60/0x60 [ 51.778866][ T3542] ? rcu_is_watching+0x11/0xb0 [ 51.783618][ T3542] ? hfs_find_init+0x8c/0x1e0 [ 51.788273][ T3542] ? __kmalloc+0xe2/0x230 [ 51.792683][ T3542] mutex_lock_nested+0x17/0x20 [ 51.797445][ T3542] hfs_find_init+0x16a/0x1e0 [ 51.802043][ T3542] hfs_extend_file+0x317/0x1440 [ 51.807051][ T3542] ? hfs_get_block+0xb60/0xb60 [ 51.811799][ T3542] ? rcu_is_watching+0x11/0xb0 [ 51.816544][ T3542] ? __mutex_lock_common+0x429/0x2520 [ 51.821981][ T3542] ? hfs_brec_find+0x193/0x570 [ 51.827523][ T3542] hfs_bmap_reserve+0xd5/0x3f0 [ 51.832268][ T3542] __hfs_ext_write_extent+0x22e/0x4f0 [ 51.837637][ T3542] __hfs_ext_cache_extent+0x6a/0x990 [ 51.842902][ T3542] ? mutex_lock_nested+0x17/0x20 [ 51.847905][ T3542] ? hfs_find_init+0x16a/0x1e0 [ 51.852647][ T3542] hfs_extend_file+0x340/0x1440 [ 51.857482][ T3542] ? hfs_get_block+0xb60/0xb60 [ 51.862314][ T3542] ? find_lock_entries+0xd60/0xd60 [ 51.867410][ T3542] ? clean_bdev_aliases+0x7f1/0x910 [ 51.872589][ T3542] hfs_get_block+0x3e0/0xb60 [ 51.877162][ T3542] ? hfs_free_extents+0x420/0x420 [ 51.882188][ T3542] ? create_page_buffers+0x24e/0x4b0 [ 51.887563][ T3542] __block_write_begin_int+0x544/0x1a30 [ 51.893106][ T3542] ? hfs_free_extents+0x420/0x420 [ 51.898133][ T3542] ? page_zero_new_buffers+0x650/0x650 [ 51.903590][ T3542] ? PageHeadHuge+0x8e/0x1c0 [ 51.908161][ T3542] ? hfs_free_extents+0x420/0x420 [ 51.913257][ T3542] block_write_begin+0x98/0x1f0 [ 51.919740][ T3542] ? cont_write_begin+0x622/0x880 [ 51.924754][ T3542] cont_write_begin+0x63f/0x880 [ 51.929598][ T3542] ? fault_in_readable+0x1c8/0x340 [ 51.934694][ T3542] ? generic_cont_expand_simple+0x2a0/0x2a0 [ 51.940565][ T3542] ? fault_in_readable+0x209/0x340 [ 51.945659][ T3542] ? fault_in_safe_writeable+0x250/0x250 [ 51.951271][ T3542] hfs_write_begin+0x86/0xd0 [ 51.955862][ T3542] ? hfs_free_extents+0x420/0x420 [ 51.960952][ T3542] generic_perform_write+0x2fc/0x5e0 [ 51.966289][ T3542] ? generic_file_direct_write+0x460/0x460 [ 51.972807][ T3542] ? __file_remove_privs+0x640/0x640 [ 51.978091][ T3542] ? generic_write_checks+0x15c/0x1c0 [ 51.983444][ T3542] ? clear_nonspinnable+0x60/0x60 [ 51.988465][ T3542] __generic_file_write_iter+0x176/0x400 [ 51.994088][ T3542] generic_file_write_iter+0xab/0x310 [ 51.999627][ T3542] vfs_write+0x7ae/0xba0 [ 52.003854][ T3542] ? file_end_write+0x250/0x250 [ 52.008855][ T3542] ? do_sys_openat2+0x42b/0x500 [ 52.013683][ T3542] ? __fdget_pos+0x2c1/0x360 [ 52.018257][ T3542] ksys_write+0x19c/0x2c0 [ 52.022565][ T3542] ? print_irqtrace_events+0x210/0x210 [ 52.028003][ T3542] ? __ia32_sys_read+0x80/0x80 [ 52.032746][ T3542] ? syscall_enter_from_user_mode+0x2e/0x220 [ 52.038706][ T3542] ? lockdep_hardirqs_on+0x94/0x130 [ 52.043881][ T3542] ? syscall_enter_from_user_mode+0x2e/0x220 [ 52.049854][ T3542] do_syscall_64+0x3d/0xb0 [ 52.054254][ T3542] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.060315][ T3542] RIP: 0033:0x7fb7a1be4639 [ 52.064715][ T3542] 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 [ 52.084402][ T3542] RSP: 002b:00007ffe85fca118 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 52.092827][ T3542] RAX: ffffffffffffffda RBX: 00007ffe85fca2e8 RCX: 00007fb7a1be4639 [ 52.100779][ T3542] RDX: 000000000208e24b RSI: 0000000020000180 RDI: 0000000000000004 [ 52.108727][ T3542] RBP: 00007fb7a1c57610 R08: 0000000000000000 R09: 00007ffe85fca2e8 [ 52.116676][ T3542] R10: 00000000000002ba R11: 0000000000000246 R12: 0000000000000001 [ 52.124623][ T3542] R13: 00007ffe85fca2d8 R14: 0000000000000001 R15: 0000000000000001 [ 52.132615][ T3542] [ 56.445637][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.445637][ T46] loop0: rw=1048577, sector=95, nr_sectors = 1 limit=64 [ 56.459521][ T46] Buffer I/O error on dev loop0, logical block 95, lost async page write [ 56.467987][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.467987][ T46] loop0: rw=1048577, sector=96, nr_sectors = 1 limit=64 [ 56.481678][ T46] Buffer I/O error on dev loop0, logical block 96, lost async page write [ 56.490184][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.490184][ T46] loop0: rw=1048577, sector=98, nr_sectors = 1 limit=64 [ 56.503965][ T46] Buffer I/O error on dev loop0, logical block 98, lost async page write [ 56.512474][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.512474][ T46] loop0: rw=1048577, sector=100, nr_sectors = 1 limit=64 [ 56.526216][ T46] Buffer I/O error on dev loop0, logical block 100, lost async page write [ 56.534725][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.534725][ T46] loop0: rw=1048577, sector=101, nr_sectors = 1 limit=64 [ 56.548551][ T46] Buffer I/O error on dev loop0, logical block 101, lost async page write [ 56.557084][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.557084][ T46] loop0: rw=1048577, sector=102, nr_sectors = 1 limit=64 [ 56.571177][ T46] Buffer I/O error on dev loop0, logical block 102, lost async page write [ 56.579808][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.579808][ T46] loop0: rw=1048577, sector=103, nr_sectors = 1 limit=64 [ 56.593589][ T46] Buffer I/O error on dev loop0, logical block 103, lost async page write [ 56.602142][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.602142][ T46] loop0: rw=1048577, sector=104, nr_sectors = 1 limit=64 [ 56.615881][ T46] Buffer I/O error on dev loop0, logical block 104, lost async page write [ 56.626454][ T46] kworker/u4:3: attempt to access beyond end of device [ 56.626454][ T46] loop0: rw=1048577, sector=105, nr_sectors = 4064 limit=64