./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2205490252 <...> forked to background, child pid 5493 no interfaces have a carrier [ 59.209986][ T5494] 8021q: adding VLAN 0 to HW filter on device bond0 [ 59.232633][ T5494] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.156' (ED25519) to the list of known hosts. execve("./syz-executor2205490252", ["./syz-executor2205490252"], 0x7ffe1ea6e840 /* 10 vars */) = 0 brk(NULL) = 0x555569056000 brk(0x555569056d00) = 0x555569056d00 arch_prctl(ARCH_SET_FS, 0x555569056380) = 0 set_tid_address(0x555569056650) = 5828 set_robust_list(0x555569056660, 24) = 0 rseq(0x555569056ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2205490252", 4096) = 28 getrandom("\xa7\xa6\x83\x69\x1a\x51\xf6\xcb", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555569056d00 brk(0x555569077d00) = 0x555569077d00 brk(0x555569078000) = 0x555569078000 mprotect(0x7fd6083d0000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 executing program write(1, "executing program\n", 18) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd5ffe00000 write(3, "\x02\x02\x02\x02\x02\x02\x02\x02\x74\x68\x69\x73\x20\x69\x73\x20\x61\x6e\x20\x6f\x63\x66\x73\x32\x20\x76\x6f\x6c\x75\x6d\x65\x00\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02"..., 16777216) = 16777216 munmap(0x7fd5ffe00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file0", 0777) = 0 syzkaller login: [ 88.260747][ T5828] loop0: detected capacity change from 0 to 32768 [ 88.307708][ T5828] (syz-executor220,5828,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 88.323846][ T5828] (syz-executor220,5828,0):ocfs2_block_check_validate:402 ERROR: CRC32 failed: stored: 0xb3775c19, computed 0x2dd1c265. Applying ECC. [ 88.347309][ T5828] JBD2: Ignoring recovery information on journal mount("/dev/loop0", "./file0", "ocfs2", MS_RELATIME, "journal_async_commit,coherency=full,errors=continue,heartbeat=none,errors=continue,nointr,grpquota,") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 88.378015][ T5828] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. openat(AT_FDCWD, "cgroup.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 88.462028][ T5828] [ 88.464379][ T5828] ====================================================== [ 88.471390][ T5828] WARNING: possible circular locking dependency detected [ 88.478410][ T5828] 6.15.0-rc2-syzkaller-00404-g8560697b23dc #0 Not tainted [ 88.485525][ T5828] ------------------------------------------------------ [ 88.492531][ T5828] syz-executor220/5828 is trying to acquire lock: [ 88.498929][ T5828] ffff888074c08660 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 88.509560][ T5828] [ 88.509560][ T5828] but task is already holding lock: [ 88.516915][ T5828] ffff888074c086f8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xaa/0x350 [ 88.527554][ T5828] [ 88.527554][ T5828] which lock already depends on the new lock. [ 88.527554][ T5828] [ 88.537946][ T5828] [ 88.537946][ T5828] the existing dependency chain (in reverse order) is: [ 88.546948][ T5828] [ 88.546948][ T5828] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 88.554782][ T5828] lock_acquire+0x116/0x2f0 [ 88.559830][ T5828] down_read+0xb3/0xa50 [ 88.564514][ T5828] ocfs2_init_acl+0x39d/0x960 [ 88.569709][ T5828] ocfs2_mknod+0x1c09/0x2b30 [ 88.574813][ T5828] ocfs2_create+0x1ad/0x480 [ 88.579831][ T5828] path_openat+0x194b/0x35d0 [ 88.585009][ T5828] do_filp_open+0x284/0x4e0 [ 88.590047][ T5828] do_sys_openat2+0x12b/0x1d0 [ 88.595326][ T5828] __x64_sys_openat+0x249/0x2a0 [ 88.600781][ T5828] do_syscall_64+0xf3/0x210 [ 88.605805][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.612233][ T5828] [ 88.612233][ T5828] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 88.619550][ T5828] lock_acquire+0x116/0x2f0 [ 88.624568][ T5828] start_this_handle+0x1ee4/0x21a0 [ 88.630207][ T5828] jbd2__journal_start+0x2da/0x5d0 [ 88.635834][ T5828] jbd2_journal_start+0x29/0x40 [ 88.641211][ T5828] ocfs2_start_trans+0x3cd/0x710 [ 88.646682][ T5828] ocfs2_modify_bh+0xef/0x4d0 [ 88.651972][ T5828] ocfs2_local_read_info+0x15ab/0x1a10 [ 88.658032][ T5828] dquot_load_quota_sb+0x771/0xbd0 [ 88.663772][ T5828] dquot_load_quota_inode+0x323/0x610 [ 88.669680][ T5828] ocfs2_enable_quotas+0x16b/0x450 [ 88.675398][ T5828] ocfs2_fill_super+0x5cf1/0x74e0 [ 88.680942][ T5828] get_tree_bdev_flags+0x490/0x5c0 [ 88.686565][ T5828] vfs_get_tree+0x90/0x2b0 [ 88.691491][ T5828] do_new_mount+0x2cf/0xb70 [ 88.696504][ T5828] __se_sys_mount+0x38c/0x400 [ 88.701709][ T5828] do_syscall_64+0xf3/0x210 [ 88.706723][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.713135][ T5828] [ 88.713135][ T5828] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 88.721657][ T5828] lock_acquire+0x116/0x2f0 [ 88.726719][ T5828] down_read+0xb3/0xa50 [ 88.731403][ T5828] ocfs2_start_trans+0x3c2/0x710 [ 88.736877][ T5828] ocfs2_modify_bh+0xef/0x4d0 [ 88.742085][ T5828] ocfs2_local_read_info+0x15ab/0x1a10 [ 88.748073][ T5828] dquot_load_quota_sb+0x771/0xbd0 [ 88.753708][ T5828] dquot_load_quota_inode+0x323/0x610 [ 88.759600][ T5828] ocfs2_enable_quotas+0x16b/0x450 [ 88.765249][ T5828] ocfs2_fill_super+0x5cf1/0x74e0 [ 88.770971][ T5828] get_tree_bdev_flags+0x490/0x5c0 [ 88.776612][ T5828] vfs_get_tree+0x90/0x2b0 [ 88.781541][ T5828] do_new_mount+0x2cf/0xb70 [ 88.786560][ T5828] __se_sys_mount+0x38c/0x400 [ 88.791774][ T5828] do_syscall_64+0xf3/0x210 [ 88.796794][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.803202][ T5828] [ 88.803202][ T5828] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 88.810693][ T5828] lock_acquire+0x116/0x2f0 [ 88.815720][ T5828] ocfs2_start_trans+0x2bd/0x710 [ 88.821207][ T5828] ocfs2_truncate_file+0x69c/0x1560 [ 88.827011][ T5828] ocfs2_setattr+0x1894/0x1ef0 [ 88.832317][ T5828] notify_change+0xbca/0xe90 [ 88.837420][ T5828] do_truncate+0x222/0x310 [ 88.842349][ T5828] path_openat+0x2e4f/0x35d0 [ 88.847457][ T5828] do_filp_open+0x284/0x4e0 [ 88.852479][ T5828] do_sys_openat2+0x12b/0x1d0 [ 88.857673][ T5828] __x64_sys_openat+0x249/0x2a0 [ 88.863042][ T5828] do_syscall_64+0xf3/0x210 [ 88.868057][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.874461][ T5828] [ 88.874461][ T5828] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 88.882290][ T5828] validate_chain+0xa69/0x24e0 [ 88.887574][ T5828] __lock_acquire+0xad5/0xd80 [ 88.892766][ T5828] lock_acquire+0x116/0x2f0 [ 88.897787][ T5828] down_write+0x9c/0x220 [ 88.902548][ T5828] ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 88.909044][ T5828] ocfs2_truncate_file+0xe1d/0x1560 [ 88.914775][ T5828] ocfs2_setattr+0x1894/0x1ef0 [ 88.920061][ T5828] notify_change+0xbca/0xe90 [ 88.925164][ T5828] do_truncate+0x222/0x310 [ 88.930105][ T5828] path_openat+0x2e4f/0x35d0 [ 88.935223][ T5828] do_filp_open+0x284/0x4e0 [ 88.940250][ T5828] do_sys_openat2+0x12b/0x1d0 [ 88.945454][ T5828] __x64_sys_openat+0x249/0x2a0 [ 88.950827][ T5828] do_syscall_64+0xf3/0x210 [ 88.955856][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 88.962269][ T5828] [ 88.962269][ T5828] other info that might help us debug this: [ 88.962269][ T5828] [ 88.972486][ T5828] Chain exists of: [ 88.972486][ T5828] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 88.972486][ T5828] [ 88.985526][ T5828] Possible unsafe locking scenario: [ 88.985526][ T5828] [ 88.992970][ T5828] CPU0 CPU1 [ 88.998366][ T5828] ---- ---- [ 89.003744][ T5828] lock(&oi->ip_xattr_sem); [ 89.008340][ T5828] lock(jbd2_handle); [ 89.014935][ T5828] lock(&oi->ip_xattr_sem); [ 89.022048][ T5828] lock(&oi->ip_alloc_sem); [ 89.026640][ T5828] [ 89.026640][ T5828] *** DEADLOCK *** [ 89.026640][ T5828] [ 89.034792][ T5828] 3 locks held by syz-executor220/5828: [ 89.040340][ T5828] #0: ffff88807ed80420 (sb_writers#8){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 89.049601][ T5828] #1: ffff888074c089c0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20e/0x310 [ 89.059987][ T5828] #2: ffff888074c086f8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xaa/0x350 [ 89.071047][ T5828] [ 89.071047][ T5828] stack backtrace: [ 89.076967][ T5828] CPU: 1 UID: 0 PID: 5828 Comm: syz-executor220 Not tainted 6.15.0-rc2-syzkaller-00404-g8560697b23dc #0 PREEMPT(full) [ 89.076985][ T5828] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 [ 89.077000][ T5828] Call Trace: [ 89.077008][ T5828] [ 89.077014][ T5828] dump_stack_lvl+0x241/0x360 [ 89.077038][ T5828] ? __pfx_dump_stack_lvl+0x10/0x10 [ 89.077057][ T5828] ? __pfx__printk+0x10/0x10 [ 89.077076][ T5828] ? print_lock+0x171/0x1a0 [ 89.077098][ T5828] print_circular_bug+0x2e1/0x300 [ 89.077113][ T5828] check_noncircular+0x142/0x160 [ 89.077137][ T5828] validate_chain+0xa69/0x24e0 [ 89.077167][ T5828] __lock_acquire+0xad5/0xd80 [ 89.077188][ T5828] lock_acquire+0x116/0x2f0 [ 89.077206][ T5828] ? ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 89.077227][ T5828] down_write+0x9c/0x220 [ 89.077243][ T5828] ? ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 89.077260][ T5828] ? __pfx_down_write+0x10/0x10 [ 89.077276][ T5828] ? ocfs2_truncate_file+0xd47/0x1560 [ 89.077300][ T5828] ocfs2_try_remove_refcount_tree+0xbb/0x350 [ 89.077318][ T5828] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 89.077336][ T5828] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 89.077351][ T5828] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 89.077368][ T5828] ocfs2_truncate_file+0xe1d/0x1560 [ 89.077394][ T5828] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 89.077415][ T5828] ? do_raw_spin_unlock+0x13c/0x8b0 [ 89.077432][ T5828] ? _raw_spin_unlock+0x28/0x50 [ 89.077452][ T5828] ? ocfs2_inode_lock_tracker+0x46e/0x780 [ 89.077470][ T5828] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 89.077485][ T5828] ? ocfs2_rw_lock+0x142/0x260 [ 89.077499][ T5828] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 89.077513][ T5828] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 89.077537][ T5828] ocfs2_setattr+0x1894/0x1ef0 [ 89.077564][ T5828] ? __pfx_ocfs2_setattr+0x10/0x10 [ 89.077590][ T5828] ? __pfx_smack_inode_setattr+0x10/0x10 [ 89.077609][ T5828] ? current_time+0x27b/0x3b0 [ 89.077628][ T5828] ? evm_inode_setattr+0x1b2/0x7d0 [ 89.077650][ T5828] ? security_inode_setattr+0xdb/0x350 [ 89.077666][ T5828] ? __pfx_ocfs2_setattr+0x10/0x10 [ 89.077688][ T5828] notify_change+0xbca/0xe90 [ 89.077705][ T5828] do_truncate+0x222/0x310 [ 89.077719][ T5828] ? __pfx_do_truncate+0x10/0x10 [ 89.077740][ T5828] path_openat+0x2e4f/0x35d0 [ 89.077766][ T5828] ? stack_depot_save_flags+0x44/0x940 [ 89.077799][ T5828] ? kasan_save_track+0x51/0x80 [ 89.077814][ T5828] ? __pfx_path_openat+0x10/0x10 [ 89.077833][ T5828] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 89.077854][ T5828] do_filp_open+0x284/0x4e0 [ 89.077875][ T5828] ? __pfx_do_filp_open+0x10/0x10 [ 89.077894][ T5828] ? do_raw_spin_lock+0x151/0x370 [ 89.077921][ T5828] do_sys_openat2+0x12b/0x1d0 [ 89.077941][ T5828] ? __pfx_do_sys_openat2+0x10/0x10 [ 89.077959][ T5828] ? lockdep_hardirqs_on+0x9d/0x150 [ 89.077972][ T5828] ? _raw_spin_unlock_irq+0x2e/0x50 [ 89.077992][ T5828] ? ptrace_notify+0x282/0x390 [ 89.078013][ T5828] __x64_sys_openat+0x249/0x2a0 [ 89.078033][ T5828] ? __pfx___x64_sys_openat+0x10/0x10 [ 89.078057][ T5828] do_syscall_64+0xf3/0x210 [ 89.078072][ T5828] ? clear_bhb_loop+0x45/0xa0 [ 89.078087][ T5828] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 89.078101][ T5828] RIP: 0033:0x7fd6083586b9 [ 89.078118][ T5828] 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 openat(AT_FDCWD, "cgroup.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 5 exit_group(0) = ? +++ exited with 0 +++ [ 89.078129][ T5828] RSP: 002b: