Warning: Permanently added '10.128.0.234' (ED25519) to the list of known hosts. executing program syzkaller login: [ 48.778268][ T3499] loop0: detected capacity change from 0 to 64 [ 48.832883][ T3499] ======================================================= [ 48.832883][ T3499] WARNING: The mand mount option has been deprecated and [ 48.832883][ T3499] and is ignored by this kernel. Remove the mand [ 48.832883][ T3499] option from the mount to silence this warning. [ 48.832883][ T3499] ======================================================= [ 48.900422][ T26] audit: type=1800 audit(1712658378.196:2): pid=3499 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed(directio) comm="syz-executor178" name="bus" dev="loop0" ino=21 res=0 errno=0 [ 48.973318][ T3499] [ 48.975668][ T3499] ============================================ [ 48.982370][ T3499] WARNING: possible recursive locking detected [ 48.989035][ T3499] 5.15.153-syzkaller #0 Not tainted [ 48.994846][ T3499] -------------------------------------------- [ 49.001571][ T3499] syz-executor178/3499 is trying to acquire lock: [ 49.008167][ T3499] ffff8880790b80b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 49.017981][ T3499] [ 49.017981][ T3499] but task is already holding lock: [ 49.025670][ T3499] ffff8880790b80b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 49.036060][ T3499] [ 49.036060][ T3499] other info that might help us debug this: [ 49.044112][ T3499] Possible unsafe locking scenario: [ 49.044112][ T3499] [ 49.052140][ T3499] CPU0 [ 49.056149][ T3499] ---- [ 49.059428][ T3499] lock(&tree->tree_lock/1); [ 49.064251][ T3499] lock(&tree->tree_lock/1); [ 49.068946][ T3499] [ 49.068946][ T3499] *** DEADLOCK *** [ 49.068946][ T3499] [ 49.077570][ T3499] May be due to missing lock nesting notation [ 49.077570][ T3499] [ 49.086156][ T3499] 5 locks held by syz-executor178/3499: [ 49.091864][ T3499] #0: ffff8880790be460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 [ 49.100834][ T3499] #1: ffff888016591628 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: generic_file_write_iter+0x7c/0x1b0 [ 49.113618][ T3499] #2: ffff888016591478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xfb/0x1440 [ 49.124922][ T3499] #3: ffff8880790b80b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16a/0x1e0 [ 49.135823][ T3499] #4: ffff8880165900f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xfb/0x1440 [ 49.148861][ T3499] [ 49.148861][ T3499] stack backtrace: [ 49.155472][ T3499] CPU: 1 PID: 3499 Comm: syz-executor178 Not tainted 5.15.153-syzkaller #0 [ 49.165056][ T3499] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 49.176487][ T3499] Call Trace: [ 49.179784][ T3499] [ 49.183323][ T3499] dump_stack_lvl+0x1e3/0x2cb [ 49.188661][ T3499] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 49.196003][ T3499] ? panic+0x84d/0x84d [ 49.200292][ T3499] validate_chain+0x46d2/0x5930 [ 49.205539][ T3499] ? __lock_acquire+0x1295/0x1ff0 [ 49.211037][ T3499] ? reacquire_held_locks+0x660/0x660 [ 49.217181][ T3499] ? mark_lock+0x98/0x340 [ 49.222554][ T3499] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 49.229659][ T3499] ? mark_lock+0x98/0x340 [ 49.234782][ T3499] __lock_acquire+0x1295/0x1ff0 [ 49.239885][ T3499] lock_acquire+0x1db/0x4f0 [ 49.244728][ T3499] ? hfs_find_init+0x16a/0x1e0 [ 49.250376][ T3499] ? read_lock_is_recursive+0x10/0x10 [ 49.256478][ T3499] ? ____kasan_kmalloc+0xd1/0xf0 [ 49.262141][ T3499] ? __might_sleep+0xc0/0xc0 [ 49.267030][ T3499] ? __hfs_ext_write_extent+0x22e/0x4f0 [ 49.272930][ T3499] ? __hfs_ext_cache_extent+0x6a/0x990 [ 49.279455][ T3499] ? hfs_extend_file+0x340/0x1440 [ 49.285131][ T3499] ? hfs_get_block+0x3e0/0xb60 [ 49.290501][ T3499] ? __block_write_begin_int+0x60b/0x1650 [ 49.297005][ T3499] ? cont_write_begin+0x5d6/0x840 [ 49.302654][ T3499] ? hfs_write_begin+0x92/0xd0 [ 49.308169][ T3499] ? generic_perform_write+0x2bf/0x5b0 [ 49.314482][ T3499] ? __generic_file_write_iter+0x243/0x4f0 [ 49.321955][ T3499] ? vfs_write+0xacf/0xe50 [ 49.327968][ T3499] ? ksys_write+0x1a2/0x2c0 [ 49.333584][ T3499] ? do_syscall_64+0x3d/0xb0 [ 49.338835][ T3499] __mutex_lock_common+0x1da/0x25a0 [ 49.345381][ T3499] ? hfs_find_init+0x16a/0x1e0 [ 49.351522][ T3499] ? hfs_find_init+0x16a/0x1e0 [ 49.356758][ T3499] ? mutex_lock_io_nested+0x60/0x60 [ 49.362302][ T3499] ? __kmalloc+0x168/0x300 [ 49.366864][ T3499] ? hfs_find_init+0x8c/0x1e0 [ 49.371543][ T3499] mutex_lock_nested+0x17/0x20 [ 49.376525][ T3499] hfs_find_init+0x16a/0x1e0 [ 49.381570][ T3499] hfs_extend_file+0x317/0x1440 [ 49.386864][ T3499] ? hfs_get_block+0xb60/0xb60 [ 49.391802][ T3499] ? __mutex_lock_common+0x444/0x25a0 [ 49.397570][ T3499] ? hfs_brec_find+0x193/0x570 [ 49.402789][ T3499] hfs_bmap_reserve+0xd5/0x3f0 [ 49.407954][ T3499] __hfs_ext_write_extent+0x22e/0x4f0 [ 49.414406][ T3499] __hfs_ext_cache_extent+0x6a/0x990 [ 49.419979][ T3499] ? mutex_lock_nested+0x17/0x20 [ 49.425300][ T3499] ? hfs_find_init+0x16a/0x1e0 [ 49.430689][ T3499] hfs_extend_file+0x340/0x1440 [ 49.437092][ T3499] ? hfs_get_block+0xb60/0xb60 [ 49.442325][ T3499] ? find_lock_entries+0x1030/0x1030 [ 49.448252][ T3499] ? __lock_acquire+0x1ff0/0x1ff0 [ 49.453623][ T3499] ? pagevec_lookup_range+0x2e/0x70 [ 49.459188][ T3499] ? clean_bdev_aliases+0x801/0x940 [ 49.464600][ T3499] hfs_get_block+0x3e0/0xb60 [ 49.470335][ T3499] ? hfs_free_extents+0x420/0x420 [ 49.475578][ T3499] ? create_page_buffers+0x24b/0x330 [ 49.480965][ T3499] __block_write_begin_int+0x60b/0x1650 [ 49.487313][ T3499] ? hfs_free_extents+0x420/0x420 [ 49.493145][ T3499] ? page_zero_new_buffers+0x510/0x510 [ 49.499431][ T3499] ? exc_page_fault+0x342/0x740 [ 49.504787][ T3499] ? wait_for_stable_page+0xe2/0x110 [ 49.510411][ T3499] cont_write_begin+0x5d6/0x840 [ 49.515282][ T3499] ? generic_cont_expand_simple+0x230/0x230 [ 49.521819][ T3499] ? fault_in_readable+0x1d5/0x2e0 [ 49.527671][ T3499] ? fault_in_safe_writeable+0x250/0x250 [ 49.533759][ T3499] hfs_write_begin+0x92/0xd0 [ 49.538964][ T3499] ? hfs_free_extents+0x420/0x420 [ 49.544282][ T3499] generic_perform_write+0x2bf/0x5b0 [ 49.550427][ T3499] ? grab_cache_page_write_begin+0x90/0x90 [ 49.556377][ T3499] ? file_remove_privs+0x610/0x610 [ 49.561524][ T3499] ? down_write+0x10e/0x170 [ 49.566368][ T3499] __generic_file_write_iter+0x243/0x4f0 [ 49.572014][ T3499] generic_file_write_iter+0xa7/0x1b0 [ 49.577483][ T3499] vfs_write+0xacf/0xe50 [ 49.581934][ T3499] ? file_end_write+0x250/0x250 [ 49.587002][ T3499] ? __context_tracking_enter+0x5f/0x90 [ 49.593437][ T3499] ? __fdget_pos+0x2d2/0x380 [ 49.598167][ T3499] ksys_write+0x1a2/0x2c0 [ 49.602795][ T3499] ? print_irqtrace_events+0x210/0x210 [ 49.609085][ T3499] ? __ia32_sys_read+0x80/0x80 [ 49.613946][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 49.620112][ T3499] ? lockdep_hardirqs_on+0x94/0x130 [ 49.625801][ T3499] ? syscall_enter_from_user_mode+0x2e/0x230 [ 49.631994][ T3499] do_syscall_64+0x3d/0xb0 [ 49.636420][ T3499] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 49.642806][ T3499] RIP: 0033:0x7fbb13e2ff19 [ 49.647854][ T3499] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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 [ 49.669052][ T3499] RSP: 002b:00007ffd2f8fd188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 49.677808][ T3499] RAX: ffffffffffffffda RBX: 00007fbb13e79095 RCX: 00007fbb13e2ff19 [ 49.685875][ T3499] RDX: 000000000208e24b RSI: 0000000020000080 RDI: 0000000000000005 [ 49.694432][ T3499] RBP: 00007fbb13e7909d R08: 0000555556c564c0 R09: 0000555556c564c0 [ 49.702577][ T3499] R10: 0000555556c564c0 R11: 0000000000000246 R12: 00007ffd2f8fd1b0 [ 49.710816][ T3499] R13: 00007ffd2f8fd3d8 R14: 431bde82d7b634db R15: 00007fbb13e7903b [ 49.719051][ T3499] [ 53.921638][ T155] attempt to access beyond end of device [ 53.921638][ T155] loop0: rw=1, want=4168, limit=64