linux-stable/arch/arc
Vineet Gupta 0752adfda1 ARC: Fix 32-bit wrap around in access_ok()
Anton reported

 | LTP tests syscalls/process_vm_readv01 and process_vm_writev01 fail
 | similarly in one testcase test_iov_invalid -> lvec->iov_base.
 | Testcase expects errno EFAULT and return code -1,
 | but it gets return code 1 and ERRNO is 0 what means success.

Essentially test case was passing a pointer of -1 which access_ok()
was not catching. It was doing [@addr + @sz <= TASK_SIZE] which would
pass for @addr == -1

Fixed that by rewriting as [@addr <= TASK_SIZE - @sz]

Reported-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
2013-09-27 16:28:47 +05:30
..
boot ARC: Add some .gitignore entries 2013-08-26 09:40:24 +05:30
configs Couple of Platform updates (Device Tree files primarily) given that the 2013-07-10 10:11:26 -07:00
include ARC: Fix 32-bit wrap around in access_ok() 2013-09-27 16:28:47 +05:30
kernel ARC: Handle zero-overhead-loop in unaligned access handler 2013-09-27 16:28:23 +05:30
lib ARC: [lib] strchr breakage in Big-endian configuration 2013-08-24 11:24:53 -07:00
mm arch: mm: pass userspace fault flag to generic fault handler 2013-09-12 15:38:01 -07:00
oprofile ARC: OProfile support 2013-02-15 23:16:00 +05:30
plat-arcfpga Couple of Platform updates (Device Tree files primarily) given that the 2013-07-10 10:11:26 -07:00
plat-tb10x ARC: [TB10x] Updates for irqchip driver 2013-06-28 15:07:42 +05:30
Kbuild ARC: Build system: Makefiles, Kconfig, Linker script 2013-02-11 20:00:25 +05:30
Kconfig Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
Kconfig.debug consolidate per-arch stack overflow debugging options 2013-07-04 11:25:39 -07:00
Makefile ARC: Adjustments for gcc 4.8 2013-06-27 14:35:32 +05:30