Re: [PATCH] ocfs2: fix lock acquisition order in refcounttree

Andrew Morton <[email protected]>
Newsgroups dev.linux.lists.ocfs2-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Mon, 14 Jul 2025 19:15:32 -0300 Diogo Jahchan Koike <[email protected]> wrote:

> Acquiring the locks in refcounttree should follow
> the ip_alloc --> ip_xattr ordering, as done by multiple
> code paths in ocfs2; otherwise, we risk an ABBA deadlock
> (i.e in the start transaction path).
> 
> Reported-by: [email protected]
> Closes: https://syzkaller.appspot.com/bug?extid=1fed2de07d8e11a3ec1b

But ocfs2_reflink() does

	down_write(&OCFS2_I(inode)->ip_xattr_sem);
	down_write(&OCFS2_I(inode)->ip_alloc_sem);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.