]> git.baikalelectronics.ru Git - kernel.git/commit
s390/startup: round down "mem" option to page boundary
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 16 Aug 2019 08:43:55 +0000 (10:43 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 21 Aug 2019 10:58:53 +0000 (12:58 +0200)
commitc20868d0d8b9da230fb1cbbce089e4ea4cc06c27
tree2d63962fbdb65ce30a2bd0c41cbe8e9652d72489
parent3db930adda5245e04c8b5c1c1b06cc952a063b9b
s390/startup: round down "mem" option to page boundary

Make a usable value out of "mem" option once and for all. Kasan memory
allocator just takes memory_end or online memory size as allocation
base. If memory_end is not aligned paging structures allocated in kasan
end up unaligned as well. So this change fixes potential kasan crash
as well.

Fixes: 23fc52f664c8 ("s390/kasan: add support for mem= kernel parameter")
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/ipl_parm.c