./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2848591758 <...> Warning: Permanently added '10.128.0.117' (ED25519) to the list of known hosts. execve("./syz-executor2848591758", ["./syz-executor2848591758"], 0x7fff228eba10 /* 10 vars */) = 0 brk(NULL) = 0x55555d5a7000 brk(0x55555d5a7d00) = 0x55555d5a7d00 arch_prctl(ARCH_SET_FS, 0x55555d5a7380) = 0 set_tid_address(0x55555d5a7650) = 5094 set_robust_list(0x55555d5a7660, 24) = 0 rseq(0x55555d5a7ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2848591758", 4096) = 28 getrandom("\x82\xee\x2a\xef\xa5\x56\x42\x41", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555d5a7d00 brk(0x55555d5c8d00) = 0x55555d5c8d00 brk(0x55555d5c9000) = 0x55555d5c9000 mprotect(0x7f1f9d92c000, 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) = 0x7f1f95400000 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(0x7f1f95400000, 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 [ 54.267174][ T5094] loop0: detected capacity change from 0 to 1024 [ 54.305071][ T5094] ======================================================= 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) [ 54.305071][ T5094] WARNING: The mand mount option has been deprecated and [ 54.305071][ T5094] and is ignored by this kernel. Remove the mand [ 54.305071][ T5094] option from the mount to silence this warning. [ 54.305071][ T5094] ======================================================= [ 54.374345][ T5094] [ 54.376678][ T5094] ============================================ [ 54.382802][ T5094] WARNING: possible recursive locking detected [ 54.388926][ T5094] 6.9.0-rc7-next-20240510-syzkaller #0 Not tainted [ 54.395396][ T5094] -------------------------------------------- [ 54.401513][ T5094] syz-executor284/5094 is trying to acquire lock: [ 54.407897][ T5094] ffff888077189548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x383/0x14f0 [ 54.418749][ T5094] [ 54.418749][ T5094] but task is already holding lock: [ 54.426104][ T5094] ffff88807718a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 54.437200][ T5094] [ 54.437200][ T5094] other info that might help us debug this: [ 54.445231][ T5094] Possible unsafe locking scenario: [ 54.445231][ T5094] [ 54.452653][ T5094] CPU0 [ 54.455910][ T5094] ---- [ 54.459163][ T5094] lock(&HFSPLUS_I(inode)->extents_lock); [ 54.464947][ T5094] lock(&HFSPLUS_I(inode)->extents_lock); [ 54.470731][ T5094] [ 54.470731][ T5094] *** DEADLOCK *** [ 54.470731][ T5094] [ 54.478849][ T5094] May be due to missing lock nesting notation [ 54.478849][ T5094] [ 54.487141][ T5094] 4 locks held by syz-executor284/5094: [ 54.492657][ T5094] #0: ffff888078518420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 54.501769][ T5094] #1: ffff88807718ab80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x20c/0x310 [ 54.512095][ T5094] #2: ffff88807718a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x2da/0xb50 [ 54.523654][ T5094] #3: ffff8880210358f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xbb/0x4e0 [ 54.533630][ T5094] [ 54.533630][ T5094] stack backtrace: [ 54.539494][ T5094] CPU: 0 PID: 5094 Comm: syz-executor284 Not tainted 6.9.0-rc7-next-20240510-syzkaller #0 [ 54.549358][ T5094] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 [ 54.559391][ T5094] Call Trace: [ 54.562650][ T5094] [ 54.565559][ T5094] dump_stack_lvl+0x241/0x360 [ 54.570225][ T5094] ? __pfx_dump_stack_lvl+0x10/0x10 [ 54.575404][ T5094] ? print_deadlock_bug+0x479/0x620 [ 54.580583][ T5094] ? _find_first_zero_bit+0xd4/0x100 [ 54.585853][ T5094] validate_chain+0x15c1/0x58e0 [ 54.590688][ T5094] ? __pfx_stack_trace_save+0x10/0x10 [ 54.596034][ T5094] ? check_noncircular+0x259/0x4a0 [ 54.601121][ T5094] ? __pfx_validate_chain+0x10/0x10 [ 54.606302][ T5094] ? __pfx_check_noncircular+0x10/0x10 [ 54.611737][ T5094] ? lockdep_unlock+0x16a/0x300 [ 54.616564][ T5094] ? __pfx_lockdep_unlock+0x10/0x10 [ 54.621737][ T5094] ? add_lock_to_list+0x1de/0x2e0 [ 54.626739][ T5094] ? look_up_lock_class+0x77/0x160 [ 54.631831][ T5094] ? register_lock_class+0x102/0x980 [ 54.637101][ T5094] ? validate_chain+0x15a2/0x58e0 [ 54.642102][ T5094] ? is_bpf_text_address+0x26/0x2a0 [ 54.647366][ T5094] ? __pfx_register_lock_class+0x10/0x10 [ 54.652975][ T5094] ? mark_lock+0x9a/0x350 [ 54.657296][ T5094] __lock_acquire+0x1346/0x1fd0 [ 54.662126][ T5094] lock_acquire+0x1ed/0x550 [ 54.666620][ T5094] ? hfsplus_get_block+0x383/0x14f0 [ 54.671817][ T5094] ? __pfx_lock_acquire+0x10/0x10 [ 54.676822][ T5094] ? __pfx___might_resched+0x10/0x10 [ 54.682108][ T5094] ? filemap_read_folio+0x1a0/0x790 [ 54.687292][ T5094] ? __pfx_register_lock_class+0x10/0x10 [ 54.692902][ T5094] ? hfsplus_free_extents+0x17a/0xae0 [ 54.698251][ T5094] ? hfsplus_setattr+0x1ce/0x280 [ 54.703184][ T5094] ? notify_change+0xb9d/0xe70 [ 54.707925][ T5094] __mutex_lock+0x136/0xd70 [ 54.712407][ T5094] ? hfsplus_get_block+0x383/0x14f0 [ 54.717583][ T5094] ? hfsplus_get_block+0x383/0x14f0 [ 54.722760][ T5094] ? __pfx___mutex_lock+0x10/0x10 [ 54.727763][ T5094] hfsplus_get_block+0x383/0x14f0 [ 54.732764][ T5094] ? __pfx_hfsplus_get_block+0x10/0x10 [ 54.738197][ T5094] ? _raw_spin_unlock+0x28/0x50 [ 54.743021][ T5094] ? create_empty_buffers+0x53e/0x740 [ 54.748368][ T5094] block_read_full_folio+0x42e/0xe10 [ 54.753637][ T5094] ? __pfx_hfsplus_get_block+0x10/0x10 [ 54.759073][ T5094] ? __pfx_block_read_full_folio+0x10/0x10 [ 54.764859][ T5094] ? __pfx_lru_add_fn+0x10/0x10 [ 54.769685][ T5094] ? folio_add_lru+0x357/0xd70 [ 54.774422][ T5094] ? folio_add_lru+0x58f/0xd70 [ 54.779176][ T5094] filemap_read_folio+0x1a0/0x790 [ 54.784178][ T5094] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 54.789697][ T5094] ? __pfx_filemap_read_folio+0x10/0x10 [ 54.795216][ T5094] ? __filemap_get_folio+0x92d/0xbb0 [ 54.800481][ T5094] ? hfsplus_block_free+0xbb/0x4e0 [ 54.805575][ T5094] do_read_cache_folio+0x134/0x820 [ 54.810662][ T5094] ? __pfx_hfsplus_read_folio+0x10/0x10 [ 54.816200][ T5094] do_read_cache_page+0x30/0x200 [ 54.821126][ T5094] hfsplus_block_free+0x128/0x4e0 [ 54.826156][ T5094] ? hfsplus_find_init+0x85/0x1c0 [ 54.831164][ T5094] hfsplus_free_extents+0x17a/0xae0 [ 54.836344][ T5094] hfsplus_file_truncate+0x7d0/0xb50 [ 54.841613][ T5094] ? __pfx_hfsplus_file_truncate+0x10/0x10 [ 54.847403][ T5094] ? unmap_mapping_range+0xf8/0x290 [ 54.852582][ T5094] ? __pfx_unmap_mapping_range+0x10/0x10 [ 54.858193][ T5094] ? setattr_prepare+0x1f5/0xb20 [ 54.863110][ T5094] ? truncate_setsize+0xcf/0xf0 [ 54.867942][ T5094] hfsplus_setattr+0x1ce/0x280 [ 54.872686][ T5094] ? __pfx_hfsplus_setattr+0x10/0x10 [ 54.878040][ T5094] notify_change+0xb9d/0xe70 [ 54.882628][ T5094] do_truncate+0x220/0x310 [ 54.887024][ T5094] ? __pfx_do_truncate+0x10/0x10 [ 54.891937][ T5094] ? apparmor_file_truncate+0x297/0x350 [ 54.897474][ T5094] path_openat+0x2a3d/0x3280 [ 54.902053][ T5094] ? __pfx_path_openat+0x10/0x10 [ 54.906972][ T5094] do_filp_open+0x235/0x490 [ 54.911452][ T5094] ? __pfx_do_filp_open+0x10/0x10 [ 54.916459][ T5094] ? _raw_spin_unlock+0x28/0x50 [ 54.921306][ T5094] ? alloc_fd+0x59d/0x640 [ 54.925618][ T5094] do_sys_openat2+0x13e/0x1d0 [ 54.930276][ T5094] ? __pfx_do_sys_openat2+0x10/0x10 [ 54.935454][ T5094] ? lockdep_hardirqs_on+0x99/0x150 [ 54.940634][ T5094] ? _raw_spin_unlock_irq+0x2e/0x50 [ 54.945813][ T5094] ? ptrace_notify+0x279/0x380 [ 54.950560][ T5094] __x64_sys_open+0x225/0x270 [ 54.955218][ T5094] ? __pfx___x64_sys_open+0x10/0x10 [ 54.960426][ T5094] ? do_syscall_64+0x102/0x240 [ 54.965175][ T5094] do_syscall_64+0xf5/0x240 [ 54.969659][ T5094] ? clear_bhb_loop+0x35/0x90 [ 54.974313][ T5094] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 54.980189][ T5094] RIP: 0033:0x7f1f9d8b95f9 [ 54.984592][ T5094] 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 [ 55.004176][ T5094] RSP: 002b:00007ffdcacc4558 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 55.012566][ T5094] RAX: ffffffffffffffda RBX: 00007ffdcacc4738 RCX: 00007f1f9d8b95f9 open("./file0/file0", O_RDONLY|O_TRUNC) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 55.020515][ T5094] RDX: 0000000000000054 RSI: 0000000000000200 RDI: 00000000