From: Sebastian Ott Date: Thu, 31 Mar 2016 09:48:31 +0000 (+0200) Subject: s390/pci: add extra padding to function measurement block X-Git-Tag: v4.1.24~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a447b1ba7d4e310a6921fe81e04e9e0ee0d31e4;p=thirdparty%2Fkernel%2Fstable.git s390/pci: add extra padding to function measurement block [ Upstream commit 9d89d9e61d361f3adb75e1aebe4bb367faf16cfa ] 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 Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin --- diff --git a/arch/s390/include/asm/pci.h b/arch/s390/include/asm/pci.h index 4e33fe339b3d9..5b7153b34361b 100644 --- a/arch/s390/include/asm/pci.h +++ b/arch/s390/include/asm/pci.h @@ -45,7 +45,8 @@ struct zpci_fmb { u64 rpcit_ops; u64 dma_rbytes; u64 dma_wbytes; -} __packed __aligned(64); + u64 pad[2]; +} __packed __aligned(128); enum zpci_state { ZPCI_FN_STATE_RESERVED,