summaryrefslogtreecommitdiffstats
path: root/mm/kmsan/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/kmsan/init.c')
-rw-r--r--mm/kmsan/init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/kmsan/init.c b/mm/kmsan/init.c
index 6c56dca46063..10f52c085e6c 100644
--- a/mm/kmsan/init.c
+++ b/mm/kmsan/init.c
@@ -33,7 +33,10 @@ static void __init kmsan_record_future_shadow_range(void *start, void *end)
bool merged = false;
KMSAN_WARN_ON(future_index == NUM_FUTURE_RANGES);
- KMSAN_WARN_ON((nstart >= nend) || !nstart || !nend);
+ KMSAN_WARN_ON((nstart >= nend) ||
+ /* Virtual address 0 is valid on s390. */
+ (!IS_ENABLED(CONFIG_S390) && !nstart) ||
+ !nend);
nstart = ALIGN_DOWN(nstart, PAGE_SIZE);
nend = ALIGN(nend, PAGE_SIZE);