Warning: Permanently added '10.128.0.142' (ED25519) to the list of known hosts. 2024/01/12 03:58:52 ignoring optional flag "sandboxArg"="0" 2024/01/12 03:58:52 parsed 1 programs 2024/01/12 03:58:53 executed programs: 0 [ 50.743313][ T1435] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 52.973283][ T1861] loop0: detected capacity change from 0 to 64 [ 53.002891][ T1861] [ 53.005207][ T1861] ============================================ [ 53.011600][ T1861] WARNING: possible recursive locking detected [ 53.017720][ T1861] 6.1.72-syzkaller #0 Not tainted [ 53.022707][ T1861] -------------------------------------------- [ 53.028817][ T1861] syz-executor.0/1861 is trying to acquire lock: [ 53.035104][ T1861] ffff88810ce640b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x76/0x80 [ 53.044182][ T1861] [ 53.044182][ T1861] but task is already holding lock: [ 53.051512][ T1861] ffff88810ce640b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x76/0x80 [ 53.060591][ T1861] [ 53.060591][ T1861] other info that might help us debug this: [ 53.068618][ T1861] Possible unsafe locking scenario: [ 53.068618][ T1861] [ 53.076038][ T1861] CPU0 [ 53.079297][ T1861] ---- [ 53.082545][ T1861] lock(&tree->tree_lock/1); [ 53.087184][ T1861] lock(&tree->tree_lock/1); [ 53.091825][ T1861] [ 53.091825][ T1861] *** DEADLOCK *** [ 53.091825][ T1861] [ 53.099932][ T1861] May be due to missing lock nesting notation [ 53.099932][ T1861] [ 53.108216][ T1861] 6 locks held by syz-executor.0/1861: [ 53.113636][ T1861] #0: ffff888108a5bce8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xa6/0xc0 [ 53.122624][ T1861] #1: ffff88810ce61450 (sb_writers#13){.+.+}-{0:0}, at: vfs_write+0xbc/0x2b0 [ 53.131436][ T1861] #2: ffff888102bb82a8 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: generic_file_write_iter+0x27/0xb0 [ 53.142591][ T1861] #3: ffff888102bb80f8 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0x3c/0x470 [ 53.153279][ T1861] #4: ffff88810ce640b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x76/0x80 [ 53.162789][ T1861] #5: ffff88810dec00f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0x3c/0x470 [ 53.173857][ T1861] [ 53.173857][ T1861] stack backtrace: [ 53.179709][ T1861] CPU: 1 PID: 1861 Comm: syz-executor.0 Not tainted 6.1.72-syzkaller #0 [ 53.187995][ T1861] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 53.198015][ T1861] Call Trace: [ 53.201267][ T1861] [ 53.204178][ T1861] dump_stack_lvl+0x89/0xd7 [ 53.208650][ T1861] __lock_acquire+0x73d/0x2830 [ 53.213384][ T1861] ? fs_reclaim_acquire+0x6b/0xe0 [ 53.218373][ T1861] ? hfs_find_init+0x76/0x80 [ 53.222925][ T1861] lock_acquire+0xe3/0x270 [ 53.227305][ T1861] ? hfs_find_init+0x76/0x80 [ 53.231856][ T1861] ? slab_post_alloc_hook+0x67/0x460 [ 53.237106][ T1861] ? hfs_find_init+0x76/0x80 [ 53.241661][ T1861] __mutex_lock+0x99/0x970 [ 53.246042][ T1861] ? hfs_find_init+0x76/0x80 [ 53.250596][ T1861] hfs_find_init+0x76/0x80 [ 53.254974][ T1861] hfs_extend_file+0xc7/0x470 [ 53.259618][ T1861] hfs_bmap_reserve+0x20/0x90 [ 53.264258][ T1861] __hfs_ext_write_extent+0x7a/0xb0 [ 53.269421][ T1861] __hfs_ext_cache_extent+0x21/0x100 [ 53.274668][ T1861] hfs_extend_file+0xf4/0x470 [ 53.279309][ T1861] hfs_get_block+0xa3/0x2d0 [ 53.283776][ T1861] __block_write_begin_int+0x13b/0x670 [ 53.289199][ T1861] ? hfs_free_extents+0x100/0x100 [ 53.294186][ T1861] ? hfs_free_extents+0x100/0x100 [ 53.299171][ T1861] block_write_begin+0x45/0xa0 [ 53.303900][ T1861] cont_write_begin+0x291/0x2c0 [ 53.308723][ T1861] hfs_write_begin+0x28/0x50 [ 53.313278][ T1861] ? hfs_free_extents+0x100/0x100 [ 53.318266][ T1861] generic_perform_write+0x9e/0x220 [ 53.323435][ T1861] __generic_file_write_iter+0x82/0x140 [ 53.329378][ T1861] generic_file_write_iter+0x42/0xb0 [ 53.334625][ T1861] vfs_write+0x23a/0x2b0 [ 53.338832][ T1861] ksys_write+0x6c/0xd0 [ 53.342951][ T1861] do_syscall_64+0x3d/0x80 [ 53.347333][ T1861] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.353187][ T1861] RIP: 0033:0x7f1f1ea7cae9 [ 53.357570][ T1861] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 [ 53.377136][ T1861] RSP: 002b:00007f1f1f8b10c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 53.385509][ T1861] RAX: ffffffffffffffda RBX: 00007f1f1eb9bf80 RCX: 00007f1f1ea7cae9 [ 53.393448][ T1861] RDX: 000000000208e24b RSI: 0000000020000180 RDI: 0000000000000004 [ 53.401474][ T1861] RBP: 00007f1f1eac847a R08: 0000000000000000 R09: 0000000000000000 [ 53.409412][ T1861] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 53.417347][ T1861] R13: 0000000000000006 R14: 00007f1f1eb9bf80 R15: 00007ffc40270dc8 [ 53.425286][ T1861] [ 58.023874][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.023874][ T9] loop0: rw=1048577, sector=95, nr_sectors = 1 limit=64 [ 58.037503][ T9] Buffer I/O error on dev loop0, logical block 95, lost async page write [ 58.045893][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.045893][ T9] loop0: rw=1048577, sector=96, nr_sectors = 1 limit=64 [ 58.059483][ T9] Buffer I/O error on dev loop0, logical block 96, lost async page write [ 58.067873][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.067873][ T9] loop0: rw=1048577, sector=98, nr_sectors = 1 limit=64 [ 58.081470][ T9] Buffer I/O error on dev loop0, logical block 98, lost async page write [ 58.089861][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.089861][ T9] loop0: rw=1048577, sector=100, nr_sectors = 1 limit=64 [ 58.103541][ T9] Buffer I/O error on dev loop0, logical block 100, lost async page write [ 58.112019][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.112019][ T9] loop0: rw=1048577, sector=101, nr_sectors = 1 limit=64 [ 58.125709][ T9] Buffer I/O error on dev loop0, logical block 101, lost async page write [ 58.134182][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.134182][ T9] loop0: rw=1048577, sector=102, nr_sectors = 1 limit=64 [ 58.147871][ T9] Buffer I/O error on dev loop0, logical block 102, lost async page write [ 58.156389][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.156389][ T9] loop0: rw=1048577, sector=103, nr_sectors = 1 limit=64 [ 58.170083][ T9] Buffer I/O error on dev loop0, logical block 103, lost async page write [ 58.178570][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.178570][ T9] loop0: rw=1048577, sector=104, nr_sectors = 1 limit=64 [ 58.192295][ T9] Buffer I/O error on dev loop0, logical block 104, lost async page write [ 58.201278][ T9] kworker/u4:0: attempt to access beyond end of device [ 58.201278][ T9] loop0: rw=1048577, sector=105, nr_sectors = 4064 limit=64