futex-prevent-requeue-pi-on-same-futex.patch futex: Forbid uaddr == uaddr2 in futex_requeue(..., requeue_pi=1)

If uaddr == uaddr2, then we have broken the rule of only requeueing from
a non-pi futex to a pi futex with this call.  If we attempt this, then
dangling pointers may be left for rt_waiter resulting in an exploitable
condition.

This change brings futex_requeue() in line with futex_wait_requeue_pi()
which performs the same check as per commit 6f7b0a2a5c0f ("futex: Forbid
uaddr == uaddr2 in futex_wait_requeue_pi()")

[ tglx: Compare the resulting keys as well, as uaddrs might be
  	different depending on the mapping ]

Fixes CVE-2014-3153.

Change-Id: Id1bc936293f16d7092ef40379b07af0c037b415c
Reported-by: Pinkie Pie
Signed-off-by: Will Drewry <wad@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
cpufreq: Unified governor/scaling switching (squashed commits)

cpufreq: unified governor and scaling min and max switching governor scaling_min_freq and scaling_max_freq will be populated to all online cpus immediately

cpufreq: unified governor and scaling min and max switching use related_cpus to apply correctly to new online cpus

cpufreq: block hotplugging during multi-cpu operations

cpufreq: dont apply multi-cpu values if not changed

Change-Id: I199d47409d1ed15bbf9e4856d528344560c6f092
Minor updates from CM-OnePlus source
find7: Disable performance-killing debug options

Change-Id: I22d05f81cca7e590bbb69dd0a8ca77e345d32ca3
Squashed commits from OPPO Source updates

SVN8016 140603
Touchscreen driver and firmware update
Panel updates
OTG update
Headphone fixes from OnePlus