./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor4269012321 <...> forked to background, child pid 4642 no interfaces have a carrier [ 28.082293][ T4643] 8021q: adding VLAN 0 to HW filter on device bond0 [ 28.091680][ T4643] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.233' (ECDSA) to the list of known hosts. execve("./syz-executor4269012321", ["./syz-executor4269012321"], 0x7ffe57bfb7c0 /* 10 vars */) = 0 brk(NULL) = 0x555555ac3000 brk(0x555555ac3c40) = 0x555555ac3c40 arch_prctl(ARCH_SET_FS, 0x555555ac3300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor4269012321", 4096) = 28 brk(0x555555ae4c40) = 0x555555ae4c40 brk(0x555555ae5000) = 0x555555ae5000 mprotect(0x7fb4ff12a000, 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) = 0x7fb4f6c70000 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(0x7fb4f6c70000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 mount("/dev/loop0", "./file0", "hfsplus", MS_SYNCHRONOUS|MS_RELATIME|MS_I_VERSION, "part=0x0000") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 open(".", O_RDONLY) = 4 mkdirat(4, "\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", 000) = 0 creat("./file1", 0324) = 5 open(".", O_RDONLY) = 6 symlinkat("\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", 6, "./file0") = 0 open(".", O_RDONLY) = 7 openat(6, "./file0/file0", O_RDONLY|O_CREAT, 000) = 8 syzkaller login: [ 53.169616][ T5071] loop0: detected capacity change from 0 to 1024 [ 53.204637][ T5071] [ 53.207010][ T5071] ====================================================== [ 53.214032][ T5071] WARNING: possible circular locking dependency detected [ 53.221031][ T5071] 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 Not tainted [ 53.227679][ T5071] ------------------------------------------------------ [ 53.234684][ T5071] syz-executor426/5071 is trying to acquire lock: [ 53.241070][ T5071] ffff88802b0d87c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1bf/0xf60 [ 53.252056][ T5071] [ 53.252056][ T5071] but task is already holding lock: [ 53.259398][ T5071] ffff88802adcc0b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x1bb/0x230 [ 53.268855][ T5071] [ 53.268855][ T5071] which lock already depends on the new lock. [ 53.268855][ T5071] [ 53.279233][ T5071] [ 53.279233][ T5071] the existing dependency chain (in reverse order) is: [ 53.288222][ T5071] [ 53.288222][ T5071] -> #1 (&tree->tree_lock){+.+.}-{3:3}: [ 53.295927][ T5071] __mutex_lock+0x12f/0x1360 [ 53.301025][ T5071] hfsplus_file_truncate+0xe87/0x10d0 [ 53.306922][ T5071] hfsplus_setattr+0x1f2/0x320 [ 53.312186][ T5071] notify_change+0xca7/0x1420 [ 53.317367][ T5071] do_truncate+0x143/0x200 [ 53.322288][ T5071] path_openat+0x2157/0x2a50 [ 53.327381][ T5071] do_filp_open+0x1ba/0x410 [ 53.332384][ T5071] do_sys_openat2+0x16d/0x4c0 [ 53.337560][ T5071] __x64_sys_creat+0xcd/0x120 [ 53.342737][ T5071] do_syscall_64+0x39/0xb0 [ 53.347670][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.354067][ T5071] [ 53.354067][ T5071] -> #0 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 53.363101][ T5071] __lock_acquire+0x2a43/0x56d0 [ 53.368556][ T5071] lock_acquire+0x1e3/0x630 [ 53.373573][ T5071] __mutex_lock+0x12f/0x1360 [ 53.378671][ T5071] hfsplus_file_extend+0x1bf/0xf60 [ 53.384290][ T5071] hfsplus_bmap_reserve+0x31c/0x410 [ 53.389990][ T5071] hfsplus_rename_cat+0x271/0x1270 [ 53.395602][ T5071] hfsplus_rename+0x11d/0x210 [ 53.400778][ T5071] vfs_rename+0x1162/0x1a90 [ 53.405785][ T5071] do_renameat2+0xb22/0xc30 [ 53.410792][ T5071] __x64_sys_renameat2+0xe8/0x120 [ 53.416319][ T5071] do_syscall_64+0x39/0xb0 [ 53.421242][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.427637][ T5071] [ 53.427637][ T5071] other info that might help us debug this: [ 53.427637][ T5071] [ 53.437848][ T5071] Possible unsafe locking scenario: [ 53.437848][ T5071] [ 53.445281][ T5071] CPU0 CPU1 [ 53.450709][ T5071] ---- ---- [ 53.456050][ T5071] lock(&tree->tree_lock); [ 53.460532][ T5071] lock(&HFSPLUS_I(inode)->extents_lock); [ 53.468837][ T5071] lock(&tree->tree_lock); [ 53.475863][ T5071] lock(&HFSPLUS_I(inode)->extents_lock); [ 53.481653][ T5071] [ 53.481653][ T5071] *** DEADLOCK *** [ 53.481653][ T5071] [ 53.489781][ T5071] 7 locks held by syz-executor426/5071: [ 53.495300][ T5071] #0: ffff88802adc8460 (sb_writers#9){.+.+}-{0:0}, at: do_renameat2+0x37f/0xc30 [ 53.504424][ T5071] #1: ffff88802adc8748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename+0x58/0x280 [ 53.514316][ T5071] #2: ffff88802b0d9e00 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: lock_rename+0xa4/0x280 [ 53.524482][ T5071] #3: ffff8880761a09c0 (&sb->s_type->i_mutex_key#15/2){+.+.}-{3:3}, at: lock_rename+0xd8/0x280 [ 53.534924][ T5071] #4: ffff8880761a1740 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: lock_two_nondirectories+0xf0/0x110 [ 53.546241][ T5071] #5: ffff8880761a1e00 (&sb->s_type->i_mutex_key#15/4){+.+.}-{3:3}, at: lock_two_nondirectories+0xd5/0x110 [ 53.557738][ T5071] #6: ffff88802adcc0b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_find_init+0x1bb/0x230 [ 53.567642][ T5071] [ 53.567642][ T5071] stack backtrace: [ 53.573526][ T5071] CPU: 0 PID: 5071 Comm: syz-executor426 Not tainted 6.1.0-syzkaller-14594-g72a85e2b0a1e #0 [ 53.583571][ T5071] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 53.593690][ T5071] Call Trace: [ 53.596949][ T5071] [ 53.599860][ T5071] dump_stack_lvl+0xd1/0x138 [ 53.604438][ T5071] check_noncircular+0x25f/0x2e0 [ 53.609363][ T5071] ? register_lock_class+0xbe/0x1120 [ 53.614625][ T5071] ? print_circular_bug+0x1e0/0x1e0 [ 53.619802][ T5071] ? kernel_text_address+0x3d/0x80 [ 53.624897][ T5071] ? __kernel_text_address+0xd/0x30 [ 53.630078][ T5071] ? unwind_get_return_address+0x55/0xa0 [ 53.635693][ T5071] __lock_acquire+0x2a43/0x56d0 [ 53.640526][ T5071] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 53.646487][ T5071] lock_acquire+0x1e3/0x630 [ 53.650970][ T5071] ? hfsplus_file_extend+0x1bf/0xf60 [ 53.656240][ T5071] ? lock_release+0x810/0x810 [ 53.660895][ T5071] __mutex_lock+0x12f/0x1360 [ 53.665472][ T5071] ? hfsplus_file_extend+0x1bf/0xf60 [ 53.670741][ T5071] ? hfsplus_file_extend+0x1bf/0xf60 [ 53.676010][ T5071] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 53.681552][ T5071] ? __x64_sys_renameat2+0xe8/0x120 [ 53.686738][ T5071] ? lock_release+0x810/0x810 [ 53.691395][ T5071] hfsplus_file_extend+0x1bf/0xf60 [ 53.696491][ T5071] ? __mutex_lock+0x231/0x1360 [ 53.701328][ T5071] ? hfsplus_free_fork+0x7d0/0x7d0 [ 53.706423][ T5071] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 53.711954][ T5071] hfsplus_bmap_reserve+0x31c/0x410 [ 53.717141][ T5071] hfsplus_rename_cat+0x271/0x1270 [ 53.722238][ T5071] ? hfsplus_delete_cat+0xe40/0xe40 [ 53.727427][ T5071] ? find_held_lock+0x2d/0x110 [ 53.732178][ T5071] ? hfsplus_unlink+0x352/0x830 [ 53.737105][ T5071] ? lock_downgrade+0x6e0/0x6e0 [ 53.741933][ T5071] ? pointer+0xc50/0xc50 [ 53.746163][ T5071] ? __mutex_unlock_slowpath+0x157/0x5e0 [ 53.751780][ T5071] ? sprintf+0xc4/0x100 [ 53.755920][ T5071] ? wait_for_completion_io_timeout+0x20/0x20 [ 53.761972][ T5071] ? hfsplus_unlink+0x357/0x830 [ 53.766809][ T5071] ? hfsplus_symlink+0x2e0/0x2e0 [ 53.771728][ T5071] ? down_write_nested+0x15b/0x220 [ 53.776837][ T5071] ? up_read+0x20/0x20 [ 53.780889][ T5071] hfsplus_rename+0x11d/0x210 [ 53.785560][ T5071] ? hfsplus_unlink+0x830/0x830 [ 53.790392][ T5071] vfs_rename+0x1162/0x1a90 [ 53.794883][ T5071] ? path_openat+0x2a50/0x2a50 [ 53.799631][ T5071] ? d_lookup+0x105/0x170 [ 53.803947][ T5071] ? bpf_lsm_path_rename+0x9/0x10 [ 53.809042][ T5071] ? security_path_rename+0x158/0x230 [ 53.814398][ T5071] do_renameat2+0xb22/0xc30 [ 53.818888][ T5071] ? __ia32_sys_link+0xa0/0xa0 [ 53.823636][ T5071] ? __virt_addr_valid+0x61/0x2e0 [ 53.828646][ T5071] ? __phys_addr_symbol+0x30/0x70 [ 53.833655][ T5071] ? strncpy_from_user+0x28b/0x3c0 [ 53.838749][ T5071] ? _raw_spin_unlock_irq+0x23/0x50 [ 53.843931][ T5071] __x64_sys_renameat2+0xe8/0x120 [ 53.848943][ T5071] do_syscall_64+0x39/0xb0 [ 53.853341][ T5071] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.859259][ T5071] RIP: 0033:0x7fb4ff0bc9f9 [ 53.863678][ T5071] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48 [ 53.883277][ T5071] RSP: 002b:00007ffdd0f88598 EFLAGS: 00000246 ORIG_RAX: 000000000000013c [ 53.891666][ T5071] RAX: ffffffffffffffda RBX: 2f30656c69662f2e RCX: 00007fb4ff0bc9f9 [ 53.899628][ T5071] RDX: 0000000000000007 RSI: 00000000200001c0 RDI: 0000000000000007 [ 53.907591][ T5071] RBP: 00007fb4ff07c290 R08: 0000000000000000 R09: 0000000000000000 renameat2(7, "./file0", 7, "./file0/file0", 0) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 53.915544][ T5071] R10: 00000000200002c0 R11: 0000000000000246 R12: 00007fb4ff07c32