projects/linux·commit 5db6db0d

Merge branch 'work.uaccess' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

5db6db0d · Linus Torvalds <[email protected]> · 2017-05-01 14:41:04 -07:00

Pull uaccess unification updates from Al Viro:
 "This is the uaccess unification pile. It's _not_ the end of uaccess
  work, but the next batch of that will go into the next cycle. This one
  mostly takes copy_from_user() and friends out of arch/* and gets the
  zero-padding behaviour in sync for all architectures.

  Dealing with the nocache/writethrough mess is for the next cycle;
  fortunately, that's x86-only. Same for cleanups in iov_iter.c (I am
  sold on access_ok() in there, BTW; just not in this pile), same for
  reducing __copy_... callsites, strn*... stuff, etc. - there will be a
  pile about as large as this one in the next merge window.

  This one sat in -next for weeks. -3KLoC"

* 'work.uaccess' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (96 commits)
  HAVE_ARCH_HARDENED_USERCOPY is unconditional now
  CONFIG_ARCH_HAS_RAW_COPY_USER is unconditional now
  m32r: switch to RAW_COPY_USER
  hexagon: switch to RAW_COPY_USER
  microblaze: switch to RAW_COPY_USER
  get rid of padding, switch to RAW_COPY_USER
  ia64: get rid of copy_in_user()
  ia64: sanitize __access_ok()
  ia64: get rid of 'segment' argument of __do_{get,put}_user()
  ia64: get rid of 'segment' argument of __{get,put}_user_check()
  ia64: add extable.h
  powerpc: get rid of zeroing, switch to RAW_COPY_USER
  esas2r: don't open-code memdup_user()
  alpha: fix stack smashing in old_adjtimex(2)
  don't open-code kernel_setsockopt()
  mips: switch to RAW_COPY_USER
  mips: get rid of tail-zeroing in primitives
  mips: make copy_from_user() zero tail explicitly
  mips: clean and reorder the forest of macros...
  mips: consolidate __invoke_... wrappers
  ...
Commit
5db6db0d400edd8bec274e34960cfa22838e1df5
Parents
5fab1004 · 2fefc97b

Merge commit. Changes below are compared with the first parent: 5fab1004.

Changes

176 files changed · +1458 −4335

FileStatusAddDelContent
arch/alpha/include/asm/extable.hadded+55−0View file
arch/alpha/include/asm/futex.hmodified+4−12View file
arch/alpha/include/asm/uaccess.hmodified+73−232View file
arch/alpha/kernel/traps.cmodified+42−110View file
arch/alpha/lib/clear_user.Smodified+26−40View file
arch/alpha/lib/copy_user.Smodified+34−48View file
arch/alpha/lib/csum_partial_copy.cmodified+2−8View file
arch/alpha/lib/ev6-clear_user.Smodified+35−49View file
arch/alpha/lib/ev6-copy_user.Smodified+45−59View file
arch/arc/include/asm/Kbuildmodified+1−0View file
arch/arc/include/asm/uaccess.hmodified+7−18View file
arch/arc/mm/extable.cmodified+0−14View file
arch/arm/Kconfigmodified+0−1View file
arch/arm/include/asm/Kbuildmodified+1−0View file
arch/arm/include/asm/uaccess.hmodified+16−71View file
arch/arm/lib/uaccess_with_memcpy.cmodified+2−2View file
arch/arm64/Kconfigmodified+0−1View file
arch/arm64/include/asm/extable.hadded+25−0View file
arch/arm64/include/asm/uaccess.hmodified+6−77View file
arch/arm64/kernel/arm64ksyms.cmodified+1−1View file
arch/arm64/lib/copy_in_user.Smodified+2−2View file
arch/avr32/include/asm/Kbuildmodified+1−0View file
arch/avr32/include/asm/uaccess.hmodified+7−32View file
arch/avr32/kernel/avr32_ksyms.cmodified+0−2View file
arch/avr32/lib/copy_user.Smodified+0−15View file
arch/blackfin/include/asm/Kbuildmodified+1−0View file
arch/blackfin/include/asm/uaccess.hmodified+5−42View file
arch/blackfin/kernel/process.cmodified+1−1View file
arch/c6x/include/asm/Kbuildmodified+1−0View file
arch/c6x/include/asm/uaccess.hmodified+6−13View file
arch/c6x/kernel/sys_c6x.cmodified+1−1View file
arch/cris/arch-v10/lib/usercopy.cmodified+9−22View file
arch/cris/arch-v32/lib/usercopy.cmodified+9−21View file
arch/cris/include/arch-v10/arch/uaccess.hmodified+18−28View file
arch/cris/include/arch-v32/arch/uaccess.hmodified+18−36View file
arch/cris/include/asm/Kbuildmodified+1−0View file
arch/cris/include/asm/uaccess.hmodified+12−65View file
arch/frv/include/asm/Kbuildmodified+1−0View file
arch/frv/include/asm/uaccess.hmodified+24−60View file
arch/frv/kernel/traps.cmodified+1−6View file
arch/frv/mm/extable.cmodified+13−14View file
arch/frv/mm/fault.cmodified+2−4View file
arch/h8300/include/asm/Kbuildmodified+1−1View file
arch/h8300/include/asm/uaccess.hadded+54−0View file
arch/hexagon/include/asm/Kbuildmodified+1−0View file
arch/hexagon/include/asm/uaccess.hmodified+10−16View file
arch/hexagon/kernel/hexagon_ksyms.cmodified+2−2View file
arch/hexagon/mm/copy_from_user.Smodified+1−1View file
arch/hexagon/mm/copy_to_user.Smodified+1−1View file
arch/ia64/Kconfigmodified+0−1View file
arch/ia64/include/asm/extable.hadded+11−0View file
arch/ia64/include/asm/uaccess.hmodified+27−75View file
arch/ia64/lib/memcpy_mck.Smodified+1−12View file
arch/ia64/mm/extable.cmodified+4−1View file
arch/m32r/include/asm/Kbuildmodified+1−0View file
arch/m32r/include/asm/uaccess.hmodified+9−180View file
arch/m32r/kernel/m32r_ksyms.cmodified+0−2View file
arch/m32r/lib/usercopy.cmodified+0−21View file
arch/m68k/include/asm/Kbuildmodified+1−0View file
arch/m68k/include/asm/processor.hmodified+0−10View file
arch/m68k/include/asm/uaccess.hmodified+1−0View file
arch/m68k/include/asm/uaccess_mm.hmodified+49−54View file
arch/m68k/include/asm/uaccess_no.hmodified+14−29View file
arch/m68k/kernel/signal.cmodified+1−1View file
arch/m68k/kernel/traps.cmodified+7−2View file
arch/m68k/lib/uaccess.cmodified+3−9View file
arch/m68k/mm/fault.cmodified+1−1View file
arch/metag/include/asm/Kbuildmodified+1−0View file
arch/metag/include/asm/uaccess.hmodified+4−56View file
arch/metag/lib/usercopy.cmodified+3−3View file
arch/microblaze/include/asm/Kbuildmodified+1−0View file
arch/microblaze/include/asm/uaccess.hmodified+9−55View file
arch/mips/Kconfigmodified+0−1View file
arch/mips/cavium-octeon/octeon-memcpy.Smodified+1−30View file
arch/mips/include/asm/checksum.hmodified+2−2View file
arch/mips/include/asm/r4kcache.hmodified+2−2View file
arch/mips/include/asm/uaccess.hmodified+60−389View file
arch/mips/kernel/mips-r2-to-r6-emul.cmodified+12−12View file
arch/mips/kernel/syscall.cmodified+1−1View file
arch/mips/kernel/unaligned.cmodified+5−5View file
arch/mips/lib/memcpy.Smodified+0−49View file
arch/mips/oprofile/backtrace.cmodified+1−1View file
arch/mn10300/include/asm/Kbuildmodified+1−0View file
arch/mn10300/include/asm/uaccess.hmodified+6−181View file
arch/mn10300/kernel/mn10300_ksyms.cmodified+0−2View file
arch/mn10300/lib/usercopy.cmodified+0−18View file
arch/nios2/include/asm/Kbuildmodified+1−0View file
arch/nios2/include/asm/uaccess.hmodified+7−48View file
arch/nios2/mm/uaccess.cmodified+8−8View file
arch/openrisc/include/asm/Kbuildmodified+1−0View file
arch/openrisc/include/asm/uaccess.hmodified+8−45View file
arch/parisc/Kconfigmodified+0−1View file
arch/parisc/include/asm/futex.hmodified+1−1View file
arch/parisc/include/asm/uaccess.hmodified+8−61View file
arch/parisc/lib/memcpy.cmodified+8−8View file
arch/powerpc/Kconfigmodified+0−1View file
arch/powerpc/include/asm/extable.hadded+29−0View file
arch/powerpc/include/asm/uaccess.hmodified+10−86View file
arch/powerpc/lib/Makefilemodified+1−1View file
arch/powerpc/lib/copy_32.Smodified+0−14View file
arch/powerpc/lib/copyuser_64.Smodified+3−32View file
arch/powerpc/lib/usercopy_64.cdeleted+0−41View before deletion
arch/s390/Kconfigmodified+0−1View file
arch/s390/include/asm/extable.hadded+28−0View file
arch/s390/include/asm/uaccess.hmodified+11−142View file
arch/s390/lib/uaccess.cmodified+23−45View file
arch/score/include/asm/Kbuildmodified+1−0View file
arch/score/include/asm/extable.hdeleted+0−11View before deletion
arch/score/include/asm/uaccess.hmodified+6−53View file
arch/sh/include/asm/extable.hadded+10−0View file
arch/sh/include/asm/uaccess.hmodified+5−59View file
arch/sparc/Kconfigmodified+0−1View file
arch/sparc/include/asm/uaccess.hmodified+1−1View file
arch/sparc/include/asm/uaccess_32.hmodified+5−39View file
arch/sparc/include/asm/uaccess_64.hmodified+5−39View file
arch/sparc/kernel/head_32.Smodified+0−7View file
arch/sparc/lib/GENcopy_from_user.Smodified+1−1View file
arch/sparc/lib/GENcopy_to_user.Smodified+1−1View file
arch/sparc/lib/GENpatch.Smodified+2−2View file
arch/sparc/lib/NG2copy_from_user.Smodified+1−1View file
arch/sparc/lib/NG2copy_to_user.Smodified+1−1View file
arch/sparc/lib/NG2patch.Smodified+2−2View file
arch/sparc/lib/NG4copy_from_user.Smodified+1−1View file
arch/sparc/lib/NG4copy_to_user.Smodified+1−1View file
arch/sparc/lib/NG4patch.Smodified+2−2View file
arch/sparc/lib/NGcopy_from_user.Smodified+1−1View file
arch/sparc/lib/NGcopy_to_user.Smodified+1−1View file
arch/sparc/lib/NGpatch.Smodified+2−2View file
arch/sparc/lib/U1copy_from_user.Smodified+2−2View file
arch/sparc/lib/U1copy_to_user.Smodified+2−2View file
arch/sparc/lib/U3copy_to_user.Smodified+1−1View file
arch/sparc/lib/U3patch.Smodified+2−2View file
arch/sparc/lib/copy_in_user.Smodified+3−3View file
arch/sparc/lib/copy_user.Smodified+1−15View file
arch/tile/include/asm/Kbuildmodified+1−0View file
arch/tile/include/asm/uaccess.hmodified+8−158View file
arch/tile/lib/exports.cmodified+3−4View file
arch/tile/lib/memcpy_32.Smodified+13−28View file
arch/tile/lib/memcpy_user_64.cmodified+3−12View file
arch/um/include/asm/Kbuildmodified+1−0View file
arch/um/include/asm/uaccess.hmodified+5−8View file
arch/um/kernel/skas/uaccess.cmodified+9−9View file
arch/unicore32/include/asm/Kbuildmodified+1−0View file
arch/unicore32/include/asm/uaccess.hmodified+5−10View file
arch/unicore32/kernel/ksyms.cmodified+2−2View file
arch/unicore32/kernel/process.cmodified+1−1View file
arch/unicore32/lib/copy_from_user.Smodified+6−10View file
arch/unicore32/lib/copy_to_user.Smodified+3−3View file
arch/x86/Kconfigmodified+0−1View file
arch/x86/include/asm/uaccess.hmodified+12−58View file
arch/x86/include/asm/uaccess_32.hmodified+15−112View file
arch/x86/include/asm/uaccess_64.hmodified+15−113View file
arch/x86/lib/usercopy.cmodified+1−53View file
arch/x86/lib/usercopy_32.cmodified+2−286View file
arch/x86/lib/usercopy_64.cmodified+0−13View file
arch/xtensa/include/asm/Kbuildmodified+1−0View file
arch/xtensa/include/asm/asm-uaccess.hmodified+0−3View file
arch/xtensa/include/asm/uaccess.hmodified+9−58View file
arch/xtensa/lib/usercopy.Smodified+48−68View file
block/bsg.cmodified+1−1View file
drivers/scsi/esas2r/esas2r_ioctl.cmodified+3−22View file
drivers/scsi/sg.cmodified+1−1View file
fs/ocfs2/cluster/tcp.cmodified+4−21View file
include/asm-generic/extable.hadded+26−0View file
include/asm-generic/uaccess.hmodified+8−127View file
include/linux/uaccess.hmodified+191−6View file
include/rdma/ib.hmodified+1−1View file
kernel/trace/bpf_trace.cmodified+1−1View file
lib/Makefilemodified+1−1View file
lib/iov_iter.cmodified+3−3View file
lib/usercopy.cadded+26−0View file
mm/memory.cmodified+1−1View file
net/rds/tcp.cmodified+1−4View file
net/rds/tcp_send.cmodified+1−7View file
security/Kconfigmodified+0−9View file
security/tomoyo/network.cmodified+1−1View file

Only the first 600 diff lines are shown. Download the complete patch.

arch/alpha/include/asm/extable.h

View file
diff --git a/arch/alpha/include/asm/extable.h b/arch/alpha/include/asm/extable.h
new file mode 100644
index 0000000..048e209
--- /dev/null
+++ b/arch/alpha/include/asm/extable.h
@@ -0,0 +1,55 @@
+#ifndef _ASM_EXTABLE_H
+#define _ASM_EXTABLE_H
+
+/*
+ * About the exception table:
+ *
+ * - insn is a 32-bit pc-relative offset from the faulting insn.
+ * - nextinsn is a 16-bit offset off of the faulting instruction
+ * (not off of the *next* instruction as branches are).
+ * - errreg is the register in which to place -EFAULT.
+ * - valreg is the final target register for the load sequence
+ * and will be zeroed.
+ *
+ * Either errreg or valreg may be $31, in which case nothing happens.
+ *
+ * The exception fixup information "just so happens" to be arranged
+ * as in a MEM format instruction. This lets us emit our three
+ * values like so:
+ *
+ * lda valreg, nextinsn(errreg)
+ *
+ */
+
+struct exception_table_entry
+{
+ signed int insn;
+ union exception_fixup {
+ unsigned unit;
+ struct {
+ signed int nextinsn : 16;
+ unsigned int errreg : 5;
+ unsigned int valreg : 5;
+ } bits;
+ } fixup;
+};
+
+/* Returns the new pc */
+#define fixup_exception(map_reg, _fixup, pc) \
+({ \
+ if ((_fixup)->fixup.bits.valreg != 31) \
+ map_reg((_fixup)->fixup.bits.valreg) = 0; \
+ if ((_fixup)->fixup.bits.errreg != 31) \
+ map_reg((_fixup)->fixup.bits.errreg) = -EFAULT; \
+ (pc) + (_fixup)->fixup.bits.nextinsn; \
+})
+
+#define ARCH_HAS_RELATIVE_EXTABLE
+
+#define swap_ex_entry_fixup(a, b, tmp, delta) \
+ do { \
+ (a)->fixup.unit = (b)->fixup.unit; \
+ (b)->fixup.unit = (tmp).fixup.unit; \
+ } while (0)
+
+#endif

