]> git.baikalelectronics.ru Git - kernel.git/commit
s390/zcore: fix race when reading from hardware system area
authorAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 19 Jul 2022 05:16:33 +0000 (07:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:10 +0000 (14:24 +0200)
commita77c5a440bea818efcc5d37746420877254578be
treef4983acd7a115897cd3eda08821afb78d4009006
parent9165563b5e27443daf3b400f256b8273b54b1d49
s390/zcore: fix race when reading from hardware system area

[ Upstream commit 12a53f2fb83f2160369223e2e08dc888a75a1765 ]

Memory buffer used for reading out data from hardware system
area is not protected against concurrent access.

Reported-by: Matthew Wilcox <willy@infradead.org>
Fixes: 5db25acea036 ("[S390] zfcpdump support.")
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Tested-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Link: https://lore.kernel.org/r/e68137f0f9a0d2558f37becc20af18e2939934f6.1658206891.git.agordeev@linux.ibm.com
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/char/zcore.c