./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3146649834 <...> Warning: Permanently added '10.128.0.41' (ED25519) to the list of known hosts. execve("./syz-executor3146649834", ["./syz-executor3146649834"], 0x7ffe3dc21750 /* 10 vars */) = 0 brk(NULL) = 0x55557f4fd000 brk(0x55557f4fdd00) = 0x55557f4fdd00 arch_prctl(ARCH_SET_FS, 0x55557f4fd380) = 0 set_tid_address(0x55557f4fd650) = 5828 set_robust_list(0x55557f4fd660, 24) = 0 rseq(0x55557f4fdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3146649834", 4096) = 28 getrandom("\x92\xfd\x52\x2b\x46\xef\xd0\x3a", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557f4fdd00 brk(0x55557f51ed00) = 0x55557f51ed00 brk(0x55557f51f000) = 0x55557f51f000 mprotect(0x7f728a645000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7282000000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 524288) = 524288 munmap(0x7f7282000000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 [ 58.195491][ T5828] loop0: detected capacity change from 0 to 1024 [ 58.236898][ T5828] [ 58.239239][ T5828] ============================================ [ 58.245370][ T5828] WARNING: possible recursive locking detected [ 58.251508][ T5828] 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0 Not tainted [ 58.258588][ T5828] -------------------------------------------- [ 58.264714][ T5828] syz-executor314/5828 is trying to acquire lock: [ 58.271108][ T5828] ffff888027ec9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 58.281985][ T5828] [ 58.281985][ T5828] but task is already holding lock: [ 58.289323][ T5828] ffff888027ec87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 58.300346][ T5828] [ 58.300346][ T5828] other info that might help us debug this: [ 58.308378][ T5828] Possible unsafe locking scenario: [ 58.308378][ T5828] [ 58.315803][ T5828] CPU0 [ 58.319062][ T5828] ---- [ 58.322325][ T5828] lock(&HFSPLUS_I(inode)->extents_lock); [ 58.328112][ T5828] lock(&HFSPLUS_I(inode)->extents_lock); [ 58.333897][ T5828] [ 58.333897][ T5828] *** DEADLOCK *** [ 58.333897][ T5828] [ 58.342018][ T5828] May be due to missing lock nesting notation [ 58.342018][ T5828] [ 58.350317][ T5828] 5 locks held by syz-executor314/5828: [ 58.355840][ T5828] #0: ffff88807e0c40e0 (&type->s_umount_key#43/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 58.365920][ T5828] #1: ffff888032345198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_fill_super+0x1380/0x1ca0 [ 58.375906][ T5828] #2: ffff88807e1a80b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 58.385804][ T5828] #3: ffff888027ec87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 58.397270][ T5828] #4: ffff8880323450f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x9e/0x8c0 [ 58.407598][ T5828] [ 58.407598][ T5828] stack backtrace: [ 58.413477][ T5828] CPU: 0 UID: 0 PID: 5828 Comm: syz-executor314 Not tainted 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0 [ 58.424559][ T5828] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 58.434598][ T5828] Call Trace: [ 58.437867][ T5828] [ 58.440779][ T5828] dump_stack_lvl+0x241/0x360 [ 58.445447][ T5828] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.450628][ T5828] ? __pfx__printk+0x10/0x10 [ 58.455198][ T5828] ? lockdep_unlock+0x16a/0x300 [ 58.460088][ T5828] print_deadlock_bug+0x483/0x620 [ 58.465100][ T5828] validate_chain+0x15e2/0x5920 [ 58.469932][ T5828] ? stack_trace_save+0x118/0x1d0 [ 58.474938][ T5828] ? __pfx_stack_trace_save+0x10/0x10 [ 58.480291][ T5828] ? check_noncircular+0x259/0x4a0 [ 58.485385][ T5828] ? __pfx_validate_chain+0x10/0x10 [ 58.490571][ T5828] ? __pfx_check_noncircular+0x10/0x10 [ 58.496011][ T5828] ? lockdep_unlock+0x16a/0x300 [ 58.500849][ T5828] ? __pfx_lockdep_unlock+0x10/0x10 [ 58.506028][ T5828] ? add_lock_to_list+0x1e8/0x2f0 [ 58.511030][ T5828] ? look_up_lock_class+0x77/0x170 [ 58.516125][ T5828] ? register_lock_class+0x102/0x980 [ 58.521392][ T5828] ? validate_chain+0x15c0/0x5920 [ 58.526393][ T5828] ? is_bpf_text_address+0x285/0x2a0 [ 58.531662][ T5828] ? __pfx_register_lock_class+0x10/0x10 [ 58.537362][ T5828] ? mark_lock+0x9a/0x360 [ 58.541673][ T5828] __lock_acquire+0x1384/0x2050 [ 58.546509][ T5828] lock_acquire+0x1ed/0x550 [ 58.551001][ T5828] ? hfsplus_get_block+0x383/0x14f0 [ 58.556189][ T5828] ? __pfx_lock_acquire+0x10/0x10 [ 58.561200][ T5828] ? __pfx___might_resched+0x10/0x10 [ 58.566470][ T5828] ? create_empty_buffers+0x3a/0x740 [ 58.571735][ T5828] ? __pfx_register_lock_class+0x10/0x10 [ 58.577350][ T5828] ? do_read_cache_page+0x30/0x200 [ 58.582438][ T5828] ? hfsplus_file_extend+0xade/0x1b70 [ 58.587787][ T5828] ? hfsplus_bmap_reserve+0x105/0x4e0 [ 58.593143][ T5828] __mutex_lock+0x136/0xd70 [ 58.597639][ T5828] ? hfsplus_get_block+0x383/0x14f0 [ 58.602818][ T5828] ? hfsplus_get_block+0x383/0x14f0 [ 58.607991][ T5828] ? __pfx___mutex_lock+0x10/0x10 [ 58.612999][ T5828] hfsplus_get_block+0x383/0x14f0 [ 58.618002][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.623441][ T5828] ? _raw_spin_unlock+0x28/0x50 [ 58.628280][ T5828] ? create_empty_buffers+0x53e/0x740 [ 58.633633][ T5828] ? rcu_is_watching+0x15/0xb0 [ 58.638375][ T5828] block_read_full_folio+0x418/0xcd0 [ 58.643644][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.649085][ T5828] ? __pfx_block_read_full_folio+0x10/0x10 [ 58.654872][ T5828] ? folio_add_lru+0x1cd/0x4f0 [ 58.659615][ T5828] filemap_read_folio+0x14b/0x630 [ 58.664618][ T5828] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 58.670150][ T5828] ? __pfx_filemap_read_folio+0x10/0x10 [ 58.675688][ T5828] ? rcu_is_watching+0x15/0xb0 [ 58.680440][ T5828] ? hfsplus_block_allocate+0x9e/0x8c0 [ 58.685886][ T5828] do_read_cache_folio+0x3f5/0x850 [ 58.690983][ T5828] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 58.696515][ T5828] do_read_cache_page+0x30/0x200 [ 58.701439][ T5828] hfsplus_block_allocate+0xee/0x8c0 [ 58.706715][ T5828] hfsplus_file_extend+0xade/0x1b70 [ 58.711900][ T5828] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 58.717514][ T5828] ? rcu_is_watching+0x15/0xb0 [ 58.722257][ T5828] ? trace_contention_end+0x3c/0x120 [ 58.727538][ T5828] ? __mutex_lock+0x2ef/0xd70 [ 58.732211][ T5828] ? hfsplus_find_init+0x14a/0x1c0 [ 58.737326][ T5828] ? __pfx___mutex_lock+0x10/0x10 [ 58.742348][ T5828] hfsplus_bmap_reserve+0x105/0x4e0 [ 58.747538][ T5828] hfsplus_create_cat+0x1b0/0x1b70 [ 58.752646][ T5828] ? do_raw_spin_unlock+0x13c/0x8b0 [ 58.757829][ T5828] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 58.763710][ T5828] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 58.770070][ T5828] ? __pfx_hfsplus_create_cat+0x10/0x10 [ 58.775673][ T5828] ? __mod_timer+0xb89/0xeb0 [ 58.780360][ T5828] ? do_raw_spin_unlock+0x13c/0x8b0 [ 58.785552][ T5828] ? _raw_spin_unlock+0x28/0x50 [ 58.790385][ T5828] ? hfsplus_new_inode+0x53e/0x6c0 [ 58.795478][ T5828] hfsplus_fill_super+0x13ee/0x1ca0 [ 58.800669][ T5828] ? __pfx_hfsplus_fill_super+0x10/0x10 [ 58.806228][ T5828] ? snprintf+0xda/0x120 [ 58.810463][ T5828] ? __pfx_lock_release+0x10/0x10 [ 58.815477][ T5828] ? do_raw_spin_lock+0x14f/0x370 [ 58.820487][ T5828] ? sb_set_blocksize+0x98/0xf0 [ 58.825323][ T5828] ? setup_bdev_super+0x4e6/0x5d0 [ 58.830336][ T5828] mount_bdev+0x20a/0x2d0 [ 58.834649][ T5828] ? __pfx_hfsplus_fill_super+0x10/0x10 [ 58.840186][ T5828] ? __pfx_mount_bdev+0x10/0x10 [ 58.845021][ T5828] ? vfs_parse_fs_string+0x190/0x230 [ 58.850468][ T5828] ? __pfx_vfs_parse_fs_string+0x10/0x10 [ 58.856088][ T5828] legacy_get_tree+0xee/0x190 [ 58.860781][ T5828] ? __pfx_hfsplus_mount+0x10/0x10 [ 58.865894][ T5828] vfs_get_tree+0x90/0x2b0 [ 58.870307][ T5828] do_new_mount+0x2be/0xb40 [ 58.874800][ T5828] ? __pfx_do_new_mount+0x10/0x10 [ 58.879820][ T5828] __se_sys_mount+0x2d6/0x3c0 [ 58.884494][ T5828] ? __pfx___se_sys_mount+0x10/0x10 [ 58.889678][ T5828] ? do_syscall_64+0x100/0x230 [ 58.894432][ T5828] ? __x64_sys_mount+0x20/0xc0 [ 58.899180][ T5828] do_syscall_64+0xf3/0x230 [ 58.903666][ T5828] ? clear_bhb_loop+0x35/0x90 [ 58.908344][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.914235][ T5828] RIP: 0033:0x7f728a5d2bfa [ 58.918638][ T5828] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 mount("/dev/loop0", "./file0", "hfsplus", MS_NODEV|MS_NOEXEC|MS_I_VERSION, "part=0x0") = -1 ENOSPC (No space left on device) openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = 0 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 58.938245][ T5828