arch/alpha/include/asm/futex.h

View file
diff --git a/arch/alpha/include/asm/futex.h b/arch/alpha/include/asm/futex.h
index f939794..fb01dfb 100644
--- a/arch/alpha/include/asm/futex.h
+++ b/arch/alpha/include/asm/futex.h
@@ -19,12 +19,8 @@
"3: .subsection 2\n" \
"4: br 1b\n" \
" .previous\n" \
- " .section __ex_table,\"a\"\n" \
- " .long 1b-.\n" \
- " lda $31,3b-1b(%1)\n" \
- " .long 2b-.\n" \
- " lda $31,3b-2b(%1)\n" \
- " .previous\n" \
+ EXC(1b,3b,%1,$31) \
+ EXC(2b,3b,%1,$31) \
: "=&r" (oldval), "=&r"(ret) \
: "r" (uaddr), "r"(oparg) \
: "memory")
@@ -101,12 +97,8 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
"3: .subsection 2\n"
"4: br 1b\n"
" .previous\n"
- " .section __ex_table,\"a\"\n"
- " .long 1b-.\n"
- " lda $31,3b-1b(%0)\n"
- " .long 2b-.\n"
- " lda $31,3b-2b(%0)\n"
- " .previous\n"
+ EXC(1b,3b,%0,$31)
+ EXC(2b,3b,%0,$31)
: "+r"(ret), "=&r"(prev), "=&r"(cmp)
: "r"(uaddr), "r"((long)(int)oldval), "r"(newval)
: "memory");

