From: Jiale Yao <yaojiale02@163.com>
To: Justin Sanders <justin@coraid.com>, Jens Axboe <axboe@kernel.dk>,
Ioana Ciornei <ioana.ciornei@nxp.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Wei Liu <wei.liu@kernel.org>, Dexuan Cui <decui@microsoft.com>,
Brad Warrum <bwarrum@linux.ibm.com>,
Ritu Agarwal <rituagar@linux.ibm.com>,
Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>,
Alexander Gordeev <agordeev@linux.ibm.com>,
Christian Borntraeger <borntraeger@linux.ibm.com>,
Sven Schnelle <svens@linux.ibm.com>,
Wim Van Sebroeck <wim@linux-watchdog.org>,
Guenter Roeck <linux@roeck-us.net>,
Laurentiu Tudor <laurentiu.tudor@nxp.com>,
Anirudh Rayabharam <anrayabh@linux.microsoft.com>,
Mukesh Rathor <mrathor@linux.microsoft.com>,
Muminul Islam <muislam@microsoft.com>,
Nuno Das Neves <nunodasneves@linux.microsoft.com>,
Steven Royer <seroyer@linux.vnet.ibm.com>,
Adam Reznechek <adreznec@linux.vnet.ibm.com>,
"Bryant G. Ly" <bryantly@linux.vnet.ibm.com>,
Randy Dunlap <rdunlap@infradead.org>,
Martin Schwidefsky <schwidefsky@de.ibm.com>,
Gerald Schaefer <gerald.schaefer@linux.ibm.com>,
Florian Fainelli <florian.fainelli@telecomint.eu>,
linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org, linux-hyperv@vger.kernel.org,
linux-s390@vger.kernel.org, linux-watchdog@vger.kernel.org
Subject: [PATCH 0/6] Initialize device state before userspace registration
Date: Wed, 28 Oct 2026 12:48:20 +0800 [thread overview]
Message-ID: <20261028044828.96177-1-yaojiale02@163.com> (raw)
Several drivers register character devices or sysfs attributes before
initializing synchronization objects and related state used by their
userspace entry points. Registration makes those entry points immediately
available, so a concurrent access can reach partially initialized state.
Move each initialization ahead of the corresponding registration. The
patches are independent and cover AoE, fsl-mc, MSHV, IBM VMC, DCSSBLK,
and the RDC321x watchdog.
Jiale Yao (6):
aoe: initialize error message synchronization before registration
bus: fsl-mc: initialize UAPI state before device registration
Drivers: hv: initialize partition table before device registration
misc: ibmvmc: initialize HMC state before device registration
s390/dcssblk: initialize device semaphore before sysfs registration
watchdog: rdc321x: initialize device state before registration
drivers/block/aoe/aoechr.c | 6 +++---
drivers/bus/fsl-mc/fsl-mc-uapi.c | 6 ++----
drivers/hv/mshv_root_main.c | 6 +++---
drivers/misc/ibmvmc.c | 16 ++++++++--------
drivers/s390/block/dcssblk.c | 3 ++-
drivers/watchdog/rdc321x_wdt.c | 12 ++++++------
6 files changed, 24 insertions(+), 25 deletions(-)
--
2.34.1
next reply other threads:[~2026-10-28 4:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 4:48 Jiale Yao [this message]
2026-10-28 4:48 ` [PATCH 1/6] aoe: initialize error message synchronization before registration Jiale Yao
2026-10-28 4:48 ` [PATCH 2/6] bus: fsl-mc: initialize UAPI state before device registration Jiale Yao
2026-10-28 4:48 ` [PATCH 3/6] Drivers: hv: initialize partition table " Jiale Yao
2026-10-28 4:48 ` [PATCH 4/6] misc: ibmvmc: initialize HMC state " Jiale Yao
2026-10-28 9:25 ` Arnd Bergmann
2026-10-28 10:05 ` Greg Kroah-Hartman
2026-10-28 4:48 ` [PATCH 5/6] s390/dcssblk: initialize device semaphore before sysfs registration Jiale Yao
2026-10-28 7:03 ` Heiko Carstens
2026-10-28 4:48 ` [PATCH 6/6] watchdog: rdc321x: initialize device state before registration Jiale Yao
2026-10-28 14:53 ` Guenter Roeck
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=20261028044828.96177-1-yaojiale02@163.com \
--to=yaojiale02@163.com \
--cc=adreznec@linux.vnet.ibm.com \
--cc=agordeev@linux.ibm.com \
--cc=anrayabh@linux.microsoft.com \
--cc=arnd@arndb.de \
--cc=axboe@kernel.dk \
--cc=borntraeger@linux.ibm.com \
--cc=bryantly@linux.vnet.ibm.com \
--cc=bwarrum@linux.ibm.com \
--cc=decui@microsoft.com \
--cc=florian.fainelli@telecomint.eu \
--cc=gerald.schaefer@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=gregkh@linuxfoundation.org \
--cc=haiyangz@microsoft.com \
--cc=hca@linux.ibm.com \
--cc=ioana.ciornei@nxp.com \
--cc=justin@coraid.com \
--cc=laurentiu.tudor@nxp.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mrathor@linux.microsoft.com \
--cc=muislam@microsoft.com \
--cc=nunodasneves@linux.microsoft.com \
--cc=rdunlap@infradead.org \
--cc=rituagar@linux.ibm.com \
--cc=schwidefsky@de.ibm.com \
--cc=seroyer@linux.vnet.ibm.com \
--cc=svens@linux.ibm.com \
--cc=wei.liu@kernel.org \
--cc=wim@linux-watchdog.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®