./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor394149889 <...> Warning: Permanently added '10.128.1.44' (ED25519) to the list of known hosts. execve("./syz-executor394149889", ["./syz-executor394149889"], 0x7ffd6f727200 /* 10 vars */) = 0 brk(NULL) = 0x555584b41000 brk(0x555584b41d00) = 0x555584b41d00 arch_prctl(ARCH_SET_FS, 0x555584b41380) = 0 set_tid_address(0x555584b41650) = 5057 set_robust_list(0x555584b41660, 24) = 0 rseq(0x555584b41ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor394149889", 4096) = 27 getrandom("\xce\xb4\x05\xdc\x21\x4f\xa0\x2d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555584b41d00 brk(0x555584b62d00) = 0x555584b62d00 brk(0x555584b63000) = 0x555584b63000 mprotect(0x7f6a251be000, 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) = 0x7f6a1cc00000 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(0x7f6a1cc00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f", 0777) = 0 [ 60.548379][ T5057] loop0: detected capacity change from 0 to 1024 [ 60.581169][ T5057] ======================================================= [ 60.581169][ T5057] WARNING: The mand mount option has been deprecated and mount("/dev/loop0", "\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f", "hfsplus", MS_SYNCHRONOUS|MS_MANDLOCK|MS_DIRSYNC|MS_SILENT|MS_STRICTATIME, "uid=0x0000000000000000,barrier,gid=0x000000000000ee00,") = 0 openat(AT_FDCWD, "\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f", O_RDONLY|O_DIRECTORY) = 3 chdir("\x13\x13\x77\xc5\xfc\x35\xd4\x14\x54\xd5\xd4\x1d\x29\xad\x1a\x60\x29\x59\x81\x46\xe6\xbe\x16\x6e\x41\xad\x0d\xbd\x40\x54\x03\x3c\x9f\x33\xbb\xda\x82\x24\xa2\xf3\xd7\x72\xe7\x63\x6e\x48\xb3\x3c\xbf\x70\x83\x72\xe8\xf1\xb9\x93\x3e\xc5\x12\x77\x43\xbe\x22\x06\x20\x9e\xf0\x2d\xf9\xcb\xf2\xf6\xe8\x80\xd3\x38\x2f") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 60.581169][ T5057] and is ignored by this kernel. Remove the mand [ 60.581169][ T5057] option from the mount to silence this warning. [ 60.581169][ T5057] ======================================================= [ 60.631241][ T5057] [ 60.633583][ T5057] ============================================ [ 60.639717][ T5057] WARNING: possible recursive locking detected [ 60.645845][ T5057] 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted [ 60.652498][ T5057] -------------------------------------------- [ 60.658721][ T5057] syz-executor394/5057 is trying to acquire lock: [ 60.665273][ T5057] ffff8880221f9548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 60.676161][ T5057] [ 60.676161][ T5057] but task is already holding lock: [ 60.683516][ T5057] ffff8880221fa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 60.694818][ T5057] [ 60.694818][ T5057] other info that might help us debug this: [ 60.702964][ T5057] Possible unsafe locking scenario: [ 60.702964][ T5057] [ 60.710415][ T5057] CPU0 [ 60.713677][ T5057] ---- [ 60.716952][ T5057] lock(&HFSPLUS_I(inode)->extents_lock); [ 60.722738][ T5057] lock(&HFSPLUS_I(inode)->extents_lock); [ 60.728525][ T5057] [ 60.728525][ T5057] *** DEADLOCK *** [ 60.728525][ T5057] [ 60.736651][ T5057] May be due to missing lock nesting notation [ 60.736651][ T5057] [ 60.744944][ T5057] 6 locks held by syz-executor394/5057: [ 60.750462][ T5057] #0: ffff88807f7b2420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 60.759583][ T5057] #1: ffff8880221f9e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x26a/0x830 [ 60.769829][ T5057] #2: ffff8880221fab80 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: vfs_unlink+0xe4/0x600 [ 60.779981][ T5057] #3: ffff888029f8b198 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x161/0x790 [ 60.789454][ T5057] #4: ffff8880221fa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 60.801053][ T5057] #5: ffff888029f8b0f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xbb/0x4e0 [ 60.811118][ T5057] [ 60.811118][ T5057] stack backtrace: [ 60.816998][ T5057] CPU: 1 PID: 5057 Comm: syz-executor394 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 [ 60.827047][ T5057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 60.837080][ T5057] Call Trace: [ 60.840340][ T5057] [ 60.843253][ T5057] dump_stack_lvl+0x241/0x360 [ 60.847927][ T5057] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.853105][ T5057] ? print_deadlock_bug+0x479/0x620 [ 60.858284][ T5057] ? _find_first_zero_bit+0xd4/0x100 [ 60.863549][ T5057] validate_chain+0x15c1/0x58e0 [ 60.868387][ T5057] ? __pfx_stack_trace_save+0x10/0x10 [ 60.873750][ T5057] ? check_noncircular+0x259/0x4a0 [ 60.878846][ T5057] ? __pfx_validate_chain+0x10/0x10 [ 60.884024][ T5057] ? __pfx_check_noncircular+0x10/0x10 [ 60.889477][ T5057] ? lockdep_unlock+0x16a/0x300 [ 60.894312][ T5057] ? __pfx_lockdep_unlock+0x10/0x10 [ 60.899492][ T5057] ? add_lock_to_list+0x1de/0x2e0 [ 60.904497][ T5057] ? look_up_lock_class+0x77/0x160 [ 60.909591][ T5057] ? register_lock_class+0x102/0x980 [ 60.914849][ T5057] ? validate_chain+0x15a2/0x58e0 [ 60.919851][ T5057] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 60.926075][ T5057] ? __pfx_register_lock_class+0x10/0x10 [ 60.931689][ T5057] ? mark_lock+0x9a/0x350 [ 60.935997][ T5057] __lock_acquire+0x1346/0x1fd0 [ 60.941007][ T5057] lock_acquire+0x1e4/0x530 [ 60.945496][ T5057] ? hfsplus_get_block+0x383/0x14f0 [ 60.950674][ T5057] ? __pfx_lock_acquire+0x10/0x10 [ 60.955675][ T5057] ? __pfx___might_resched+0x10/0x10 [ 60.960937][ T5057] ? do_read_cache_page+0x30/0x200 [ 60.966030][ T5057] ? __pfx_register_lock_class+0x10/0x10 [ 60.971636][ T5057] ? hfsplus_delete_inode+0x174/0x220 [ 60.977002][ T5057] ? vfs_unlink+0x365/0x600 [ 60.981499][ T5057] ? do_unlinkat+0x4ae/0x830 [ 60.986067][ T5057] __mutex_lock+0x136/0xd70 [ 60.990549][ T5057] ? hfsplus_get_block+0x383/0x14f0 [ 60.995729][ T5057] ? hfsplus_get_block+0x383/0x14f0 [ 61.000906][ T5057] ? __pfx___mutex_lock+0x10/0x10 [ 61.005926][ T5057] hfsplus_get_block+0x383/0x14f0 [ 61.010932][ T5057] ? __pfx_hfsplus_get_block+0x10/0x10 [ 61.021061][ T5057] ? _raw_spin_unlock+0x28/0x50 [ 61.025916][ T5057] ? create_empty_buffers+0x53e/0x740 [ 61.031271][ T5057] block_read_full_folio+0x42e/0xe10 [ 61.036538][ T5057] ? __pfx_hfsplus_get_block+0x10/0x10 [ 61.041977][ T5057] ? __pfx_block_read_full_folio+0x10/0x10 [ 61.047761][ T5057] ? __pfx_lru_add_fn+0x10/0x10 [ 61.052591][ T5057] ? folio_add_lru+0x4b3/0x9e0 [ 61.057333][ T5057] ? folio_add_lru+0x27b/0x9e0 [ 61.062073][ T5057] filemap_read_folio+0x1a0/0x790 [ 61.067079][ T5057] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 61.072604][ T5057] ? __pfx_filemap_read_folio+0x10/0x10 [ 61.078131][ T5057] ? __filemap_get_folio+0x935/0xbc0 [ 61.083396][ T5057] do_read_cache_folio+0x134/0x820 [ 61.088492][ T5057] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 61.094019][ T5057] do_read_cache_page+0x30/0x200 [ 61.098937][ T5057] hfsplus_block_free+0x128/0x4e0 [ 61.103942][ T5057] ? __kmalloc+0x251/0x4a0 [ 61.108341][ T5057] hfsplus_free_extents+0x17a/0xae0 [ 61.113521][ T5057] hfsplus_file_truncate+0x7d0/0xb50 [ 61.118792][ T5057] ? __pfx_hfsplus_file_truncate+0x10/0x10 [ 61.124581][ T5057] ? smk_access+0x4ab/0x4e0 [ 61.129065][ T5057] ? hfsplus_unlink+0x161/0x790 [ 61.133911][ T5057] hfsplus_delete_inode+0x174/0x220 [ 61.139092][ T5057] hfsplus_unlink+0x512/0x790 [ 61.143753][ T5057] ? __pfx_smack_inode_unlink+0x10/0x10 [ 61.149834][ T5057] ? __pfx_hfsplus_unlink+0x10/0x10 [ 61.155050][ T5057] ? __down_write_common+0x162/0x200 [ 61.160342][ T5057] ? bpf_lsm_inode_unlink+0x9/0x10 [ 61.165440][ T5057] ? security_inode_unlink+0xd5/0x120 [ 61.170814][ T5057] vfs_unlink+0x365/0x600 [ 61.175153][ T5057] do_unlinkat+0x4ae/0x830 [ 61.179587][ T5057] ? __pfx_do_unlinkat+0x10/0x10 [ 61.184515][ T5057] ? strncpy_from_user+0x1a4/0x2f0 [ 61.189618][ T5057] __x64_sys_unlink+0x49/0x60 [ 61.194278][ T5057] do_syscall_64+0xfb/0x240 [ 61.198772][ T5057] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 61.204651][ T5057] RIP: 0033:0x7f6a2514a939 [ 61.209046][ T5057] 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.228650][ T5057] RSP: 002b:00007ffcb3c42fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 61.237060][ T5057] RAX: ffffffffffffffda RBX: 00007f6a2519304b RCX: 00007f6a2514a939 unlink("./file1") = 0 exit_group(0) = ? +++ exited with 0 +++ [ 61.245200][ T5057] RDX: 00007f6a251499d1 RSI: 0000000000000000 RDI: 00