Commit 19d6c5b
Claudio Imbrenda
KVM: s390: vsie: Fix unshadowing while shadowing
If shadowing causes the shadow gmap to get unshadowed, exit early to
prevent an attempt to dereference the parent pointer, which at this
point is NULL.
Opportunistically add some more checks to prevent NULL parents.
Fixes: a2c17f9 ("KVM: s390: New gmap code")
Fixes: e5f98a6 ("KVM: s390: Add some helper functions needed for vSIE")
Fixes: e38c884 ("KVM: s390: Switch to new gmap")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>1 parent 0ec456b commit 19d6c5b
2 files changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1449 | 1449 | | |
1450 | 1450 | | |
1451 | 1451 | | |
| 1452 | + | |
| 1453 | + | |
1452 | 1454 | | |
1453 | 1455 | | |
1454 | 1456 | | |
| |||
1476 | 1478 | | |
1477 | 1479 | | |
1478 | 1480 | | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
1479 | 1484 | | |
1480 | 1485 | | |
1481 | 1486 | | |
| |||
1487 | 1492 | | |
1488 | 1493 | | |
1489 | 1494 | | |
| 1495 | + | |
| 1496 | + | |
1490 | 1497 | | |
1491 | 1498 | | |
1492 | 1499 | | |
| |||
1531 | 1538 | | |
1532 | 1539 | | |
1533 | 1540 | | |
| 1541 | + | |
| 1542 | + | |
1534 | 1543 | | |
1535 | 1544 | | |
1536 | 1545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1160 | 1160 | | |
1161 | 1161 | | |
1162 | 1162 | | |
| 1163 | + | |
1163 | 1164 | | |
1164 | 1165 | | |
1165 | 1166 | | |
1166 | 1167 | | |
1167 | 1168 | | |
1168 | 1169 | | |
1169 | 1170 | | |
1170 | | - | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
1171 | 1177 | | |
1172 | 1178 | | |
1173 | 1179 | | |
| |||
1250 | 1256 | | |
1251 | 1257 | | |
1252 | 1258 | | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
1253 | 1262 | | |
1254 | 1263 | | |
1255 | 1264 | | |
| |||
0 commit comments