diff options
author | David Vrabel <david.vrabel@citrix.com> | 2014-07-31 16:22:25 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-07-31 17:58:38 +0100 |
commit | dcecb8fd93a65787130a74e61fdf29932c8d85eb (patch) | |
tree | 77bd673bc723fc2ed1155002b38cf5ad5d9c8cd5 /include/sound/mpu401.h | |
parent | c12784c3d14a2110468ec4d1383f60cfd2665576 (diff) | |
download | linux-stable-dcecb8fd93a65787130a74e61fdf29932c8d85eb.tar.gz linux-stable-dcecb8fd93a65787130a74e61fdf29932c8d85eb.tar.bz2 linux-stable-dcecb8fd93a65787130a74e61fdf29932c8d85eb.zip |
xen/events/fifo: ensure all bitops are properly aligned even on x86
When using the FIFO-based ABI on x86_64, if the last port is at the
end of an event array page then sync_test_bit() on this port's event
word will read beyond the end of the page and in certain circumstances
this may fault.
The fault requires the following page in the kernel's direct mapping
to be not present, which would mean:
a) the array page is the last page of RAM; or
b) the following page is ballooned out /and/ it has been used for a
foreign mapping by a kernel driver (such as netback or blkback)
/and/ the grant has been unmapped.
Use the infrastructure added for arm64 to ensure that all bitops
operating on event words are unsigned long aligned.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'include/sound/mpu401.h')
0 files changed, 0 insertions, 0 deletions