From: "Jörn Engel" <joern@barelysecure.org>
To: Chris Roy <iam@thechris.in>
Cc: Greg KH <gregkh@linuxfoundation.org>,
syzbot <syzbot+7cab6a19619f1b8efc00@syzkaller.appspotmail.com>,
dakr@kernel.org, driver-core@lists.linux.dev,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
rafael@kernel.org, syzkaller-bugs@googlegroups.com,
linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com,
richard@nod.at, vigneshr@ti.com, joern@lazybastard.org
Subject: Re: [syzbot] [fs?] possible deadlock in ovl_create_object (2)
Date: Thu, 17 Sep 2026 11:15:53 -0700 [thread overview]
Message-ID: <aqwuWWMwdIcx3704@cashel.logfs.org> (raw)
In-Reply-To: <CAE2Bdm14hif17B8RTAE+PhWEps5Fzh=WPurZeSNp9C6TqCKumg@mail.gmail.com>
On Thu, Sep 17, 2026 at 01:28:22PM +0530, Chris Roy wrote:
>
> drivers/mtd/devices/block2mtd.c | 118 ++++++++++++++++++++-----
> 1 file changed, 98 insertions(+), 20 deletions(-)
[...]
> /* Static info about the MTD, used in cleanup_module */
> static LIST_HEAD(blkmtd_device_list);
> +/* Protects blkmtd_device_list and early-boot paramline updates */
> +static DEFINE_MUTEX(block2mtd_mutex);
> +static struct workqueue_struct *block2mtd_wq;
This is just awful taste. You are inside a file called "block2mtd".
The prefix to the mutex an workqueue add absolutely nothing. Calling
them just plain "mutex" and "wq" would have been a better choice.
Good names should tell the human reader something. What is the mutex
protecting? What is the purpose of the workqueue? Pick a name that
gives us some information like that, please!
You seem to have used AI to write this code, so the bad name choice was
presumably also done by AI. But you are still associating your own good
name with the code. You should try not to harm your good name by
letting things like this slide through unchallenged.
Jörn
--
Do not stop an army on its way home.
-- Sun Tzu
prev parent reply other threads:[~2026-09-17 18:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-09 15:19 syzbot
2026-09-12 13:12 ` syzbot
2026-09-16 19:48 ` Chris Roy
2026-09-16 21:37 ` Chris Roy
2026-09-16 21:52 ` syzbot
2026-09-17 6:44 ` Chris Roy
2026-09-17 6:59 ` syzbot
2026-09-17 7:33 ` Greg KH
2026-09-17 7:58 ` Chris Roy
2026-09-17 8:13 ` syzbot
2026-09-17 18:15 ` Jörn Engel [this message]
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=aqwuWWMwdIcx3704@cashel.logfs.org \
--to=joern@barelysecure.org \
--cc=dakr@kernel.org \
--cc=driver-core@lists.linux.dev \
--cc=gregkh@linuxfoundation.org \
--cc=iam@thechris.in \
--cc=joern@lazybastard.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=rafael@kernel.org \
--cc=richard@nod.at \
--cc=syzbot+7cab6a19619f1b8efc00@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=vigneshr@ti.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®