./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4262043648 <...> Warning: Permanently added '10.128.1.103' (ED25519) to the list of known hosts. execve("./syz-executor4262043648", ["./syz-executor4262043648"], 0x7ffc6d840140 /* 10 vars */) = 0 brk(NULL) = 0x555591acd000 brk(0x555591acdd00) = 0x555591acdd00 arch_prctl(ARCH_SET_FS, 0x555591acd380) = 0 set_tid_address(0x555591acd650) = 5071 set_robust_list(0x555591acd660, 24) = 0 rseq(0x555591acdca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor4262043648", 4096) = 28 getrandom("\x5a\xe5\xa6\xfe\xd3\x3c\xcc\x3b", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555591acdd00 brk(0x555591aeed00) = 0x555591aeed00 brk(0x555591aef000) = 0x555591aef000 mprotect(0x7f4a7d218000, 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) = 0x7f4a74c00000 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(0x7f4a74c00000, 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 [ 60.885423][ T5071] loop0: detected capacity change from 0 to 1024 mount("/dev/loop0", "./file2", "hfsplus", MS_NODEV|MS_SYNCHRONOUS|MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME|MS_POSIXACL|MS_STRICTATIME, "") = 0 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) [ 60.927346][ T5071] ======================================================= [ 60.927346][ T5071] WARNING: The mand mount option has been deprecated and [ 60.927346][ T5071] and is ignored by this kernel. Remove the mand [ 60.927346][ T5071] option from the mount to silence this warning. [ 60.927346][ T5071] ======================================================= [ 60.991434][ T5071] [ 60.993787][ T5071] ============================================ [ 61.000007][ T5071] WARNING: possible recursive locking detected [ 61.006134][ T5071] 6.9.0-rc5-syzkaller-00355-g2c8159388952 #0 Not tainted [ 61.013134][ T5071] -------------------------------------------- [ 61.019261][ T5071] syz-executor426/5071 is trying to acquire lock: [ 61.025647][ T5071] ffff88807a198e88 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 61.036507][ T5071] [ 61.036507][ T5071] but task is already holding lock: [ 61.043847][ T5071] ffff888012068e88 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 61.054966][ T5071] [ 61.054966][ T5071] other info that might help us debug this: [ 61.063021][ T5071] Possible unsafe locking scenario: [ 61.063021][ T5071] [ 61.070457][ T5071] CPU0 [ 61.073721][ T5071] ---- [ 61.076983][ T5071] lock(&HFSPLUS_I(inode)->extents_lock); [ 61.082781][ T5071] lock(&HFSPLUS_I(inode)->extents_lock); [ 61.088565][ T5071] [ 61.088565][ T5071] *** DEADLOCK *** [ 61.088565][ T5071] [ 61.096688][ T5071] May be due to missing lock nesting notation [ 61.096688][ T5071] [ 61.104981][ T5071] 4 locks held by syz-executor426/5071: [ 61.110500][ T5071] #0: ffff8880238d4420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 61.119622][ T5071] #1: ffff888012069080 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 [ 61.129968][ T5071] #2: ffff888012068e88 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 61.141619][ T5071] #3: ffff8880151448f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xbb/0x4e0 [ 61.151600][ T5071] [ 61.151600][ T5071] stack backtrace: [ 61.157488][ T5071] CPU: 0 PID: 5071 Comm: syz-executor426 Not tainted 6.9.0-rc5-syzkaller-00355-g2c8159388952 #0 [ 61.167873][ T5071] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 61.177921][ T5071] Call Trace: [ 61.181186][ T5071] [ 61.184103][ T5071] dump_stack_lvl+0x241/0x360 [ 61.188779][ T5071] ? __pfx_dump_stack_lvl+0x10/0x10 [ 61.193961][ T5071] ? print_deadlock_bug+0x479/0x620 [ 61.199140][ T5071] ? _find_first_zero_bit+0xd4/0x100 [ 61.204412][ T5071] validate_chain+0x15c1/0x58e0 [ 61.209259][ T5071] ? __pfx_stack_trace_save+0x10/0x10 [ 61.214611][ T5071] ? check_noncircular+0x259/0x4a0 [ 61.219703][ T5071] ? __pfx_validate_chain+0x10/0x10 [ 61.224880][ T5071] ? __pfx_check_noncircular+0x10/0x10 [ 61.230320][ T5071] ? lockdep_unlock+0x16a/0x300 [ 61.235149][ T5071] ? __pfx_lockdep_unlock+0x10/0x10 [ 61.240325][ T5071] ? add_lock_to_list+0x1de/0x2e0 [ 61.245329][ T5071] ? look_up_lock_class+0x77/0x160 [ 61.250422][ T5071] ? register_lock_class+0x102/0x980 [ 61.255710][ T5071] ? validate_chain+0x15a2/0x58e0 [ 61.260714][ T5071] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 61.266857][ T5071] ? __pfx_register_lock_class+0x10/0x10 [ 61.272556][ T5071] ? mark_lock+0x9a/0x350 [ 61.276867][ T5071] __lock_acquire+0x1346/0x1fd0 [ 61.281702][ T5071] lock_acquire+0x1ed/0x550 [ 61.286182][ T5071] ? hfsplus_get_block+0x383/0x14f0 [ 61.291365][ T5071] ? __pfx_lock_acquire+0x10/0x10 [ 61.296391][ T5071] ? __pfx___might_resched+0x10/0x10 [ 61.301658][ T5071] ? do_read_cache_page+0x30/0x200 [ 61.306759][ T5071] ? __pfx_register_lock_class+0x10/0x10 [ 61.312397][ T5071] ? hfsplus_setattr+0x1ce/0x280 [ 61.317346][ T5071] ? do_truncate+0x220/0x310 [ 61.321943][ T5071] ? path_openat+0x29fe/0x3240 [ 61.326692][ T5071] __mutex_lock+0x136/0xd70 [ 61.331179][ T5071] ? hfsplus_get_block+0x383/0x14f0 [ 61.336387][ T5071] ? hfsplus_get_block+0x383/0x14f0 [ 61.341584][ T5071] ? __pfx___mutex_lock+0x10/0x10 [ 61.346595][ T5071] hfsplus_get_block+0x383/0x14f0 [ 61.351619][ T5071] ? __pfx_hfsplus_get_block+0x10/0x10 [ 61.357093][ T5071] ? _raw_spin_unlock+0x28/0x50 [ 61.361942][ T5071] ? create_empty_buffers+0x53e/0x740 [ 61.367300][ T5071] block_read_full_folio+0x42e/0xe10 [ 61.372596][ T5071] ? __pfx_hfsplus_get_block+0x10/0x10 [ 61.378053][ T5071] ? __pfx_block_read_full_folio+0x10/0x10 [ 61.383846][ T5071] ? __pfx_lru_add_fn+0x10/0x10 [ 61.388680][ T5071] ? folio_add_lru+0x4b3/0x9e0 [ 61.393424][ T5071] ? folio_add_lru+0x27b/0x9e0 [ 61.398174][ T5071] filemap_read_folio+0x1a0/0x790 [ 61.403210][ T5071] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 61.408736][ T5071] ? __pfx_filemap_read_folio+0x10/0x10 [ 61.414262][ T5071] ? __filemap_get_folio+0x92d/0xbb0 [ 61.419525][ T5071] ? hfsplus_block_free+0xbb/0x4e0 [ 61.424634][ T5071] do_read_cache_folio+0x134/0x820 [ 61.429725][ T5071] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 61.435255][ T5071] do_read_cache_page+0x30/0x200 [ 61.440194][ T5071] hfsplus_block_free+0x128/0x4e0 [ 61.445226][ T5071] ? __kmalloc+0x251/0x4a0 [ 61.449638][ T5071] hfsplus_free_extents+0x17a/0xae0 [ 61.454846][ T5071] hfsplus_file_truncate+0x7d0/0xb50 [ 61.460139][ T5071] ? __pfx_hfsplus_file_truncate+0x10/0x10 [ 61.465929][ T5071] ? unmap_mapping_range+0xf8/0x290 [ 61.471108][ T5071] ? __pfx_unmap_mapping_range+0x10/0x10 [ 61.476739][ T5071] ? setattr_prepare+0x1f5/0xb20 [ 61.481668][ T5071] ? truncate_setsize+0xcf/0xf0 [ 61.486535][ T5071] hfsplus_setattr+0x1ce/0x280 [ 61.491294][ T5071] ? __pfx_hfsplus_setattr+0x10/0x10 [ 61.496566][ T5071] notify_change+0xb9d/0xe70 [ 61.501163][ T5071] do_truncate+0x220/0x310 [ 61.505565][ T5071] ? __pfx_do_truncate+0x10/0x10 [ 61.510491][ T5071] path_openat+0x29fe/0x3240 [ 61.515070][ T5071] ? __pfx_path_openat+0x10/0x10 [ 61.520018][ T5071] do_filp_open+0x235/0x490 [ 61.524519][ T5071] ? __pfx_do_filp_open+0x10/0x10 [ 61.529528][ T5071] ? _raw_spin_unlock+0x28/0x50 [ 61.534360][ T5071] ? alloc_fd+0x59d/0x640 [ 61.538671][ T5071] do_sys_openat2+0x13e/0x1d0 [ 61.543330][ T5071] ? __pfx_do_sys_openat2+0x10/0x10 [ 61.548509][ T5071] ? lockdep_hardirqs_on+0x99/0x150 [ 61.553688][ T5071] ? _raw_spin_unlock_irq+0x2e/0x50 [ 61.558888][ T5071] ? ptrace_notify+0x279/0x380 [ 61.563637][ T5071] __x64_sys_open+0x225/0x270 [ 61.568313][ T5071] ? __pfx___x64_sys_open+0x10/0x10 [ 61.573510][ T5071] ? do_syscall_64+0x102/0x240 [ 61.578273][ T5071] do_syscall_64+0xf5/0x240 [ 61.582787][ T5071] ? clear_bhb_loop+0x35/0x90 [ 61.587642][ T5071] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 61.593876][ T5071] RIP: 0033:0x7f4a7d1a55f9 [ 61.598281][ T5071] 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 [ 61.617979][ T5071] RSP: 002b:00007ffd7d6ef9b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 61.626476][ T5071] RAX: ffffffffffffffda RBX: 00007ffd7d6efb98 RCX: 00007f4a7d1a55f9 [ 61.634442][ T5071] RDX: 0000000000000054 RSI: 0000000000000200 RDI: 00000000200001c0 open("./file0/file0", O_RDONLY|O_TRUNC) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 61.642405][ T5071] R