Re: [PATCH] ocfs2: fix circular locking dependency in ocfs2_init_acl()

From: Andrew Morton

Date: Tue Aug 04 2026 - 19:46:09 EST


On Tue, 4 Aug 2026 14:36:02 +0800 Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx> wrote:

> > Additionally, remove the `ip_xattr_sem` acquisition from
> > `ocfs2_xattr_set_handle()`. This function is only used while initializing a
> > new inode that has not yet been inserted into the inode hash or attached to
> > a dentry, meaning there is no risk of concurrent access and the lock is
> > unnecessary.
> >
> > Fixes: 16c8d569f570 ("ocfs2/acl: use 'ip_xattr_sem' to protect getting extended attribute")
> > Assisted-by: Gemini:gemini-3.5-flash Gemini:gemini-3.1-pro-preview syzbot
> > Reported-by: syzbot+4007ab5229e732466d9f@xxxxxxxxxxxxxxxxxxxxxxxxx
> > Closes: https://syzkaller.appspot.com/bug?extid=4007ab5229e732466d9f
> > Link: https://syzkaller.appspot.com/ai_job?id=cc75363d-c672-499e-8fc5-44bcdc1cee39
> > Signed-off-by: Krystian Kaniewski <krystianmkaniewski@xxxxxxxxx>
>
> Reviewed-by: Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx>

Thanks. AI review might have found a pre-existing bug:
https://sashiko.dev/#/patchset/4094de06-9b69-4174-b2ee-08126dffc693@xxxxxxxxxxxxxxx