./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3629034336 <...> Warning: Permanently added '10.128.0.174' (ED25519) to the list of known hosts. execve("./syz-executor3629034336", ["./syz-executor3629034336"], 0x7ffec7ab7590 /* 10 vars */) = 0 brk(NULL) = 0x55556d8c0000 brk(0x55556d8c0d00) = 0x55556d8c0d00 arch_prctl(ARCH_SET_FS, 0x55556d8c0380) = 0 set_tid_address(0x55556d8c0650) = 5074 set_robust_list(0x55556d8c0660, 24) = 0 rseq(0x55556d8c0ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3629034336", 4096) = 28 getrandom("\xfa\xf1\xff\xa4\x3a\xf9\xba\x06", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556d8c0d00 brk(0x55556d8e1d00) = 0x55556d8e1d00 brk(0x55556d8e2000) = 0x55556d8e2000 mprotect(0x7f61451b8000, 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 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f613cc00000 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(0x7f613cc00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./bus", 0777) = 0 [ 76.571588][ T5074] loop0: detected capacity change from 0 to 1024 [ 76.620533][ T5074] [ 76.622891][ T5074] ============================================ [ 76.629029][ T5074] WARNING: possible recursive locking detected [ 76.635170][ T5074] 6.9.0-rc5-syzkaller-00042-ge88c4cfcb7b8 #0 Not tainted [ 76.642180][ T5074] -------------------------------------------- [ 76.648314][ T5074] syz-executor362/5074 is trying to acquire lock: [ 76.654713][ T5074] ffff8880234f9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 76.665604][ T5074] [ 76.665604][ T5074] but task is already holding lock: [ 76.672968][ T5074] ffff8880234f87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 76.684019][ T5074] [ 76.684019][ T5074] other info that might help us debug this: [ 76.692067][ T5074] Possible unsafe locking scenario: [ 76.692067][ T5074] [ 76.699508][ T5074] CPU0 [ 76.702784][ T5074] ---- [ 76.706055][ T5074] lock(&HFSPLUS_I(inode)->extents_lock); [ 76.711864][ T5074] lock(&HFSPLUS_I(inode)->extents_lock); [ 76.717675][ T5074] [ 76.717675][ T5074] *** DEADLOCK *** [ 76.717675][ T5074] [ 76.725826][ T5074] May be due to missing lock nesting notation [ 76.725826][ T5074] [ 76.734147][ T5074] 5 locks held by syz-executor362/5074: [ 76.739688][ T5074] #0: ffff8880232800e0 (&type->s_umount_key#43/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 76.749800][ T5074] #1: ffff8880200f3198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_fill_super+0x1380/0x1ca0 [ 76.759822][ T5074] #2: ffff8880232840b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 76.769765][ T5074] #3: ffff8880234f87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 76.781279][ T5074] #4: ffff8880200f30f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x9e/0x8c0 [ 76.791637][ T5074] [ 76.791637][ T5074] stack backtrace: [ 76.797512][ T5074] CPU: 1 PID: 5074 Comm: syz-executor362 Not tainted 6.9.0-rc5-syzkaller-00042-ge88c4cfcb7b8 #0 [ 76.807928][ T5074] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 76.817974][ T5074] Call Trace: [ 76.821248][ T5074] [ 76.824179][ T5074] dump_stack_lvl+0x241/0x360 [ 76.828873][ T5074] ? __pfx_dump_stack_lvl+0x10/0x10 [ 76.834080][ T5074] ? print_deadlock_bug+0x479/0x620 [ 76.839273][ T5074] ? _find_first_zero_bit+0xd4/0x100 [ 76.844562][ T5074] validate_chain+0x15c1/0x58e0 [ 76.849415][ T5074] ? __pfx_stack_trace_save+0x10/0x10 [ 76.854845][ T5074] ? check_noncircular+0x259/0x4a0 [ 76.859969][ T5074] ? __pfx_validate_chain+0x10/0x10 [ 76.865162][ T5074] ? __pfx_check_noncircular+0x10/0x10 [ 76.870634][ T5074] ? lockdep_unlock+0x16a/0x300 [ 76.875485][ T5074] ? __pfx_lockdep_unlock+0x10/0x10 [ 76.880680][ T5074] ? add_lock_to_list+0x1de/0x2e0 [ 76.885701][ T5074] ? look_up_lock_class+0x77/0x160 [ 76.890815][ T5074] ? register_lock_class+0x102/0x980 [ 76.896105][ T5074] ? validate_chain+0x15a2/0x58e0 [ 76.901130][ T5074] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 76.907292][ T5074] ? __pfx_register_lock_class+0x10/0x10 [ 76.912922][ T5074] ? mark_lock+0x9a/0x350 [ 76.917250][ T5074] __lock_acquire+0x1346/0x1fd0 [ 76.922118][ T5074] lock_acquire+0x1ed/0x550 [ 76.926628][ T5074] ? hfsplus_get_block+0x383/0x14f0 [ 76.931831][ T5074] ? __pfx_lock_acquire+0x10/0x10 [ 76.936858][ T5074] ? __pfx___might_resched+0x10/0x10 [ 76.942144][ T5074] ? do_read_cache_page+0x30/0x200 [ 76.947258][ T5074] ? __pfx_register_lock_class+0x10/0x10 [ 76.952899][ T5074] ? hfsplus_create_cat+0x1b0/0x1b60 [ 76.958181][ T5074] ? mount_bdev+0x20a/0x2d0 [ 76.962684][ T5074] ? legacy_get_tree+0xee/0x190 [ 76.967542][ T5074] __mutex_lock+0x136/0xd70 [ 76.972038][ T5074] ? hfsplus_get_block+0x383/0x14f0 [ 76.977233][ T5074] ? hfsplus_get_block+0x383/0x14f0 [ 76.982421][ T5074] ? __pfx___mutex_lock+0x10/0x10 [ 76.987443][ T5074] hfsplus_get_block+0x383/0x14f0 [ 76.992465][ T5074] ? __pfx_hfsplus_get_block+0x10/0x10 [ 76.997920][ T5074] ? _raw_spin_unlock+0x28/0x50 [ 77.002767][ T5074] ? create_empty_buffers+0x53e/0x740 [ 77.008154][ T5074] block_read_full_folio+0x42e/0xe10 [ 77.013440][ T5074] ? __pfx_hfsplus_get_block+0x10/0x10 [ 77.019076][ T5074] ? __pfx_block_read_full_folio+0x10/0x10 [ 77.024896][ T5074] ? __pfx_lru_add_fn+0x10/0x10 [ 77.029752][ T5074] ? folio_add_lru+0x4b3/0x9e0 [ 77.034515][ T5074] ? folio_add_lru+0x27b/0x9e0 [ 77.039295][ T5074] filemap_read_folio+0x1a0/0x790 [ 77.044320][ T5074] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 77.049874][ T5074] ? __pfx_filemap_read_folio+0x10/0x10 [ 77.055424][ T5074] ? __filemap_get_folio+0x92d/0xbb0 [ 77.060727][ T5074] ? hfsplus_block_allocate+0x9e/0x8c0 [ 77.066206][ T5074] do_read_cache_folio+0x134/0x820 [ 77.071321][ T5074] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 77.076874][ T5074] do_read_cache_page+0x30/0x200 [ 77.081816][ T5074] hfsplus_block_allocate+0xee/0x8c0 [ 77.087131][ T5074] hfsplus_file_extend+0xade/0x1b70 [ 77.092332][ T5074] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 77.097957][ T5074] ? rcu_is_watching+0x15/0xb0 [ 77.102720][ T5074] ? trace_contention_end+0x3c/0x120 [ 77.108019][ T5074] ? __mutex_lock+0x2ef/0xd70 [ 77.112692][ T5074] ? hfsplus_find_init+0x14a/0x1c0 [ 77.117806][ T5074] ? __pfx___mutex_lock+0x10/0x10 [ 77.122848][ T5074] ? rcu_is_watching+0x15/0xb0 [ 77.127624][ T5074] hfsplus_bmap_reserve+0x105/0x4e0 [ 77.132844][ T5074] hfsplus_create_cat+0x1b0/0x1b60 [ 77.137958][ T5074] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 77.143850][ T5074] ? __pfx_hfsplus_create_cat+0x10/0x10 [ 77.149413][ T5074] ? do_raw_spin_unlock+0x13c/0x8b0 [ 77.154613][ T5074] ? _raw_spin_unlock+0x28/0x50 [ 77.159476][ T5074] ? hfsplus_new_inode+0x53e/0x6c0 [ 77.164602][ T5074] hfsplus_fill_super+0x13ee/0x1ca0 [ 77.169829][ T5074] ? __pfx_hfsplus_fill_super+0x10/0x10 [ 77.175403][ T5074] ? snprintf+0xda/0x120 [ 77.179649][ T5074] ? __pfx_lock_release+0x10/0x10 [ 77.184674][ T5074] ? do_raw_spin_lock+0x14f/0x370 [ 77.189714][ T5074] ? sb_set_blocksize+0x99/0x100 [ 77.194660][ T5074] ? setup_bdev_super+0x4b7/0x5b0 [ 77.199691][ T5074] mount_bdev+0x20a/0x2d0 [ 77.204031][ T5074] ? __pfx_hfsplus_fill_super+0x10/0x10 [ 77.209578][ T5074] ? __pfx_mount_bdev+0x10/0x10 [ 77.214424][ T5074] ? vfs_parse_fs_string+0x190/0x230 [ 77.219713][ T5074] ? __pfx_vfs_parse_fs_string+0x10/0x10 [ 77.225339][ T5074] ? cap_capable+0x1b4/0x250 [ 77.229932][ T5074] legacy_get_tree+0xee/0x190 [ 77.234604][ T5074] ? __pfx_hfsplus_mount+0x10/0x10 [ 77.239716][ T5074] vfs_get_tree+0x90/0x2a0 [ 77.244128][ T5074] do_new_mount+0x2be/0xb40 [ 77.248624][ T5074] ? ns_capable+0x8a/0xf0 [ 77.252946][ T5074] ? __pfx_do_new_mount+0x10/0x10 [ 77.257974][ T5074] __se_sys_mount+0x2d9/0x3c0 [ 77.262648][ T5074] ? __pfx___se_sys_mount+0x10/0x10 [ 77.267841][ T5074] ? do_syscall_64+0x102/0x240 [ 77.272607][ T5074] ? __x64_sys_mount+0x20/0xc0 [ 77.277398][ T5074] do_syscall_64+0xf5/0x240 [ 77.281902][ T5074] ? clear_bhb_loop+0x35/0x90 [ 77.286574][ T5074] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 77.292475][ T5074] RIP: 0033:0x7f61451468ba [ 77.296895][ T5074] 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", "./bus", "hfsplus", MS_NOEXEC|MS_RELATIME, "") = -1 ENOSPC (No space left on device) openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 77.316502][ T5074] RSP: 002b:00007ffd7861ee68 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 [ 77.324914][ T5074] RAX: ffffffffffffffda RBX: 00007ffd7861ee80 RCX: 00007f61451468ba [ 77.332884][ T5074] RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffd7861ee80 [ 77.340858][ T5074] RBP: 0000000000000004 R08: 00007ffd7861eec0 R09: 000000000000061e [ 77.348829][ T5074] R10: 0000000000200008 R11: 0000000000000286 R12: 0000000000200008 [ 77.356796][ T5074] R13: 00007ffd7861eec0 R14: 0000000000000003 R15: 0000000000080000 [ 77.364781][ T5074] ioctl(3, LOOP_CLR_FD) = 0 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++