diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2024-04-15 07:52:13 +0200 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2024-04-17 17:26:34 +0200 |
commit | d111855ab7ffffc552f6a475259dc392f2319b6d (patch) | |
tree | 46dc36b5dfb422a2e494f095fae4e2a0327e877a /drivers/ata/pata_cs5530.c | |
parent | 6f76592ef63a1ffd8949f0828d24da7913ddb6d8 (diff) | |
download | linux-stable-d111855ab7ffffc552f6a475259dc392f2319b6d.tar.gz linux-stable-d111855ab7ffffc552f6a475259dc392f2319b6d.tar.bz2 linux-stable-d111855ab7ffffc552f6a475259dc392f2319b6d.zip |
s390/mm: Fix NULL pointer dereference
The recently added check to figure out if a fault happened on gmap ASCE
dereferences the gmap pointer in lowcore without checking that it is not
NULL. For all non-KVM processes the pointer is NULL, so that some value
from lowcore will be read. With the current layouts of struct gmap and
struct lowcore the read value (aka ASCE) is zero, so that this doesn't lead
to any observable bug; at least currently.
Fix this by adding the missing NULL pointer check.
Fixes: 64c3431808bd ("s390/entry: compare gmap asce to determine guest/host fault")
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'drivers/ata/pata_cs5530.c')
0 files changed, 0 insertions, 0 deletions