diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-10-28 12:48:24 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-11-04 14:14:17 +0100 |
| commit | 2022f170e5655c40b93ed98629f7d0adb98cea49 (patch) | |
| tree | 05f4c3c0418a600e1fc0f68ae1c3915475cf7a0d /kernel/debug | |
| parent | c0eadd2e06e52563cae2b80491e56eb9712eb727 (diff) | |
misc: ibmvmc: initialize HMC state before device registration
misc_register() exposes the IBM VMC device before the HMC state and
spinlocks are initialized. A userspace operation racing module
initialization can therefore access an HMC through an uninitialized
spinlock.
Initialize all HMC state before registering the misc device.
Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)")
Cc: stable <stable@kernel.org>
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Link: https://patch.msgid.link/20261028044828.96177-5-yaojiale02@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
