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.

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>

Change-Id: I77f158ae041824f07d63e057a8f44e4721b5ebe0
p1: sound: wm8994: fix audio path

some functions needs audio paths with their correct parameters
also, this pacth fix some gcc warnings

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Iaffc5ab73abcf9b819fb55193ea263179d9d0947
p1: add sec jack gpio init

fix gpio setup initialization for headset events

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I892455b9ea6d2e497e8b7a576400e83dfdd2fe90
p1: sound: wm8994: increase in call volume when headphone is plugged

also, fix code style

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I1a14cd071d35ae71ab3ac2a9bd7ab8cf6857b27a
p1: sound: wm8994: fix sound extensions ifdefs

galaxy tab and nexus s have a similar hardware setup
so, this patch uses the same setup and leave generic galaxy tab flag
also, it bring back default sound values and includes

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I645af5962f9ea5d6859ef3a38f121aa12a79ce1d
staging: add snappy compression library

Google's Snappy data compression library is a faster alternative to LZO,
optimized for x86-64. On compressible input it compresses ~2.5x faster than LZO
and decompresses ~1.5-2x faster than LZO. On incompressible input, it skips the
input at 100x faster than LZO and decompresses ~4x faster than LZO.
It is released under BSD license.
This is a kernel port from user space C++ code.
The current intended use is with zram (see next patch in series).

Change-Id: Ia7dabb3fe0f6c617b191e129bd19fab2e16c8f93
Signed-off-by: Zeev Tarantov <zeev.tarantov@gmail.com>
staging: add snappy compression support to zram

Google's Snappy data compression library is a faster alternative to LZO,
optimized for x86-64. On compressible input it compresses ~2.5x faster than LZO
and decompresses ~1.5-2x faster than LZO. On incompressible input, it skips the
input at 100x faster than LZO and decompresses ~4x faster than LZO.
It is released under BSD license.
This is a kernel port from user space C++ code.
The current intended use is with zram (see next patch in series).

Change-Id: I75729b6999f8740cf06ceaa63a8c993ec80fbb3f
Signed-off-by: Zeev Tarantov <zeev.tarantov@gmail.com>
p1 | aries: config: add snappy compression support

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I83188ccf26f31e85b701c009e704d881cc258a82
p1: drivers: misc: fix 30pin events

fix audio routing when accessory cable or deskdock
is disconnected

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I1c2188d129fb6bc0cc8169b7fede2717ebcd0a7d
Merge pull request #3 from omnirom/android-4.4

to update my environement