From: Edward Adam Davis <eadavis@sina.com>
To: syzbot+743079a09058321247d8@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [jffs2?] possible deadlock in jffs2_do_clear_inode (2)
Date: Fri, 11 Sep 2026 19:41:08 +0800 [thread overview]
Message-ID: <20260911114108.855991-1-eadavis@sina.com> (raw)
In-Reply-To: <6aa351f4.6e6c5f9e.28f11f.003b.GAE@google.com>
From: Edward Aadm Davis <eadavis@sina.com>
#syz test: upstream 50d05c7c76c9
diff --git a/fs/jffs2/readinode.c b/fs/jffs2/readinode.c
index 1caabff9dc91..6d0c766fe801 100644
--- a/fs/jffs2/readinode.c
+++ b/fs/jffs2/readinode.c
@@ -1416,6 +1416,9 @@ void jffs2_do_clear_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f)
int deleted;
jffs2_xattr_delete_inode(c, f->inocache);
+ if (!f->inocache && !f->metadata)
+ return;
+
mutex_lock(&f->sem);
deleted = f->inocache && !f->inocache->pino_nlink;
next prev parent reply other threads:[~2026-09-11 11:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 0:00 syzbot
2026-09-07 20:14 ` syzbot
2026-09-11 0:57 ` syzbot
2026-09-11 3:03 ` Edward Adam Davis
2026-09-11 3:26 ` syzbot
2026-09-11 7:55 ` Edward Adam Davis
2026-09-11 8:19 ` syzbot
2026-09-11 8:28 ` Edward Adam Davis
2026-09-11 8:45 ` syzbot
2026-09-11 11:41 ` Edward Adam Davis [this message]
2026-09-11 12:18 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260911114108.855991-1-eadavis@sina.com \
--to=eadavis@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+743079a09058321247d8@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®