OSDN Git Service

s390/pci: enforce fmb page boundary rule
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 14 Mar 2016 14:47:23 +0000 (15:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:37 +0000 (09:08 -0700)
commitc1948606af0861bd181cb85ed1797ef02c20bbec
tree5c57a934a33e7c956a39d08897dbfe0a36afb3ee
parentc024dcd3df1a0180993d4ce94b87e8ec271c6c2e
s390/pci: enforce fmb page boundary rule

commit 80c544ded25ac14d7cc3e555abb8ed2c2da99b84 upstream.

The function measurement block must not cross a page boundary. Ensure
that by raising the alignment requirement to the smallest power of 2
larger than the size of the fmb.

Fixes: d0b088531 ("s390/pci: performance statistics and debug infrastructure")
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/pci.h
arch/s390/pci/pci.c