Skip to content
Commit 2991be72 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Fixup __strnlen_user() behaviour.



Drop TIF_USERSPACE and add addr_limit to the thread_info struct.
Subsequently, use that for address checking in strnlen_user() to
ward off bogus -EFAULTs.

Make __strnlen_user() return 0 on exception, rather than -EFAULT.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0f08f338
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment