Warning: Permanently added '10.128.0.41' (ED25519) to the list of known hosts. 2024/01/20 07:25:12 ignoring optional flag "sandboxArg"="0" 2024/01/20 07:25:12 parsed 1 programs 2024/01/20 07:25:13 executed programs: 0 [ 42.453527] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k [ 42.540187] IPVS: ftp: loaded support on port[0] = 21 [ 42.550089] IPVS: ftp: loaded support on port[0] = 21 [ 42.557807] IPVS: ftp: loaded support on port[0] = 21 [ 42.562462] IPVS: ftp: loaded support on port[0] = 21 [ 42.571037] IPVS: ftp: loaded support on port[0] = 21 [ 42.591081] IPVS: ftp: loaded support on port[0] = 21 [ 47.127103] [ 47.128738] ====================================================== [ 47.135032] WARNING: possible circular locking dependency detected [ 47.141321] 4.19.0-syzkaller #0 Not tainted [ 47.145620] ------------------------------------------------------ [ 47.151994] syz-executor.2/5038 is trying to acquire lock: [ 47.157585] 00000000bc6c3f9d (&sbi->alloc_mutex){+.+.}, at: hfsplus_block_free+0x57/0x1f7 [ 47.165961] [ 47.165961] but task is already holding lock: [ 47.171908] 00000000b82b827a (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x87/0x39a [ 47.181674] [ 47.181674] which lock already depends on the new lock. [ 47.181674] [ 47.189966] [ 47.189966] the existing dependency chain (in reverse order) is: [ 47.197567] [ 47.197567] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}: [ 47.204820] __mutex_lock+0x5d/0x750 [ 47.209121] mutex_lock_nested+0x16/0x20 [ 47.213673] hfsplus_get_block+0xeb/0x230 [ 47.218401] block_read_full_page+0x100/0x3d0 [ 47.223390] hfsplus_readpage+0x13/0x20 [ 47.228045] do_read_cache_page.part.6+0x214/0x450 [ 47.233653] read_cache_page+0x10/0x20 [ 47.238065] hfsplus_block_allocate+0x7e/0x3c0 [ 47.243240] hfsplus_file_extend+0xd5/0x330 [ 47.248143] hfsplus_get_block+0x63/0x230 [ 47.252796] __block_write_begin_int+0x168/0x5a0 [ 47.258044] block_write_begin+0x48/0x100 [ 47.262792] cont_write_begin+0x1ce/0x2c0 [ 47.267523] hfsplus_write_begin+0x35/0x70 [ 47.272248] pagecache_write_begin+0x11/0x20 [ 47.277263] __page_symlink+0xb4/0x100 [ 47.281658] page_symlink+0x1c/0x20 [ 47.285870] hfsplus_symlink+0x69/0x130 [ 47.290353] vfs_symlink+0xe6/0x170 [ 47.294480] do_symlinkat+0xdd/0xf0 [ 47.298597] __x64_sys_symlink+0x16/0x20 [ 47.303149] do_syscall_64+0x68/0x1b0 [ 47.307447] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.313137] [ 47.313137] -> #0 (&sbi->alloc_mutex){+.+.}: [ 47.319092] lock_acquire+0xc0/0x190 [ 47.323311] __mutex_lock+0x5d/0x750 [ 47.327516] mutex_lock_nested+0x16/0x20 [ 47.332067] hfsplus_block_free+0x57/0x1f7 [ 47.336815] hfsplus_free_extents+0x76/0xe0 [ 47.341744] hfsplus_file_truncate+0x254/0x39a [ 47.346822] hfsplus_delete_inode+0x56/0x70 [ 47.351641] hfsplus_unlink+0x193/0x1d0 [ 47.356110] hfsplus_rename+0x88/0x90 [ 47.360493] vfs_rename+0x4ac/0x930 [ 47.364609] do_renameat2+0x416/0x5c0 [ 47.369020] __x64_sys_renameat2+0x1f/0x30 [ 47.373753] do_syscall_64+0x68/0x1b0 [ 47.378046] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.383811] [ 47.383811] other info that might help us debug this: [ 47.383811] [ 47.391919] Possible unsafe locking scenario: [ 47.391919] [ 47.397942] CPU0 CPU1 [ 47.402581] ---- ---- [ 47.407289] lock(&HFSPLUS_I(inode)->extents_lock); [ 47.412469] lock(&sbi->alloc_mutex); [ 47.418885] lock(&HFSPLUS_I(inode)->extents_lock); [ 47.426578] lock(&sbi->alloc_mutex); [ 47.430444] [ 47.430444] *** DEADLOCK *** [ 47.430444] [ 47.436656] 6 locks held by syz-executor.2/5038: [ 47.441443] #0: 00000000fc7c8df1 (sb_writers#14){.+.+}, at: mnt_want_write+0x1f/0x50 [ 47.449648] #1: 00000000a68ad8fc (&type->i_mutex_dir_key#8/1){+.+.}, at: lock_rename+0xfa/0x100 [ 47.458544] #2: 00000000ba440c7f (&sb->s_type->i_mutex_key#20){+.+.}, at: lock_two_nondirectories+0x66/0x70 [ 47.468846] #3: 00000000bac6ed35 (&sb->s_type->i_mutex_key#20/4){+.+.}, at: lock_two_nondirectories+0x54/0x70 [ 47.479305] #4: 00000000c11ffe07 (&sbi->vh_mutex){+.+.}, at: hfsplus_unlink+0x5b/0x1d0 [ 47.487595] #5: 00000000b82b827a (&HFSPLUS_I(inode)->extents_lock){+.+.}, at: hfsplus_file_truncate+0x87/0x39a [ 47.497798] [ 47.497798] stack backtrace: [ 47.502261] CPU: 1 PID: 5038 Comm: syz-executor.2 Not tainted 4.19.0-syzkaller #0 [ 47.509888] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 [ 47.519215] Call Trace: [ 47.521773] dump_stack+0xc4/0x11a [ 47.525302] print_circular_bug.isra.18.cold.35+0x173/0x1cd [ 47.530980] __lock_acquire+0x11bb/0x12f0 [ 47.535096] lock_acquire+0xc0/0x190 [ 47.538777] ? hfsplus_block_free+0x57/0x1f7 [ 47.543176] __mutex_lock+0x5d/0x750 [ 47.546857] ? hfsplus_block_free+0x57/0x1f7 [ 47.551231] ? hfsplus_find_init+0x62/0xa0 [ 47.555436] ? hfsplus_block_free+0x57/0x1f7 [ 47.559812] ? __mutex_lock+0x5d/0x750 [ 47.563666] ? hfsplus_find_init+0x62/0xa0 [ 47.567870] ? lock_acquire+0xc0/0x190 [ 47.571724] mutex_lock_nested+0x16/0x20 [ 47.575751] ? mutex_lock_nested+0x16/0x20 [ 47.579955] hfsplus_block_free+0x57/0x1f7 [ 47.584177] hfsplus_free_extents+0x76/0xe0 [ 47.588468] hfsplus_file_truncate+0x254/0x39a [ 47.593105] hfsplus_delete_inode+0x56/0x70 [ 47.597395] hfsplus_unlink+0x193/0x1d0 [ 47.601337] hfsplus_rename+0x88/0x90 [ 47.605108] vfs_rename+0x4ac/0x930 [ 47.608714] ? _raw_spin_lock_irq+0x20/0x50 [ 47.613215] ? __lookup_hash+0x6e/0xa0 [ 47.617080] do_renameat2+0x416/0x5c0 [ 47.620849] __x64_sys_renameat2+0x1f/0x30 [ 47.625050] do_syscall_64+0x68/0x1b0 [ 47.628837] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.634704] RIP: 0033:0x7f27ff538da9 [ 47.638385] 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 [ 47.657453] RSP: 002b:00007f27ff0bb0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000013c [ 47.665218] RAX: ffffffffffffffda RBX: 00007f27ff667f80 RCX: 00007f27ff538da9 [ 47.672482] RDX: 0000000000000004 RSI: 00000000200000c0 RDI: 0000000000000005 2024/01/20 07:25:18 executed programs: 11 [ 47.679728] RBP: 00007f27ff58547a R08: 0000000000000000 R09: 0000000000000000 [ 47.686971] R10: 0000000020000180 R11: 0000000000000246 R12: 0000000000000000 [ 47.694298] R13: 0000000000000016 R14: 00007f27ff667f80 R15: 00007ffe3864aad8 2024/01/20 07:25:23 executed programs: 68