From: Greg Kroah-Hartman Date: Thu, 20 Mar 2014 18:09:50 +0000 (-0700) Subject: 3.4-stable patches X-Git-Tag: v3.4.84~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83e53ab90372b85996a909dd40f2f983f9fbee31;p=thirdparty%2Fkernel%2Fstable-queue.git 3.4-stable patches added patches: drm-radeon-atom-select-the-proper-number-of-lanes-in.patch fs-proc-base.c-fix-gpf-in-proc-pid-map_files.patch --- diff --git a/queue-3.4/drm-radeon-atom-select-the-proper-number-of-lanes-in.patch b/queue-3.4/drm-radeon-atom-select-the-proper-number-of-lanes-in.patch new file mode 100644 index 00000000000..80776ed0f5e --- /dev/null +++ b/queue-3.4/drm-radeon-atom-select-the-proper-number-of-lanes-in.patch @@ -0,0 +1,34 @@ +From d03874c881a049a50e12f285077ab1f9fc2686e1 Mon Sep 17 00:00:00 2001 +From: Alex Deucher +Date: Thu, 6 Mar 2014 18:09:52 -0500 +Subject: drm/radeon/atom: select the proper number of lanes in + transmitter setup + +From: Alex Deucher + +commit d03874c881a049a50e12f285077ab1f9fc2686e1 upstream. + +We need to check for DVI vs. HDMI when setting up duallink since +HDMI is single link only. Fixes 4k modes on newer asics. + +bug: +https://bugs.freedesktop.org/show_bug.cgi?id=75223 + +Signed-off-by: Alex Deucher +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/gpu/drm/radeon/atombios_encoders.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/gpu/drm/radeon/atombios_encoders.c ++++ b/drivers/gpu/drm/radeon/atombios_encoders.c +@@ -1048,7 +1048,7 @@ atombios_dig_transmitter_setup(struct dr + } + if (is_dp) + args.v5.ucLaneNum = dp_lane_count; +- else if (radeon_encoder->pixel_clock > 165000) ++ else if (radeon_dig_monitor_is_duallink(encoder, radeon_encoder->pixel_clock)) + args.v5.ucLaneNum = 8; + else + args.v5.ucLaneNum = 4; diff --git a/queue-3.4/fs-proc-base.c-fix-gpf-in-proc-pid-map_files.patch b/queue-3.4/fs-proc-base.c-fix-gpf-in-proc-pid-map_files.patch new file mode 100644 index 00000000000..1f63b39cfa2 --- /dev/null +++ b/queue-3.4/fs-proc-base.c-fix-gpf-in-proc-pid-map_files.patch @@ -0,0 +1,55 @@ +From 70335abb2689c8cd5df91bf2d95a65649addf50b Mon Sep 17 00:00:00 2001 +From: Artem Fetishev +Date: Mon, 10 Mar 2014 15:49:45 -0700 +Subject: fs/proc/base.c: fix GPF in /proc/$PID/map_files + +From: Artem Fetishev + +commit 70335abb2689c8cd5df91bf2d95a65649addf50b upstream. + +The expected logic of proc_map_files_get_link() is either to return 0 +and initialize 'path' or return an error and leave 'path' uninitialized. + +By the time dname_to_vma_addr() returns 0 the corresponding vma may have +already be gone. In this case the path is not initialized but the +return value is still 0. This results in 'general protection fault' +inside d_path(). + +Steps to reproduce: + + CONFIG_CHECKPOINT_RESTORE=y + + fd = open(...); + while (1) { + mmap(fd, ...); + munmap(fd, ...); + } + + ls -la /proc/$PID/map_files + +Addresses https://bugzilla.kernel.org/show_bug.cgi?id=68991 + +Signed-off-by: Artem Fetishev +Signed-off-by: Aleksandr Terekhov +Reported-by: +Acked-by: Pavel Emelyanov +Acked-by: Cyrill Gorcunov +Reviewed-by: "Eric W. Biederman" +Signed-off-by: Andrew Morton +Signed-off-by: Linus Torvalds +Signed-off-by: Greg Kroah-Hartman + +--- + fs/proc/base.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/fs/proc/base.c ++++ b/fs/proc/base.c +@@ -2092,6 +2092,7 @@ static int proc_map_files_get_link(struc + if (rc) + goto out_mmput; + ++ rc = -ENOENT; + down_read(&mm->mmap_sem); + vma = find_exact_vma(mm, vm_start, vm_end); + if (vma && vma->vm_file) { diff --git a/queue-3.4/series b/queue-3.4/series index e083dab7c63..f7b5237324e 100644 --- a/queue-3.4/series +++ b/queue-3.4/series @@ -21,3 +21,5 @@ firewire-net-fix-use-after-free.patch firewire-don-t-use-prepare_delayed_work.patch libata-add-ata_horkage_broken_fpdma_aa-quirk-for-seagate-momentus-spinpoint-m8-2ba30001.patch nfs-fix-a-delegation-callback-race.patch +fs-proc-base.c-fix-gpf-in-proc-pid-map_files.patch +drm-radeon-atom-select-the-proper-number-of-lanes-in.patch