Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/pci: add extra padding to function measurement block

Newer machines might use a different (larger) format for function
measurement blocks. To ensure that we comply with the alignment
requirement on these machines and prevent memory corruption (when
firmware writes more data than we expect) add 16 padding bytes
at the end of the fmb.

Cc: stable@vger.kernel.org # v4.1+
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Sebastian Ott and committed by
Martin Schwidefsky
9d89d9e6 b707c65a

+2 -1
+2 -1
arch/s390/include/asm/pci.h
··· 44 44 u64 rpcit_ops; 45 45 u64 dma_rbytes; 46 46 u64 dma_wbytes; 47 - } __packed __aligned(64); 47 + u64 pad[2]; 48 + } __packed __aligned(128); 48 49 49 50 enum zpci_state { 50 51 ZPCI_FN_STATE_RESERVED,