./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1353764708 <...> no interfaces have a carrier forked to background, child pid 4665 [ 21.762548][ T4666] 8021q: adding VLAN 0 to HW filter on device bond0 [ 21.773695][ T4666] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller syzkaller login: [ 35.856746][ T4851] scp (4851) used greatest stack depth: 22640 bytes left Warning: Permanently added '10.128.1.172' (ECDSA) to the list of known hosts. execve("./syz-executor1353764708", ["./syz-executor1353764708"], 0x7ffd428a8f20 /* 10 vars */) = 0 brk(NULL) = 0x555555ad5000 brk(0x555555ad5c40) = 0x555555ad5c40 arch_prctl(ARCH_SET_FS, 0x555555ad5300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1353764708", 4096) = 28 brk(0x555555af6c40) = 0x555555af6c40 brk(0x555555af7000) = 0x555555af7000 mprotect(0x7f235123a000, 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) = 0x7f2348d80000 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(0x7f2348d80000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file1", 0777) = 0 [ 44.132154][ T4996] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4996 'syz-executor135' [ 44.149067][ T4996] loop0: detected capacity change from 0 to 1024 [ 44.158092][ T4996] ======================================================= [ 44.158092][ T4996] WARNING: The mand mount option has been deprecated and [ 44.158092][ T4996] and is ignored by this kernel. Remove the mand mount("/dev/loop0", "./file1", "hfsplus", MS_SYNCHRONOUS|MS_MANDLOCK, "") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 [ 44.158092][ T4996] option from the mount to silence this warning. [ 44.158092][ T4996] ======================================================= [ 44.205386][ T4996] [ 44.207729][ T4996] ====================================================== [ 44.214746][ T4996] WARNING: possible circular locking dependency detected [ 44.221763][ T4996] 6.4.0-syzkaller-10173-ga901a3568fd2 #0 Not tainted [ 44.228411][ T4996] ------------------------------------------------------ [ 44.235403][ T4996] syz-executor135/4996 is trying to acquire lock: [ 44.241789][ T4996] ffff88807d4d20b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0xe93/0x10e0 [ 44.251677][ T4996] [ 44.251677][ T4996] but task is already holding lock: [ 44.259017][ T4996] ffff88807a1622c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x205/0x10e0 [ 44.270203][ T4996] [ 44.270203][ T4996] which lock already depends on the new lock. [ 44.270203][ T4996] [ 44.280575][ T4996] [ 44.280575][ T4996] the existing dependency chain (in reverse order) is: [ 44.289560][ T4996] [ 44.289560][ T4996] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 44.298566][ T4996] __mutex_lock+0x12f/0x1350 [ 44.303660][ T4996] hfsplus_file_extend+0x1bf/0xf90 [ 44.309275][ T4996] hfsplus_bmap_reserve+0x31c/0x410 [ 44.314975][ T4996] hfsplus_create_cat+0x1ea/0x10d0 [ 44.320586][ T4996] hfsplus_fill_super+0x16fc/0x1c40 [ 44.326284][ T4996] mount_bdev+0x315/0x3e0 [ 44.331127][ T4996] legacy_get_tree+0x109/0x220 [ 44.336389][ T4996] vfs_get_tree+0x8d/0x350 [ 44.341310][ T4996] path_mount+0x136e/0x1e70 [ 44.346314][ T4996] __x64_sys_mount+0x283/0x300 [ 44.351574][ T4996] do_syscall_64+0x39/0xb0 [ 44.356495][ T4996] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 44.362887][ T4996] [ 44.362887][ T4996] -> #0 (&tree->tree_lock){+.+.}-{3:3}: [ 44.370586][ T4996] __lock_acquire+0x2e9d/0x5e20 [ 44.375939][ T4996] lock_acquire+0x1b1/0x520 [ 44.380941][ T4996] __mutex_lock+0x12f/0x1350 [ 44.386029][ T4996] hfsplus_file_truncate+0xe93/0x10e0 [ 44.391925][ T4996] hfsplus_setattr+0x1f2/0x320 [ 44.397188][ T4996] notify_change+0xb2c/0x1180 [ 44.402364][ T4996] do_truncate+0x143/0x200 [ 44.407279][ T4996] vfs_truncate+0x3df/0x4c0 [ 44.412278][ T4996] do_sys_truncate.part.0+0x11e/0x140 [ 44.418164][ T4996] __x64_sys_truncate+0x6d/0xa0 [ 44.423512][ T4996] do_syscall_64+0x39/0xb0 [ 44.428433][ T4996] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 44.434825][ T4996] [ 44.434825][ T4996] other info that might help us debug this: [ 44.434825][ T4996] [ 44.445025][ T4996] Possible unsafe locking scenario: [ 44.445025][ T4996] [ 44.452450][ T4996] CPU0 CPU1 [ 44.457901][ T4996] ---- ---- [ 44.463240][ T4996] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.469022][ T4996] lock(&tree->tree_lock); [ 44.476033][ T4996] lock(&HFSPLUS_I(inode)->extents_lock); [ 44.484330][ T4996] lock(&tree->tree_lock); [ 44.488808][ T4996] [ 44.488808][ T4996] *** DEADLOCK *** [ 44.488808][ T4996] [ 44.496926][ T4996] 3 locks held by syz-executor135/4996: [ 44.502438][ T4996] #0: ffff88807d4d0410 (sb_writers#9){.+.+}-{0:0}, at: vfs_truncate+0xee/0x4c0 [ 44.511461][ T4996] #1: ffff88807a1624c0 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x131/0x200 [ 44.521812][ T4996] #2: ffff88807a1622c8 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x205/0x10e0 [ 44.533437][ T4996] [ 44.533437][ T4996] stack backtrace: [ 44.539299][ T4996] CPU: 0 PID: 4996 Comm: syz-executor135 Not tainted 6.4.0-syzkaller-10173-ga901a3568fd2 #0 [ 44.549336][ T4996] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 44.559374][ T4996] Call Trace: [ 44.562651][ T4996] [ 44.565559][ T4996] dump_stack_lvl+0xd9/0x150 [ 44.570135][ T4996] check_noncircular+0x2df/0x3b0 [ 44.575053][ T4996] ? register_lock_class+0xbe/0x1120 [ 44.580320][ T4996] ? print_circular_bug+0x740/0x740 [ 44.585497][ T4996] ? check_path.constprop.0+0x24/0x50 [ 44.590853][ T4996] __lock_acquire+0x2e9d/0x5e20 [ 44.595688][ T4996] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 44.601648][ T4996] ? find_held_lock+0x2d/0x110 [ 44.606395][ T4996] lock_acquire+0x1b1/0x520 [ 44.610879][ T4996] ? hfsplus_file_truncate+0xe93/0x10e0 [ 44.616407][ T4996] ? lock_sync+0x190/0x190 [ 44.620805][ T4996] __mutex_lock+0x12f/0x1350 [ 44.625378][ T4996] ? hfsplus_file_truncate+0xe93/0x10e0 [ 44.630900][ T4996] ? hfsplus_file_truncate+0xe93/0x10e0 [ 44.636426][ T4996] ? _raw_spin_unlock+0x28/0x40 [ 44.641255][ T4996] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 44.646784][ T4996] ? hfsplus_block_free+0x2e3/0x530 [ 44.651963][ T4996] ? hfsplus_free_extents+0x152/0x510 [ 44.657316][ T4996] hfsplus_file_truncate+0xe93/0x10e0 [ 44.662671][ T4996] ? hfsplus_get_block+0x9b0/0x9b0 [ 44.667764][ T4996] ? unmap_mapping_pages+0x280/0x280 [ 44.673030][ T4996] ? setattr_prepare+0x140/0x9b0 [ 44.677947][ T4996] hfsplus_setattr+0x1f2/0x320 [ 44.682687][ T4996] ? hfsplus_file_fsync+0x5d0/0x5d0 [ 44.687860][ T4996] notify_change+0xb2c/0x1180 [ 44.692519][ T4996] ? do_truncate+0x143/0x200 [ 44.697084][ T4996] do_truncate+0x143/0x200 [ 44.701476][ T4996] ? file_open_root+0x460/0x460 [ 44.706308][ T4996] ? common_perm_cond+0x22f/0x830 [ 44.711325][ T4996] ? inode_permission.part.0+0xb5/0x520 [ 44.716853][ T4996] ? __mnt_want_write+0x1fe/0x2e0 [ 44.721854][ T4996] vfs_truncate+0x3df/0x4c0 [ 44.726339][ T4996] do_sys_truncate.part.0+0x11e/0x140 [ 44.731714][ T4996] ? vfs_truncate+0x4c0/0x4c0 [ 44.736390][ T4996] ? _raw_spin_unlock_irq+0x23/0x50 [ 44.741572][ T4996] ? lockdep_hardirqs_on+0x7d/0x100 [ 44.746760][ T4996] ? _raw_spin_unlock_irq+0x2e/0x50 [ 44.751937][ T4996] __x64_sys_truncate+0x6d/0xa0 [ 44.756771][ T4996] do_syscall_64+0x39/0xb0 [ 44.761173][ T4996] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 44.767051][ T4996] RIP: 0033:0x7f23511cc7a9 [ 44.771441][ T4996] 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 [ 44.791035][ T4996] RSP: 002b:00007ffd00083e38 EFLAGS: 00000246 ORIG_RAX: 000000000000004c [ 44.799431][ T4996] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f23511cc7a9 [ 44.807385][ T4996] RDX: 00007f235118ae23 RSI: 0000000000000000 RDI: 0000000020000080 [ 44.815340][ T4996] RBP: 00007f235118c040 R08: 0000000000000646 R09: 0000000000000000 [ 44.823316][ T4996] R10: 00007ffd00083d00 R11: 0000000000000246 R12: 00007f235118c0d0 truncate("./file1", 0) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 44.831271][ T4996] R13: 0000000000000000