./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3916466222 <...> Warning: Permanently added '10.128.0.247' (ED25519) to the list of known hosts. execve("./syz-executor3916466222", ["./syz-executor3916466222"], 0x7fffc8df96d0 /* 10 vars */) = 0 brk(NULL) = 0x5555722ac000 brk(0x5555722acd00) = 0x5555722acd00 arch_prctl(ARCH_SET_FS, 0x5555722ac380) = 0 set_tid_address(0x5555722ac650) = 5828 set_robust_list(0x5555722ac660, 24) = 0 rseq(0x5555722acca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3916466222", 4096) = 28 getrandom("\x8a\x8d\xff\xa4\x72\x32\x4b\xc6", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555722acd00 brk(0x5555722cdd00) = 0x5555722cdd00 brk(0x5555722ce000) = 0x5555722ce000 mprotect(0x7f20202dc000, 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) = 0x7f2017e00000 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(0x7f2017e00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file2", 0777) = 0 mount("/dev/loop0", "./file2", "hfsplus", MS_STRICTATIME, "") = 0 [ 57.746566][ T5828] loop0: detected capacity change from 0 to 1024 openat(AT_FDCWD, "./file2", O_RDONLY|O_DIRECTORY) = 3 chdir("./file2") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) openat(AT_FDCWD, "./file2", O_RDWR|O_SYNC|O_NOATIME|FASYNC) = 4 [ 57.858050][ T5828] [ 57.860395][ T5828] ============================================ [ 57.866534][ T5828] WARNING: possible recursive locking detected [ 57.872747][ T5828] 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0 Not tainted [ 57.879953][ T5828] -------------------------------------------- [ 57.886085][ T5828] syz-executor391/5828 is trying to acquire lock: [ 57.892485][ T5828] ffff88807d2a87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 57.903370][ T5828] [ 57.903370][ T5828] but task is already holding lock: [ 57.910722][ T5828] ffff88807d2a9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 57.921761][ T5828] [ 57.921761][ T5828] other info that might help us debug this: [ 57.929808][ T5828] Possible unsafe locking scenario: [ 57.929808][ T5828] [ 57.937269][ T5828] CPU0 [ 57.940531][ T5828] ---- [ 57.943799][ T5828] lock(&HFSPLUS_I(inode)->extents_lock); [ 57.949593][ T5828] lock(&HFSPLUS_I(inode)->extents_lock); [ 57.955390][ T5828] [ 57.955390][ T5828] *** DEADLOCK *** [ 57.955390][ T5828] [ 57.963533][ T5828] May be due to missing lock nesting notation [ 57.963533][ T5828] [ 57.971840][ T5828] 4 locks held by syz-executor391/5828: [ 57.977372][ T5828] #0: ffff88807d630420 (sb_writers#9){.+.+}-{0:0}, at: vfs_writev+0x2d1/0xba0 [ 57.986334][ T5828] #1: ffff88807d2a9738 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: generic_file_write_iter+0x82/0x310 [ 57.997629][ T5828] #2: ffff88807d2a9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 58.009097][ T5828] #3: ffff8880226930f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x9e/0x8c0 [ 58.019430][ T5828] [ 58.019430][ T5828] stack backtrace: [ 58.025313][ T5828] CPU: 1 UID: 0 PID: 5828 Comm: syz-executor391 Not tainted 6.12.0-rc6-syzkaller-00272-gda4373fbcf00 #0 [ 58.036398][ T5828] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 [ 58.046446][ T5828] Call Trace: [ 58.049709][ T5828] [ 58.052631][ T5828] dump_stack_lvl+0x241/0x360 [ 58.057307][ T5828] ? __pfx_dump_stack_lvl+0x10/0x10 [ 58.062488][ T5828] ? __pfx__printk+0x10/0x10 [ 58.067083][ T5828] ? lockdep_unlock+0x16a/0x300 [ 58.071924][ T5828] print_deadlock_bug+0x483/0x620 [ 58.076933][ T5828] validate_chain+0x15e2/0x5920 [ 58.081767][ T5828] ? stack_trace_save+0x118/0x1d0 [ 58.086772][ T5828] ? __pfx_stack_trace_save+0x10/0x10 [ 58.092127][ T5828] ? check_noncircular+0x259/0x4a0 [ 58.097283][ T5828] ? __pfx_validate_chain+0x10/0x10 [ 58.102465][ T5828] ? __pfx_check_noncircular+0x10/0x10 [ 58.107905][ T5828] ? lockdep_unlock+0x16a/0x300 [ 58.112741][ T5828] ? __pfx_lockdep_unlock+0x10/0x10 [ 58.117922][ T5828] ? add_lock_to_list+0x1e8/0x2f0 [ 58.122926][ T5828] ? look_up_lock_class+0x77/0x170 [ 58.128023][ T5828] ? register_lock_class+0x102/0x980 [ 58.133295][ T5828] ? validate_chain+0x15c0/0x5920 [ 58.138392][ T5828] ? is_bpf_text_address+0x285/0x2a0 [ 58.143732][ T5828] ? __pfx_register_lock_class+0x10/0x10 [ 58.149379][ T5828] ? mark_lock+0x9a/0x360 [ 58.153695][ T5828] __lock_acquire+0x1384/0x2050 [ 58.158539][ T5828] lock_acquire+0x1ed/0x550 [ 58.163025][ T5828] ? hfsplus_get_block+0x383/0x14f0 [ 58.168206][ T5828] ? __pfx_lock_acquire+0x10/0x10 [ 58.173232][ T5828] ? __pfx___might_resched+0x10/0x10 [ 58.178506][ T5828] ? create_empty_buffers+0x3a/0x740 [ 58.183778][ T5828] ? __pfx_register_lock_class+0x10/0x10 [ 58.189391][ T5828] ? do_read_cache_page+0x30/0x200 [ 58.194484][ T5828] ? hfsplus_file_extend+0xade/0x1b70 [ 58.199835][ T5828] ? hfsplus_get_block+0x406/0x14f0 [ 58.205015][ T5828] __mutex_lock+0x136/0xd70 [ 58.209521][ T5828] ? hfsplus_get_block+0x383/0x14f0 [ 58.214728][ T5828] ? hfsplus_get_block+0x383/0x14f0 [ 58.219908][ T5828] ? __pfx___mutex_lock+0x10/0x10 [ 58.224919][ T5828] hfsplus_get_block+0x383/0x14f0 [ 58.229927][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.235368][ T5828] ? _raw_spin_unlock+0x28/0x50 [ 58.240199][ T5828] ? create_empty_buffers+0x53e/0x740 [ 58.245555][ T5828] ? rcu_is_watching+0x15/0xb0 [ 58.250300][ T5828] block_read_full_folio+0x418/0xcd0 [ 58.255573][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.261011][ T5828] ? __pfx_block_read_full_folio+0x10/0x10 [ 58.266811][ T5828] ? folio_add_lru+0x1cd/0x4f0 [ 58.271574][ T5828] filemap_read_folio+0x14b/0x630 [ 58.276582][ T5828] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 58.282109][ T5828] ? __pfx_filemap_read_folio+0x10/0x10 [ 58.287652][ T5828] ? rcu_is_watching+0x15/0xb0 [ 58.292398][ T5828] ? hfsplus_block_allocate+0x9e/0x8c0 [ 58.297840][ T5828] do_read_cache_folio+0x3f5/0x850 [ 58.302949][ T5828] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 58.308480][ T5828] do_read_cache_page+0x30/0x200 [ 58.313405][ T5828] hfsplus_block_allocate+0xee/0x8c0 [ 58.318676][ T5828] hfsplus_file_extend+0xade/0x1b70 [ 58.323862][ T5828] ? __pfx_hfsplus_file_extend+0x10/0x10 [ 58.329473][ T5828] ? __lock_acquire+0x1384/0x2050 [ 58.334488][ T5828] hfsplus_get_block+0x406/0x14f0 [ 58.339500][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.344939][ T5828] __block_write_begin_int+0x50c/0x1a70 [ 58.350472][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.355916][ T5828] ? __pfx___block_write_begin_int+0x10/0x10 [ 58.361879][ T5828] cont_write_begin+0x6e2/0x9d0 [ 58.366724][ T5828] ? __pfx_cont_write_begin+0x10/0x10 [ 58.372082][ T5828] hfsplus_write_begin+0x68/0xb0 [ 58.377006][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.382447][ T5828] cont_write_begin+0x338/0x9d0 [ 58.387283][ T5828] ? __pfx_cont_write_begin+0x10/0x10 [ 58.392637][ T5828] ? __pfx_fault_in_readable+0x10/0x10 [ 58.398098][ T5828] hfsplus_write_begin+0x68/0xb0 [ 58.403018][ T5828] ? __pfx_hfsplus_get_block+0x10/0x10 [ 58.408459][ T5828] generic_perform_write+0x344/0x6d0 [ 58.413836][ T5828] ? __pfx_generic_perform_write+0x10/0x10 [ 58.419626][ T5828] ? __generic_file_write_iter+0x102/0x230 [ 58.425419][ T5828] generic_file_write_iter+0xae/0x310 [ 58.430770][ T5828] do_iter_readv_writev+0x600/0x880 [ 58.435953][ T5828] ? __pfx_do_iter_readv_writev+0x10/0x10 [ 58.441651][ T5828] ? rcu_read_lock_any_held+0xb7/0x160 [ 58.447185][ T5828] vfs_writev+0x376/0xba0 [ 58.451511][ T5828] ? __pfx_vfs_writev+0x10/0x10 [ 58.456344][ T5828] ? _raw_spin_unlock_irq+0x2e/0x50 [ 58.461606][ T5828] ? ptrace_notify+0x279/0x380 [ 58.466396][ T5828] __se_sys_pwritev2+0x1ca/0x2d0 [ 58.471329][ T5828] ? __pfx___se_sys_pwritev2+0x10/0x10 [ 58.476833][ T5828] ? do_syscall_64+0x100/0x230 [ 58.481585][ T5828] ? __x64_sys_pwritev2+0x21/0xf0 [ 58.486601][ T5828] do_syscall_64+0xf3/0x230 [ 58.491093][ T5828] ? clear_bhb_loop+0x35/0x90 [ 58.495761][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 58.501662][ T5828] RIP: 0033:0x7f2020269739 [ 58.506069][ T5828] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 [ 58.525684][ T5828] RSP: 002b:00007ffde03a9238 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 [ 58.534093][ T5828] RAX: ffffffffffffffda RBX: 0032656c69662f2e RCX: 00007f2020269739 [ 58.542066][ T5828] RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000004 [ 58.550020][ T5828] RBP: 00007f20202dc610 R08: 0000000000000000 R09: 0000000000000000 pwritev2(4, [{iov_base="\xff\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"..., iov_len=44027}], 1, 21509, 0) = -1 ENOSPC (No space left on device) exit_group(0) = ? +++ exited with 0 +++ [ 58.557972][ T5828] R10: 000000000