arch/alpha/include/asm/uaccess.h

View file
diff --git a/arch/alpha/include/asm/uaccess.h b/arch/alpha/include/asm/uaccess.h
index 94f5875..7b82dc9 100644
--- a/arch/alpha/include/asm/uaccess.h
+++ b/arch/alpha/include/asm/uaccess.h
@@ -1,10 +1,6 @@
#ifndef __ALPHA_UACCESS_H
#define __ALPHA_UACCESS_H
-#include <linux/errno.h>
-#include <linux/sched.h>
-
-
/*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
@@ -20,9 +16,6 @@
#define KERNEL_DS ((mm_segment_t) { 0UL })
#define USER_DS ((mm_segment_t) { -0x40000000000UL })
-#define VERIFY_READ 0
-#define VERIFY_WRITE 1
-
#define get_fs() (current_thread_info()->addr_limit)
#define get_ds() (KERNEL_DS)
#define set_fs(x) (current_thread_info()->addr_limit = (x))
@@ -39,13 +32,13 @@
* - AND "addr+size" doesn't have any high-bits set
* - OR we are in kernel mode.
*/
-#define __access_ok(addr, size, segment) \
- (((segment).seg & (addr | size | (addr+size))) == 0)
+#define __access_ok(addr, size) \
+ ((get_fs().seg & (addr | size | (addr+size))) == 0)
-#define access_ok(type, addr, size) \
-({ \
- __chk_user_ptr(addr); \
- __access_ok(((unsigned long)(addr)), (size), get_fs()); \
+#define access_ok(type, addr, size) \
+({ \
+ __chk_user_ptr(addr); \
+ __access_ok(((unsigned long)(addr)), (size)); \
})
/*
@@ -61,9 +54,9 @@
* (b) require any knowledge of processes at this stage
*/
#define put_user(x, ptr) \
- __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), get_fs())
+ __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
#define get_user(x, ptr) \
- __get_user_check((x), (ptr), sizeof(*(ptr)), get_fs())
+ __get_user_check((x), (ptr), sizeof(*(ptr)))
/*
* The "__xxx" versions do not do address space checking, useful when
@@ -81,6 +74,11 @@
* more extensive comments with fixup_inline_exception below for
* more information.
*/
+#define EXC(label,cont,res,err) \
+ ".section __ex_table,\"a\"\n" \
+ " .long "#label"-.\n" \
+ " lda "#res","#cont"-"#label"("#err")\n" \
+ ".previous\n"
extern void __get_user_unknown(void);
@@ -100,23 +98,23 @@ extern void __get_user_unknown(void);
__gu_err; \
})
-#define __get_user_check(x, ptr, size, segment) \
-({ \
- long __gu_err = -EFAULT; \
- unsigned long __gu_val = 0; \
- const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
- if (__access_ok((unsigned long)__gu_addr, size, segment)) { \
- __gu_err = 0; \
- switch (size) { \
- case 1: __get_user_8(__gu_addr); break; \
- case 2: __get_user_16(__gu_addr); break; \
- case 4: __get_user_32(__gu_addr); break; \
- case 8: __get_user_64(__gu_addr); break; \
- default: __get_user_unknown(); break; \
- } \
- } \
- (x) = (__force __typeof__(*(ptr))) __gu_val; \
- __gu_err; \
+#define __get_user_check(x, ptr, size) \
+({ \
+ long __gu_err = -EFAULT; \
+ unsigned long __gu_val = 0; \
+ const __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
+ if (__access_ok((unsigned long)__gu_addr, size)) { \
+ __gu_err = 0; \
+ switch (size) { \
+ case 1: __get_user_8(__gu_addr); break; \
+ case 2: __get_user_16(__gu_addr); break; \
+ case 4: __get_user_32(__gu_addr); break; \
+ case 8: __get_user_64(__gu_addr); break; \
+ default: __get_user_unknown(); break; \
+ } \
+ } \
+ (x) = (__force __typeof__(*(ptr))) __gu_val; \
+ __gu_err; \
})
struct __large_struct { unsigned long buf[100]; };
@@ -125,20 +123,14 @@ struct __large_struct { unsigned long buf[100]; };
#define __get_user_64(addr) \
__asm__("1: ldq %0,%2\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda %0, 2b-1b(%1)\n" \
- ".previous" \
+ EXC(1b,2b,%0,%1) \
: "=r"(__gu_val), "=r"(__gu_err) \
: "m"(__m(addr)), "1"(__gu_err))
#define __get_user_32(addr) \
__asm__("1: ldl %0,%2\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda %0, 2b-1b(%1)\n" \
- ".previous" \
+ EXC(1b,2b,%0,%1) \
: "=r"(__gu_val), "=r"(__gu_err) \
: "m"(__m(addr)), "1"(__gu_err))
@@ -148,20 +140,14 @@ struct __large_struct { unsigned long buf[100]; };
#define __get_user_16(addr) \
__asm__("1: ldwu %0,%2\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda %0, 2b-1b(%1)\n" \
- ".previous" \
+ EXC(1b,2b,%0,%1) \
: "=r"(__gu_val), "=r"(__gu_err) \
: "m"(__m(addr)), "1"(__gu_err))
#define __get_user_8(addr) \
__asm__("1: ldbu %0,%2\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda %0, 2b-1b(%1)\n" \
- ".previous" \
+ EXC(1b,2b,%0,%1) \
: "=r"(__gu_val), "=r"(__gu_err) \
: "m"(__m(addr)), "1"(__gu_err))
#else
@@ -177,12 +163,8 @@ struct __large_struct { unsigned long buf[100]; };
" extwh %1,%3,%1\n" \
" or %0,%1,%0\n" \
"3:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda %0, 3b-1b(%2)\n" \
- " .long 2b - .\n" \
- " lda %0, 3b-2b(%2)\n" \
- ".previous" \
+ EXC(1b,3b,%0,%2) \
+ EXC(2b,3b,%0,%2) \
: "=&r"(__gu_val), "=&r"(__gu_tmp), "=r"(__gu_err) \
: "r"(addr), "2"(__gu_err)); \
}
@@ -191,10 +173,7 @@ struct __large_struct { unsigned long buf[100]; };
__asm__("1: ldq_u %0,0(%2)\n" \
" extbl %0,%2,%0\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda %0, 2b-1b(%1)\n" \
- ".previous" \
+ EXC(1b,2b,%0,%1) \
: "=&r"(__gu_val), "=r"(__gu_err) \
: "r"(addr), "1"(__gu_err))
#endif
@@ -215,21 +194,21 @@ extern void __put_user_unknown(void);
__pu_err; \
})
-#define __put_user_check(x, ptr, size, segment) \
-({ \
- long __pu_err = -EFAULT; \
- __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
- if (__access_ok((unsigned long)__pu_addr, size, segment)) { \
- __pu_err = 0; \
- switch (size) { \
- case 1: __put_user_8(x, __pu_addr); break; \
- case 2: __put_user_16(x, __pu_addr); break; \
- case 4: __put_user_32(x, __pu_addr); break; \
- case 8: __put_user_64(x, __pu_addr); break; \
- default: __put_user_unknown(); break; \
- } \
- } \
- __pu_err; \
+#define __put_user_check(x, ptr, size) \
+({ \
+ long __pu_err = -EFAULT; \
+ __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
+ if (__access_ok((unsigned long)__pu_addr, size)) { \
+ __pu_err = 0; \
+ switch (size) { \
+ case 1: __put_user_8(x, __pu_addr); break; \
+ case 2: __put_user_16(x, __pu_addr); break; \
+ case 4: __put_user_32(x, __pu_addr); break; \
+ case 8: __put_user_64(x, __pu_addr); break; \
+ default: __put_user_unknown(); break; \
+ } \
+ } \
+ __pu_err; \
})
/*
@@ -240,20 +219,14 @@ extern void __put_user_unknown(void);
#define __put_user_64(x, addr) \
__asm__ __volatile__("1: stq %r2,%1\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda $31,2b-1b(%0)\n" \
- ".previous" \
+ EXC(1b,2b,$31,%0) \
: "=r"(__pu_err) \
: "m" (__m(addr)), "rJ" (x), "0"(__pu_err))
#define __put_user_32(x, addr) \
__asm__ __volatile__("1: stl %r2,%1\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda $31,2b-1b(%0)\n" \
- ".previous" \
+ EXC(1b,2b,$31,%0) \
: "=r"(__pu_err) \
: "m"(__m(addr)), "rJ"(x), "0"(__pu_err))
@@ -263,20 +236,14 @@ __asm__ __volatile__("1: stl %r2,%1\n" \
#define __put_user_16(x, addr) \
__asm__ __volatile__("1: stw %r2,%1\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda $31,2b-1b(%0)\n" \
- ".previous" \
+ EXC(1b,2b,$31,%0) \
: "=r"(__pu_err) \
: "m"(__m(addr)), "rJ"(x), "0"(__pu_err))
#define __put_user_8(x, addr) \
__asm__ __volatile__("1: stb %r2,%1\n" \
"2:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda $31,2b-1b(%0)\n" \
- ".previous" \
+ EXC(1b,2b,$31,%0) \
: "=r"(__pu_err) \
: "m"(__m(addr)), "rJ"(x), "0"(__pu_err))
#else
@@ -298,16 +265,10 @@ __asm__ __volatile__("1: stb %r2,%1\n" \
"3: stq_u %2,1(%5)\n" \
"4: stq_u %1,0(%5)\n" \
"5:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda $31, 5b-1b(%0)\n" \
- " .long 2b - .\n" \
- " lda $31, 5b-2b(%0)\n" \
- " .long 3b - .\n" \
- " lda $31, 5b-3b(%0)\n" \
- " .long 4b - .\n" \
- " lda $31, 5b-4b(%0)\n" \
- ".previous" \
+ EXC(1b,5b,$31,%0) \
+ EXC(2b,5b,$31,%0) \
+ EXC(3b,5b,$31,%0) \
+ EXC(4b,5b,$31,%0) \
: "=r"(__pu_err), "=&r"(__pu_tmp1), \
"=&r"(__pu_tmp2), "=&r"(__pu_tmp3), \
"=&r"(__pu_tmp4) \
@@ -324,12 +285,8 @@ __asm__ __volatile__("1: stb %r2,%1\n" \
" or %1,%2,%1\n" \
"2: stq_u %1,0(%4)\n" \
"3:\n" \
- ".section __ex_table,\"a\"\n" \
- " .long 1b - .\n" \
- " lda $31, 3b-1b(%0)\n" \
- " .long 2b - .\n" \
- " lda $31, 3b-2b(%0)\n" \
- ".previous" \
+ EXC(1b,3b,$31,%0) \
+ EXC(2b,3b,$31,%0) \
: "=r"(__pu_err), \
"=&r"(__pu_tmp1), "=&r"(__pu_tmp2) \
: "r"((unsigned long)(x)), "r"(addr), "0"(__pu_err)); \
@@ -341,153 +298,37 @@ __asm__ __volatile__("1: stb %r2,%1\n" \
* Complex access routines
*/
-/* This little bit of silliness is to get the GP loaded for a function
- that ordinarily wouldn't. Otherwise we could have it done by the macro
- directly, which can be optimized the linker. */
-#ifdef MODULE
-#define __module_address(sym) "r"(sym),
-#define __module_call(ra, arg, sym) "jsr $" #ra ",(%" #arg ")," #sym
-#else
-#define __module_address(sym)
-#define __module_call(ra, arg, sym) "bsr $" #ra "," #sym " !samegp"
-#endif
-
-extern void __copy_user(void);
-
-extern inline long
-__copy_tofrom_user_nocheck(void *to, const void *from, long len)
-{
- register void * __cu_to __asm__("$6") = to;
- register const void * __cu_from __asm__("$7") = from;
- register long __cu_len __asm__("$0") = len;
-
- __asm__ __volatile__(
- __module_call(28, 3, __copy_user)
- : "=r" (__cu_len), "=r" (__cu_from), "=r" (__cu_to)
- : __module_address(__copy_user)
- "0" (__cu_len), "1" (__cu_from), "2" (__cu_to)
- : "$1", "$2", "$3", "$4", "$5", "$28", "memory");
-
- return __cu_len;
-}
-
-#define __copy_to_user(to, from, n) \
-({ \
- __chk_user_ptr(to); \
- __copy_tofrom_user_nocheck((__force void *)(to), (from), (n)); \
-})
-#define __copy_from_user(to, from, n) \
-({ \
- __chk_user_ptr(from); \
- __copy_tofrom_user_nocheck((to), (__force void *)(from), (n)); \
-})
-
-#define __copy_to_user_inatomic __copy_to_user
-#define __copy_from_user_inatomic __copy_from_user
+extern long __copy_user(void *to, const void *from, long len);
-extern inline long
-copy_to_user(void __user *to, const void *from, long n)
+static inline unsigned long
+raw_copy_from_user(void *to, const void __user *from, unsigned long len)
{
- if (likely(__access_ok((unsigned long)to, n, get_fs())))
- n = __copy_tofrom_user_nocheck((__force void *)to, from, n);
- return n;
+ return __copy_user(to, (__force const void *)from, len);
}
-extern inline long
-copy_from_user(void *to, const void __user *from, long n)
+static inline unsigned long
+raw_copy_to_user(void __user *to, const void *from, unsigned long len)
{
- long res = n;
- if (likely(__access_ok((unsigned long)from, n, get_fs())))
- res = __copy_from_user_inatomic(to, from, n);
- if (unlikely(res))
- memset(to + (n - res), 0, res);
- return res;
+ return __copy_user((__force void *)to, from, len);
}
-extern void __do_clear_user(void);
-
-extern inline long
-__clear_user(void __user *to, long len)
-{
- register void __user * __cl_to __asm__("$6") = to;
- register long __cl_len __asm__("$0") = len;
- __asm__ __volatile__(
- __module_call(28, 2, __do_clear_user)
- : "=r"(__cl_len), "=r"(__cl_to)
- : __module_address(__do_clear_user)
- "0"(__cl_len), "1"(__cl_to)
- : "$1", "$2", "$3", "$4", "$5", "$28", "memory");
- return __cl_len;
-}
+extern long __clear_user(void __user *to, long len);
extern inline long
clear_user(void __user *to, long len)
{
- if (__access_ok((unsigned long)to, len, get_fs()))
+ if (__access_ok((unsigned long)to, len))
len = __clear_user(to, len);
return len;
}
-#undef __module_address
-#undef __module_call
-
#define user_addr_max() \
- (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
+ (uaccess_kernel() ? ~0UL : TASK_SIZE)
extern long strncpy_from_user(char *dest, const char __user *src, long count);
extern __must_check long strlen_user(const char __user *str);
extern __must_check long strnlen_user(const char __user *str, long n);
-/*
- * About the exception table:
- *
- * - insn is a 32-bit pc-relative offset from the faulting insn.
- * - nextinsn is a 16-bit offset off of the faulting instruction
- * (not off of the *next* instruction as branches are).
- * - errreg is the register in which to place -EFAULT.
- * - valreg is the final target register for the load sequence
- * and will be zeroed.
- *
- * Either errreg or valreg may be $31, in which case nothing happens.
- *
- * The exception fixup information "just so happens" to be arranged
- * as in a MEM format instruction. This lets us emit our three
- * values like so:
- *
- * lda valreg, nextinsn(errreg)
- *
- */
-
-struct exception_table_entry
-{
- signed int insn;
- union exception_fixup {
- unsigned unit;
- struct {
- signed int nextinsn : 16;
- unsigned int errreg : 5;
- unsigned int valreg : 5;
- } bits;
- } fixup;
-};
-
-/* Returns the new pc */
-#define fixup_exception(map_reg, _fixup, pc) \
-({ \
- if ((_fixup)->fixup.bits.valreg != 31) \
- map_reg((_fixup)->fixup.bits.valreg) = 0; \
- if ((_fixup)->fixup.bits.errreg != 31) \
- map_reg((_fixup)->fixup.bits.errreg) = -EFAULT; \
- (pc) + (_fixup)->fixup.bits.nextinsn; \
-})
-
-#define ARCH_HAS_RELATIVE_EXTABLE
-
-#define swap_ex_entry_fixup(a, b, tmp, delta) \
- do { \
- (a)->fixup.unit = (b)->fixup.unit; \
- (b)->fixup.unit = (tmp).fixup.unit; \
- } while (0)
-
+#include <asm/extable.h>
#endif /* __ALPHA_UACCESS_H */

arch/alpha/kernel/traps.c

View file
diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c
index b137390..65bb102 100644
--- a/arch/alpha/kernel/traps.c
+++ b/arch/alpha/kernel/traps.c
@@ -482,12 +482,8 @@ do_entUna(void * va, unsigned long opcode, unsigned long reg,
" extwl %1,%3,%1\n"
" extwh %2,%3,%2\n"
"3:\n"
- ".section __ex_table,\"a\"\n"
- " .long 1b - .\n"
- " lda %1,3b-1b(%0)\n"
- " .long 2b - .\n"
- " lda %2,3b-2b(%0)\n"
- ".previous"
+ EXC(1b,3b,%1,%0)
+ EXC(2b,3b,%2,%0)
: "=r"(error), "=&r"(tmp1), "=&r"(tmp2)
: "r"(va), "0"(0));
if (error)
@@ -502,12 +498,8 @@ do_entUna(void * va, unsigned long opcode, unsigned long reg,
" extll %1,%3,%1\n"
" extlh %2,%3,%2\n"
"3:\n"
- ".section __ex_table,\"a\"\n"
- " .long 1b - .\n"
- " lda %1,3b-1b(%0)\n"
- " .long 2b - .\n"
- " lda %2,3b-2b(%0)\n"
- ".previous"
+ EXC(1b,3b,%1,%0)
+ EXC(2b,3b,%2,%0)
: "=r"(error), "=&r"(tmp1), "=&r"(tmp2)
: "r"(va), "0"(0));
if (error)
@@ -522,12 +514,8 @@ do_entUna(void * va, unsigned long opcode, unsigned long reg,
" extql %1,%3,%1\n"
" extqh %2,%3,%2\n"
"3:\n"

This diff is incomplete. Download the complete patch.

arch/alpha/lib/clear_user.S

View file

This diff is incomplete. Download the complete patch.

arch/alpha/lib/copy_user.S

View file

This diff is incomplete. Download the complete patch.

arch/alpha/lib/csum_partial_copy.c

View file

This diff is incomplete. Download the complete patch.

arch/alpha/lib/ev6-clear_user.S

View file

This diff is incomplete. Download the complete patch.

arch/alpha/lib/ev6-copy_user.S

View file

This diff is incomplete. Download the complete patch.

arch/arc/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/arc/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/arc/mm/extable.c

View file

This diff is incomplete. Download the complete patch.

arch/arm/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/arm/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/arm/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/arm/lib/uaccess_with_memcpy.c

View file

This diff is incomplete. Download the complete patch.

arch/arm64/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/arm64/include/asm/extable.h

View file

This diff is incomplete. Download the complete patch.

arch/arm64/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/arm64/kernel/arm64ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/arm64/lib/copy_in_user.S

View file

This diff is incomplete. Download the complete patch.

arch/avr32/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/avr32/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/avr32/kernel/avr32_ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/avr32/lib/copy_user.S

View file

This diff is incomplete. Download the complete patch.

arch/blackfin/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/blackfin/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/blackfin/kernel/process.c

View file

This diff is incomplete. Download the complete patch.

arch/c6x/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/c6x/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/c6x/kernel/sys_c6x.c

View file

This diff is incomplete. Download the complete patch.

arch/cris/arch-v10/lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

arch/cris/arch-v32/lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

arch/cris/include/arch-v10/arch/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/cris/include/arch-v32/arch/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/cris/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/cris/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/frv/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/frv/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/frv/kernel/traps.c

View file

This diff is incomplete. Download the complete patch.

arch/frv/mm/extable.c

View file

This diff is incomplete. Download the complete patch.

arch/frv/mm/fault.c

View file

This diff is incomplete. Download the complete patch.

arch/h8300/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/h8300/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/hexagon/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/hexagon/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/hexagon/kernel/hexagon_ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/hexagon/mm/copy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/hexagon/mm/copy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/ia64/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/ia64/include/asm/extable.h

View file

This diff is incomplete. Download the complete patch.

arch/ia64/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/ia64/lib/memcpy_mck.S

View file

This diff is incomplete. Download the complete patch.

arch/ia64/mm/extable.c

View file

This diff is incomplete. Download the complete patch.

arch/m32r/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/m32r/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/m32r/kernel/m32r_ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/m32r/lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

arch/m68k/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/m68k/include/asm/processor.h

View file

This diff is incomplete. Download the complete patch.

arch/m68k/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/m68k/include/asm/uaccess_mm.h

View file

This diff is incomplete. Download the complete patch.

arch/m68k/include/asm/uaccess_no.h

View file

This diff is incomplete. Download the complete patch.

arch/m68k/kernel/signal.c

View file

This diff is incomplete. Download the complete patch.

arch/m68k/kernel/traps.c

View file

This diff is incomplete. Download the complete patch.

arch/m68k/lib/uaccess.c

View file

This diff is incomplete. Download the complete patch.

arch/m68k/mm/fault.c

View file

This diff is incomplete. Download the complete patch.

arch/metag/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/metag/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/metag/lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

arch/microblaze/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/microblaze/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/mips/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/mips/cavium-octeon/octeon-memcpy.S

View file

This diff is incomplete. Download the complete patch.

arch/mips/include/asm/checksum.h

View file

This diff is incomplete. Download the complete patch.

arch/mips/include/asm/r4kcache.h

View file

This diff is incomplete. Download the complete patch.

arch/mips/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/mips/kernel/mips-r2-to-r6-emul.c

View file

This diff is incomplete. Download the complete patch.

arch/mips/kernel/syscall.c

View file

This diff is incomplete. Download the complete patch.

arch/mips/kernel/unaligned.c

View file

This diff is incomplete. Download the complete patch.

arch/mips/lib/memcpy.S

View file

This diff is incomplete. Download the complete patch.

arch/mips/oprofile/backtrace.c

View file

This diff is incomplete. Download the complete patch.

arch/mn10300/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/mn10300/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/mn10300/kernel/mn10300_ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/mn10300/lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

arch/nios2/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/nios2/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/nios2/mm/uaccess.c

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/openrisc/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/parisc/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/parisc/include/asm/futex.h

View file

This diff is incomplete. Download the complete patch.

arch/parisc/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/parisc/lib/memcpy.c

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/include/asm/extable.h

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/lib/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/lib/copy_32.S

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/lib/copyuser_64.S

View file

This diff is incomplete. Download the complete patch.

arch/powerpc/lib/usercopy_64.c

View before deletion

This diff is incomplete. Download the complete patch.

arch/s390/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/s390/include/asm/extable.h

View file

This diff is incomplete. Download the complete patch.

arch/s390/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/s390/lib/uaccess.c

View file

This diff is incomplete. Download the complete patch.

arch/score/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/score/include/asm/extable.h

View before deletion

This diff is incomplete. Download the complete patch.

arch/score/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/sh/include/asm/extable.h

View file

This diff is incomplete. Download the complete patch.

arch/sh/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/sparc/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/sparc/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/sparc/include/asm/uaccess_32.h

View file

This diff is incomplete. Download the complete patch.

arch/sparc/include/asm/uaccess_64.h

View file

This diff is incomplete. Download the complete patch.

arch/sparc/kernel/head_32.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/GENcopy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/GENcopy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/GENpatch.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NG2copy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NG2copy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NG2patch.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NG4copy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NG4copy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NG4patch.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NGcopy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NGcopy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/NGpatch.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/U1copy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/U1copy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/U3copy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/U3patch.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/copy_in_user.S

View file

This diff is incomplete. Download the complete patch.

arch/sparc/lib/copy_user.S

View file

This diff is incomplete. Download the complete patch.

arch/tile/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/tile/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/tile/lib/exports.c

View file

This diff is incomplete. Download the complete patch.

arch/tile/lib/memcpy_32.S

View file

This diff is incomplete. Download the complete patch.

arch/tile/lib/memcpy_user_64.c

View file

This diff is incomplete. Download the complete patch.

arch/um/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/um/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/um/kernel/skas/uaccess.c

View file

This diff is incomplete. Download the complete patch.

arch/unicore32/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/unicore32/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/unicore32/kernel/ksyms.c

View file

This diff is incomplete. Download the complete patch.

arch/unicore32/kernel/process.c

View file

This diff is incomplete. Download the complete patch.

arch/unicore32/lib/copy_from_user.S

View file

This diff is incomplete. Download the complete patch.

arch/unicore32/lib/copy_to_user.S

View file

This diff is incomplete. Download the complete patch.

arch/x86/Kconfig

View file

This diff is incomplete. Download the complete patch.

arch/x86/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/x86/include/asm/uaccess_32.h

View file

This diff is incomplete. Download the complete patch.

arch/x86/include/asm/uaccess_64.h

View file

This diff is incomplete. Download the complete patch.

arch/x86/lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

arch/x86/lib/usercopy_32.c

View file

This diff is incomplete. Download the complete patch.

arch/x86/lib/usercopy_64.c

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/include/asm/Kbuild

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/include/asm/asm-uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/include/asm/uaccess.h

View file

This diff is incomplete. Download the complete patch.

arch/xtensa/lib/usercopy.S

View file

This diff is incomplete. Download the complete patch.

block/bsg.c

View file

This diff is incomplete. Download the complete patch.

drivers/scsi/esas2r/esas2r_ioctl.c

View file

This diff is incomplete. Download the complete patch.

drivers/scsi/sg.c

View file

This diff is incomplete. Download the complete patch.

fs/ocfs2/cluster/tcp.c

View file

This diff is incomplete. Download the complete patch.

include/asm-generic/extable.h

View file

This diff is incomplete. Download the complete patch.

include/asm-generic/uaccess.h

View file

This diff is incomplete. Download the complete patch.

include/linux/uaccess.h

View file

This diff is incomplete. Download the complete patch.

include/rdma/ib.h

View file

This diff is incomplete. Download the complete patch.

kernel/trace/bpf_trace.c

View file

This diff is incomplete. Download the complete patch.

lib/Makefile

View file

This diff is incomplete. Download the complete patch.

lib/iov_iter.c

View file

This diff is incomplete. Download the complete patch.

lib/usercopy.c

View file

This diff is incomplete. Download the complete patch.

mm/memory.c

View file

This diff is incomplete. Download the complete patch.

net/rds/tcp.c

View file

This diff is incomplete. Download the complete patch.

net/rds/tcp_send.c

View file

This diff is incomplete. Download the complete patch.

security/Kconfig

View file

This diff is incomplete. Download the complete patch.

security/tomoyo/network.c

View file

This diff is incomplete. Download the complete patch.