Searched hist:"22 a33c7e" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/s390/boot/ |
H A D | ipl_parm.c | 22a33c7e Fri Aug 16 03:43:55 CDT 2019 Vasily Gorbik <gor@linux.ibm.com> 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: 78333d1f908a ("s390/kasan: add support for mem= kernel parameter") Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> 22a33c7e Fri Aug 16 03:43:55 CDT 2019 Vasily Gorbik <gor@linux.ibm.com> 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: 78333d1f908a ("s390/kasan: add support for mem= kernel parameter") Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
|