./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3558480047 <...> Warning: Permanently added '10.128.0.251' (ED25519) to the list of known hosts. execve("./syz-executor3558480047", ["./syz-executor3558480047"], 0x7ffc2bfce0a0 /* 10 vars */) = 0 brk(NULL) = 0x55556a599000 brk(0x55556a599d00) = 0x55556a599d00 arch_prctl(ARCH_SET_FS, 0x55556a599380) = 0 set_tid_address(0x55556a599650) = 5817 set_robust_list(0x55556a599660, 24) = 0 rseq(0x55556a599ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3558480047", 4096) = 28 getrandom("\x6d\x7a\xd3\xeb\x22\x14\xa7\x67", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55556a599d00 brk(0x55556a5bad00) = 0x55556a5bad00 brk(0x55556a5bb000) = 0x55556a5bb000 mprotect(0x7f4e9d6fc000, 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 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4e95200000 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(0x7f4e95200000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file1", 0777) = 0 [ 63.301179][ T5817] loop0: detected capacity change from 0 to 32768 [ 63.332956][ T5817] ======================================================= [ 63.332956][ T5817] WARNING: The mand mount option has been deprecated and mount("/dev/loop0", "./file1", "ocfs2", MS_MANDLOCK|MS_DIRSYNC|MS_NODIRATIME, "acl,heartbeat=none,errors=remount-ro,coherency=full,coherency=full,localflocks,errors=remount-ro,acl"...) = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = -1 EBUSY (Device or resource busy) [ 63.332956][ T5817] and is ignored by this kernel. Remove the mand [ 63.332956][ T5817] option from the mount to silence this warning. [ 63.332956][ T5817] ======================================================= [ 63.385383][ T5817] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. openat(AT_FDCWD, "./file1", O_RDWR|O_CREAT, 000) = 4 mount(NULL, NULL, NULL, 0, NULL) = -1 EFAULT (Bad address) [ 63.467610][ T5817] [ 63.469942][ T5817] ====================================================== [ 63.476933][ T5817] WARNING: possible circular locking dependency detected [ 63.483927][ T5817] 6.13.0-rc3-syzkaller-00073-geabcdba3ad40 #0 Not tainted [ 63.491006][ T5817] ------------------------------------------------------ [ 63.497996][ T5817] syz-executor355/5817 is trying to acquire lock: [ 63.504381][ T5817] ffff88805ebabf60 (&oi->ip_alloc_sem){+.+.}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 63.514993][ T5817] [ 63.514993][ T5817] but task is already holding lock: [ 63.522329][ T5817] ffff88805ebabff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 63.532907][ T5817] [ 63.532907][ T5817] which lock already depends on the new lock. [ 63.532907][ T5817] [ 63.543280][ T5817] [ 63.543280][ T5817] the existing dependency chain (in reverse order) is: [ 63.552269][ T5817] [ 63.552269][ T5817] -> #4 (&oi->ip_xattr_sem){++++}-{4:4}: [ 63.560059][ T5817] lock_acquire+0x1ed/0x550 [ 63.565061][ T5817] down_read+0xb1/0xa40 [ 63.569728][ T5817] ocfs2_init_acl+0x397/0x930 [ 63.574901][ T5817] ocfs2_mknod+0x1c05/0x2b30 [ 63.579985][ T5817] ocfs2_create+0x1ab/0x470 [ 63.584982][ T5817] path_openat+0x1c03/0x3590 [ 63.590071][ T5817] do_filp_open+0x27f/0x4e0 [ 63.595072][ T5817] do_sys_openat2+0x13e/0x1d0 [ 63.600242][ T5817] __x64_sys_openat+0x247/0x2a0 [ 63.605589][ T5817] do_syscall_64+0xf3/0x230 [ 63.610591][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.616985][ T5817] [ 63.616985][ T5817] -> #3 (jbd2_handle){.+.+}-{0:0}: [ 63.624257][ T5817] lock_acquire+0x1ed/0x550 [ 63.629260][ T5817] start_this_handle+0x1eb4/0x2110 [ 63.634874][ T5817] jbd2__journal_start+0x2da/0x5d0 [ 63.640481][ T5817] jbd2_journal_start+0x29/0x40 [ 63.645829][ T5817] ocfs2_start_trans+0x3c9/0x700 [ 63.651264][ T5817] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 63.657657][ T5817] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.664479][ T5817] ocfs2_mknod+0x143a/0x2b30 [ 63.669567][ T5817] ocfs2_create+0x1ab/0x470 [ 63.674564][ T5817] path_openat+0x1c03/0x3590 [ 63.679649][ T5817] do_filp_open+0x27f/0x4e0 [ 63.684669][ T5817] do_sys_openat2+0x13e/0x1d0 [ 63.689843][ T5817] __x64_sys_openat+0x247/0x2a0 [ 63.695205][ T5817] do_syscall_64+0xf3/0x230 [ 63.700208][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.706600][ T5817] [ 63.706600][ T5817] -> #2 (&journal->j_trans_barrier){.+.+}-{4:4}: [ 63.715088][ T5817] lock_acquire+0x1ed/0x550 [ 63.720088][ T5817] down_read+0xb1/0xa40 [ 63.724744][ T5817] ocfs2_start_trans+0x3be/0x700 [ 63.730180][ T5817] ocfs2_reserve_suballoc_bits+0x9f6/0x4e70 [ 63.736569][ T5817] ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 [ 63.743395][ T5817] ocfs2_mknod+0x143a/0x2b30 [ 63.748480][ T5817] ocfs2_create+0x1ab/0x470 [ 63.753477][ T5817] path_openat+0x1c03/0x3590 [ 63.758569][ T5817] do_filp_open+0x27f/0x4e0 [ 63.763569][ T5817] do_sys_openat2+0x13e/0x1d0 [ 63.768741][ T5817] __x64_sys_openat+0x247/0x2a0 [ 63.774106][ T5817] do_syscall_64+0xf3/0x230 [ 63.779109][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.785503][ T5817] [ 63.785503][ T5817] -> #1 (sb_internal#2){.+.+}-{0:0}: [ 63.792978][ T5817] lock_acquire+0x1ed/0x550 [ 63.797981][ T5817] ocfs2_start_trans+0x2b9/0x700 [ 63.803417][ T5817] ocfs2_truncate_file+0x69a/0x1560 [ 63.809128][ T5817] ocfs2_setattr+0x1890/0x1ef0 [ 63.814391][ T5817] notify_change+0xbca/0xe90 [ 63.819479][ T5817] do_truncate+0x220/0x310 [ 63.824393][ T5817] path_openat+0x2e1e/0x3590 [ 63.829481][ T5817] do_filp_open+0x27f/0x4e0 [ 63.834484][ T5817] do_sys_openat2+0x13e/0x1d0 [ 63.839662][ T5817] __x64_sys_open+0x225/0x270 [ 63.844833][ T5817] do_syscall_64+0xf3/0x230 [ 63.849836][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.856230][ T5817] [ 63.856230][ T5817] -> #0 (&oi->ip_alloc_sem){+.+.}-{4:4}: [ 63.864023][ T5817] validate_chain+0x18ef/0x5920 [ 63.869371][ T5817] __lock_acquire+0x1397/0x2100 [ 63.874716][ T5817] lock_acquire+0x1ed/0x550 [ 63.879714][ T5817] down_write+0x99/0x220 [ 63.884456][ T5817] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 63.890935][ T5817] ocfs2_truncate_file+0xe1b/0x1560 [ 63.896629][ T5817] ocfs2_setattr+0x1890/0x1ef0 [ 63.901890][ T5817] notify_change+0xbca/0xe90 [ 63.906980][ T5817] do_truncate+0x220/0x310 [ 63.911896][ T5817] path_openat+0x2e1e/0x3590 [ 63.916991][ T5817] do_filp_open+0x27f/0x4e0 [ 63.921993][ T5817] do_sys_openat2+0x13e/0x1d0 [ 63.927182][ T5817] __x64_sys_open+0x225/0x270 [ 63.932355][ T5817] do_syscall_64+0xf3/0x230 [ 63.937358][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 63.943751][ T5817] [ 63.943751][ T5817] other info that might help us debug this: [ 63.943751][ T5817] [ 63.953953][ T5817] Chain exists of: [ 63.953953][ T5817] &oi->ip_alloc_sem --> jbd2_handle --> &oi->ip_xattr_sem [ 63.953953][ T5817] [ 63.966959][ T5817] Possible unsafe locking scenario: [ 63.966959][ T5817] [ 63.974386][ T5817] CPU0 CPU1 [ 63.979727][ T5817] ---- ---- [ 63.985068][ T5817] lock(&oi->ip_xattr_sem); [ 63.989636][ T5817] lock(jbd2_handle); [ 63.996200][ T5817] lock(&oi->ip_xattr_sem); [ 64.003288][ T5817] lock(&oi->ip_alloc_sem); [ 64.007854][ T5817] [ 64.007854][ T5817] *** DEADLOCK *** [ 64.007854][ T5817] [ 64.015973][ T5817] 3 locks held by syz-executor355/5817: [ 64.021505][ T5817] #0: ffff88805dc44420 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 64.030633][ T5817] #1: ffff88805ebac2c0 (&sb->s_type->i_mutex_key#14){+.+.}-{4:4}, at: do_truncate+0x20c/0x310 [ 64.040992][ T5817] #2: ffff88805ebabff8 (&oi->ip_xattr_sem){++++}-{4:4}, at: ocfs2_try_remove_refcount_tree+0xa5/0x330 [ 64.052022][ T5817] [ 64.052022][ T5817] stack backtrace: [ 64.057905][ T5817] CPU: 0 UID: 0 PID: 5817 Comm: syz-executor355 Not tainted 6.13.0-rc3-syzkaller-00073-geabcdba3ad40 #0 [ 64.068988][ T5817] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024 [ 64.079025][ T5817] Call Trace: [ 64.082290][ T5817] [ 64.085200][ T5817] dump_stack_lvl+0x241/0x360 [ 64.089864][ T5817] ? __pfx_dump_stack_lvl+0x10/0x10 [ 64.095039][ T5817] ? __pfx__printk+0x10/0x10 [ 64.099611][ T5817] print_circular_bug+0x13a/0x1b0 [ 64.104616][ T5817] check_noncircular+0x36a/0x4a0 [ 64.109534][ T5817] ? __pfx_check_noncircular+0x10/0x10 [ 64.114973][ T5817] ? lockdep_lock+0x123/0x2b0 [ 64.119627][ T5817] validate_chain+0x18ef/0x5920 [ 64.124477][ T5817] ? __pfx_validate_chain+0x10/0x10 [ 64.129673][ T5817] ? do_sys_openat2+0x13e/0x1d0 [ 64.134510][ T5817] ? do_syscall_64+0xf3/0x230 [ 64.139169][ T5817] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.145227][ T5817] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 64.151228][ T5817] ? mark_lock+0x9a/0x360 [ 64.155538][ T5817] __lock_acquire+0x1397/0x2100 [ 64.160373][ T5817] lock_acquire+0x1ed/0x550 [ 64.164856][ T5817] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 64.170998][ T5817] ? __pfx_lock_acquire+0x10/0x10 [ 64.176012][ T5817] ? __pfx___might_resched+0x10/0x10 [ 64.181284][ T5817] ? ocfs2_truncate_file+0xd45/0x1560 [ 64.186636][ T5817] ? __pfx_lock_release+0x10/0x10 [ 64.191638][ T5817] down_write+0x99/0x220 [ 64.195859][ T5817] ? ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 64.202000][ T5817] ? __pfx_down_write+0x10/0x10 [ 64.206830][ T5817] ocfs2_try_remove_refcount_tree+0xb6/0x330 [ 64.212804][ T5817] ? __pfx_ocfs2_try_remove_refcount_tree+0x10/0x10 [ 64.219384][ T5817] ? ocfs2_metadata_cache_get_super+0x43/0x80 [ 64.225432][ T5817] ? ocfs2_inode_cache_get_super+0xd/0x40 [ 64.231136][ T5817] ocfs2_truncate_file+0xe1b/0x1560 [ 64.236316][ T5817] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 64.242020][ T5817] ? __pfx_ocfs2_truncate_file+0x10/0x10 [ 64.247642][ T5817] ? do_raw_spin_unlock+0x13c/0x8b0 [ 64.252827][ T5817] ? __asan_memset+0x23/0x50 [ 64.257397][ T5817] ? _raw_spin_unlock+0x28/0x50 [ 64.262230][ T5817] ? ocfs2_inode_lock_tracker+0x45a/0x760 [ 64.267931][ T5817] ? __pfx_ocfs2_inode_lock_tracker+0x10/0x10 [ 64.273976][ T5817] ? ocfs2_rw_lock+0x13e/0x260 [ 64.278747][ T5817] ? __pfx_ocfs2_rw_lock+0x10/0x10 [ 64.283836][ T5817] ? setattr_prepare+0x1f5/0xb20 [ 64.288755][ T5817] ? jbd2_journal_begin_ordered_truncate+0xc0/0x160 [ 64.295326][ T5817] ocfs2_setattr+0x1890/0x1ef0 [ 64.300071][ T5817] ? __pfx_ocfs2_setattr+0x10/0x10 [ 64.305163][ T5817] ? __pfx_smack_inode_setattr+0x10/0x10 [ 64.310780][ T5817] ? current_time+0x282/0x3c0 [ 64.315435][ T5817] ? evm_inode_setattr+0x1b2/0x7d0 [ 64.320526][ T5817] ? security_inode_setattr+0xdb/0x350 [ 64.325963][ T5817] ? __pfx_ocfs2_setattr+0x10/0x10 [ 64.331049][ T5817] notify_change+0xbca/0xe90 [ 64.335621][ T5817] do_truncate+0x220/0x310 [ 64.340019][ T5817] ? __pfx_do_truncate+0x10/0x10 [ 64.344958][ T5817] path_openat+0x2e1e/0x3590 [ 64.349532][ T5817] ? __pfx_path_openat+0x10/0x10 [ 64.354449][ T5817] do_filp_open+0x27f/0x4e0 [ 64.358930][ T5817] ? __pfx_do_filp_open+0x10/0x10 [ 64.363933][ T5817] ? do_raw_spin_lock+0x14f/0x370 [ 64.368943][ T5817] do_sys_openat2+0x13e/0x1d0 [ 64.373597][ T5817] ? __pfx_do_sys_openat2+0x10/0x10 [ 64.378772][ T5817] ? lockdep_hardirqs_on+0x99/0x150 [ 64.383952][ T5817] ? _raw_spin_unlock_irq+0x2e/0x50 [ 64.389129][ T5817] ? ptrace_notify+0x279/0x380 [ 64.393883][ T5817] __x64_sys_open+0x225/0x270 [ 64.398570][ T5817] ? __pfx___x64_sys_open+0x10/0x10 [ 64.403749][ T5817] ? do_syscall_64+0x100/0x230 [ 64.408496][ T5817] do_syscall_64+0xf3/0x230 [ 64.412983][ T5817] ? clear_bhb_loop+0x35/0x90 [ 64.417639][ T5817] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.423526][ T5817] RIP: 0033:0x7f4e9d6856b9 [ 64.427926][ T5817] 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 [ 64.447510][ T5817] RSP: 002b:00007ffe97e9a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 64.455901][ T5817] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f4e9d6856b9 [ 64.463851][ T5817] RDX: 0000000000000006 RSI: 000000000014927e RDI: 00000000200000c0 open("./file1", O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_LARGEFILE|O_NOATIME|0x3c, 006) = 5 exit_group(0) = ? +++ exited with 0 +++ [