From: Markus Elfring <Markus.Elfring@web.de>
To: Gui-Dong Han <hanguidong02@gmail.com>, linux-media@vger.kernel.org
Cc: stable@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
Jia-Ju Bai <baijiaju1990@gmail.com>,
Hans Verkuil <hverkuil+cisco@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: Re: [PATCH v2] media: dvb_demux: fix potential TOCTOU race conditions
Date: Tue, 20 Jan 2026 13:38:33 +0100 [thread overview]
Message-ID: <88dbfb85-571a-4f65-8879-16972dd87bbd@web.de> (raw)
In-Reply-To: <20260120121105.8959-1-hanguidong02@gmail.com>
…
> Fix this by extending the lock scope.
…
How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.19-rc5/source/include/linux/mutex.h#L253
> This possible bug was found by our experimental static analysis tool,
> which analyzes lock usage to detect TOCTOU issues.
* Do you refer to any other source code analysis approach than LR-Miner?
* Will any additional background information become more helpful here?
Regards,
Markus
next prev parent reply other threads:[~2026-01-20 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-20 12:11 Gui-Dong Han
2026-01-20 12:38 ` Markus Elfring [this message]
2026-01-20 12:46 ` Gui-Dong Han
2026-01-20 13:20 ` Greg KH
2026-02-07 14:10 ` Gui-Dong Han
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=88dbfb85-571a-4f65-8879-16972dd87bbd@web.de \
--to=markus.elfring@web.de \
--cc=baijiaju1990@gmail.com \
--cc=hanguidong02@gmail.com \
--cc=hverkuil+cisco@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=stable@vger.kernel.org \
/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®