aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arc/include/asm/spinlock.h
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-09-26 18:50:40 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-09-27 16:28:47 +0530
commit0752adfda15f0eca9859a76da3db1800e129ad43 (patch)
tree854479800b11fb24d21d35f17851912cf0df7b63 /arch/arc/include/asm/spinlock.h
parentARC: Handle zero-overhead-loop in unaligned access handler (diff)
downloadlinux-dev-0752adfda15f0eca9859a76da3db1800e129ad43.tar.xz
linux-dev-0752adfda15f0eca9859a76da3db1800e129ad43.zip
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions