summaryrefslogtreecommitdiff
path: root/kernel/debug/debug_core.c
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-10-28 12:48:25 +0800
committerAlexander Gordeev <agordeev@linux.ibm.com>2026-11-05 17:54:25 +0100
commit64ee7f863655e67f26947420516daba4e232675d (patch)
tree995638adfbae2887a70a7f57982c41c3bd09d801 /kernel/debug/debug_core.c
parentf3ebe20a4898708bd9617b7eeea0c8c4f66724cb (diff)
s390/dcssblk: Initialize device semaphore before sysfs registration
device_create_file() makes the add and remove attributes writable before the device list semaphore is initialized. A sysfs write racing module initialization can therefore acquire an uninitialized rwsem. Initialize the semaphore before registering the root device and its attributes. [hca@linux.ibm.com: Use DECLARE_RWSEM() instead of moving init_rwsem()] Cc: stable@vger.kernel.org Acked-by: Alexander Gordeev <agordeev@linux.ibm.com> Signed-off-by: Jiale Yao <yaojiale02@163.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions