loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. loop0: detected capacity change from 32768 to 64 (syz.0.0,5104,0):ocfs2_read_blocks:240 ERROR: status = -12 ===================================== WARNING: bad unlock balance detected! 6.11.0-syzkaller-05442-g932d2d1fcb2b #0 Not tainted ------------------------------------- syz.0.0/5104 is trying to release lock (&oi->ip_io_mutex) at: [] ocfs2_read_blocks+0x11c6/0x1620 fs/ocfs2/buffer_head_io.c:394 but there are no more locks to release! other info that might help us debug this: 8 locks held by syz.0.0/5104: #0: ffff8880402d6420 (sb_writers#11){.+.+}-{0:0}, at: mnt_want_write_file+0x5e/0x200 fs/namespace.c:559 #1: ffff88803f7ed100 (&sb->s_type->i_mutex_key#19){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #1: ffff88803f7ed100 (&sb->s_type->i_mutex_key#19){+.+.}-{3:3}, at: vfs_setxattr+0x1e1/0x430 fs/xattr.c:320 #2: ffff88803f7ece38 (&oi->ip_xattr_sem){++++}-{3:3}, at: ocfs2_xattr_set+0x633/0x1930 fs/ocfs2/xattr.c:3584 #3: ffff88803f7e6d80 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #3: ffff88803f7e6d80 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#3){+.+.}-{3:3}, at: ocfs2_reserve_suballoc_bits+0x192/0x4eb0 fs/ocfs2/suballoc.c:786 #4: ffff88803f7ea640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:815 [inline] #4: ffff88803f7ea640 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#4){+.+.}-{3:3}, at: ocfs2_reserve_local_alloc_bits+0x132/0x2870 fs/ocfs2/localalloc.c:636 #5: ffff8880402d6610 (sb_internal#2){.+.+}-{0:0}, at: ocfs2_xattr_set+0x1192/0x1930 fs/ocfs2/xattr.c:3644 #6: ffff88803d3568e8 (&journal->j_trans_barrier){.+.+}-{3:3}, at: ocfs2_start_trans+0x3be/0x700 fs/ocfs2/journal.c:350 #7: ffff888035552958 (jbd2_handle){++++}-{0:0}, at: start_this_handle+0x1e94/0x2110 fs/jbd2/transaction.c:448 stack backtrace: CPU: 0 UID: 0 PID: 5104 Comm: syz.0.0 Not tainted 6.11.0-syzkaller-05442-g932d2d1fcb2b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 print_unlock_imbalance_bug+0x25b/0x2d0 kernel/locking/lockdep.c:5260 __lock_release kernel/locking/lockdep.c:5499 [inline] lock_release+0x5cb/0xa30 kernel/locking/lockdep.c:5843 __mutex_unlock_slowpath+0xe2/0x750 kernel/locking/mutex.c:912 ocfs2_read_blocks+0x11c6/0x1620 fs/ocfs2/buffer_head_io.c:394 ocfs2_read_block fs/ocfs2/buffer_head_io.h:52 [inline] __ocfs2_xattr_set_value_outside fs/ocfs2/xattr.c:1382 [inline] ocfs2_xa_store_value+0x6f2/0xfe0 fs/ocfs2/xattr.c:2215 ocfs2_xa_set+0x1f53/0x2b40 fs/ocfs2/xattr.c:2259 ocfs2_xattr_block_set+0x46e/0x3390 fs/ocfs2/xattr.c:2986 __ocfs2_xattr_set_handle+0x67a/0x10a0 fs/ocfs2/xattr.c:3388 ocfs2_xattr_set+0x128c/0x1930 fs/ocfs2/xattr.c:3651 __vfs_setxattr+0x468/0x4a0 fs/xattr.c:200 __vfs_setxattr_noperm+0x12e/0x660 fs/xattr.c:234 vfs_setxattr+0x221/0x430 fs/xattr.c:321 do_setxattr fs/xattr.c:629 [inline] __do_sys_fsetxattr fs/xattr.c:710 [inline] __se_sys_fsetxattr+0x383/0x480 fs/xattr.c:686 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff4c857def9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff4c92e7038 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007ff4c8735f80 RCX: 00007ff4c857def9 RDX: 0000000020000080 RSI: 0000000020000000 RDI: 000000000000000b RBP: 00007ff4c85f0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000702 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff4c8735f80 R15: 00007ffcd22414b8 (syz.0.0,5104,0):__ocfs2_xattr_set_value_outside:1385 ERROR: status = -12 (syz.0.0,5104,0):ocfs2_xa_set:2261 ERROR: status = -12