Commit f960b45
committed
s390/sclp: Fix SCCB present check
jira KERNEL-101
cve CVE-2025-39694
Rebuild_History Non-Buildable kernel-5.14.0-611.5.1.el9_7
commit-author Peter Oberparleiter <[email protected]>
commit 430fa71
Tracing code called by the SCLP interrupt handler contains early exits
if the SCCB address associated with an interrupt is NULL. This check is
performed after physical to virtual address translation.
If the kernel identity mapping does not start at address zero, the
resulting virtual address is never zero, so that the NULL checks won't
work. Subsequently this may result in incorrect accesses to the first
page of the identity mapping.
Fix this by introducing a function that handles the NULL case before
address translation.
Fixes: ada1da3 ("s390/sclp: sort out physical vs virtual pointers usage")
Cc: [email protected]
Reviewed-by: Alexander Gordeev <[email protected]>
Signed-off-by: Peter Oberparleiter <[email protected]>
Signed-off-by: Alexander Gordeev <[email protected]>
(cherry picked from commit 430fa71)
Signed-off-by: Jonathan Maple <[email protected]>1 parent 15172cc commit f960b45
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| |||
620 | 627 | | |
621 | 628 | | |
622 | 629 | | |
623 | | - | |
| 630 | + | |
624 | 631 | | |
625 | 632 | | |
626 | 633 | | |
| |||
659 | 666 | | |
660 | 667 | | |
661 | 668 | | |
662 | | - | |
| 669 | + | |
663 | 670 | | |
664 | 671 | | |
665 | 672 | | |
| |||
0 commit comments