diff options
| author | Mikhail Zaslonko <zaslonko@linux.ibm.com> | 2026-09-03 15:07:33 +0200 |
|---|---|---|
| committer | Vasily Gorbik <gor@linux.ibm.com> | 2026-09-08 15:53:40 +0200 |
| commit | 0945285e6cd67ee87e9313fb10221aba5bd69c6a (patch) | |
| tree | efc7b65b9a10cd1d624b57e47baf6b23d9b4078a /scripts/Makefile.thinlto | |
| parent | 22d4210bf988047bd30803cd6ef5177f113e4004 (diff) | |
| download | linux-0945285e6cd67ee87e9313fb10221aba5bd69c6a.tar.gz linux-0945285e6cd67ee87e9313fb10221aba5bd69c6a.zip | |
s390/debug: Fix race between debug area resize and event logging
Trace functions check for non-NULL id->areas without lock to minimize
overhead. This opens a race window where a NULL pointer dereference
occurs if id->areas is set to NULL (e.g. via echo 0 > ../pages) after
the check and before id->lock is taken.
Fix this by rechecking id->areas under lock.
Signed-off-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
