- 09 Sep, 2016 1 commit
-
-
Al Viro authored
... in all cases, including the failing access_ok() Note that some architectures using asm-generic/uaccess.h have __copy_from_user() not zeroing the tail on failure halfway through. This variant works either way. Cc: stable@vger.kernel.org Signed-off-by:
Al Viro <viro@zeniv.linux.org.uk>
-
- 08 Nov, 2015 1 commit
-
-
Yoshinori Sato authored
Current implemantation ptr argument evaluate 2 times. It'll be an unexpected result. Changes v5: Remove unnecessary const. Changes v4: Temporary pointer type change to const void* Changes v3: Some build error fix. Changes v2: Argument x protect. Signed-off-by:
Yoshinori Sato <ysato@users.sourceforge.jp>
-
- 02 Jan, 2014 1 commit
-
-
Geert Uytterhoeven authored
Signed-off-by:
Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- 28 May, 2013 1 commit
-
-
Michael S. Tsirkin authored
The only reason uaccess routines might sleep is if they fault. Make this explicit. Signed-off-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Peter Zijlstra <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1369577426-26721-1-git-send-email-mst@redhat.com Signed-off-by:
Ingo Molnar <mingo@kernel.org>
-
- 11 Feb, 2013 2 commits
-
-
Vineet Gupta authored
As of now these default to calling the arch provided __copy_{to,from}_user() routines which being general purpose (w.r.t buffer alignment and lengths) would lead to alignment checks in generated code (for arches which don't support unaligned load/stores). Given that in this case we already know that data involved is "unit" sized and aligned, using the vanilla copy backend is a bit wasteful. This change thus allows arches to over-ride the aforementioned routines. Signed-off-by:
Vineet Gupta <vgupta@synopsys.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
Vineet Gupta authored
This is because mm_segment_t is exported by arch code, while seqment_eq assumes it will have .seg element. Acked-by:
Arnd Bergmann <arnd@arndb.de> Signed-off-by:
Vineet Gupta <vgupta@synopsys.com>
-
- 06 Oct, 2011 1 commit
-
-
Mark Salter authored
The existing __strnlen_user macro simply resolved to strnlen. However, the count returned by strnlen_user should include the NULL byte. This patch fixes the __strnlen_user macro to include the NULL byte in the count. Signed-off-by:
Mark Salter <msalter@redhat.com> Acked-by:
Arnd Bergmann <arnd@arndb.de>
-
- 17 Mar, 2011 1 commit
-
-
GuanXuetao authored
This patch changes the implementation of strnlen_user in include/asm-generic/uaccess.h. Originally, it calls strlen() function directly, which may not correctly handle the access of user space in most mmu-enabled architectures. New __strnlen_user is added for using as an architecture specific function. Signed-off-by:
Guan Xuetao <gxt@mprc.pku.edu.cn> Reviewed-by:
Arnd Bergmann <arnd@arndb.de>
-
- 19 Jun, 2009 2 commits
-
-
Mike Frysinger authored
There's no reason that I can see to use the short __access_ok() form directly when the access_ok() is clearer in intent and for most people, expands to the same C code (i.e. always specify the first field -- access type). Not all no-mmu systems lack memory protection, so the read/write could feasibly be checked. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
Mike Frysinger authored
The strnlen_user() function was missing a access_ok() check on the pointer given. We've had cases on Blackfin systems where test programs caused kernel crashes here because userspace passed up a NULL/-1 pointer and the kernel gladly attempted to run strlen() on it. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
- 11 Jun, 2009 2 commits
-
-
Arnd Bergmann authored
Based on discussions with Michal Simek and code from m68knommu and h8300, this version of uaccess.h should be usable by most architectures, by overriding some parts of it. Simple NOMMU architectures can use it out of the box, but a minimal __access_ok() should be added there as well. Cc: Michal Simek <monstr@monstr.eu> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
Arnd Bergmann authored
The current asm-generic/page.h only contains the get_order function, and asm-generic/uaccess.h only implements unaligned accesses. This renames the file to getorder.h and uaccess-unaligned.h to make room for new page.h and uaccess.h file that will be usable by all simple (e.g. nommu) architectures. Signed-off-by:
Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
-
- 16 Apr, 2005 1 commit
-
-
Linus Torvalds authored
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
-