./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2156318037 <...> Warning: Permanently added '10.128.0.98' (ED25519) to the list of known hosts. execve("./syz-executor2156318037", ["./syz-executor2156318037"], 0x7fffcdacef40 /* 10 vars */) = 0 brk(NULL) = 0x55558042c000 brk(0x55558042cd00) = 0x55558042cd00 arch_prctl(ARCH_SET_FS, 0x55558042c380) = 0 set_tid_address(0x55558042c650) = 5090 set_robust_list(0x55558042c660, 24) = 0 rseq(0x55558042cca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2156318037", 4096) = 28 getrandom("\x5c\x0b\x6f\x8a\x61\xe6\x45\x91", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558042cd00 brk(0x55558044dd00) = 0x55558044dd00 brk(0x55558044e000) = 0x55558044e000 mprotect(0x7f8336b0e000, 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) = 0x7f832e600000 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(0x7f832e600000, 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 [ 58.377929][ T5090] loop0: detected capacity change from 0 to 1024 [ 58.418697][ T5090] [ 58.421029][ T5090] ============================================ [ 58.427153][ T5090] WARNING: possible recursive locking detected [ 58.433279][ T5090] 6.9.0-rc7-next-20240508-syzkaller #0 Not tainted [ 58.439753][ T5090] -------------------------------------------- [ 58.445874][ T5090] syz-executor215/5090 is trying to acquire lock: [ 58.452258][ T5090] ffff888022cb9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 58.463113][ T5090] [ 58.463113][ T5090] but task is already holding lock: [ 58.470451][ T5090] ffff888022cb87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 58.481478][ T5090] [ 58.481478][ T5090] other info that might help us debug this: [ 58.489524][ T5090] Possible unsafe locking scenario: [ 58.489524][ T5090] [ 58.496949][ T5090] CPU0 [ 58.500209][ T5090] ---- [ 58.503463][ T5090] lock(&HFSPLUS_I(inode)->extents_lock); [ 58.509247][ T5090] lock(&HFSPLUS_I(inode)->extents_lock); [ 58.515030][ T5090] [ 58.515030][ T5090] *** DEADLOCK *** [ 58.515030][ T5090] [ 58.523147][ T5090] May be due to missing lock nesting notation [ 58.523147][ T5090] [ 58.531441][ T5090] 5 locks held by syz-executor215/5090: [ 58.536960][ T5090] #0: ffff88802333c0e0 (&type->s_umount_key#42/1){+.+.}-{3:3}, at: alloc_super+0x221/0x9d0 [ 58.547029][ T5090] #1: ffff88802ad96998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_fill_super+0x1380/0x1ca0 [ 58.557004][ T5090] #2: ffff8880238380b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 58.566890][ T5090] #3: ffff888022cb87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 58.578339][ T5090] #4: ffff88802ad968f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x9e/0x8c0 [ 58.588667][ T5090] [ 58.588667][ T5090] stack backtrace: [ 58.594529][ T5090] CPU: 0 PID: 5090 Comm: syz-executor215 Not tainted 6.9.0-rc7-next-20240508-syzkaller #0 [ 58.604393][ T5090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 58.614424][ T5090] Call Trace: [ 58.617685][ T5090] [ 58.620596][ T5090] dump_stack_lvl+0x241/0x360 [ 58.625264][ T5090] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.630448][ T5090] ? print_deadlock_bug+0x479/0x620 [ 58.635625][ T5090] ? _find_first_zero_bit+0xd4/0x100 [ 58.640896][ T5090] validate_chain+0x15c1/0x58e0 [ 58.645731][ T5090] ? __pfx_stack_trace_save+0x10/0x10 [ 58.651078][ T5090] ? check_noncircular+0x259/0x4a0 [ 58.656167][ T5090] ? __pfx_validate_chain+0x10/0x10 [ 58.661346][ T5090] ? __pfx_check_noncircular+0x10/0x10 [ 58.666794][ T5090] ? lockdep_unlock+0x16a/0x300 [ 58.671623][ T5090] ? __pfx_lockdep_unlock+0x10/0x10 [ 58.676801][ T5090] ? add_lock_to_list+0x1de/0x2e0 [ 58.681808][ T5090] ? look_up_lock_class+0x77/0x160 [ 58.686903][ T5090] ? register_lock_class+0x102/0x980 [ 58.692169][ T5090] ? validate_chain+0x15a2/0x58e0 [ 58.697170][ T5090] ? is_bpf_text_address+0x26/0x2a0 [ 58.702353][ T5090] ? __pfx_register_lock_class+0x10/0x10 [ 58.707963][ T5090] ? mark_lock+0x9a/0x350 [ 58.712271][ T5090] __lock_acquire+0x1346/0x1fd0 [ 58.717100][ T5090] lock_acquire+0x1ed/0x550 [ 58.721583][ T5090] ? hfsplus_get_block+0x383/0x14f0 [ 58.726758][ T5090] ? __pfx_lock_acquire+0x10/0x10 [ 58.731762][ T5090] ? __pfx___might_resched+0x10/0x10 [ 58.737028][ T5090] ? filemap_read_folio+0x1a0/0x790 [ 58.742207][ T5090] ? __pfx_register_lock_class+0x10/0x10 [ 58.747817][ T5090] ? hfsplus_file_extend+0xade/0x1b70 [ 58.753166][ T5090] ? hfsplus_create_cat+0x1b0/0x1b60 [ 58.758429][ T5090] ? hfsplus_fill_super+0x13ee/0x1ca0 [ 58.763783][ T5090] __mutex_lock+0x136/0xd70 [ 58.768265][ T5090] ? hfsplus_get_block+0x383/0x14f0 [ 58.773443][ T5090] ? hfsplus_get_block+0x383/0x14f0 [ 58.778621][ T5090] ? __pfx___mutex_lock+0x10/0x10 [ 58.783624][ T5090] hfsplus_get_block+0x383/0x14f0 [ 58.788631][ T5090] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.794066][ T5090] ? _raw_spin_unlock+0x28/0x50 [ 58.798899][ T5090] ? create_empty_buffers+0x53e/0x740 [ 58.804250][ T5090] block_read_full_folio+0x42e/0xe10 [ 58.809517][ T5090] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.814949][ T5090] ? __pfx_block_read_full_folio+0x10/0x10 [ 58.820735][ T5090] ? __pfx_lru_add_fn+0x10/0x10 [ 58.825561][ T5090] ? folio_add_lru+0x357/0xd70 [ 58.830304][ T5090] ? folio_add_lru+0x58f/0xd70 [ 58.835048][ T5090] filemap_read_folio+0x1a0/0x790 [ 58.840049][ T5090] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 58.845570][ T5090] ? __pfx_filemap_read_folio+0x10/0x10 [ 58.851093][ T5090] ? __filemap_get_folio+0x92d/0xbb0 [ 58.856433][ T5090] ? hfsplus_block_allocate+0x9e/0x8c0 [ 58.861875][ T5090] do_read_cache_folio+0x134/0x820 [ 58.866967][ T5090] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 58.872504][ T5090] do_read_cache_page+0x30/0x200 [ 58.877434][ T5090] hfsplus_block_allocate+0xee/0x8c0 [ 58.882719][ T5090] hfsplus_file_extend+0xade/0x1b70 [ 58.887908][ T5090] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 58.893524][ T5090] ? rcu_is_watching+0x15/0xb0 [ 58.898272][ T5090] ? trace_contention_end+0x3c/0x120 [ 58.903539][ T5090] ? __mutex_lock+0x2ef/0xd70 [ 58.908196][ T5090] ? hfsplus_find_init+0x14a/0x1c0 [ 58.913287][ T5090] ? __pfx___mutex_lock+0x10/0x10 [ 58.918292][ T5090] hfsplus_bmap_reserve+0x105/0x4e0 [ 58.923474][ T5090] hfsplus_create_cat+0x1b0/0x1b60 [ 58.928566][ T5090] ? do_raw_spin_unlock+0x13c/0x8b0 [ 58.933746][ T5090] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 58.939620][ T5090] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 58.945926][ T5090] ? __pfx_hfsplus_create_cat+0x10/0x10 [ 58.951449][ T5090] ? __mod_timer+0xb89/0xeb0 [ 58.956027][ T5090] ? do_raw_spin_unlock+0x13c/0x8b0 [ 58.961207][ T5090] ? _raw_spin_unlock+0x28/0x50 [ 58.966037][ T5090] ? hfsplus_new_inode+0x53e/0x6c0 [ 58.971126][ T5090] hfsplus_fill_super+0x13ee/0x1ca0 [ 58.976311][ T5090] ? __pfx_hfsplus_fill_super+0x10/0x10 [ 58.981852][ T5090] ? snprintf+0xda/0x120 [ 58.986071][ T5090] ? __pfx_lock_release+0x10/0x10 [ 58.991073][ T5090] ? do_raw_spin_lock+0x14f/0x370 [ 58.996081][ T5090] ? sb_set_blocksize+0x99/0x100 [ 59.000999][ T5090] ? setup_bdev_super+0x463/0x520 [ 59.005998][ T5090] mount_bdev+0x20a/0x2d0 [ 59.010313][ T5090] ? __pfx_hfsplus_fill_super+0x10/0x10 [ 59.015837][ T5090] ? __pfx_mount_bdev+0x10/0x10 [ 59.020667][ T5090] ? vfs_parse_fs_string+0x190/0x230 [ 59.025929][ T5090] legacy_get_tree+0xee/0x190 [ 59.030590][ T5090] ? __pfx_hfsplus_mount+0x10/0x10 [ 59.035685][ T5090] vfs_get_tree+0x90/0x2a0 [ 59.040083][ T5090] do_new_mount+0x2be/0xb40 [ 59.044562][ T5090] ? ns_capable+0x8a/0xf0 [ 59.048871][ T5090] ? __pfx_do_new_mount+0x10/0x10 [ 59.053874][ T5090] __se_sys_mount+0x2d9/0x3c0 [ 59.058531][ T5090] ? __pfx___se_sys_mount+0x10/0x10 [ 59.063705][ T5090] ? do_syscall_64+0x102/0x240 [ 59.068461][ T5090] ? __x64_sys_mount+0x20/0xc0 [ 59.073204][ T5090] do_syscall_64+0xf5/0x240 [ 59.077691][ T5090] ? clear_bhb_loop+0x35/0x90 [ 59.082351][ T5090] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 59.088233][ T5090] RIP: 0033:0x7f8336a9c8ba [ 59.092629][ T5090] 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 [ 59.112216][ T5090] RSP: 002b:00007fff0deaba78 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5 mount("/dev/loop0", "./bus", "hfsplus", MS_NOEXEC|MS_RELATIME, "") = -1 ENOSPC (No space left on device) openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 59.120609][ T5090] RAX: ffffffffffffffda RBX: 00007fff0deaba90 RCX: 00007f8336a9c8ba [ 59.128560][ T5090] RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007fff0deaba90 [ 59.136509][ T5090] RBP: 0000000000000004 R08: 00007fff0deabad0 R09: 000000000000061e [ 59.144458][ T5090] R10: 0000000000200008 R11: 0000000000000286 R12: 0000000000200008 [ 59.152408][ T5090] R13: 00007fff0deabad0 R14: 0000000000000003 R15: 0000000000080000 [ 59.160365][ T5090] ioctl(3, LOOP_CLR_FD) = 0 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++