mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] ocfs2: possible deadlock in ocfs2_write_begin_nolock on v7.2-rc3
@ 2026-09-03  6:51 CJ
  2026-09-04  3:02 ` Joseph Qi
  0 siblings, 1 reply; 3+ messages in thread
From: CJ @ 2026-09-03  6:51 UTC (permalink / raw)
  To: mark, jlbec, joseph.qi
  Cc: ocfs2-devel, linux-kernel, syzbot+1782a3a587bc53dc10cf



Hi,

I am reporting that possible deadlock in ocfs2_write_begin_nolock remains
reproducible with a migrated syzkaller reproducer on Linux 7.2-rc3. The
tested HEAD commit is a13c140cc289c0b7b3770bce5b3ad42ab35074aa.

The reproducer mounts a crafted OCFS2 image and performs file and xattr
operations that enter the buffered write path.

Lockdep reports a circular dependency when ocfs2_write_begin_nolock() starts
a transaction while the inode allocation semaphore is already held. The
reverse dependency is established through OCFS2 refcount-tree and xattr
handling.

This looks like an inconsistent lock ordering between the inode allocation
semaphore and the filesystem transaction lock in the OCFS2 write path.

This issue was previously reported at:

https://syzkaller.appspot.com/bug?extid=1782a3a587bc53dc10cf

Reproducer:

syz reproducer: https://pastebin.com/raw/Ch9E7gAi

console output: https://pastebin.com/raw/02Zj2gLb
kernel config: https://pastebin.com/raw/RLSmRk5j
Kernel:

HEAD commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
git tree: torvalds/linux
kernel version: 7.2.0-rc3 #1 PREEMPT(full)
tested tag: v7.2-rc3

Let me know if you need more details or testing.

Best regards,
Xianying

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] ocfs2: possible deadlock in ocfs2_write_begin_nolock on v7.2-rc3
  2026-09-03  6:51 [BUG] ocfs2: possible deadlock in ocfs2_write_begin_nolock on v7.2-rc3 CJ
@ 2026-09-04  3:02 ` Joseph Qi
  2026-09-04  6:57   ` Joseph Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Joseph Qi @ 2026-09-04  3:02 UTC (permalink / raw)
  To: CJ; +Cc: mark, jlbec, ocfs2-devel, linux-kernel, syzbot+1782a3a587bc53dc10cf

Seems you posted into a stale mail list.

+cc ocfs2-devel@lists.linux.dev

On 9/3/26 2:51 PM, CJ wrote:
> 
> 
> Hi,
> 
> I am reporting that possible deadlock in ocfs2_write_begin_nolock remains
> reproducible with a migrated syzkaller reproducer on Linux 7.2-rc3. The
> tested HEAD commit is a13c140cc289c0b7b3770bce5b3ad42ab35074aa.
> 
> The reproducer mounts a crafted OCFS2 image and performs file and xattr
> operations that enter the buffered write path.
> 
> Lockdep reports a circular dependency when ocfs2_write_begin_nolock() starts
> a transaction while the inode allocation semaphore is already held. The
> reverse dependency is established through OCFS2 refcount-tree and xattr
> handling.
> 
> This looks like an inconsistent lock ordering between the inode allocation
> semaphore and the filesystem transaction lock in the OCFS2 write path.
> 
> This issue was previously reported at:
> 
> https://syzkaller.appspot.com/bug?extid=1782a3a587bc53dc10cf
> 
> Reproducer:
> 
> syz reproducer: https://pastebin.com/raw/Ch9E7gAi
> 
> console output: https://pastebin.com/raw/02Zj2gLb
> kernel config: https://pastebin.com/raw/RLSmRk5j
> Kernel:
> 
> HEAD commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
> git tree: torvalds/linux
> kernel version: 7.2.0-rc3 #1 PREEMPT(full)
> tested tag: v7.2-rc3
> 
> Let me know if you need more details or testing.
> 
> Best regards,
> Xianying


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG] ocfs2: possible deadlock in ocfs2_write_begin_nolock on v7.2-rc3
  2026-09-04  3:02 ` Joseph Qi
@ 2026-09-04  6:57   ` Joseph Qi
  0 siblings, 0 replies; 3+ messages in thread
From: Joseph Qi @ 2026-09-04  6:57 UTC (permalink / raw)
  To: CJ; +Cc: mark, jlbec, linux-kernel, syzbot+1782a3a587bc53dc10cf, ocfs2-devel

It seems has been fixed in latest kernel, please confirm.

Thanks,
Joseph

On 9/4/26 11:02 AM, Joseph Qi wrote:
> Seems you posted into a stale mail list.
> 
> +cc ocfs2-devel@lists.linux.dev
> 
> On 9/3/26 2:51 PM, CJ wrote:
>>
>>
>> Hi,
>>
>> I am reporting that possible deadlock in ocfs2_write_begin_nolock remains
>> reproducible with a migrated syzkaller reproducer on Linux 7.2-rc3. The
>> tested HEAD commit is a13c140cc289c0b7b3770bce5b3ad42ab35074aa.
>>
>> The reproducer mounts a crafted OCFS2 image and performs file and xattr
>> operations that enter the buffered write path.
>>
>> Lockdep reports a circular dependency when ocfs2_write_begin_nolock() starts
>> a transaction while the inode allocation semaphore is already held. The
>> reverse dependency is established through OCFS2 refcount-tree and xattr
>> handling.
>>
>> This looks like an inconsistent lock ordering between the inode allocation
>> semaphore and the filesystem transaction lock in the OCFS2 write path.
>>
>> This issue was previously reported at:
>>
>> https://syzkaller.appspot.com/bug?extid=1782a3a587bc53dc10cf
>>
>> Reproducer:
>>
>> syz reproducer: https://pastebin.com/raw/Ch9E7gAi
>>
>> console output: https://pastebin.com/raw/02Zj2gLb
>> kernel config: https://pastebin.com/raw/RLSmRk5j
>> Kernel:
>>
>> HEAD commit: a13c140cc289c0b7b3770bce5b3ad42ab35074aa
>> git tree: torvalds/linux
>> kernel version: 7.2.0-rc3 #1 PREEMPT(full)
>> tested tag: v7.2-rc3
>>
>> Let me know if you need more details or testing.
>>
>> Best regards,
>> Xianying
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-04  6:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03  6:51 [BUG] ocfs2: possible deadlock in ocfs2_write_begin_nolock on v7.2-rc3 CJ
2026-09-04  3:02 ` Joseph Qi
2026-09-04  6:57   ` Joseph Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®