Files
linux/arch/mips/kernel
Yong Zhang 1eec6cd08b MIPS: Compat: Use 32-bit wrapper for compat_sys_futex.
We can't trust userspace to pass signed-extend arguments.  Not correctly
sign-extended arguments to futex-wait result in architecturally undefined
operation of 32-bit arithmetic instructions.

For example, if 'val' is too big and bit-31 is 1, the caller may enter
endless loop at:

futex_wait_setup()
{
	...

	if (uval != val) {
		queue_unlock(q, *hb);
		ret = -EWOULDBLOCK;

	...
}

Signed-off-by: Yong Zhang <yong.zhang@windriver.com>
To: linux-mips@linux-mips.org
To: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/2714/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2011-09-21 17:53:44 +02:00
..
2010-05-21 21:31:14 +01:00
2008-05-01 08:03:58 -07:00
2010-10-18 16:59:02 +01:00
2011-03-31 11:26:23 -03:00
2011-07-22 11:18:22 +02:00
2011-07-26 16:49:47 -07:00
2010-10-04 18:33:54 +01:00
2010-08-05 13:26:29 +01:00
2011-07-26 16:49:47 -07:00
2009-07-12 12:22:34 -07:00
2006-12-10 21:52:11 +00:00
2011-07-26 16:49:47 -07:00
2011-01-18 19:30:28 +01:00
2011-09-21 17:52:38 +02:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2009-06-24 18:34:40 +01:00
2011-09-21 17:52:09 +02:00
2010-07-26 19:08:16 +01:00
2011-09-17 02:37:03 +02:00