From e2b05e6df5125961b127b0fd545b6c044883b733 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 6 Dec 2010 12:59:04 -0800 Subject: [PATCH] .32 patches --- ...-address-is-plausible-on-pci-systems.patch | 141 ++++++++++++++++++ ...ereference-race-in-atapi_qc_complete.patch | 36 +++++ ...-which-truncated-lba48-return-values.patch | 32 ++++ ...offset-check-for-sysfs-mmapped-files.patch | 63 ++++++++ ...hecks-for-mmap-on-proc-bus-pci-files.patch | 118 +++++++++++++++ queue-2.6.32/series | 5 + 6 files changed, 395 insertions(+) create mode 100644 queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch create mode 100644 queue-2.6.32/libata-fix-null-sdev-dereference-race-in-atapi_qc_complete.patch create mode 100644 queue-2.6.32/libata-scsi-passthru-fix-bug-which-truncated-lba48-return-values.patch create mode 100644 queue-2.6.32/pci-fix-offset-check-for-sysfs-mmapped-files.patch create mode 100644 queue-2.6.32/pci-fix-size-checks-for-mmap-on-proc-bus-pci-files.patch diff --git a/queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch b/queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch new file mode 100644 index 00000000000..82a172e50a5 --- /dev/null +++ b/queue-2.6.32/efifb-check-that-the-base-address-is-plausible-on-pci-systems.patch @@ -0,0 +1,141 @@ +From 85a00d9bbfb4704fbf368944b1cb9fed8f1598c5 Mon Sep 17 00:00:00 2001 +From: Peter Jones +Date: Wed, 22 Sep 2010 13:05:04 -0700 +Subject: efifb: check that the base address is plausible on pci systems + +From: Peter Jones + +commit 85a00d9bbfb4704fbf368944b1cb9fed8f1598c5 upstream. + +Some Apple machines have identical DMI data but different memory +configurations for the video. Given that, check that the address in our +table is actually within the range of a PCI BAR on a VGA device in the +machine. + +This also fixes up the return value from set_system(), which has always +been wrong, but never resulted in bad behavior since there's only ever +been one matching entry in the dmi table. + +The patch + +1) stops people's machines from crashing when we get their display wrong, + which seems to be unfortunately inevitable, + +2) allows us to support identical dmi data with differing video memory + configurations + +This also adds me as the efifb maintainer, since I've effectively been +acting as such for quite some time. + +Signed-off-by: Peter Jones +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Cc: maximilian attems +Signed-off-by: Greg Kroah-Hartman + +--- + MAINTAINERS | 6 ++++ + drivers/video/efifb.c | 61 ++++++++++++++++++++++++++++++++++++++++---------- + 2 files changed, 55 insertions(+), 12 deletions(-) + +--- a/MAINTAINERS ++++ b/MAINTAINERS +@@ -1974,6 +1974,12 @@ W: http://acpi4asus.sf.net + S: Maintained + F: drivers/platform/x86/eeepc-laptop.c + ++EFIFB FRAMEBUFFER DRIVER ++L: linux-fbdev@vger.kernel.org ++M: Peter Jones ++S: Maintained ++F: drivers/video/efifb.c ++ + EFS FILESYSTEM + W: http://aeschi.ch.eu.org/efs/ + S: Orphan +--- a/drivers/video/efifb.c ++++ b/drivers/video/efifb.c +@@ -13,7 +13,7 @@ + #include + #include + #include +- ++#include + #include