From: Andreas Hindborg <a.hindborg@kernel.org>
To: Jiale Yao <yaojiale02@163.com>, Boqun Feng <boqun@kernel.org>,
Jens Axboe <axboe@kernel.dk>,
Daniel Almeida <daniel.almeida@collabora.com>,
Alice Ryhl <aliceryhl@google.com>,
linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Jiale Yao <jiale.yao@example.com>, Jiale Yao <yaojiale02@163.com>
Subject: Re: [PATCH] rnull: serialize configfs updates with power changes
Date: Tue, 20 Oct 2026 17:03:44 +0200 [thread overview]
Message-ID: <87cxt4za5r.fsf@t14s.mail-host-address-is-not-set> (raw)
In-Reply-To: <20261019095807.1906316-1-yaojiale02@163.com>
"Jiale Yao" <yaojiale02@163.com> writes:
> From: Jiale Yao <jiale.yao@example.com>
>
> The configuration stores check whether the device is powered before
> parsing the new value, then take the mutex again to update the field.
> A concurrent power-on can complete between these lock acquisitions,
> allowing a live device configuration to be changed.
>
> Parse the input before taking the mutex, then check powered and update
> the configuration while holding the same lock.
>
> Fixes: d969d504bc13 ("rnull: enable configuration via `configfs`")
> Signed-off-by: Jiale Yao <yaojiale02@163.com>
I think all of these were fixed last cycle [1].
Best regards,
Andreas Hindborg
[1] https://lore.kernel.org/all/20260908200845.405112-1-qingxiao@tamu.edu/
prev parent reply other threads:[~2026-10-20 15:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <uGK5kP3Fr_s7fJcoFfMqR0HjR2qR0Eb1RCi3tOPqNOsRa1xuQPbjmLt2WXfcTWXV9pO0_tKKFz8ciXC_W8ObyQ==@protonmail.internalid>
2026-10-19 9:58 ` Jiale Yao
2026-10-20 15:03 ` Andreas Hindborg [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=87cxt4za5r.fsf@t14s.mail-host-address-is-not-set \
--to=a.hindborg@kernel.org \
--cc=aliceryhl@google.com \
--cc=axboe@kernel.dk \
--cc=boqun@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=jiale.yao@example.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=yaojiale02@163.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®