./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1355895709 <...> Warning: Permanently added '10.128.1.100' (ED25519) to the list of known hosts. execve("./syz-executor1355895709", ["./syz-executor1355895709"], 0x7ffe3b28c5f0 /* 10 vars */) = 0 brk(NULL) = 0x555580166000 brk(0x555580166d00) = 0x555580166d00 arch_prctl(ARCH_SET_FS, 0x555580166380) = 0 set_tid_address(0x555580166650) = 5069 set_robust_list(0x555580166660, 24) = 0 rseq(0x555580166ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1355895709", 4096) = 28 getrandom("\xa8\xb3\x2f\x7f\x4c\x96\x0e\x89", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555580166d00 brk(0x555580187d00) = 0x555580187d00 brk(0x555580188000) = 0x555580188000 mprotect(0x7fa64a3eb000, 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) = 0x7fa641e00000 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"..., 32768) = 32768 munmap(0x7fa641e00000, 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 [ 55.408694][ T5069] loop0: detected capacity change from 0 to 64 [ 55.441701][ T5069] ======================================================= [ 55.441701][ T5069] 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", "hfs", MS_MANDLOCK|MS_DIRSYNC|MS_STRICTATIME|MS_LAZYTIME, "\x71\x75\x69\x65\x74\x2c\x63\x72\x65\x61\x74\x6f\x72\x3d\xd4\x67\x5f\x16\x2c\x69\x6f\x63\x68\x61\x72\x73\x65\x74\x3d\x63\x70\x39\x34\x39\x2c\x71\x75\x69\x65\x74\x2c\x63\x6f\x64\x65\x70\x61\x67\x65\x3d\x63\x70\x38\x36\x33\x2c") = 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) mknodat(AT_FDCWD, "./file4", 000) = 0 [ 55.441701][ T5069] and is ignored by this kernel. Remove the mand [ 55.441701][ T5069] option from the mount to silence this warning. [ 55.441701][ T5069] ======================================================= openat(AT_FDCWD, "cgroup.controllers", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 write(4, "\x0b\x00\x00\x00\x73\x79\x7a\x30\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 280) = 280 creat("./bus", 000) = 5 io_uring_setup(14062, NULL) = -1 EFAULT (Bad address) io_uring_register(-1, IORING_REGISTER_FILES, NULL, 0) = -1 EBADF (Bad file descriptor) lseek(5, 8388604, SEEK_SET) = 8388604 write(5, "\x2e\x2f\x66\x69\x6c\x65\x34\x00\xe8\x80\xd3\x38\x2f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x63\x67\x72\x6f\x75\x70\x2e\x63\x6f\x6e\x74\x72\x6f\x6c\x6c\x65\x72\x73\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 64788) = 64788 openat(AT_FDCWD, "memory.numa_stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 6 [ 56.053048][ T5069] syz-executor135: attempt to access beyond end of device [ 56.053048][ T5069] loop0: rw=0, sector=25825, nr_sectors = 1 limit=64 [ 56.066916][ T5069] Buffer I/O error on dev loop0, logical block 25825, async page read [ 56.075233][ T5069] syz-executor135: attempt to access beyond end of device [ 56.075233][ T5069] loop0: rw=0, sector=25826, nr_sectors = 1 limit=64 [ 56.088937][ T5069] Buffer I/O error on dev loop0, logical block 25826, async page read write(6, "\x23\x21\x20\x0a\x72\x79\x2e\x6e\x75\x6d\x61\x5f\x73\x74\x61\x74\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 34136651) = 5537792 openat(AT_FDCWD, NULL, O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = -1 EFAULT (Bad address) openat(AT_FDCWD, NULL, O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = -1 EFAULT (Bad address) openat(AT_FDCWD, "blkio.bfq.io_serviced", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 7 [ 56.097133][ T5069] syz-executor135: attempt to access beyond end of device [ 56.097133][ T5069] loop0: rw=0, sector=25827, nr_sectors = 1 limit=64 [ 56.110832][ T5069] Buffer I/O error on dev loop0, logical block 25827, async page read [ 56.153002][ T5069] [ 56.155344][ T5069] ====================================================== [ 56.162342][ T5069] WARNING: possible circular locking dependency detected [ 56.169337][ T5069] 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0 Not tainted [ 56.176332][ T5069] ------------------------------------------------------ [ 56.183326][ T5069] syz-executor135/5069 is trying to acquire lock: [ 56.189715][ T5069] ffff88804b1740b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 56.199040][ T5069] [ 56.199040][ T5069] but task is already holding lock: [ 56.206393][ T5069] ffff88807cf90778 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 56.217166][ T5069] [ 56.217166][ T5069] which lock already depends on the new lock. [ 56.217166][ T5069] [ 56.227559][ T5069] [ 56.227559][ T5069] the existing dependency chain (in reverse order) is: [ 56.236560][ T5069] [ 56.236560][ T5069] -> #1 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}: [ 56.245762][ T5069] lock_acquire+0x1ed/0x550 [ 56.250779][ T5069] __mutex_lock+0x136/0xd70 [ 56.255801][ T5069] hfs_extend_file+0xff/0x1450 [ 56.261072][ T5069] hfs_bmap_reserve+0xd9/0x400 [ 56.266345][ T5069] __hfs_ext_write_extent+0x22e/0x4f0 [ 56.272225][ T5069] __hfs_ext_cache_extent+0x6a/0x990 [ 56.278018][ T5069] hfs_extend_file+0x344/0x1450 [ 56.283376][ T5069] hfs_get_block+0x3e4/0xb60 [ 56.288475][ T5069] __block_write_begin_int+0x50c/0x1a70 [ 56.294528][ T5069] block_write_begin+0x9b/0x1e0 [ 56.299892][ T5069] cont_write_begin+0x645/0x890 [ 56.305249][ T5069] hfs_write_begin+0x8a/0xd0 [ 56.310350][ T5069] generic_perform_write+0x322/0x640 [ 56.316145][ T5069] generic_file_write_iter+0xaf/0x310 [ 56.322026][ T5069] vfs_write+0xa84/0xcb0 [ 56.326778][ T5069] ksys_write+0x1a0/0x2c0 [ 56.331616][ T5069] do_syscall_64+0xf5/0x240 [ 56.336632][ T5069] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.343033][ T5069] [ 56.343033][ T5069] -> #0 (&tree->tree_lock/1){+.+.}-{3:3}: [ 56.350933][ T5069] validate_chain+0x18cb/0x58e0 [ 56.356292][ T5069] __lock_acquire+0x1346/0x1fd0 [ 56.361649][ T5069] lock_acquire+0x1ed/0x550 [ 56.366657][ T5069] __mutex_lock+0x136/0xd70 [ 56.371665][ T5069] hfs_find_init+0x16e/0x1f0 [ 56.376772][ T5069] hfs_extend_file+0x31b/0x1450 [ 56.382143][ T5069] hfs_bmap_reserve+0xd9/0x400 [ 56.387414][ T5069] hfs_cat_create+0x1e0/0x970 [ 56.392600][ T5069] hfs_create+0x66/0xe0 [ 56.397263][ T5069] path_openat+0x1425/0x3240 [ 56.402361][ T5069] do_filp_open+0x235/0x490 [ 56.407371][ T5069] do_sys_openat2+0x13e/0x1d0 [ 56.412559][ T5069] __x64_sys_openat+0x247/0x2a0 [ 56.417922][ T5069] do_syscall_64+0xf5/0x240 [ 56.422936][ T5069] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.429339][ T5069] [ 56.429339][ T5069] other info that might help us debug this: [ 56.429339][ T5069] [ 56.439550][ T5069] Possible unsafe locking scenario: [ 56.439550][ T5069] [ 56.446983][ T5069] CPU0 CPU1 [ 56.452329][ T5069] ---- ---- [ 56.457677][ T5069] lock(&HFS_I(tree->inode)->extents_lock); [ 56.463646][ T5069] lock(&tree->tree_lock/1); [ 56.470836][ T5069] lock(&HFS_I(tree->inode)->extents_lock); [ 56.479326][ T5069] lock(&tree->tree_lock/1); [ 56.483997][ T5069] [ 56.483997][ T5069] *** DEADLOCK *** [ 56.483997][ T5069] [ 56.492122][ T5069] 4 locks held by syz-executor135/5069: [ 56.497651][ T5069] #0: ffff88804b170420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 56.506788][ T5069] #1: ffff88807cf90fa8 (&type->i_mutex_dir_key#7){+.+.}-{3:3}, at: path_openat+0x7d3/0x3240 [ 56.516962][ T5069] #2: ffff88804b1760b0 (&tree->tree_lock){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 56.526522][ T5069] #3: ffff88807cf90778 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1450 [ 56.537734][ T5069] [ 56.537734][ T5069] stack backtrace: [ 56.543608][ T5069] CPU: 0 PID: 5069 Comm: syz-executor135 Not tainted 6.9.0-rc6-syzkaller-00005-gb947cc5bf6d7 #0 [ 56.554004][ T5069] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 56.564043][ T5069] Call Trace: [ 56.567311][ T5069] [ 56.570232][ T5069] dump_stack_lvl+0x241/0x360 [ 56.574907][ T5069] ? __pfx_dump_stack_lvl+0x10/0x10 [ 56.580097][ T5069] ? print_circular_bug+0x130/0x1a0 [ 56.585294][ T5069] check_noncircular+0x36a/0x4a0 [ 56.590222][ T5069] ? __pfx___bfs+0x10/0x10 [ 56.594627][ T5069] ? __pfx_check_noncircular+0x10/0x10 [ 56.600127][ T5069] ? lockdep_lock+0x123/0x2b0 [ 56.604801][ T5069] ? _find_first_zero_bit+0xd4/0x100 [ 56.610092][ T5069] validate_chain+0x18cb/0x58e0 [ 56.614940][ T5069] ? __pfx_validate_chain+0x10/0x10 [ 56.620133][ T5069] ? mark_lock+0x9a/0x350 [ 56.624451][ T5069] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 56.630417][ T5069] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 56.636734][ T5069] ? mark_lock+0x9a/0x350 [ 56.641065][ T5069] __lock_acquire+0x1346/0x1fd0 [ 56.645908][ T5069] lock_acquire+0x1ed/0x550 [ 56.650402][ T5069] ? hfs_find_init+0x16e/0x1f0 [ 56.655162][ T5069] ? __pfx_lock_acquire+0x10/0x10 [ 56.660174][ T5069] ? __pfx___might_resched+0x10/0x10 [ 56.665451][ T5069] __mutex_lock+0x136/0xd70 [ 56.669939][ T5069] ? hfs_find_init+0x16e/0x1f0 [ 56.674698][ T5069] ? hfs_find_init+0x16e/0x1f0 [ 56.679454][ T5069] ? __pfx___mutex_lock+0x10/0x10 [ 56.684466][ T5069] ? trace_kmalloc+0x1f/0xd0 [ 56.689053][ T5069] ? __kmalloc+0x251/0x4a0 [ 56.693472][ T5069] hfs_find_init+0x16e/0x1f0 [ 56.698055][ T5069] hfs_extend_file+0x31b/0x1450 [ 56.702899][ T5069] ? __pfx_hfs_extend_file+0x10/0x10 [ 56.708170][ T5069] ? rcu_is_watching+0x15/0xb0 [ 56.712920][ T5069] ? trace_contention_end+0x3c/0x120 [ 56.718197][ T5069] ? __mutex_lock+0x2ef/0xd70 [ 56.722864][ T5069] ? hfs_find_init+0x16e/0x1f0 [ 56.727617][ T5069] ? __pfx___mutex_lock+0x10/0x10 [ 56.732629][ T5069] hfs_bmap_reserve+0xd9/0x400 [ 56.737389][ T5069] hfs_cat_create+0x1e0/0x970 [ 56.742057][ T5069] ? __pfx_hfs_cat_create+0x10/0x10 [ 56.747251][ T5069] ? _raw_spin_unlock+0x28/0x50 [ 56.752090][ T5069] ? hfs_new_inode+0x82d/0xa60 [ 56.756850][ T5069] hfs_create+0x66/0xe0 [ 56.761016][ T5069] ? __pfx_hfs_create+0x10/0x10 [ 56.765853][ T5069] path_openat+0x1425/0x3240 [ 56.770443][ T5069] ? __pfx_path_openat+0x10/0x10 [ 56.775373][ T5069] do_filp_open+0x235/0x490 [ 56.779867][ T5069] ? __pfx_do_filp_open+0x10/0x10 [ 56.784912][ T5069] ? _raw_spin_unlock+0x28/0x50 [ 56.789780][ T5069] ? alloc_fd+0x59d/0x640 [ 56.794102][ T5069] do_sys_openat2+0x13e/0x1d0 [ 56.798773][ T5069] ? __pfx_do_sys_openat2+0x10/0x10 [ 56.803971][ T5069] ? lockdep_hardirqs_on+0x99/0x150 [ 56.809165][ T5069] ? _raw_spin_unlock_irq+0x2e/0x50 [ 56.814352][ T5069] ? ptrace_notify+0x279/0x380 [ 56.819108][ T5069] __x64_sys_openat+0x247/0x2a0 [ 56.823953][ T5069] ? __pfx___x64_sys_openat+0x10/0x10 [ 56.829317][ T5069] ? do_syscall_64+0x102/0x240 [ 56.834074][ T5069] do_syscall_64+0xf5/0x240 [ 56.838569][ T5069] ? clear_bhb_loop+0x35/0x90 [ 56.843238][ T5069] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 56.849120][ T5069] RIP: 0033:0x7fa64a378a79 [ 56.853525][ T5069] 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 [ 56.873116][ T5069] RSP: 002b:00007fff3b478b88 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 56.881519][ T5069] RAX: ffffffffffffffda RBX: 00007fff3b478d58 RCX: 00007fa64a378a79 [ 56.889478][ T5069] RDX: 000000000000275a RSI: 0000000020000440 RDI: 00000000ffffff9c [ 56.897437][ T5069] RBP: 00007fa64a3eb610 R08: 00007fff3b478d58 R09: 00007fff3b478d58 [ 56.905396][ T5069] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 [ 56.913355][ T5069] R13: 00007fff3b478d48 R14: 0000000000000001 R15: 0000000000000001 [ 56.921320][ T5069]