]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Ensure that vmcore_info pointer is never accessed directly
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Sun, 11 Mar 2012 15:59:38 +0000 (11:59 -0400)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 11 Mar 2012 15:59:30 +0000 (11:59 -0400)
commit36ced4a6c21096d2d75b24864910d4856ae1ce74
tree78751be113b5a47f2b53e19036834f1ed912c0e6
parentbe821b773265d5ecf79894ccabbfc675ab4162ba
[S390] Ensure that vmcore_info pointer is never accessed directly

Because the vmcore_info pointer is not 8 byte aligned it never should
not be accessed directly. The reason is that the compiler assumes that
64 bit pointer are always double word aligned. To ensure save access,
the vmcore_info type in struct lowcore is changed from u64 to an u8[8]
array and a comment is added.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/lowcore.h