./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4212650418 <...> Warning: Permanently added '10.128.0.134' (ED25519) to the list of known hosts. execve("./syz-executor4212650418", ["./syz-executor4212650418"], 0x7fff59e7e830 /* 10 vars */) = 0 brk(NULL) = 0x55555e765000 brk(0x55555e765d00) = 0x55555e765d00 arch_prctl(ARCH_SET_FS, 0x55555e765380) = 0 set_tid_address(0x55555e765650) = 5056 set_robust_list(0x55555e765660, 24) = 0 rseq(0x55555e765ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor4212650418", 4096) = 28 getrandom("\x03\xfc\x70\x73\xd3\xd4\x31\x67", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555e765d00 brk(0x55555e786d00) = 0x55555e786d00 brk(0x55555e787000) = 0x55555e787000 mprotect(0x7feb29c21000, 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) = 0x7feb21600000 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(0x7feb21600000, 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 [ 59.548923][ T5056] loop0: detected capacity change from 0 to 1024 mount("/dev/loop0", "./file0", "hfsplus", MS_STRICTATIME, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 59.633387][ T5056] [ 59.635744][ T5056] ============================================ [ 59.641879][ T5056] WARNING: possible recursive locking detected [ 59.648028][ T5056] 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted [ 59.654696][ T5056] -------------------------------------------- [ 59.660834][ T5056] syz-executor421/5056 is trying to acquire lock: [ 59.667245][ T5056] ffff888022169548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 59.678113][ T5056] [ 59.678113][ T5056] but task is already holding lock: [ 59.685452][ T5056] ffff88807f2e87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 59.696601][ T5056] [ 59.696601][ T5056] other info that might help us debug this: [ 59.704643][ T5056] Possible unsafe locking scenario: [ 59.704643][ T5056] [ 59.712070][ T5056] CPU0 [ 59.715332][ T5056] ---- [ 59.718588][ T5056] lock(&HFSPLUS_I(inode)->extents_lock); [ 59.724376][ T5056] lock(&HFSPLUS_I(inode)->extents_lock); [ 59.730169][ T5056] [ 59.730169][ T5056] *** DEADLOCK *** [ 59.730169][ T5056] [ 59.738307][ T5056] May be due to missing lock nesting notation [ 59.738307][ T5056] [ 59.746600][ T5056] 4 locks held by syz-executor421/5056: [ 59.752137][ T5056] #0: ffff888076d3e420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 59.761268][ T5056] #1: ffff88807f2e89c0 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 [ 59.771603][ T5056] #2: ffff88807f2e87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 59.783170][ T5056] #3: ffff888076be50f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xbb/0x4e0 [ 59.793164][ T5056] [ 59.793164][ T5056] stack backtrace: [ 59.799061][ T5056] CPU: 0 PID: 5056 Comm: syz-executor421 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 [ 59.809101][ T5056] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 59.819147][ T5056] Call Trace: [ 59.822445][ T5056] [ 59.825370][ T5056] dump_stack_lvl+0x241/0x360 [ 59.830050][ T5056] ? __pfx_dump_stack_lvl+0x10/0x10 [ 59.835245][ T5056] ? print_deadlock_bug+0x479/0x620 [ 59.840454][ T5056] ? _find_first_zero_bit+0xd4/0x100 [ 59.845738][ T5056] validate_chain+0x15c1/0x58e0 [ 59.850599][ T5056] ? __pfx_stack_trace_save+0x10/0x10 [ 59.855968][ T5056] ? check_noncircular+0x259/0x4a0 [ 59.861081][ T5056] ? __pfx_validate_chain+0x10/0x10 [ 59.866278][ T5056] ? __pfx_check_noncircular+0x10/0x10 [ 59.871728][ T5056] ? lockdep_unlock+0x16a/0x300 [ 59.876580][ T5056] ? __pfx_lockdep_unlock+0x10/0x10 [ 59.881785][ T5056] ? add_lock_to_list+0x1de/0x2e0 [ 59.886802][ T5056] ? look_up_lock_class+0x77/0x160 [ 59.891913][ T5056] ? register_lock_class+0x102/0x980 [ 59.897269][ T5056] ? validate_chain+0x15a2/0x58e0 [ 59.902277][ T5056] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 59.908416][ T5056] ? __pfx_register_lock_class+0x10/0x10 [ 59.914045][ T5056] ? mark_lock+0x9a/0x350 [ 59.918354][ T5056] __lock_acquire+0x1346/0x1fd0 [ 59.923190][ T5056] lock_acquire+0x1e4/0x530 [ 59.927672][ T5056] ? hfsplus_get_block+0x383/0x14f0 [ 59.932853][ T5056] ? __pfx_lock_acquire+0x10/0x10 [ 59.937862][ T5056] ? __pfx___might_resched+0x10/0x10 [ 59.943124][ T5056] ? do_read_cache_page+0x30/0x200 [ 59.948215][ T5056] ? __pfx_register_lock_class+0x10/0x10 [ 59.953823][ T5056] ? hfsplus_setattr+0x1ce/0x280 [ 59.958756][ T5056] ? do_truncate+0x220/0x310 [ 59.963325][ T5056] ? path_openat+0x29fe/0x3240 [ 59.968072][ T5056] __mutex_lock+0x136/0xd70 [ 59.972560][ T5056] ? hfsplus_get_block+0x383/0x14f0 [ 59.977740][ T5056] ? hfsplus_get_block+0x383/0x14f0 [ 59.982923][ T5056] ? __pfx___mutex_lock+0x10/0x10 [ 59.987929][ T5056] hfsplus_get_block+0x383/0x14f0 [ 59.992934][ T5056] ? __pfx_hfsplus_get_block+0x10/0x10 [ 59.998370][ T5056] ? _raw_spin_unlock+0x28/0x50 [ 60.003199][ T5056] ? create_empty_buffers+0x53e/0x740 [ 60.008555][ T5056] block_read_full_folio+0x42e/0xe10 [ 60.013820][ T5056] ? __pfx_hfsplus_get_block+0x10/0x10 [ 60.019280][ T5056] ? __pfx_block_read_full_folio+0x10/0x10 [ 60.025062][ T5056] ? __pfx_lru_add_fn+0x10/0x10 [ 60.029894][ T5056] ? folio_add_lru+0x4b3/0x9e0 [ 60.034631][ T5056] ? folio_add_lru+0x27b/0x9e0 [ 60.039374][ T5056] filemap_read_folio+0x1a0/0x790 [ 60.044377][ T5056] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 60.049903][ T5056] ? __pfx_filemap_read_folio+0x10/0x10 [ 60.055426][ T5056] ? __filemap_get_folio+0x935/0xbc0 [ 60.060709][ T5056] do_read_cache_folio+0x134/0x820 [ 60.065821][ T5056] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 60.071354][ T5056] do_read_cache_page+0x30/0x200 [ 60.076278][ T5056] hfsplus_block_free+0x128/0x4e0 [ 60.081314][ T5056] ? __kmalloc+0x251/0x4a0 [ 60.085715][ T5056] hfsplus_free_extents+0x17a/0xae0 [ 60.090912][ T5056] hfsplus_file_truncate+0x7d0/0xb50 [ 60.096182][ T5056] ? __pfx_hfsplus_file_truncate+0x10/0x10 [ 60.101970][ T5056] ? unmap_mapping_range+0xf8/0x290 [ 60.107166][ T5056] ? __pfx_unmap_mapping_range+0x10/0x10 [ 60.112781][ T5056] ? setattr_prepare+0x1f5/0xb20 [ 60.117702][ T5056] ? truncate_setsize+0xcf/0xf0 [ 60.122535][ T5056] hfsplus_setattr+0x1ce/0x280 [ 60.127333][ T5056] ? __pfx_hfsplus_setattr+0x10/0x10 [ 60.132615][ T5056] notify_change+0xb9d/0xe70 [ 60.137215][ T5056] do_truncate+0x220/0x310 [ 60.141618][ T5056] ? __pfx_do_truncate+0x10/0x10 [ 60.146560][ T5056] path_openat+0x29fe/0x3240 [ 60.151150][ T5056] ? __pfx_path_openat+0x10/0x10 [ 60.156073][ T5056] do_filp_open+0x235/0x490 [ 60.160559][ T5056] ? __pfx_do_filp_open+0x10/0x10 [ 60.165570][ T5056] ? _raw_spin_unlock+0x28/0x50 [ 60.170401][ T5056] ? alloc_fd+0x59d/0x640 [ 60.174748][ T5056] do_sys_openat2+0x13e/0x1d0 [ 60.179422][ T5056] ? __pfx_do_sys_openat2+0x10/0x10 [ 60.184616][ T5056] ? _raw_spin_unlock_irq+0x2e/0x50 [ 60.189814][ T5056] ? ptrace_notify+0x279/0x380 [ 60.194580][ T5056] __x64_sys_creat+0x123/0x170 [ 60.199337][ T5056] ? __pfx___x64_sys_creat+0x10/0x10 [ 60.204612][ T5056] ? do_syscall_64+0x10a/0x240 [ 60.209364][ T5056] ? syscall_trace_enter+0x5f/0x150 [ 60.214567][ T5056] do_syscall_64+0xfb/0x240 [ 60.219052][ T5056] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 60.224927][ T5056] RIP: 0033:0x7feb29bae5f9 [ 60.229326][ T5056] 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 [ 60.248926][ T5056] RSP: 002b:00007ffd2b607818 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 60.257429][ T5056] RAX: ffffffffffffffda RBX: 00007ffd2b6079f8 RCX: 00007feb29bae5f9 [ 60.265391][ T5056] RDX: 00007feb29bad691 RSI: 0000000000000121 RDI: 0000000020000f00 [ 60.273357][ T5056] RBP: 00007feb29c21610 R08: 000000000000065c R09: 0000000000000000 creat("./file1", 0441) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 60.281327][ T5056] R10: 00007ffd2b6076e0 R11: 000000