./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2573975311 <...> Warning: Permanently added '10.128.0.72' (ED25519) to the list of known hosts. execve("./syz-executor2573975311", ["./syz-executor2573975311"], 0x7ffc040764b0 /* 10 vars */) = 0 brk(NULL) = 0x5555572ec000 brk(0x5555572ecd00) = 0x5555572ecd00 arch_prctl(ARCH_SET_FS, 0x5555572ec380) = 0 set_tid_address(0x5555572ec650) = 5033 set_robust_list(0x5555572ec660, 24) = 0 rseq(0x5555572ecca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2573975311", 4096) = 28 getrandom("\xae\xf9\x30\xb1\x6b\x19\xd9\xca", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555572ecd00 brk(0x55555730dd00) = 0x55555730dd00 brk(0x55555730e000) = 0x55555730e000 mprotect(0x7efd8667a000, 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) = 0x7efd7e1ca000 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(0x7efd7e1ca000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file1", 0777) = 0 mount("/dev/loop0", "./file1", "hfsplus", MS_NOATIME, "") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 75.646949][ T5033] syz-executor257[5033]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set [ 75.669631][ T5033] loop0: detected capacity change from 0 to 1024 open("./file1", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_DIRECT|O_NOATIME, 000) = 4 ftruncate(4, 33587195) = 0 symlink("./bus", "./bus") = 0 creat("./file2aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 000) = 5 [ 75.703285][ T28] audit: type=1800 audit(1698665825.780:2): pid=5033 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="syz-executor257" name="file1" dev="loop0" ino=20 res=0 errno=0 [ 75.747901][ T5033] [ 75.750279][ T5033] ====================================================== [ 75.757403][ T5033] WARNING: possible circular locking dependency detected [ 75.764533][ T5033] 6.6.0-syzkaller #0 Not tainted [ 75.769700][ T5033] ------------------------------------------------------ [ 75.776788][ T5033] syz-executor257/5033 is trying to acquire lock: [ 75.783212][ T5033] ffff88801ff287c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x21b/0x1b70 [ 75.794395][ T5033] [ 75.794395][ T5033] but task is already holding lock: [ 75.801858][ T5033] ffff888079eb60b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 75.811566][ T5033] [ 75.811566][ T5033] which lock already depends on the new lock. [ 75.811566][ T5033] [ 75.822241][ T5033] [ 75.822241][ T5033] the existing dependency chain (in reverse order) is: [ 75.831517][ T5033] [ 75.831517][ T5033] -> #1 (&tree->tree_lock){+.+.}-{3:3}: [ 75.839562][ T5033] __mutex_lock+0x136/0xd60 [ 75.844608][ T5033] hfsplus_file_truncate+0x811/0xb40 [ 75.850461][ T5033] hfsplus_setattr+0x1b9/0x260 [ 75.855778][ T5033] notify_change+0xb99/0xe60 [ 75.860903][ T5033] do_truncate+0x220/0x300 [ 75.865928][ T5033] do_sys_ftruncate+0x2f3/0x390 [ 75.871301][ T5033] do_syscall_64+0x41/0xc0 [ 75.876240][ T5033] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 75.882669][ T5033] [ 75.882669][ T5033] -> #0 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 75.891707][ T5033] __lock_acquire+0x39ff/0x7f70 [ 75.897078][ T5033] lock_acquire+0x1e3/0x520 [ 75.902105][ T5033] __mutex_lock+0x136/0xd60 [ 75.907157][ T5033] hfsplus_file_extend+0x21b/0x1b70 [ 75.912878][ T5033] hfsplus_bmap_reserve+0x105/0x4e0 [ 75.918602][ T5033] hfsplus_rename_cat+0x1d0/0x1050 [ 75.924236][ T5033] hfsplus_rename+0x12e/0x1c0 [ 75.929433][ T5033] vfs_rename+0xaba/0xde0 [ 75.934284][ T5033] do_renameat2+0xd5a/0x1390 [ 75.939499][ T5033] __x64_sys_rename+0x86/0x90 [ 75.944709][ T5033] do_syscall_64+0x41/0xc0 [ 75.949677][ T5033] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 75.956128][ T5033] [ 75.956128][ T5033] other info that might help us debug this: [ 75.956128][ T5033] [ 75.966376][ T5033] Possible unsafe locking scenario: [ 75.966376][ T5033] [ 75.974261][ T5033] CPU0 CPU1 [ 75.979621][ T5033] ---- ---- [ 75.985084][ T5033] lock(&tree->tree_lock); [ 75.989612][ T5033] lock(&HFSPLUS_I(inode)->extents_lock); [ 75.998388][ T5033] lock(&tree->tree_lock); [ 76.005917][ T5033] lock(&HFSPLUS_I(inode)->extents_lock); [ 76.011747][ T5033] [ 76.011747][ T5033] *** DEADLOCK *** [ 76.011747][ T5033] [ 76.019981][ T5033] 5 locks held by syz-executor257/5033: [ 76.025532][ T5033] #0: ffff888079eda410 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 76.034703][ T5033] #1: ffff88801ff29e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_renameat2+0x601/0x1390 [ 76.045369][ T5033] #2: ffff88801ff2b240 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: lock_two_inodes+0x100/0x180 [ 76.056823][ T5033] #3: ffff88801ff2bfc0 (&sb->s_type->i_mutex_key#14/4){+.+.}-{3:3}, at: vfs_rename+0x5eb/0xde0 [ 76.067310][ T5033] #4: ffff888079eb60b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 76.077269][ T5033] [ 76.077269][ T5033] stack backtrace: [ 76.083167][ T5033] CPU: 0 PID: 5033 Comm: syz-executor257 Not tainted 6.6.0-syzkaller #0 [ 76.091505][ T5033] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 76.101622][ T5033] Call Trace: [ 76.104923][ T5033] [ 76.107865][ T5033] dump_stack_lvl+0x1e7/0x2d0 [ 76.112664][ T5033] ? nf_tcp_handle_invalid+0x650/0x650 [ 76.118157][ T5033] ? print_circular_bug+0x12b/0x1a0 [ 76.123377][ T5033] check_noncircular+0x375/0x4a0 [ 76.128351][ T5033] ? __read_once_word_nocheck+0x9/0x10 [ 76.133853][ T5033] ? print_deadlock_bug+0x600/0x600 [ 76.139098][ T5033] ? lockdep_lock+0x123/0x2b0 [ 76.143797][ T5033] ? is_bpf_text_address+0x28d/0x2a0 [ 76.149300][ T5033] ? mark_lock+0x9a/0x340 [ 76.153659][ T5033] ? _find_first_zero_bit+0xd4/0x100 [ 76.158970][ T5033] __lock_acquire+0x39ff/0x7f70 [ 76.163857][ T5033] ? check_noncircular+0x205/0x4a0 [ 76.169689][ T5033] ? verify_lock_unused+0x140/0x140 [ 76.175026][ T5033] ? print_deadlock_bug+0x600/0x600 [ 76.180239][ T5033] ? lockdep_unlock+0x169/0x300 [ 76.185192][ T5033] ? lockdep_lock+0x2b0/0x2b0 [ 76.189927][ T5033] ? add_lock_to_list+0x1de/0x2e0 [ 76.194983][ T5033] ? __lock_acquire+0x3683/0x7f70 [ 76.200039][ T5033] lock_acquire+0x1e3/0x520 [ 76.204588][ T5033] ? hfsplus_file_extend+0x21b/0x1b70 [ 76.210769][ T5033] ? read_lock_is_recursive+0x20/0x20 [ 76.216146][ T5033] ? verify_lock_unused+0x140/0x140 [ 76.221420][ T5033] ? __might_sleep+0xc0/0xc0 [ 76.226012][ T5033] ? lockdep_hardirqs_on_prepare+0x43c/0x7a0 [ 76.232345][ T5033] ? print_irqtrace_events+0x220/0x220 [ 76.237805][ T5033] __mutex_lock+0x136/0xd60 [ 76.242339][ T5033] ? hfsplus_file_extend+0x21b/0x1b70 [ 76.247737][ T5033] ? stack_trace_save+0x117/0x1c0 [ 76.252768][ T5033] ? stack_trace_snprint+0xf0/0xf0 [ 76.258783][ T5033] ? hfsplus_file_extend+0x21b/0x1b70 [ 76.264184][ T5033] ? mutex_lock_nested+0x20/0x20 [ 76.269233][ T5033] hfsplus_file_extend+0x21b/0x1b70 [ 76.274449][ T5033] ? hfsplus_get_block+0x14e0/0x14e0 [ 76.279747][ T5033] ? rcu_is_watching+0x15/0xb0 [ 76.284964][ T5033] ? trace_contention_end+0x3c/0xf0 [ 76.290178][ T5033] ? __mutex_lock+0x2ee/0xd60 [ 76.294889][ T5033] ? hfsplus_find_init+0x14a/0x1c0 [ 76.300010][ T5033] ? mutex_lock_nested+0x20/0x20 [ 76.305099][ T5033] hfsplus_bmap_reserve+0x105/0x4e0 [ 76.310337][ T5033] hfsplus_rename_cat+0x1d0/0x1050 [ 76.315689][ T5033] ? reacquire_held_locks+0x3a9/0x660 [ 76.321118][ T5033] ? __mark_inode_dirty+0x4d4/0xd90 [ 76.326344][ T5033] ? hfsplus_subfolders_dec+0x110/0x110 [ 76.331933][ T5033] ? print_unlock_imbalance_bug+0x2c0/0x2c0 [ 76.337875][ T5033] ? hfsplus_link+0x800/0x800 [ 76.342635][ T5033] ? clear_nonspinnable+0x60/0x60 [ 76.347674][ T5033] hfsplus_rename+0x12e/0x1c0 [ 76.352385][ T5033] ? hfsplus_mknod+0x2a0/0x2a0 [ 76.357207][ T5033] vfs_rename+0xaba/0xde0 [ 76.361572][ T5033] ? __ia32_sys_link+0x90/0x90 [ 76.366354][ T5033] ? security_path_rename+0x183/0x210 [ 76.371747][ T5033] do_renameat2+0xd5a/0x1390 [ 76.376368][ T5033] ? fsnotify_move+0x4f0/0x4f0 [ 76.381147][ T5033] ? __check_object_size+0x4bb/0xa00 [ 76.386528][ T5033] ? getname_flags+0x1fd/0x4f0 [ 76.391296][ T5033] __x64_sys_rename+0x86/0x90 [ 76.395981][ T5033] do_syscall_64+0x41/0xc0 [ 76.400410][ T5033] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 76.406313][ T5033] RIP: 0033:0x7efd86607739 [ 76.410742][ T5033] 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 [ 76.430671][ T5033] RSP: 002b:00007fff773cd578 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 [ 76.439136][ T5033] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007efd86607739 rename("./bus", "./file2") = 0 exit_group(0) = ? +++ exited with 0 +++ [ 76.447220][ T5033] RDX: 0000000000000073 R