diff --git a/Documentation/dontdiff b/Documentation/dontdiff
-index 0c083c5..bf13011 100644
+index b4a898f..830febf 100644
--- a/Documentation/dontdiff
+++ b/Documentation/dontdiff
@@ -2,9 +2,11 @@
SCCS
System.map*
TAGS
-@@ -92,19 +98,24 @@ bounds.h
+@@ -80,6 +86,7 @@ aic7*seq.h*
+ aicasm
+ aicdb.h*
+ altivec*.c
++ashldi3.S
+ asm-offsets.h
+ asm_offsets.h
+ autoconf.h*
+@@ -92,19 +99,24 @@ bounds.h
bsetup
btfixupprep
build
conmakehash
consolemap_deftbl.c*
cpustr.h
-@@ -115,9 +126,11 @@ devlist.h*
+@@ -115,9 +127,11 @@ devlist.h*
dnotify_test
docproc
dslm
fixdep
flask.h
fore200e_mkfirm
-@@ -125,12 +138,15 @@ fore200e_pca_fw.c*
+@@ -125,12 +139,15 @@ fore200e_pca_fw.c*
gconf
gconf.glade.h
gen-devlist
hpet_example
hugepage-mmap
hugepage-shm
-@@ -145,7 +161,7 @@ int32.c
+@@ -145,7 +162,7 @@ int32.c
int4.c
int8.c
kallsyms
keywords.c
ksym.c*
ksym.h*
-@@ -153,7 +169,7 @@ kxgettext
+@@ -153,7 +170,7 @@ kxgettext
lkc_defs.h
lex.c
lex.*.c
logo_*.c
logo_*_clut224.c
logo_*_mono.c
-@@ -165,14 +181,15 @@ machtypes.h
+@@ -164,14 +181,15 @@ machtypes.h
map
map_hugetlb
maui_boot.h
mkprep
mkregtable
mktables
-@@ -208,6 +225,7 @@ r300_reg_safe.h
+@@ -188,6 +206,7 @@ oui.c*
+ page-types
+ parse.c
+ parse.h
++parse-events*
+ patches*
+ pca200e.bin
+ pca200e_ecd.bin2
+@@ -197,6 +216,7 @@ perf-archive
+ piggyback
+ piggy.gzip
+ piggy.S
++pmu-*
+ pnmtologo
+ ppc_defs.h*
+ pss_boot.h
+@@ -207,6 +227,7 @@ r300_reg_safe.h
r420_reg_safe.h
r600_reg_safe.h
recordmcount
relocs
rlim_names.h
rn50_reg_safe.h
-@@ -218,6 +236,7 @@ setup
+@@ -217,6 +238,7 @@ setup
setup.bin
setup.elf
sImage
sm_tbl*
split-include
syscalltab.h
-@@ -228,6 +247,7 @@ tftpboot.img
+@@ -227,6 +249,7 @@ tftpboot.img
timeconst.h
times.h*
trix_boot.h
utsrelease.h*
vdso-syms.lds
vdso.lds
-@@ -245,7 +265,9 @@ vmlinux
+@@ -238,13 +261,17 @@ vdso32.lds
+ vdso32.so.dbg
+ vdso64.lds
+ vdso64.so.dbg
++vdsox32.lds
++vdsox32-syms.lds
+ version.h*
+ vmImage
+ vmlinux
vmlinux-*
vmlinux.aout
vmlinux.bin.all
vmlinuz
voffset.h
vsyscall.lds
-@@ -253,9 +275,11 @@ vsyscall_32.lds
+@@ -252,9 +279,11 @@ vsyscall_32.lds
wanxlfw.inc
uImage
unifdef
+zconf.lex.c
zoffset.h
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
-index d99fd9c..8689fef 100644
+index c1601e5..08557ce 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
-@@ -1977,6 +1977,13 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
+@@ -2021,6 +2021,13 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
the specified number of seconds. This is to be used if
your oopses keep scrolling off the screen.
pcd. [PARIDE]
diff --git a/Makefile b/Makefile
-index 9cd6941..92e68ff 100644
+index a0804c6..f487027 100644
--- a/Makefile
+++ b/Makefile
@@ -245,8 +245,9 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
$(Q)$(MAKE) $(build)=scripts/basic
$(Q)rm -f .tmp_quiet_recordmcount
-@@ -564,6 +565,55 @@ else
+@@ -564,6 +565,56 @@ else
KBUILD_CFLAGS += -O2
endif
+ifndef DISABLE_PAX_PLUGINS
-+ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh "$(HOSTCC)" "$(CC)"), y)
++PLUGINCC := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh "$(HOSTCC)" "$(HOSTCXX)" "$(CC)")
++ifneq ($(PLUGINCC),)
+ifndef DISABLE_PAX_CONSTIFY_PLUGIN
+ifndef CONFIG_UML
+CONSTIFY_PLUGIN_CFLAGS := -fplugin=$(objtree)/tools/gcc/constify_plugin.so -DCONSTIFY_PLUGIN
+GCC_PLUGINS_CFLAGS := $(CONSTIFY_PLUGIN_CFLAGS) $(STACKLEAK_PLUGIN_CFLAGS) $(KALLOCSTAT_PLUGIN_CFLAGS)
+GCC_PLUGINS_CFLAGS += $(KERNEXEC_PLUGIN_CFLAGS) $(CHECKER_PLUGIN_CFLAGS) $(COLORIZE_PLUGIN_CFLAGS) $(SIZE_OVERFLOW_PLUGIN)
+GCC_PLUGINS_AFLAGS := $(KERNEXEC_PLUGIN_AFLAGS)
-+export CONSTIFY_PLUGIN STACKLEAK_PLUGIN KERNEXEC_PLUGIN CHECKER_PLUGIN SIZE_OVERFLOW_PLUGIN
++export PLUGINCC CONSTIFY_PLUGIN STACKLEAK_PLUGIN KERNEXEC_PLUGIN CHECKER_PLUGIN SIZE_OVERFLOW_PLUGIN
+ifeq ($(KBUILD_EXTMOD),)
+gcc-plugins:
+ $(Q)$(MAKE) $(build)=tools/gcc
include $(srctree)/arch/$(SRCARCH)/Makefile
ifneq ($(CONFIG_FRAME_WARN),0)
-@@ -708,7 +758,7 @@ export mod_strip_cmd
+@@ -708,7 +759,7 @@ export mod_strip_cmd
ifeq ($(KBUILD_EXTMOD),)
vmlinux-dirs := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
$(core-y) $(core-m) $(drivers-y) $(drivers-m) \
-@@ -932,6 +982,8 @@ vmlinux.o: $(modpost-init) $(vmlinux-main) FORCE
+@@ -932,6 +983,8 @@ vmlinux.o: $(modpost-init) $(vmlinux-main) FORCE
# The actual objects are generated when descending,
# make sure no implicit rule kicks in
$(sort $(vmlinux-init) $(vmlinux-main)) $(vmlinux-lds): $(vmlinux-dirs) ;
# Handle descending into subdirectories listed in $(vmlinux-dirs)
-@@ -941,7 +993,7 @@ $(sort $(vmlinux-init) $(vmlinux-main)) $(vmlinux-lds): $(vmlinux-dirs) ;
+@@ -941,7 +994,7 @@ $(sort $(vmlinux-init) $(vmlinux-main)) $(vmlinux-lds): $(vmlinux-dirs) ;
# Error messages still appears in the original language
PHONY += $(vmlinux-dirs)
$(Q)$(MAKE) $(build)=$@
# Store (new) KERNELRELASE string in include/config/kernel.release
-@@ -985,6 +1037,7 @@ prepare0: archprepare FORCE
+@@ -985,6 +1038,7 @@ prepare0: archprepare FORCE
$(Q)$(MAKE) $(build)=.
# All the preparing..
prepare: prepare0
# Generate some files
-@@ -1089,6 +1142,8 @@ all: modules
+@@ -1092,6 +1146,8 @@ all: modules
# using awk while concatenating to the final file.
PHONY += modules
modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin
$(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
@$(kecho) ' Building modules, stage 2.';
-@@ -1104,7 +1159,7 @@ modules.builtin: $(vmlinux-dirs:%=%/modules.builtin)
+@@ -1107,7 +1163,7 @@ modules.builtin: $(vmlinux-dirs:%=%/modules.builtin)
# Target to prepare building external modules
PHONY += modules_prepare
# Target to install modules
PHONY += modules_install
-@@ -1201,6 +1256,7 @@ distclean: mrproper
+@@ -1204,6 +1260,7 @@ distclean: mrproper
\( -name '*.orig' -o -name '*.rej' -o -name '*~' \
-o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
-o -name '.*.rej' \
-o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
-type f -print | xargs rm -f
-@@ -1361,6 +1417,8 @@ PHONY += $(module-dirs) modules
+@@ -1364,6 +1421,8 @@ PHONY += $(module-dirs) modules
$(module-dirs): crmodverdir $(objtree)/Module.symvers
$(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)
modules: $(module-dirs)
@$(kecho) ' Building modules, stage 2.';
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
-@@ -1487,17 +1545,21 @@ else
+@@ -1490,17 +1549,21 @@ else
target-dir = $(if $(KBUILD_EXTMOD),$(dir $<),$(dir $@))
endif
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
%.symtypes: %.c prepare scripts FORCE
$(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
-@@ -1507,11 +1569,15 @@ endif
+@@ -1510,11 +1573,15 @@ endif
$(cmd_crmodverdir)
$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
$(build)=$(build-dir)
$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
$(build)=$(build-dir) $(@:.ko=.o)
diff --git a/arch/alpha/include/asm/atomic.h b/arch/alpha/include/asm/atomic.h
-index 640f909..48b6597 100644
+index 3bb7ffe..347a54c 100644
--- a/arch/alpha/include/asm/atomic.h
+++ b/arch/alpha/include/asm/atomic.h
@@ -250,6 +250,16 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
#endif
diff --git a/arch/alpha/include/asm/elf.h b/arch/alpha/include/asm/elf.h
-index da5449e..7418343 100644
+index 968d999..d36b2df 100644
--- a/arch/alpha/include/asm/elf.h
+++ b/arch/alpha/include/asm/elf.h
-@@ -90,6 +90,13 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
+@@ -91,6 +91,13 @@ typedef elf_fpreg_t elf_fpregset_t[ELF_NFPREG];
#define ELF_ET_DYN_BASE (TASK_UNMAPPED_BASE + 0x1000000)
static inline void
diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/include/asm/pgtable.h
-index de98a73..bd4f1f8 100644
+index 81a4342..348b927 100644
--- a/arch/alpha/include/asm/pgtable.h
+++ b/arch/alpha/include/asm/pgtable.h
-@@ -101,6 +101,17 @@ struct vm_area_struct;
+@@ -102,6 +102,17 @@ struct vm_area_struct;
#define PAGE_SHARED __pgprot(_PAGE_VALID | __ACCESS_BITS)
#define PAGE_COPY __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW)
#define PAGE_READONLY __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW)
for (i = 0; i < n; i++) {
diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
-index 01e8715..be0e80f 100644
+index 49ee319..9ee7d14 100644
--- a/arch/alpha/kernel/osf_sys.c
+++ b/arch/alpha/kernel/osf_sys.c
-@@ -1147,7 +1147,7 @@ arch_get_unmapped_area_1(unsigned long addr, unsigned long len,
+@@ -1146,7 +1146,7 @@ arch_get_unmapped_area_1(unsigned long addr, unsigned long len,
/* At this point: (!vma || addr < vma->vm_end). */
if (limit - len < addr)
return -ENOMEM;
return addr;
addr = vma->vm_end;
vma = vma->vm_next;
-@@ -1183,6 +1183,10 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -1182,6 +1182,10 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
merely specific addresses, but regions of memory -- perhaps
this feature should be incorporated into all ports? */
if (addr) {
addr = arch_get_unmapped_area_1 (PAGE_ALIGN(addr), len, limit);
if (addr != (unsigned long) -ENOMEM)
-@@ -1190,8 +1194,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -1189,8 +1193,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
}
/* Next, try allocating at TASK_UNMAPPED_BASE. */
return addr;
diff --git a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c
-index fadd5f8..904e73a 100644
+index 5eecab1..609abc0 100644
--- a/arch/alpha/mm/fault.c
+++ b/arch/alpha/mm/fault.c
-@@ -54,6 +54,124 @@ __load_new_mm_context(struct mm_struct *next_mm)
+@@ -53,6 +53,124 @@ __load_new_mm_context(struct mm_struct *next_mm)
__reload_thread(pcb);
}
/*
* This routine handles page faults. It determines the address,
-@@ -131,8 +249,29 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
+@@ -130,8 +248,29 @@ do_page_fault(unsigned long address, unsigned long mmcsr,
good_area:
si_code = SEGV_ACCERR;
if (cause < 0) {
/* Allow reads even for write-only mappings */
if (!(vma->vm_flags & (VM_READ | VM_WRITE)))
diff --git a/arch/arm/include/asm/atomic.h b/arch/arm/include/asm/atomic.h
-index 86976d0..8e07f84 100644
+index 68374ba..cff7196 100644
--- a/arch/arm/include/asm/atomic.h
+++ b/arch/arm/include/asm/atomic.h
-@@ -15,6 +15,10 @@
- #include <linux/types.h>
- #include <asm/system.h>
+@@ -17,17 +17,35 @@
+ #include <asm/barrier.h>
+ #include <asm/cmpxchg.h>
+#ifdef CONFIG_GENERIC_ATOMIC64
+#include <asm-generic/atomic64.h>
#define ATOMIC_INIT(i) { (i) }
#ifdef __KERNEL__
-@@ -25,7 +29,15 @@
+
++#define _ASM_EXTABLE(from, to) \
++" .pushsection __ex_table,\"a\"\n"\
++" .align 3\n" \
++" .long " #from ", " #to"\n" \
++" .popsection"
++
+ /*
+ * On ARM, ordinary assignment (str instruction) doesn't clear the local
+ * strex/ldrex monitor on some implementations. The reason we can use it for
* atomic_set() is the clrex or dummy strex done on every exception return.
*/
#define atomic_read(v) (*(volatile int *)&(v)->counter)
#if __LINUX_ARM_ARCH__ >= 6
-@@ -40,6 +52,35 @@ static inline void atomic_add(int i, atomic_t *v)
+@@ -42,6 +60,35 @@ static inline void atomic_add(int i, atomic_t *v)
int result;
__asm__ __volatile__("@ atomic_add\n"
"1: ldrex %0, [%3]\n"
" add %0, %0, %4\n"
" strex %1, %0, [%3]\n"
-@@ -58,6 +99,42 @@ static inline int atomic_add_return(int i, atomic_t *v)
+@@ -60,6 +107,42 @@ static inline int atomic_add_return(int i, atomic_t *v)
smp_mb();
__asm__ __volatile__("@ atomic_add_return\n"
+#ifdef CONFIG_PAX_REFCOUNT
+" bvc 3f\n"
+" mov %0, %1\n"
-+"2: bkpt 0xf103\n"
++"2: bkpt 0xf103\n"
+"3:\n"
+#endif
+
"1: ldrex %0, [%3]\n"
" add %0, %0, %4\n"
" strex %1, %0, [%3]\n"
-@@ -78,6 +155,35 @@ static inline void atomic_sub(int i, atomic_t *v)
+@@ -80,6 +163,35 @@ static inline void atomic_sub(int i, atomic_t *v)
int result;
__asm__ __volatile__("@ atomic_sub\n"
"1: ldrex %0, [%3]\n"
" sub %0, %0, %4\n"
" strex %1, %0, [%3]\n"
-@@ -96,11 +202,25 @@ static inline int atomic_sub_return(int i, atomic_t *v)
+@@ -98,11 +210,25 @@ static inline int atomic_sub_return(int i, atomic_t *v)
smp_mb();
__asm__ __volatile__("@ atomic_sub_return\n"
: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)
: "r" (&v->counter), "Ir" (i)
: "cc");
-@@ -132,6 +252,28 @@ static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
+@@ -134,6 +260,28 @@ static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
return oldval;
}
static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
{
unsigned long tmp, tmp2;
-@@ -165,7 +307,9 @@ static inline int atomic_add_return(int i, atomic_t *v)
+@@ -167,7 +315,17 @@ static inline int atomic_add_return(int i, atomic_t *v)
return val;
}
-+#define atomic_add_return_unchecked(i, v) atomic_add_return(i, v)
++
++static inline int atomic_add_return_unchecked(int i, atomic_unchecked_t *v)
++{
++ return atomic_add_return(i, v);
++}
++
#define atomic_add(i, v) (void) atomic_add_return(i, v)
-+#define atomic_add_unchecked(i, v) (void) atomic_add_return_unchecked(i, v)
++static inline void atomic_add_unchecked(int i, atomic_unchecked_t *v)
++{
++ (void) atomic_add_return(i, v);
++}
static inline int atomic_sub_return(int i, atomic_t *v)
{
-@@ -179,7 +323,9 @@ static inline int atomic_sub_return(int i, atomic_t *v)
-
+@@ -182,6 +340,10 @@ static inline int atomic_sub_return(int i, atomic_t *v)
return val;
}
-+#define atomic_sub_return_unchecked(i, v) atomic_sub_return(i, v)
#define atomic_sub(i, v) (void) atomic_sub_return(i, v)
-+#define atomic_sub_unchecked(i, v) (void) atomic_sub_return_unchecked(i, v)
++static inline void atomic_sub_unchecked(int i, atomic_unchecked_t *v)
++{
++ (void) atomic_sub_return(i, v);
++}
static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
{
-@@ -194,6 +340,7 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
-
+@@ -197,6 +359,11 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
return ret;
}
-+#define atomic_cmpxchg_unchecked(v, o, n) atomic_cmpxchg(v, o, n)
++static inline int atomic_cmpxchg_unchecked(atomic_unchecked_t *v, int old, int new)
++{
++ return atomic_cmpxchg(v, old, new);
++}
++
static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
{
-@@ -207,6 +354,10 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
+ unsigned long flags;
+@@ -209,6 +376,10 @@ static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
#endif /* __LINUX_ARM_ARCH__ */
#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
static inline int __atomic_add_unless(atomic_t *v, int a, int u)
{
-@@ -219,11 +370,27 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
+@@ -221,11 +392,27 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
}
#define atomic_inc(v) atomic_add(1, v)
#define atomic_dec_return(v) (atomic_sub_return(1, v))
#define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
-@@ -239,6 +406,14 @@ typedef struct {
+@@ -241,6 +428,14 @@ typedef struct {
u64 __aligned(8) counter;
} atomic64_t;
#define ATOMIC64_INIT(i) { (i) }
static inline u64 atomic64_read(atomic64_t *v)
-@@ -254,6 +429,19 @@ static inline u64 atomic64_read(atomic64_t *v)
+@@ -256,6 +451,19 @@ static inline u64 atomic64_read(atomic64_t *v)
return result;
}
static inline void atomic64_set(atomic64_t *v, u64 i)
{
u64 tmp;
-@@ -268,6 +456,20 @@ static inline void atomic64_set(atomic64_t *v, u64 i)
+@@ -270,6 +478,20 @@ static inline void atomic64_set(atomic64_t *v, u64 i)
: "cc");
}
static inline void atomic64_add(u64 i, atomic64_t *v)
{
u64 result;
-@@ -276,6 +478,36 @@ static inline void atomic64_add(u64 i, atomic64_t *v)
+@@ -278,6 +500,36 @@ static inline void atomic64_add(u64 i, atomic64_t *v)
__asm__ __volatile__("@ atomic64_add\n"
"1: ldrexd %0, %H0, [%3]\n"
" adds %0, %0, %4\n"
" adc %H0, %H0, %H4\n"
" strexd %1, %0, %H0, [%3]\n"
" teq %1, #0\n"
-@@ -287,12 +519,49 @@ static inline void atomic64_add(u64 i, atomic64_t *v)
+@@ -289,12 +541,49 @@ static inline void atomic64_add(u64 i, atomic64_t *v)
static inline u64 atomic64_add_return(u64 i, atomic64_t *v)
{
"1: ldrexd %0, %H0, [%3]\n"
" adds %0, %0, %4\n"
" adc %H0, %H0, %H4\n"
-@@ -316,6 +585,36 @@ static inline void atomic64_sub(u64 i, atomic64_t *v)
+@@ -318,6 +607,36 @@ static inline void atomic64_sub(u64 i, atomic64_t *v)
__asm__ __volatile__("@ atomic64_sub\n"
"1: ldrexd %0, %H0, [%3]\n"
" subs %0, %0, %4\n"
" sbc %H0, %H0, %H4\n"
" strexd %1, %0, %H0, [%3]\n"
" teq %1, #0\n"
-@@ -327,18 +626,32 @@ static inline void atomic64_sub(u64 i, atomic64_t *v)
+@@ -329,18 +648,32 @@ static inline void atomic64_sub(u64 i, atomic64_t *v)
static inline u64 atomic64_sub_return(u64 i, atomic64_t *v)
{
: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)
: "r" (&v->counter), "r" (i)
: "cc");
-@@ -372,6 +685,30 @@ static inline u64 atomic64_cmpxchg(atomic64_t *ptr, u64 old, u64 new)
+@@ -374,6 +707,30 @@ static inline u64 atomic64_cmpxchg(atomic64_t *ptr, u64 old, u64 new)
return oldval;
}
static inline u64 atomic64_xchg(atomic64_t *ptr, u64 new)
{
u64 result;
-@@ -395,21 +732,34 @@ static inline u64 atomic64_xchg(atomic64_t *ptr, u64 new)
+@@ -397,21 +754,34 @@ static inline u64 atomic64_xchg(atomic64_t *ptr, u64 new)
static inline u64 atomic64_dec_if_positive(atomic64_t *v)
{
: "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)
: "r" (&v->counter)
: "cc");
-@@ -432,13 +782,25 @@ static inline int atomic64_add_unless(atomic64_t *v, u64 a, u64 u)
+@@ -434,13 +804,25 @@ static inline int atomic64_add_unless(atomic64_t *v, u64 a, u64 u)
" teq %0, %5\n"
" teqeq %H0, %H5\n"
" moveq %1, #0\n"
: "=&r" (val), "+r" (ret), "=&r" (tmp), "+Qo" (v->counter)
: "r" (&v->counter), "r" (u), "r" (a)
: "cc");
-@@ -451,10 +813,13 @@ static inline int atomic64_add_unless(atomic64_t *v, u64 a, u64 u)
+@@ -453,10 +835,13 @@ static inline int atomic64_add_unless(atomic64_t *v, u64 a, u64 u)
#define atomic64_add_negative(a, v) (atomic64_add_return((a), (v)) < 0)
#define atomic64_inc(v) atomic64_add(1LL, (v))
/*
* Memory returned by kmalloc() may be used for DMA, so we must make
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
-index d5d8d5c..ad92c96 100644
+index 1252a26..9dc17b5 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -108,7 +108,7 @@ struct cpu_cache_fns {
/*
* Select the calling method
+diff --git a/arch/arm/include/asm/cmpxchg.h b/arch/arm/include/asm/cmpxchg.h
+index d41d7cb..9bea5e0 100644
+--- a/arch/arm/include/asm/cmpxchg.h
++++ b/arch/arm/include/asm/cmpxchg.h
+@@ -102,6 +102,8 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size
+
+ #define xchg(ptr,x) \
+ ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
++#define xchg_unchecked(ptr,x) \
++ ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
+
+ #include <asm-generic/cmpxchg-local.h>
+
diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
-index 0e9ce8d..6ef1e03 100644
+index 38050b1..9d90e8b 100644
--- a/arch/arm/include/asm/elf.h
+++ b/arch/arm/include/asm/elf.h
@@ -116,7 +116,14 @@ int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);
/* When the program starts, a1 contains a pointer to a function to be
registered with atexit, as per the SVR4 ABI. A value of 0 means we
-@@ -126,10 +133,6 @@ int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);
+@@ -126,8 +133,4 @@ int dump_task_regs(struct task_struct *t, elf_gregset_t *elfregs);
extern void elf_set_personality(const struct elf32_hdr *);
#define SET_PERSONALITY(ex) elf_set_personality(&(ex))
-extern unsigned long arch_randomize_brk(struct mm_struct *mm);
-#define arch_randomize_brk arch_randomize_brk
-
- extern int vectors_user_mapping(void);
- #define arch_setup_additional_pages(bprm, uses_interp) vectors_user_mapping()
- #define ARCH_HAS_SETUP_ADDITIONAL_PAGES
+ #endif
diff --git a/arch/arm/include/asm/kmap_types.h b/arch/arm/include/asm/kmap_types.h
index e51b1e8..32a3113 100644
--- a/arch/arm/include/asm/kmap_types.h
#ifdef CONFIG_OUTER_CACHE
diff --git a/arch/arm/include/asm/page.h b/arch/arm/include/asm/page.h
-index 97b440c..b7ff179 100644
+index 5838361..da6e813 100644
--- a/arch/arm/include/asm/page.h
+++ b/arch/arm/include/asm/page.h
@@ -123,7 +123,7 @@ struct cpu_user_fns {
#endif /* CONFIG_ARM_LPAE */
-diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
-index e4c96cc..1145653 100644
---- a/arch/arm/include/asm/system.h
-+++ b/arch/arm/include/asm/system.h
-@@ -98,6 +98,8 @@ void hook_ifault_code(int nr, int (*fn)(unsigned long, unsigned int,
-
- #define xchg(ptr,x) \
- ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-+#define xchg_unchecked(ptr,x) \
-+ ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
-
- extern asmlinkage void c_backtrace(unsigned long fp, int pmode);
-
-@@ -534,6 +536,13 @@ static inline unsigned long long __cmpxchg64_mb(volatile void *ptr,
-
- #endif /* __LINUX_ARM_ARCH__ >= 6 */
-
-+#define _ASM_EXTABLE(from, to) \
-+" .pushsection __ex_table,\"a\"\n"\
-+" .align 3\n" \
-+" .long " #from ", " #to"\n" \
-+" .popsection"
-+
-+
- #endif /* __ASSEMBLY__ */
-
- #define arch_align_stack(x) (x)
diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h
-index d4c24d4..4ac53e8 100644
+index 0f04d84..2be5648 100644
--- a/arch/arm/include/asm/thread_info.h
+++ b/arch/arm/include/asm/thread_info.h
-@@ -141,6 +141,12 @@ extern void vfp_flush_hwstate(struct thread_info *);
+@@ -148,6 +148,12 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
#define TIF_NOTIFY_RESUME 2 /* callback before returning to user */
#define TIF_SYSCALL_TRACE 8
#define TIF_SYSCALL_AUDIT 9
#define TIF_POLLING_NRFLAG 16
#define TIF_USING_IWMMXT 17
#define TIF_MEMDIE 18 /* is terminating due to OOM killer */
-@@ -156,9 +162,11 @@ extern void vfp_flush_hwstate(struct thread_info *);
+@@ -163,9 +169,11 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
#define _TIF_USING_IWMMXT (1 << TIF_USING_IWMMXT)
#define _TIF_RESTORE_SIGMASK (1 << TIF_RESTORE_SIGMASK)
#define _TIF_SECCOMP (1 << TIF_SECCOMP)
/*
* Change these and you break ASM code in entry-common.S
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h
-index 2958976..12ccac4 100644
+index 71f6536..602f279 100644
--- a/arch/arm/include/asm/uaccess.h
+++ b/arch/arm/include/asm/uaccess.h
@@ -22,6 +22,8 @@
n = __copy_to_user(to, from, n);
return n;
diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c
-index 5b0bce6..becd81c 100644
+index b57c75e..ed2d6b2 100644
--- a/arch/arm/kernel/armksyms.c
+++ b/arch/arm/kernel/armksyms.c
-@@ -95,8 +95,8 @@ EXPORT_SYMBOL(__strncpy_from_user);
+@@ -94,8 +94,8 @@ EXPORT_SYMBOL(__strncpy_from_user);
#ifdef CONFIG_MMU
EXPORT_SYMBOL(copy_page);
EXPORT_SYMBOL(__get_user_1);
diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
-index 971d65c..cc936fb 100644
+index 2b7b017..c380fa2 100644
--- a/arch/arm/kernel/process.c
+++ b/arch/arm/kernel/process.c
@@ -28,7 +28,6 @@
#include <linux/hw_breakpoint.h>
#include <linux/cpuidle.h>
-@@ -273,9 +272,10 @@ void machine_power_off(void)
+@@ -275,9 +274,10 @@ void machine_power_off(void)
machine_shutdown();
if (pm_power_off)
pm_power_off();
{
machine_shutdown();
-@@ -517,12 +517,6 @@ unsigned long get_wchan(struct task_struct *p)
+@@ -519,12 +519,6 @@ unsigned long get_wchan(struct task_struct *p)
return 0;
}
/*
* The vectors page is always readable from user space for the
diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
-index f5ce8ab..4b73893 100644
+index 9650c14..ae30cdd 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
-@@ -905,10 +905,19 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -906,10 +906,19 @@ long arch_ptrace(struct task_struct *child, long request,
return ret;
}
audit_syscall_exit(regs);
else
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
-index a255c39..4a19b25 100644
+index ebfac78..cbea9c0 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
-@@ -109,13 +109,13 @@ struct processor processor __read_mostly;
+@@ -111,13 +111,13 @@ struct processor processor __read_mostly;
struct cpu_tlb_fns cpu_tlb __read_mostly;
#endif
#ifdef MULTI_USER
#endif
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
-index f84dfe6..13e94f7 100644
+index 63d402f..db1d714 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
-@@ -259,6 +259,8 @@ static int __die(const char *str, int err, struct thread_info *thread, struct pt
+@@ -264,6 +264,8 @@ static int __die(const char *str, int err, struct thread_info *thread, struct pt
static DEFINE_RAW_SPINLOCK(die_lock);
/*
* This function is protected against re-entrancy.
*/
-@@ -291,6 +293,9 @@ void die(const char *str, struct pt_regs *regs, int err)
+@@ -296,6 +298,9 @@ void die(const char *str, struct pt_regs *regs, int err)
panic("Fatal exception in interrupt");
if (panic_on_oops)
panic("Fatal exception");
/*
* This test is stubbed out of the main function above to keep
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
-index 6722627..8f97548c 100644
+index 518091c..eae9a76 100644
--- a/arch/arm/mach-omap2/board-n8x0.c
+++ b/arch/arm/mach-omap2/board-n8x0.c
-@@ -597,7 +597,7 @@ static int n8x0_menelaus_late_init(struct device *dev)
+@@ -596,7 +596,7 @@ static int n8x0_menelaus_late_init(struct device *dev)
}
#endif
.late_init = n8x0_menelaus_late_init,
};
-diff --git a/arch/arm/mach-ux500/mbox-db5500.c b/arch/arm/mach-ux500/mbox-db5500.c
-index 2b2d51c..0127490 100644
---- a/arch/arm/mach-ux500/mbox-db5500.c
-+++ b/arch/arm/mach-ux500/mbox-db5500.c
-@@ -168,7 +168,7 @@ static ssize_t mbox_read_fifo(struct device *dev,
- return sprintf(buf, "0x%X\n", mbox_value);
- }
-
--static DEVICE_ATTR(fifo, S_IWUGO | S_IRUGO, mbox_read_fifo, mbox_write_fifo);
-+static DEVICE_ATTR(fifo, S_IWUSR | S_IRUGO, mbox_read_fifo, mbox_write_fifo);
-
- static int mbox_show(struct seq_file *s, void *data)
- {
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
-index bb7eac3..3bade16 100644
+index 5bb4835..4760f68 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
-@@ -172,6 +172,13 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
+@@ -174,6 +174,13 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
}
#endif
tsk->thread.address = addr;
tsk->thread.error_code = fsr;
tsk->thread.trap_no = 14;
-@@ -393,6 +400,33 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
+@@ -397,6 +404,33 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
}
#endif /* CONFIG_MMU */
/*
* First Level Translation Fault Handler
*
-@@ -573,6 +607,20 @@ do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
+@@ -577,6 +611,20 @@ do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
const struct fsr_info *inf = ifsr_info + fsr_fs(ifsr);
struct siginfo info;
mm->get_unmapped_area = arch_get_unmapped_area_topdown;
mm->unmap_area = arch_unmap_area_topdown;
}
+diff --git a/arch/arm/plat-orion/include/plat/addr-map.h b/arch/arm/plat-orion/include/plat/addr-map.h
+index fd556f7..af2e7d2 100644
+--- a/arch/arm/plat-orion/include/plat/addr-map.h
++++ b/arch/arm/plat-orion/include/plat/addr-map.h
+@@ -26,7 +26,7 @@ struct orion_addr_map_cfg {
+ value in bridge_virt_base */
+ void __iomem *(*win_cfg_base) (const struct orion_addr_map_cfg *cfg,
+ const int win);
+-};
++} __no_const;
+
+ /*
+ * Information needed to setup one address mapping.
diff --git a/arch/arm/plat-samsung/include/plat/dma-ops.h b/arch/arm/plat-samsung/include/plat/dma-ops.h
index 71a6827..e7fbc23 100644
--- a/arch/arm/plat-samsung/include/plat/dma-ops.h
#define __read_mostly __attribute__((__section__(".data.read_mostly")))
diff --git a/arch/frv/include/asm/atomic.h b/arch/frv/include/asm/atomic.h
-index 0d8a7d6..d0c9ff5 100644
+index b86329d..6709906 100644
--- a/arch/frv/include/asm/atomic.h
+++ b/arch/frv/include/asm/atomic.h
-@@ -241,6 +241,16 @@ extern uint32_t __xchg_32(uint32_t i, volatile void *v);
+@@ -186,6 +186,16 @@ static inline void atomic64_dec(atomic64_t *v)
#define atomic64_cmpxchg(v, old, new) (__cmpxchg_64(old, new, &(v)->counter))
#define atomic64_xchg(v, new) (__xchg_64(new, &(v)->counter))
#define __cacheline_aligned __aligned(L1_CACHE_BYTES)
#define ____cacheline_aligned __aligned(L1_CACHE_BYTES)
diff --git a/arch/ia64/include/asm/atomic.h b/arch/ia64/include/asm/atomic.h
-index 3fad89e..3047da5 100644
+index 7d91166..88ab87e 100644
--- a/arch/ia64/include/asm/atomic.h
+++ b/arch/ia64/include/asm/atomic.h
-@@ -209,6 +209,16 @@ atomic64_add_negative (__s64 i, atomic64_t *v)
+@@ -208,6 +208,16 @@ atomic64_add_negative (__s64 i, atomic64_t *v)
#define atomic64_inc(v) atomic64_add(1, (v))
#define atomic64_dec(v) atomic64_sub(1, (v))
{
return quicklist_alloc(0, GFP_KERNEL, NULL);
diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h
-index 1a97af3..7529d31 100644
+index 815810c..d60bd4c 100644
--- a/arch/ia64/include/asm/pgtable.h
+++ b/arch/ia64/include/asm/pgtable.h
@@ -12,7 +12,7 @@
#include <asm/mman.h>
#include <asm/page.h>
#include <asm/processor.h>
-@@ -143,6 +143,17 @@
+@@ -142,6 +142,17 @@
#define PAGE_READONLY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R)
#define PAGE_COPY __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_R)
#define PAGE_COPY_EXEC __pgprot(__ACCESS_BITS | _PAGE_PL_3 | _PAGE_AR_RX)
#define PAGE_KERNEL __pgprot(__DIRTY_BITS | _PAGE_PL_0 | _PAGE_AR_RWX)
#define PAGE_KERNELRX __pgprot(__ACCESS_BITS | _PAGE_PL_0 | _PAGE_AR_RX)
diff --git a/arch/ia64/include/asm/spinlock.h b/arch/ia64/include/asm/spinlock.h
-index b77768d..e0795eb 100644
+index 54ff557..70c88b7 100644
--- a/arch/ia64/include/asm/spinlock.h
+++ b/arch/ia64/include/asm/spinlock.h
-@@ -72,7 +72,7 @@ static __always_inline void __ticket_spin_unlock(arch_spinlock_t *lock)
+@@ -71,7 +71,7 @@ static __always_inline void __ticket_spin_unlock(arch_spinlock_t *lock)
unsigned short *p = (unsigned short *)&lock->lock + 1, tmp;
asm volatile ("ld2.bias %0=[%1]" : "=r"(tmp) : "r"(p));
mm->free_area_cache = addr + len;
return addr;
diff --git a/arch/ia64/kernel/vmlinux.lds.S b/arch/ia64/kernel/vmlinux.lds.S
-index 53c0ba0..2accdde 100644
+index 0ccb28f..8992469 100644
--- a/arch/ia64/kernel/vmlinux.lds.S
+++ b/arch/ia64/kernel/vmlinux.lds.S
-@@ -199,7 +199,7 @@ SECTIONS {
+@@ -198,7 +198,7 @@ SECTIONS {
/* Per-cpu data: */
. = ALIGN(PERCPU_PAGE_SIZE);
PERCPU_VADDR(SMP_CACHE_BYTES, PERCPU_ADDR, :percpu)
* ensure percpu data fits
* into percpu page size
diff --git a/arch/ia64/mm/fault.c b/arch/ia64/mm/fault.c
-index 20b3593..1ce77f0 100644
+index 02d29c2..ea893df 100644
--- a/arch/ia64/mm/fault.c
+++ b/arch/ia64/mm/fault.c
-@@ -73,6 +73,23 @@ mapped_kernel_page_is_present (unsigned long address)
+@@ -72,6 +72,23 @@ mapped_kernel_page_is_present (unsigned long address)
return pte_present(pte);
}
void __kprobes
ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *regs)
{
-@@ -146,9 +163,23 @@ ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *re
+@@ -145,9 +162,23 @@ ia64_do_page_fault (unsigned long address, unsigned long isr, struct pt_regs *re
mask = ( (((isr >> IA64_ISR_X_BIT) & 1UL) << VM_EXEC_BIT)
| (((isr >> IA64_ISR_W_BIT) & 1UL) << VM_WRITE_BIT));
addr = ALIGN(vmm->vm_end, HPAGE_SIZE);
}
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
-index 13df239d..cb52116 100644
+index 0eab454..bd794f2 100644
--- a/arch/ia64/mm/init.c
+++ b/arch/ia64/mm/init.c
-@@ -121,6 +121,19 @@ ia64_init_addr_space (void)
+@@ -120,6 +120,19 @@ ia64_init_addr_space (void)
vma->vm_start = current->thread.rbs_bot & PAGE_MASK;
vma->vm_end = vma->vm_start + PAGE_SIZE;
vma->vm_flags = VM_DATA_DEFAULT_FLAGS|VM_GROWSUP|VM_ACCOUNT;
#define SMP_CACHE_BYTES L1_CACHE_BYTES
diff --git a/arch/mips/include/asm/atomic.h b/arch/mips/include/asm/atomic.h
-index 1d93f81..67794d0 100644
+index 3f4c5cb..3439c6e 100644
--- a/arch/mips/include/asm/atomic.h
+++ b/arch/mips/include/asm/atomic.h
@@ -21,6 +21,10 @@
+ #include <asm/cmpxchg.h>
#include <asm/war.h>
- #include <asm/system.h>
+#ifdef CONFIG_GENERIC_ATOMIC64
+#include <asm-generic/atomic64.h>
-#define arch_randomize_brk arch_randomize_brk
-
#endif /* _ASM_ELF_H */
+diff --git a/arch/mips/include/asm/exec.h b/arch/mips/include/asm/exec.h
+index c1f6afa..38cc6e9 100644
+--- a/arch/mips/include/asm/exec.h
++++ b/arch/mips/include/asm/exec.h
+@@ -12,6 +12,6 @@
+ #ifndef _ASM_EXEC_H
+ #define _ASM_EXEC_H
+
+-extern unsigned long arch_align_stack(unsigned long sp);
++#define arch_align_stack(x) ((x) & ~0xfUL)
+
+ #endif /* _ASM_EXEC_H */
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h
index da9bd7d..91aa7ab 100644
--- a/arch/mips/include/asm/page.h
#endif
/*
-diff --git a/arch/mips/include/asm/system.h b/arch/mips/include/asm/system.h
-index 6018c80..7c37203 100644
---- a/arch/mips/include/asm/system.h
-+++ b/arch/mips/include/asm/system.h
-@@ -230,6 +230,6 @@ extern void per_cpu_trap_init(void);
- */
- #define __ARCH_WANT_UNLOCKED_CTXSW
-
--extern unsigned long arch_align_stack(unsigned long sp);
-+#define arch_align_stack(x) ((x) & ~0xfUL)
-
- #endif /* _ASM_SYSTEM_H */
diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/thread_info.h
index 0d85d8e..ec71487 100644
--- a/arch/mips/include/asm/thread_info.h
/*
diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
-index 7955409..ceaea7c 100644
+index e9a5fd7..378809a 100644
--- a/arch/mips/kernel/process.c
+++ b/arch/mips/kernel/process.c
-@@ -483,15 +483,3 @@ unsigned long get_wchan(struct task_struct *task)
+@@ -480,15 +480,3 @@ unsigned long get_wchan(struct task_struct *task)
out:
return pc;
}
- return sp & ALMASK;
-}
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
-index 7786b60..3e38c72 100644
+index 7c24c29..e2f1981 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
-@@ -529,6 +529,10 @@ static inline int audit_arch(void)
+@@ -528,6 +528,10 @@ static inline int audit_arch(void)
return arch;
}
/*
* Notification of system call entry/exit
* - triggered by current->work.syscall_trace
-@@ -538,6 +542,11 @@ asmlinkage void syscall_trace_enter(struct pt_regs *regs)
+@@ -537,6 +541,11 @@ asmlinkage void syscall_trace_enter(struct pt_regs *regs)
/* do the secure computing check first */
secure_computing(regs->regs[2]);
and t0, t1, t0
bnez t0, trace_a_syscall
diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
-index 69ebd58..e4bff83 100644
+index c14f6df..537e729 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
-@@ -28,6 +28,23 @@
+@@ -27,6 +27,23 @@
#include <asm/highmem.h> /* For VMALLOC_END */
#include <linux/kdebug.h>
#endif /* __ASM_OPENRISC_CACHE_H */
diff --git a/arch/parisc/include/asm/atomic.h b/arch/parisc/include/asm/atomic.h
-index 4054b31..a10c105 100644
+index 6c6defc..d30653d 100644
--- a/arch/parisc/include/asm/atomic.h
+++ b/arch/parisc/include/asm/atomic.h
-@@ -335,6 +335,16 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
+@@ -229,6 +229,16 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
#endif
diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h
-index 22dadeb..f6c2be4 100644
+index ee99f23..802b0a1 100644
--- a/arch/parisc/include/asm/pgtable.h
+++ b/arch/parisc/include/asm/pgtable.h
-@@ -210,6 +210,17 @@ struct vm_area_struct;
+@@ -212,6 +212,17 @@ struct vm_area_struct;
#define PAGE_EXECREAD __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_EXEC |_PAGE_ACCESSED)
#define PAGE_COPY PAGE_EXECREAD
#define PAGE_RWX __pgprot(_PAGE_PRESENT | _PAGE_USER | _PAGE_READ | _PAGE_WRITE | _PAGE_EXEC |_PAGE_ACCESSED)
if (filp) {
addr = get_shared_area(filp->f_mapping, addr, len, pgoff);
diff --git a/arch/parisc/kernel/traps.c b/arch/parisc/kernel/traps.c
-index f19e660..414fe24 100644
+index 45ba99f..8e22c33 100644
--- a/arch/parisc/kernel/traps.c
+++ b/arch/parisc/kernel/traps.c
-@@ -733,9 +733,7 @@ void notrace handle_interruption(int code, struct pt_regs *regs)
+@@ -732,9 +732,7 @@ void notrace handle_interruption(int code, struct pt_regs *regs)
down_read(¤t->mm->mmap_sem);
vma = find_vma(current->mm,regs->iaoq[0]);
/*
* If for any reason at all we couldn't handle the fault, make
diff --git a/arch/powerpc/include/asm/atomic.h b/arch/powerpc/include/asm/atomic.h
-index 02e41b5..ec6e26c 100644
+index da29032..f76c24c 100644
--- a/arch/powerpc/include/asm/atomic.h
+++ b/arch/powerpc/include/asm/atomic.h
-@@ -469,6 +469,16 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)
-
- #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
+@@ -522,6 +522,16 @@ static __inline__ long atomic64_inc_not_zero(atomic64_t *v)
+ return t1;
+ }
+#define atomic64_read_unchecked(v) atomic64_read(v)
+#define atomic64_set_unchecked(v, i) atomic64_set((v), (i))
#endif /* __KERNEL__ */
diff --git a/arch/powerpc/include/asm/cache.h b/arch/powerpc/include/asm/cache.h
-index 4b50941..5605819 100644
+index 9e495c9..b6878e5 100644
--- a/arch/powerpc/include/asm/cache.h
+++ b/arch/powerpc/include/asm/cache.h
@@ -3,6 +3,7 @@
#endif /* __KERNEL__ */
/*
+diff --git a/arch/powerpc/include/asm/exec.h b/arch/powerpc/include/asm/exec.h
+index 8196e9c..d83a9f3 100644
+--- a/arch/powerpc/include/asm/exec.h
++++ b/arch/powerpc/include/asm/exec.h
+@@ -4,6 +4,6 @@
+ #ifndef _ASM_POWERPC_EXEC_H
+ #define _ASM_POWERPC_EXEC_H
+
+-extern unsigned long arch_align_stack(unsigned long sp);
++#define arch_align_stack(x) ((x) & ~0xfUL)
+
+ #endif /* _ASM_POWERPC_EXEC_H */
diff --git a/arch/powerpc/include/asm/kmap_types.h b/arch/powerpc/include/asm/kmap_types.h
index bca8fdc..61e9580 100644
--- a/arch/powerpc/include/asm/kmap_types.h
#define _PAGE_NO_CACHE 0x020 /* I: cache inhibit */
#define _PAGE_WRITETHRU 0x040 /* W: cache write-through */
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
-index 7fdc2c0..e47a9b02d3 100644
+index 9d7f0fb..a28fe69 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -212,6 +212,7 @@
#define DSISR_PROTFAULT 0x08000000 /* protection fault */
#define DSISR_ISSTORE 0x02000000 /* access was a store */
#define DSISR_DABRMATCH 0x00400000 /* hit data breakpoint */
-diff --git a/arch/powerpc/include/asm/system.h b/arch/powerpc/include/asm/system.h
-index c377457..3c69fbc 100644
---- a/arch/powerpc/include/asm/system.h
-+++ b/arch/powerpc/include/asm/system.h
-@@ -539,7 +539,7 @@ __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new,
- #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))
- #endif
-
--extern unsigned long arch_align_stack(unsigned long sp);
-+#define arch_align_stack(x) ((x) & ~0xfUL)
-
- /* Used in very early kernel initialization. */
- extern unsigned long reloc_offset(void);
diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h
-index 96471494..60ed5a2 100644
+index 4a741c7..c8162227b 100644
--- a/arch/powerpc/include/asm/thread_info.h
+++ b/arch/powerpc/include/asm/thread_info.h
-@@ -104,13 +104,15 @@ static inline struct thread_info *current_thread_info(void)
+@@ -104,12 +104,14 @@ static inline struct thread_info *current_thread_info(void)
#define TIF_PERFMON_CTXSW 6 /* perfmon needs ctxsw calls */
#define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */
#define TIF_SINGLESTEP 8 /* singlestepping active */
#define TIF_NOERROR 12 /* Force successful syscall return */
#define TIF_NOTIFY_RESUME 13 /* callback before returning to user */
#define TIF_SYSCALL_TRACEPOINT 15 /* syscall tracepoint instrumentation */
- #define TIF_RUNLATCH 16 /* Is the runlatch enabled? */
-+#define TIF_MEMDIE 17 /* is terminating due to OOM killer */
++#define TIF_MEMDIE 16 /* is terminating due to OOM killer */
+/* mask must be expressable within 16 bits to satisfy 'andi' instruction reqs */
+#define TIF_GRSEC_SETXID 9 /* update credentials on syscall entry/exit */
/* as above, but as bit values */
#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
-@@ -128,8 +130,11 @@ static inline struct thread_info *current_thread_info(void)
+@@ -127,8 +129,11 @@ static inline struct thread_info *current_thread_info(void)
#define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
#define _TIF_SYSCALL_TRACEPOINT (1<<TIF_SYSCALL_TRACEPOINT)
#define _TIF_RUNLATCH (1<<TIF_RUNLATCH)
static inline unsigned long clear_user(void __user *addr, unsigned long size)
diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S
-index 429983c..7af363b 100644
+index 7215cc2..a9730c1 100644
--- a/arch/powerpc/kernel/exceptions-64e.S
+++ b/arch/powerpc/kernel/exceptions-64e.S
-@@ -587,6 +587,7 @@ storage_fault_common:
+@@ -661,6 +661,7 @@ storage_fault_common:
std r14,_DAR(r1)
std r15,_DSISR(r1)
addi r3,r1,STACK_FRAME_OVERHEAD
mr r4,r14
mr r5,r15
ld r14,PACA_EXGEN+EX_R14(r13)
-@@ -596,8 +597,7 @@ storage_fault_common:
+@@ -669,8 +670,7 @@ storage_fault_common:
cmpdi r3,0
bne- 1f
b .ret_from_except_lite
ld r4,_DAR(r1)
bl .bad_page_fault
diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S
-index 15c5a4f..22a4000 100644
+index 8f880bc..c5bd2f3 100644
--- a/arch/powerpc/kernel/exceptions-64s.S
+++ b/arch/powerpc/kernel/exceptions-64s.S
-@@ -1004,10 +1004,10 @@ handle_page_fault:
+@@ -890,10 +890,10 @@ handle_page_fault:
11: ld r4,_DAR(r1)
ld r5,_DSISR(r1)
addi r3,r1,STACK_FRAME_OVERHEAD
+ bl .save_nvgprs
bl .do_page_fault
cmpdi r3,0
- beq+ 13f
+ beq+ 12f
- bl .save_nvgprs
mr r5,r3
addi r3,r1,STACK_FRAME_OVERHEAD
lwz r4,_DAR(r1)
-diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
-index 01e2877..a1ba360 100644
---- a/arch/powerpc/kernel/irq.c
-+++ b/arch/powerpc/kernel/irq.c
-@@ -560,9 +560,6 @@ struct irq_host *irq_alloc_host(struct device_node *of_node,
- host->ops = ops;
- host->of_node = of_node_get(of_node);
-
-- if (host->ops->match == NULL)
-- host->ops->match = default_irq_host_match;
--
- raw_spin_lock_irqsave(&irq_big_lock, flags);
-
- /* If it's a legacy controller, check for duplicates and
-@@ -635,7 +632,12 @@ struct irq_host *irq_find_host(struct device_node *node)
- */
- raw_spin_lock_irqsave(&irq_big_lock, flags);
- list_for_each_entry(h, &irq_hosts, link)
-- if (h->ops->match(h, node)) {
-+ if (h->ops->match) {
-+ if (h->ops->match(h, node)) {
-+ found = h;
-+ break;
-+ }
-+ } else if (default_irq_host_match(h, node)) {
- found = h;
- break;
- }
diff --git a/arch/powerpc/kernel/module_32.c b/arch/powerpc/kernel/module_32.c
-index 0b6d796..d760ddb 100644
+index 2e3200c..72095ce 100644
--- a/arch/powerpc/kernel/module_32.c
+++ b/arch/powerpc/kernel/module_32.c
@@ -162,7 +162,7 @@ int module_frob_arch_sections(Elf32_Ehdr *hdr,
/* Find this entry, or if that fails, the next avail. entry */
while (entry->jump[0]) {
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
-index d817ab0..b23b18e 100644
+index 4937c96..70714b7 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
-@@ -676,8 +676,8 @@ void show_regs(struct pt_regs * regs)
+@@ -681,8 +681,8 @@ void show_regs(struct pt_regs * regs)
* Lookup NIP late so we have the best change of getting the
* above info out without failing
*/
#endif
show_stack(current, (unsigned long *) regs->gpr[1]);
if (!user_mode(regs))
-@@ -1181,10 +1181,10 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
+@@ -1186,10 +1186,10 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
newsp = stack[0];
ip = stack[STACK_FRAME_LR_SAVE];
if (!firstframe || ip != lr) {
(void *)current->ret_stack[curr_frame].ret);
curr_frame--;
}
-@@ -1204,7 +1204,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
+@@ -1209,7 +1209,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
struct pt_regs *regs = (struct pt_regs *)
(sp + STACK_FRAME_OVERHEAD);
lr = regs->link;
regs->trap, (void *)regs->nip, (void *)lr);
firstframe = 1;
}
-@@ -1279,58 +1279,3 @@ void thread_info_cache_init(void)
+@@ -1282,58 +1282,3 @@ void thread_info_cache_init(void)
}
#endif /* THREAD_SHIFT < PAGE_SHIFT */
- return ret;
-}
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
-index 5b43325..94a5bb4 100644
+index 8d8e028..c2aeb50 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -1702,6 +1702,10 @@ long arch_ptrace(struct task_struct *child, long request,
if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c
-index 836a5a1..27289a3 100644
+index 45eb998..0cb36bc 100644
--- a/arch/powerpc/kernel/signal_32.c
+++ b/arch/powerpc/kernel/signal_32.c
-@@ -859,7 +859,7 @@ int handle_rt_signal32(unsigned long sig, struct k_sigaction *ka,
+@@ -861,7 +861,7 @@ int handle_rt_signal32(unsigned long sig, struct k_sigaction *ka,
/* Save user registers on the stack */
frame = &rt_sf->uc.uc_mcontext;
addr = frame;
goto badframe;
regs->link = current->mm->context.vdso_base + vdso32_rt_sigtramp;
diff --git a/arch/powerpc/kernel/signal_64.c b/arch/powerpc/kernel/signal_64.c
-index a50b5ec..547078a 100644
+index 2692efd..6673d2e 100644
--- a/arch/powerpc/kernel/signal_64.c
+++ b/arch/powerpc/kernel/signal_64.c
-@@ -429,7 +429,7 @@ int handle_rt_signal64(int signr, struct k_sigaction *ka, siginfo_t *info,
+@@ -430,7 +430,7 @@ int handle_rt_signal64(int signr, struct k_sigaction *ka, siginfo_t *info,
current->thread.fpscr.val = 0;
/* Set up to return from userspace. */
} else {
err |= setup_trampoline(__NR_rt_sigreturn, &frame->tramp[0]);
diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
-index c091527..5592625 100644
+index 1589723..cefe690 100644
--- a/arch/powerpc/kernel/traps.c
+++ b/arch/powerpc/kernel/traps.c
-@@ -131,6 +131,8 @@ static unsigned __kprobes long oops_begin(struct pt_regs *regs)
+@@ -133,6 +133,8 @@ static unsigned __kprobes long oops_begin(struct pt_regs *regs)
return flags;
}
static void __kprobes oops_end(unsigned long flags, struct pt_regs *regs,
int signr)
{
-@@ -178,6 +180,9 @@ static void __kprobes oops_end(unsigned long flags, struct pt_regs *regs,
+@@ -182,6 +184,9 @@ static void __kprobes oops_end(unsigned long flags, struct pt_regs *regs,
panic("Fatal exception in interrupt");
if (panic_on_oops)
panic("Fatal exception");
}
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c
-index 7d14bb6..1305601 100644
+index 9eb5b9b..e45498a 100644
--- a/arch/powerpc/kernel/vdso.c
+++ b/arch/powerpc/kernel/vdso.c
-@@ -35,6 +35,7 @@
+@@ -34,6 +34,7 @@
#include <asm/firmware.h>
#include <asm/vdso.h>
#include <asm/vdso_datapage.h>
#include "setup.h"
-@@ -219,7 +220,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
+@@ -218,7 +219,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
vdso_base = VDSO32_MBASE;
#endif
/* vDSO has a problem and was disabled, just don't "enable" it for the
* process
-@@ -239,7 +240,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
+@@ -238,7 +239,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
vdso_base = get_unmapped_area(NULL, vdso_base,
(vdso_pages << PAGE_SHIFT) +
((VDSO_ALIGNMENT - 1) & PAGE_MASK),
EXPORT_SYMBOL(copy_in_user);
diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c
-index 2f0d1b0..36fb5cc 100644
+index 08ffcf5..a0ab912 100644
--- a/arch/powerpc/mm/fault.c
+++ b/arch/powerpc/mm/fault.c
@@ -32,6 +32,10 @@
#include <asm/firmware.h>
#include <asm/page.h>
-@@ -43,6 +47,7 @@
- #include <asm/tlbflush.h>
- #include <asm/siginfo.h>
- #include <mm/mmu_decl.h>
-+#include <asm/ptrace.h>
-
- #include "icswx.h"
-
-@@ -68,6 +73,33 @@ static inline int notify_page_fault(struct pt_regs *regs)
+@@ -68,6 +72,33 @@ static inline int notify_page_fault(struct pt_regs *regs)
}
#endif
/*
* Check whether the instruction at regs->nip is a store using
* an update addressing form which will update r1.
-@@ -138,7 +170,7 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
+@@ -215,7 +246,7 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
* indicate errors in DSISR but can validly be set in SRR1.
*/
if (trap == 0x400)
else
is_write = error_code & DSISR_ISSTORE;
#else
-@@ -276,7 +308,7 @@ good_area:
+@@ -366,7 +397,7 @@ good_area:
* "undefined". Of those that can be set, this is the only
* one which seems bad.
*/
/* Guarded storage error. */
goto bad_area;
#endif /* CONFIG_8xx */
-@@ -291,7 +323,7 @@ good_area:
+@@ -381,7 +412,7 @@ good_area:
* processors use the same I/D cache coherency mechanism
* as embedded.
*/
goto bad_area;
#endif /* CONFIG_PPC_STD_MMU */
-@@ -360,6 +392,23 @@ bad_area:
+@@ -463,6 +494,23 @@ bad_area:
bad_area_nosemaphore:
/* User mode accesses cause a SIGSEGV */
if (user_mode(regs)) {
if (!fixed && addr) {
addr = _ALIGN_UP(addr, 1ul << pshift);
diff --git a/arch/s390/include/asm/atomic.h b/arch/s390/include/asm/atomic.h
-index 8517d2a..d2738d4 100644
+index 748347b..81bc6c7 100644
--- a/arch/s390/include/asm/atomic.h
+++ b/arch/s390/include/asm/atomic.h
@@ -326,6 +326,16 @@ static inline long long atomic64_dec_if_positive(atomic64_t *v)
#define __read_mostly __attribute__((__section__(".data..read_mostly")))
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h
-index 547f1a6..0b22b53 100644
+index c4ee39f..352881b 100644
--- a/arch/s390/include/asm/elf.h
+++ b/arch/s390/include/asm/elf.h
-@@ -162,8 +162,14 @@ extern unsigned int vdso_enabled;
+@@ -161,8 +161,14 @@ extern unsigned int vdso_enabled;
the loader. We need to make sure that it is out of the way of the program
that it will "exec", and that there is sufficient room for the brk. */
/* This yields a mask that user programs can use to figure out what
instruction set this CPU supports. */
-@@ -211,7 +217,4 @@ struct linux_binprm;
+@@ -210,7 +216,4 @@ struct linux_binprm;
#define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1
int arch_setup_additional_pages(struct linux_binprm *, int);
-#define arch_randomize_brk arch_randomize_brk
-
#endif
-diff --git a/arch/s390/include/asm/system.h b/arch/s390/include/asm/system.h
-index d73cc6b..1a296ad 100644
---- a/arch/s390/include/asm/system.h
-+++ b/arch/s390/include/asm/system.h
-@@ -260,7 +260,7 @@ extern void (*_machine_restart)(char *command);
- extern void (*_machine_halt)(void);
- extern void (*_machine_power_off)(void);
+diff --git a/arch/s390/include/asm/exec.h b/arch/s390/include/asm/exec.h
+index c4a93d6..4d2a9b4 100644
+--- a/arch/s390/include/asm/exec.h
++++ b/arch/s390/include/asm/exec.h
+@@ -7,6 +7,6 @@
+ #ifndef __ASM_EXEC_H
+ #define __ASM_EXEC_H
-extern unsigned long arch_align_stack(unsigned long sp);
+#define arch_align_stack(x) ((x) & ~0xfUL)
- static inline int tprot(unsigned long addr)
- {
+ #endif /* __ASM_EXEC_H */
diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h
-index 2b23885..e136e31 100644
+index 8f2cada..1cddd55 100644
--- a/arch/s390/include/asm/uaccess.h
+++ b/arch/s390/include/asm/uaccess.h
-@@ -235,6 +235,10 @@ static inline unsigned long __must_check
+@@ -236,6 +236,10 @@ static inline unsigned long __must_check
copy_to_user(void __user *to, const void *from, unsigned long n)
{
might_fault();
if (access_ok(VERIFY_WRITE, to, n))
n = __copy_to_user(to, from, n);
return n;
-@@ -260,6 +264,9 @@ copy_to_user(void __user *to, const void *from, unsigned long n)
+@@ -261,6 +265,9 @@ copy_to_user(void __user *to, const void *from, unsigned long n)
static inline unsigned long __must_check
__copy_from_user(void *to, const void __user *from, unsigned long n)
{
if (__builtin_constant_p(n) && (n <= 256))
return uaccess.copy_from_user_small(n, from, to);
else
-@@ -294,6 +301,10 @@ copy_from_user(void *to, const void __user *from, unsigned long n)
+@@ -295,6 +302,10 @@ copy_from_user(void *to, const void __user *from, unsigned long n)
unsigned int sz = __compiletime_object_size(to);
might_fault();
if (r_type == R_390_GOTPC)
*(unsigned int *) loc = val;
diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
-index e795933..b32563c 100644
+index 60055ce..ee4b252 100644
--- a/arch/s390/kernel/process.c
+++ b/arch/s390/kernel/process.c
-@@ -323,39 +323,3 @@ unsigned long get_wchan(struct task_struct *p)
+@@ -316,39 +316,3 @@ unsigned long get_wchan(struct task_struct *p)
}
return 0;
}
- return ret;
-}
diff --git a/arch/s390/mm/mmap.c b/arch/s390/mm/mmap.c
-index a0155c0..34cc491 100644
+index 2857c48..d047481 100644
--- a/arch/s390/mm/mmap.c
+++ b/arch/s390/mm/mmap.c
@@ -92,10 +92,22 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
mm->get_unmapped_area = arch_get_unmapped_area_topdown;
mm->unmap_area = arch_unmap_area_topdown;
}
-@@ -167,10 +179,22 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -166,10 +178,22 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
*/
if (mmap_is_legacy()) {
mm->mmap_base = TASK_UNMAPPED_BASE;
+#define L1_CACHE_BYTES (_AC(1,UL) << L1_CACHE_SHIFT)
#endif /* _ASM_SCORE_CACHE_H */
-diff --git a/arch/score/include/asm/system.h b/arch/score/include/asm/system.h
-index 589d5c7..669e274 100644
---- a/arch/score/include/asm/system.h
-+++ b/arch/score/include/asm/system.h
-@@ -17,7 +17,7 @@ do { \
- #define finish_arch_switch(prev) do {} while (0)
-
- typedef void (*vi_handler_t)(void);
+diff --git a/arch/score/include/asm/exec.h b/arch/score/include/asm/exec.h
+index f9f3cd5..58ff438 100644
+--- a/arch/score/include/asm/exec.h
++++ b/arch/score/include/asm/exec.h
+@@ -1,6 +1,6 @@
+ #ifndef _ASM_SCORE_EXEC_H
+ #define _ASM_SCORE_EXEC_H
+
-extern unsigned long arch_align_stack(unsigned long sp);
+#define arch_align_stack(x) (x)
- #define mb() barrier()
- #define rmb() barrier()
+ #endif /* _ASM_SCORE_EXEC_H */
diff --git a/arch/score/kernel/process.c b/arch/score/kernel/process.c
-index 25d0803..d6c8e36 100644
+index 2707023..1c2a3b7 100644
--- a/arch/score/kernel/process.c
+++ b/arch/score/kernel/process.c
-@@ -161,8 +161,3 @@ unsigned long get_wchan(struct task_struct *task)
+@@ -159,8 +159,3 @@ unsigned long get_wchan(struct task_struct *task)
return task_pt_regs(task)->cp0_epc;
}
VMLINUX_MAIN += $(drivers-y) $(net-y)
diff --git a/arch/sparc/include/asm/atomic_64.h b/arch/sparc/include/asm/atomic_64.h
-index 9f421df..b81fc12 100644
+index ce35a1c..2e7b8f9 100644
--- a/arch/sparc/include/asm/atomic_64.h
+++ b/arch/sparc/include/asm/atomic_64.h
@@ -14,18 +14,40 @@
if (likely(old == c))
break;
c = old;
-@@ -89,20 +166,35 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
+@@ -88,20 +165,35 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
#define atomic64_cmpxchg(v, o, n) \
((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
#define atomic64_xchg(v, new) (xchg(&((v)->counter), new))
static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr)
{
diff --git a/arch/sparc/include/asm/pgtable_32.h b/arch/sparc/include/asm/pgtable_32.h
-index a790cc6..091ed94 100644
+index 3d71018..48a11c5 100644
--- a/arch/sparc/include/asm/pgtable_32.h
+++ b/arch/sparc/include/asm/pgtable_32.h
@@ -45,6 +45,13 @@ BTFIXUPDEF_SIMM13(user_ptrs_per_pgd)
}
diff --git a/arch/sparc/include/asm/uaccess_64.h b/arch/sparc/include/asm/uaccess_64.h
-index 3e1449f..5293a0e 100644
+index a1091afb..380228e 100644
--- a/arch/sparc/include/asm/uaccess_64.h
+++ b/arch/sparc/include/asm/uaccess_64.h
@@ -10,6 +10,7 @@
#include <linux/thread_info.h>
+#include <linux/kernel.h>
#include <asm/asi.h>
- #include <asm/system.h>
#include <asm/spitfire.h>
-@@ -213,8 +214,15 @@ extern unsigned long copy_from_user_fixup(void *to, const void __user *from,
+ #include <asm-generic/uaccess-unaligned.h>
+@@ -212,8 +213,15 @@ extern unsigned long copy_from_user_fixup(void *to, const void __user *from,
static inline unsigned long __must_check
copy_from_user(void *to, const void __user *from, unsigned long size)
{
if (unlikely(ret))
ret = copy_from_user_fixup(to, from, size);
-@@ -230,8 +238,15 @@ extern unsigned long copy_to_user_fixup(void __user *to, const void *from,
+@@ -229,8 +237,15 @@ extern unsigned long copy_to_user_fixup(void __user *to, const void *from,
static inline unsigned long __must_check
copy_to_user(void __user *to, const void *from, unsigned long size)
{
extra-y := head_$(BITS).o
extra-y += init_task.o
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c
-index f793742..4d880af 100644
+index efa0754..74b03fe 100644
--- a/arch/sparc/kernel/process_32.c
+++ b/arch/sparc/kernel/process_32.c
-@@ -204,7 +204,7 @@ void __show_backtrace(unsigned long fp)
+@@ -200,7 +200,7 @@ void __show_backtrace(unsigned long fp)
rw->ins[4], rw->ins[5],
rw->ins[6],
rw->ins[7]);
rw = (struct reg_window32 *) rw->ins[6];
}
spin_unlock_irqrestore(&sparc_backtrace_lock, flags);
-@@ -271,14 +271,14 @@ void show_regs(struct pt_regs *r)
+@@ -267,14 +267,14 @@ void show_regs(struct pt_regs *r)
printk("PSR: %08lx PC: %08lx NPC: %08lx Y: %08lx %s\n",
r->psr, r->pc, r->npc, r->y, print_tainted());
printk("%%L: %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n",
rw->locals[0], rw->locals[1], rw->locals[2], rw->locals[3],
-@@ -313,7 +313,7 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
+@@ -309,7 +309,7 @@ void show_stack(struct task_struct *tsk, unsigned long *_ksp)
rw = (struct reg_window32 *) fp;
pc = rw->ins[7];
printk("[%08lx : ", pc);
} while (++count < 16);
printk("\n");
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
-index 39d8b05..d1a7d90 100644
+index aff0c72..9067b39 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
-@@ -182,14 +182,14 @@ static void show_regwindow(struct pt_regs *regs)
+@@ -179,14 +179,14 @@ static void show_regwindow(struct pt_regs *regs)
printk("i4: %016lx i5: %016lx i6: %016lx i7: %016lx\n",
rwk->ins[4], rwk->ins[5], rwk->ins[6], rwk->ins[7]);
if (regs->tstate & TSTATE_PRIV)
printk("g0: %016lx g1: %016lx g2: %016lx g3: %016lx\n",
regs->u_regs[0], regs->u_regs[1], regs->u_regs[2],
regs->u_regs[3]);
-@@ -202,7 +202,7 @@ void show_regs(struct pt_regs *regs)
+@@ -199,7 +199,7 @@ void show_regs(struct pt_regs *regs)
printk("o4: %016lx o5: %016lx sp: %016lx ret_pc: %016lx\n",
regs->u_regs[12], regs->u_regs[13], regs->u_regs[14],
regs->u_regs[15]);
show_regwindow(regs);
show_stack(current, (unsigned long *) regs->u_regs[UREG_FP]);
}
-@@ -287,7 +287,7 @@ void arch_trigger_all_cpu_backtrace(void)
+@@ -284,7 +284,7 @@ void arch_trigger_all_cpu_backtrace(void)
((tp && tp->task) ? tp->task->pid : -1));
if (gp->tstate & TSTATE_PRIV) {
(void *) gp->o7,
(void *) gp->i7,
diff --git a/arch/sparc/kernel/ptrace_64.c b/arch/sparc/kernel/ptrace_64.c
-index 9388844..0075fd2 100644
+index 6f97c07..b1300ec 100644
--- a/arch/sparc/kernel/ptrace_64.c
+++ b/arch/sparc/kernel/ptrace_64.c
-@@ -1058,6 +1058,10 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -1057,6 +1057,10 @@ long arch_ptrace(struct task_struct *child, long request,
return ret;
}
asmlinkage int syscall_trace_enter(struct pt_regs *regs)
{
int ret = 0;
-@@ -1065,6 +1069,11 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs)
+@@ -1064,6 +1068,11 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs)
/* do the secure computing check first */
secure_computing(regs->u_regs[UREG_G1]);
if (test_thread_flag(TIF_SYSCALL_TRACE))
ret = tracehook_report_syscall_entry(regs);
-@@ -1085,6 +1094,11 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs)
+@@ -1084,6 +1093,11 @@ asmlinkage int syscall_trace_enter(struct pt_regs *regs)
asmlinkage void syscall_trace_leave(struct pt_regs *regs)
{
addr = vmm->vm_end;
if (flags & MAP_SHARED)
diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c
-index 232df99..cee1f9c 100644
+index 3ee51f1..2ba4913 100644
--- a/arch/sparc/kernel/sys_sparc_64.c
+++ b/arch/sparc/kernel/sys_sparc_64.c
@@ -124,7 +124,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
or %g3, %g2, %g3
stx %o0, [%sp + PTREGS_OFF + PT_V9_I0]
diff --git a/arch/sparc/kernel/traps_32.c b/arch/sparc/kernel/traps_32.c
-index 591f20c..0f1b925 100644
+index d2de213..6b22bc3 100644
--- a/arch/sparc/kernel/traps_32.c
+++ b/arch/sparc/kernel/traps_32.c
-@@ -45,6 +45,8 @@ static void instruction_dump(unsigned long *pc)
+@@ -44,6 +44,8 @@ static void instruction_dump(unsigned long *pc)
#define __SAVE __asm__ __volatile__("save %sp, -0x40, %sp\n\t")
#define __RESTORE __asm__ __volatile__("restore %g0, %g0, %g0\n\t")
void die_if_kernel(char *str, struct pt_regs *regs)
{
static int die_counter;
-@@ -77,15 +79,17 @@ void die_if_kernel(char *str, struct pt_regs *regs)
+@@ -76,15 +78,17 @@ void die_if_kernel(char *str, struct pt_regs *regs)
count++ < 30 &&
(((unsigned long) rw) >= PAGE_OFFSET) &&
!(((unsigned long) rw) & 0x7)) {
}
diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c
-index 0cbdaa4..438e4c9 100644
+index c72fdf5..743a344 100644
--- a/arch/sparc/kernel/traps_64.c
+++ b/arch/sparc/kernel/traps_64.c
@@ -75,7 +75,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p)
}
EXPORT_SYMBOL(die_if_kernel);
diff --git a/arch/sparc/kernel/unaligned_64.c b/arch/sparc/kernel/unaligned_64.c
-index 76e4ac1..78f8bb1 100644
+index dae85bc..af1e19d 100644
--- a/arch/sparc/kernel/unaligned_64.c
+++ b/arch/sparc/kernel/unaligned_64.c
@@ -279,7 +279,7 @@ static void log_unaligned(struct pt_regs *regs)
obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o
obj-y += fault_$(BITS).o
diff --git a/arch/sparc/mm/fault_32.c b/arch/sparc/mm/fault_32.c
-index 8023fd7..c8e89e9 100644
+index df3155a..eb708b8 100644
--- a/arch/sparc/mm/fault_32.c
+++ b/arch/sparc/mm/fault_32.c
@@ -21,6 +21,9 @@
+#include <linux/pagemap.h>
+#include <linux/compiler.h>
- #include <asm/system.h>
#include <asm/page.h>
-@@ -208,6 +211,268 @@ static unsigned long compute_si_addr(struct pt_regs *regs, int text_fault)
+ #include <asm/pgtable.h>
+@@ -207,6 +210,268 @@ static unsigned long compute_si_addr(struct pt_regs *regs, int text_fault)
return safe_compute_effective_address(regs, insn);
}
static noinline void do_fault_siginfo(int code, int sig, struct pt_regs *regs,
int text_fault)
{
-@@ -280,6 +545,24 @@ good_area:
+@@ -282,6 +547,24 @@ good_area:
if(!(vma->vm_flags & VM_WRITE))
goto bad_area;
} else {
if(!(vma->vm_flags & (VM_READ | VM_EXEC)))
goto bad_area;
diff --git a/arch/sparc/mm/fault_64.c b/arch/sparc/mm/fault_64.c
-index 504c062..6fcb9c6 100644
+index 1fe0429..aee2e87 100644
--- a/arch/sparc/mm/fault_64.c
+++ b/arch/sparc/mm/fault_64.c
@@ -21,6 +21,9 @@
asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
{
struct mm_struct *mm = current->mm;
-@@ -340,6 +794,29 @@ asmlinkage void __kprobes do_sparc64_fault(struct pt_regs *regs)
+@@ -343,6 +797,29 @@ retry:
if (!vma)
goto bad_area;
}
if (mm->get_unmapped_area == arch_get_unmapped_area)
diff --git a/arch/sparc/mm/init_32.c b/arch/sparc/mm/init_32.c
-index 7b00de6..78239f4 100644
+index c5f9021..7591bae 100644
--- a/arch/sparc/mm/init_32.c
+++ b/arch/sparc/mm/init_32.c
-@@ -316,6 +316,9 @@ extern void device_scan(void);
+@@ -315,6 +315,9 @@ extern void device_scan(void);
pgprot_t PAGE_SHARED __read_mostly;
EXPORT_SYMBOL(PAGE_SHARED);
void __init paging_init(void)
{
switch(sparc_cpu_model) {
-@@ -344,17 +347,17 @@ void __init paging_init(void)
+@@ -343,17 +346,17 @@ void __init paging_init(void)
/* Initialize the protection map with non-constant, MMU dependent values. */
protection_map[0] = PAGE_NONE;
page_kernel = pgprot_val(SRMMU_PAGE_KERNEL);
diff --git a/arch/tile/include/asm/atomic_64.h b/arch/tile/include/asm/atomic_64.h
-index 27fe667..36d474c 100644
+index f4500c6..889656c 100644
--- a/arch/tile/include/asm/atomic_64.h
+++ b/arch/tile/include/asm/atomic_64.h
-@@ -142,6 +142,16 @@ static inline long atomic64_add_unless(atomic64_t *v, long a, long u)
+@@ -143,6 +143,16 @@ static inline long atomic64_add_unless(atomic64_t *v, long a, long u)
#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
/* bytes per L2 cache line */
#define L2_CACHE_SHIFT CHIP_L2_LOG_LINE_SIZE()
diff --git a/arch/um/Makefile b/arch/um/Makefile
-index 28688e6..4c0aa1c 100644
+index 55c0661..86ad413 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
-@@ -61,6 +61,10 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
+@@ -62,6 +62,10 @@ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -D__KERNEL__,,\
$(patsubst -I%,,$(KBUILD_CFLAGS)))) $(ARCH_INCLUDE) $(MODE_INCLUDE) \
$(filter -I%,$(CFLAGS)) -D_FILE_OFFSET_BITS=64 -idirafter include
#ifdef CONFIG_64BIT
#define set_pud(pudptr, pudval) set_64bit((u64 *) (pudptr), pud_val(pudval))
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c
-index 69f2490..2634831 100644
+index 2b73ded..804f540 100644
--- a/arch/um/kernel/process.c
+++ b/arch/um/kernel/process.c
-@@ -408,22 +408,6 @@ int singlestepping(void * t)
+@@ -404,22 +404,6 @@ int singlestepping(void * t)
return 2;
}
/*
* Memory returned by kmalloc() may be used for DMA, so we must make
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
-index 5bed94e..fbcf200 100644
+index c9866b0..fe53aef 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
-@@ -226,7 +226,7 @@ config X86_HT
+@@ -229,7 +229,7 @@ config X86_HT
config X86_32_LAZY_GS
def_bool y
config ARCH_HWEIGHT_CFLAGS
string
-@@ -1058,7 +1058,7 @@ choice
+@@ -1042,7 +1042,7 @@ choice
config NOHIGHMEM
bool "off"
---help---
Linux can use up to 64 Gigabytes of physical memory on x86 systems.
However, the address space of 32-bit x86 processors is only 4
-@@ -1095,7 +1095,7 @@ config NOHIGHMEM
+@@ -1079,7 +1079,7 @@ config NOHIGHMEM
config HIGHMEM4G
bool "4GB"
---help---
Select this if you have a 32-bit processor and between 1 and 4
gigabytes of physical RAM.
-@@ -1149,7 +1149,7 @@ config PAGE_OFFSET
+@@ -1133,7 +1133,7 @@ config PAGE_OFFSET
hex
default 0xB0000000 if VMSPLIT_3G_OPT
default 0x80000000 if VMSPLIT_2G
default 0x40000000 if VMSPLIT_1G
default 0xC0000000
depends on X86_32
-@@ -1539,6 +1539,7 @@ config SECCOMP
+@@ -1523,6 +1523,7 @@ config SECCOMP
config CC_STACKPROTECTOR
bool "Enable -fstack-protector buffer overflow detection (EXPERIMENTAL)"
---help---
This option turns on the -fstack-protector GCC feature. This
feature puts, at the beginning of functions, a canary value on
-@@ -1596,6 +1597,7 @@ config KEXEC_JUMP
+@@ -1580,6 +1581,7 @@ config KEXEC_JUMP
config PHYSICAL_START
hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
default "0x1000000"
---help---
This gives the physical address where the kernel is loaded.
-@@ -1659,6 +1661,7 @@ config X86_NEED_RELOCS
+@@ -1643,6 +1645,7 @@ config X86_NEED_RELOCS
config PHYSICAL_ALIGN
hex "Alignment value to which kernel should be aligned" if X86_32
default "0x1000000"
range 0x2000 0x1000000
---help---
This value puts the alignment restrictions on physical address
-@@ -1690,9 +1693,10 @@ config HOTPLUG_CPU
+@@ -1674,9 +1677,10 @@ config HOTPLUG_CPU
Say N if you want to disable CPU hotplug.
config COMPAT_VDSO
Map the 32-bit VDSO to the predictable old-style address too.
diff --git a/arch/x86/Kconfig.cpu b/arch/x86/Kconfig.cpu
-index 3c57033..22d44aa 100644
+index 706e12e..62e4feb 100644
--- a/arch/x86/Kconfig.cpu
+++ b/arch/x86/Kconfig.cpu
-@@ -335,7 +335,7 @@ config X86_PPRO_FENCE
+@@ -334,7 +334,7 @@ config X86_PPRO_FENCE
config X86_F00F_BUG
def_bool y
config X86_INVD_BUG
def_bool y
-@@ -359,7 +359,7 @@ config X86_POPAD_OK
+@@ -358,7 +358,7 @@ config X86_POPAD_OK
config X86_ALIGNMENT_16
def_bool y
config X86_INTEL_USERCOPY
def_bool y
-@@ -405,7 +405,7 @@ config X86_CMPXCHG64
+@@ -404,7 +404,7 @@ config X86_CMPXCHG64
# generates cmov.
config X86_CMOV
def_bool y
This option helps catch unintended modifications to loadable
kernel module's text and read-only data. It also prevents execution
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
-index 209ba12..15140db 100644
+index b1c611e..2c1a823 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -46,6 +46,7 @@ else
KBUILD_AFLAGS += -m64
KBUILD_CFLAGS += -m64
-@@ -201,3 +202,12 @@ define archhelp
+@@ -222,3 +223,12 @@ define archhelp
echo ' FDARGS="..." arguments for the booted kernel'
echo ' FDINITRD=file initrd for the booted kernel'
endef
#endif /* BOOT_BITOPS_H */
diff --git a/arch/x86/boot/boot.h b/arch/x86/boot/boot.h
-index c7093bd..d4247ffe0 100644
+index 18997e5..83d9c67 100644
--- a/arch/x86/boot/boot.h
+++ b/arch/x86/boot/boot.h
@@ -85,7 +85,7 @@ static inline void io_delay(void)
return diff;
}
diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
-index fd55a2f..217b501 100644
+index e398bb5..3a382ca 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -14,6 +14,9 @@ cflags-$(CONFIG_X86_64) := -mcmodel=small
KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
GCOV_PROFILE := n
+diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
+index 0cdfc0d..6e79437 100644
+--- a/arch/x86/boot/compressed/eboot.c
++++ b/arch/x86/boot/compressed/eboot.c
+@@ -122,7 +122,6 @@ again:
+ *addr = max_addr;
+ }
+
+-free_pool:
+ efi_call_phys1(sys_table->boottime->free_pool, map);
+
+ fail:
+@@ -186,7 +185,6 @@ static efi_status_t low_alloc(unsigned long size, unsigned long align,
+ if (i == map_size / desc_size)
+ status = EFI_NOT_FOUND;
+
+-free_pool:
+ efi_call_phys1(sys_table->boottime->free_pool, map);
+ fail:
+ return status;
diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S
index c85e3ac..6f5aa80 100644
--- a/arch/x86/boot/compressed/head_32.S
error("Wrong destination address");
#endif
-diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c
-index e77f4e4..17e511f 100644
---- a/arch/x86/boot/compressed/relocs.c
-+++ b/arch/x86/boot/compressed/relocs.c
-@@ -13,8 +13,11 @@
-
- static void die(char *fmt, ...);
-
-+#include "../../../../include/generated/autoconf.h"
-+
- #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
- static Elf32_Ehdr ehdr;
-+static Elf32_Phdr *phdr;
- static unsigned long reloc_count, reloc_idx;
- static unsigned long *relocs;
-
-@@ -270,9 +273,39 @@ static void read_ehdr(FILE *fp)
- }
- }
-
-+static void read_phdrs(FILE *fp)
-+{
-+ unsigned int i;
-+
-+ phdr = calloc(ehdr.e_phnum, sizeof(Elf32_Phdr));
-+ if (!phdr) {
-+ die("Unable to allocate %d program headers\n",
-+ ehdr.e_phnum);
-+ }
-+ if (fseek(fp, ehdr.e_phoff, SEEK_SET) < 0) {
-+ die("Seek to %d failed: %s\n",
-+ ehdr.e_phoff, strerror(errno));
-+ }
-+ if (fread(phdr, sizeof(*phdr), ehdr.e_phnum, fp) != ehdr.e_phnum) {
-+ die("Cannot read ELF program headers: %s\n",
-+ strerror(errno));
-+ }
-+ for(i = 0; i < ehdr.e_phnum; i++) {
-+ phdr[i].p_type = elf32_to_cpu(phdr[i].p_type);
-+ phdr[i].p_offset = elf32_to_cpu(phdr[i].p_offset);
-+ phdr[i].p_vaddr = elf32_to_cpu(phdr[i].p_vaddr);
-+ phdr[i].p_paddr = elf32_to_cpu(phdr[i].p_paddr);
-+ phdr[i].p_filesz = elf32_to_cpu(phdr[i].p_filesz);
-+ phdr[i].p_memsz = elf32_to_cpu(phdr[i].p_memsz);
-+ phdr[i].p_flags = elf32_to_cpu(phdr[i].p_flags);
-+ phdr[i].p_align = elf32_to_cpu(phdr[i].p_align);
-+ }
-+
-+}
-+
- static void read_shdrs(FILE *fp)
- {
-- int i;
-+ unsigned int i;
- Elf32_Shdr shdr;
-
- secs = calloc(ehdr.e_shnum, sizeof(struct section));
-@@ -307,7 +340,7 @@ static void read_shdrs(FILE *fp)
-
- static void read_strtabs(FILE *fp)
- {
-- int i;
-+ unsigned int i;
- for (i = 0; i < ehdr.e_shnum; i++) {
- struct section *sec = &secs[i];
- if (sec->shdr.sh_type != SHT_STRTAB) {
-@@ -332,7 +365,7 @@ static void read_strtabs(FILE *fp)
-
- static void read_symtabs(FILE *fp)
- {
-- int i,j;
-+ unsigned int i,j;
- for (i = 0; i < ehdr.e_shnum; i++) {
- struct section *sec = &secs[i];
- if (sec->shdr.sh_type != SHT_SYMTAB) {
-@@ -365,7 +398,9 @@ static void read_symtabs(FILE *fp)
-
- static void read_relocs(FILE *fp)
- {
-- int i,j;
-+ unsigned int i,j;
-+ uint32_t base;
-+
- for (i = 0; i < ehdr.e_shnum; i++) {
- struct section *sec = &secs[i];
- if (sec->shdr.sh_type != SHT_REL) {
-@@ -385,9 +420,18 @@ static void read_relocs(FILE *fp)
- die("Cannot read symbol table: %s\n",
- strerror(errno));
- }
-+ base = 0;
-+ for (j = 0; j < ehdr.e_phnum; j++) {
-+ if (phdr[j].p_type != PT_LOAD )
-+ continue;
-+ if (secs[sec->shdr.sh_info].shdr.sh_offset < phdr[j].p_offset || secs[sec->shdr.sh_info].shdr.sh_offset >= phdr[j].p_offset + phdr[j].p_filesz)
-+ continue;
-+ base = CONFIG_PAGE_OFFSET + phdr[j].p_paddr - phdr[j].p_vaddr;
-+ break;
-+ }
- for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Rel); j++) {
- Elf32_Rel *rel = &sec->reltab[j];
-- rel->r_offset = elf32_to_cpu(rel->r_offset);
-+ rel->r_offset = elf32_to_cpu(rel->r_offset) + base;
- rel->r_info = elf32_to_cpu(rel->r_info);
- }
- }
-@@ -396,13 +440,13 @@ static void read_relocs(FILE *fp)
-
- static void print_absolute_symbols(void)
- {
-- int i;
-+ unsigned int i;
- printf("Absolute symbols\n");
- printf(" Num: Value Size Type Bind Visibility Name\n");
- for (i = 0; i < ehdr.e_shnum; i++) {
- struct section *sec = &secs[i];
- char *sym_strtab;
-- int j;
-+ unsigned int j;
-
- if (sec->shdr.sh_type != SHT_SYMTAB) {
- continue;
-@@ -429,14 +473,14 @@ static void print_absolute_symbols(void)
-
- static void print_absolute_relocs(void)
- {
-- int i, printed = 0;
-+ unsigned int i, printed = 0;
-
- for (i = 0; i < ehdr.e_shnum; i++) {
- struct section *sec = &secs[i];
- struct section *sec_applies, *sec_symtab;
- char *sym_strtab;
- Elf32_Sym *sh_symtab;
-- int j;
-+ unsigned int j;
- if (sec->shdr.sh_type != SHT_REL) {
- continue;
- }
-@@ -497,13 +541,13 @@ static void print_absolute_relocs(void)
-
- static void walk_relocs(void (*visit)(Elf32_Rel *rel, Elf32_Sym *sym))
- {
-- int i;
-+ unsigned int i;
- /* Walk through the relocations */
- for (i = 0; i < ehdr.e_shnum; i++) {
- char *sym_strtab;
- Elf32_Sym *sh_symtab;
- struct section *sec_applies, *sec_symtab;
-- int j;
-+ unsigned int j;
- struct section *sec = &secs[i];
-
- if (sec->shdr.sh_type != SHT_REL) {
-@@ -528,6 +572,22 @@ static void walk_relocs(void (*visit)(Elf32_Rel *rel, Elf32_Sym *sym))
- !is_rel_reloc(sym_name(sym_strtab, sym))) {
- continue;
- }
-+ /* Don't relocate actual per-cpu variables, they are absolute indices, not addresses */
-+ if (!strcmp(sec_name(sym->st_shndx), ".data..percpu") && strcmp(sym_name(sym_strtab, sym), "__per_cpu_load"))
-+ continue;
-+
-+#if defined(CONFIG_PAX_KERNEXEC) && defined(CONFIG_X86_32)
-+ /* Don't relocate actual code, they are relocated implicitly by the base address of KERNEL_CS */
-+ if (!strcmp(sec_name(sym->st_shndx), ".module.text") && !strcmp(sym_name(sym_strtab, sym), "_etext"))
-+ continue;
-+ if (!strcmp(sec_name(sym->st_shndx), ".init.text"))
-+ continue;
-+ if (!strcmp(sec_name(sym->st_shndx), ".exit.text"))
-+ continue;
-+ if (!strcmp(sec_name(sym->st_shndx), ".text") && strcmp(sym_name(sym_strtab, sym), "__LOAD_PHYSICAL_ADDR"))
-+ continue;
-+#endif
-+
- switch (r_type) {
- case R_386_NONE:
- case R_386_PC32:
-@@ -569,7 +629,7 @@ static int cmp_relocs(const void *va, const void *vb)
-
- static void emit_relocs(int as_text)
- {
-- int i;
-+ unsigned int i;
- /* Count how many relocations I have and allocate space for them. */
- reloc_count = 0;
- walk_relocs(count_reloc);
-@@ -663,6 +723,7 @@ int main(int argc, char **argv)
- fname, strerror(errno));
- }
- read_ehdr(fp);
-+ read_phdrs(fp);
- read_shdrs(fp);
- read_strtabs(fp);
- read_symtabs(fp);
diff --git a/arch/x86/boot/cpucheck.c b/arch/x86/boot/cpucheck.c
index 4d3ff03..e4972ff 100644
--- a/arch/x86/boot/cpucheck.c
movq r1,r2; \
movq r3,r4; \
diff --git a/arch/x86/crypto/aesni-intel_asm.S b/arch/x86/crypto/aesni-intel_asm.S
-index be6d9e3..21fbbca 100644
+index 3470624..201259d 100644
--- a/arch/x86/crypto/aesni-intel_asm.S
+++ b/arch/x86/crypto/aesni-intel_asm.S
@@ -31,6 +31,7 @@
/*
* void aesni_cbc_dec(struct crypto_aes_ctx *ctx, const u8 *dst, u8 *src,
-@@ -2498,7 +2523,9 @@ ENTRY(aesni_cbc_dec)
+@@ -2500,7 +2525,9 @@ ENTRY(aesni_cbc_dec)
popl LEN
popl IVP
#endif
#ifdef __x86_64__
.align 16
-@@ -2524,6 +2551,7 @@ _aesni_inc_init:
+@@ -2526,6 +2553,7 @@ _aesni_inc_init:
mov $1, TCTR_LOW
MOVQ_R64_XMM TCTR_LOW INC
MOVQ_R64_XMM CTR TCTR_LOW
ret
/*
-@@ -2552,6 +2580,7 @@ _aesni_inc:
+@@ -2554,6 +2582,7 @@ _aesni_inc:
.Linc_low:
movaps CTR, IV
PSHUFB_XMM BSWAP_MASK IV
ret
/*
-@@ -2612,5 +2641,7 @@ ENTRY(aesni_ctr_enc)
+@@ -2614,5 +2643,7 @@ ENTRY(aesni_ctr_enc)
.Lctr_enc_ret:
movups IV, (IVP)
.Lctr_enc_just_ret:
ret
+ENDPROC(aesni_ctr_enc)
#endif
-diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c
-index 545d0ce..14841a6 100644
---- a/arch/x86/crypto/aesni-intel_glue.c
-+++ b/arch/x86/crypto/aesni-intel_glue.c
-@@ -929,6 +929,8 @@ out_free_ablkcipher:
- }
-
- static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
-+ unsigned int key_len) __size_overflow(3);
-+static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
- unsigned int key_len)
- {
- int ret = 0;
diff --git a/arch/x86/crypto/blowfish-x86_64-asm_64.S b/arch/x86/crypto/blowfish-x86_64-asm_64.S
index 391d245..67f35c2 100644
--- a/arch/x86/crypto/blowfish-x86_64-asm_64.S
+ pax_force_retaddr 0, 1
ret;
+diff --git a/arch/x86/crypto/camellia-x86_64-asm_64.S b/arch/x86/crypto/camellia-x86_64-asm_64.S
+index 0b33743..7a56206 100644
+--- a/arch/x86/crypto/camellia-x86_64-asm_64.S
++++ b/arch/x86/crypto/camellia-x86_64-asm_64.S
+@@ -20,6 +20,8 @@
+ *
+ */
+
++#include <asm/alternative-asm.h>
++
+ .file "camellia-x86_64-asm_64.S"
+ .text
+
+@@ -229,12 +231,14 @@ __enc_done:
+ enc_outunpack(mov, RT1);
+
+ movq RRBP, %rbp;
++ pax_force_retaddr 0, 1
+ ret;
+
+ __enc_xor:
+ enc_outunpack(xor, RT1);
+
+ movq RRBP, %rbp;
++ pax_force_retaddr 0, 1
+ ret;
+
+ .global camellia_dec_blk;
+@@ -275,6 +279,7 @@ __dec_rounds16:
+ dec_outunpack();
+
+ movq RRBP, %rbp;
++ pax_force_retaddr 0, 1
+ ret;
+
+ /**********************************************************************
+@@ -468,6 +473,7 @@ __enc2_done:
+
+ movq RRBP, %rbp;
+ popq %rbx;
++ pax_force_retaddr 0, 1
+ ret;
+
+ __enc2_xor:
+@@ -475,6 +481,7 @@ __enc2_xor:
+
+ movq RRBP, %rbp;
+ popq %rbx;
++ pax_force_retaddr 0, 1
+ ret;
+
+ .global camellia_dec_blk_2way;
+@@ -517,4 +524,5 @@ __dec2_rounds16:
+
+ movq RRBP, %rbp;
+ movq RXOR, %rbx;
++ pax_force_retaddr 0, 1
+ ret;
diff --git a/arch/x86/crypto/salsa20-x86_64-asm_64.S b/arch/x86/crypto/salsa20-x86_64-asm_64.S
index 6214a9b..1f4fc9a 100644
--- a/arch/x86/crypto/salsa20-x86_64-asm_64.S
+ pax_force_retaddr
ret
diff --git a/arch/x86/crypto/serpent-sse2-x86_64-asm_64.S b/arch/x86/crypto/serpent-sse2-x86_64-asm_64.S
-index 7f24a15..9cd3ffe 100644
+index 3ee1ff0..cbc568b 100644
--- a/arch/x86/crypto/serpent-sse2-x86_64-asm_64.S
+++ b/arch/x86/crypto/serpent-sse2-x86_64-asm_64.S
@@ -24,6 +24,8 @@
.file "serpent-sse2-x86_64-asm_64.S"
.text
-@@ -695,12 +697,14 @@ __serpent_enc_blk_8way:
+@@ -692,12 +694,14 @@ __serpent_enc_blk_8way:
write_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2);
write_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2);
ret;
.align 8
-@@ -758,4 +762,5 @@ serpent_dec_blk_8way:
+@@ -755,4 +759,5 @@ serpent_dec_blk_8way:
write_blocks(%rsi, RC1, RD1, RB1, RE1, RK0, RK1, RK2);
write_blocks(%rax, RC2, RD2, RB2, RE2, RK0, RK1, RK2);
+ pax_force_retaddr 0, 1
ret
diff --git a/arch/x86/ia32/ia32_aout.c b/arch/x86/ia32/ia32_aout.c
-index 39e4909..887aa7e 100644
+index 07b3a68..bd2a388 100644
--- a/arch/x86/ia32/ia32_aout.c
+++ b/arch/x86/ia32/ia32_aout.c
-@@ -162,6 +162,8 @@ static int aout_core_dump(long signr, struct pt_regs *regs, struct file *file,
+@@ -159,6 +159,8 @@ static int aout_core_dump(long signr, struct pt_regs *regs, struct file *file,
unsigned long dump_start, dump_size;
struct user32 dump;
set_fs(KERNEL_DS);
has_dumped = 1;
diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
-index 6557769..ef6ae89 100644
+index a69245b..6d145f4 100644
--- a/arch/x86/ia32/ia32_signal.c
+++ b/arch/x86/ia32/ia32_signal.c
-@@ -169,7 +169,7 @@ asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *uss_ptr,
+@@ -168,7 +168,7 @@ asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *uss_ptr,
}
seg = get_fs();
set_fs(KERNEL_DS);
set_fs(seg);
if (ret >= 0 && uoss_ptr) {
if (!access_ok(VERIFY_WRITE, uoss_ptr, sizeof(stack_ia32_t)))
-@@ -370,7 +370,7 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
+@@ -369,7 +369,7 @@ static int ia32_setup_sigcontext(struct sigcontext_ia32 __user *sc,
*/
static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
size_t frame_size,
{
unsigned long sp;
-@@ -391,7 +391,7 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
+@@ -390,7 +390,7 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
if (used_math()) {
sp = sp - sig_xstate_ia32_size;
if (save_i387_xstate_ia32(*fpstate) < 0)
return (void __user *) -1L;
}
-@@ -399,7 +399,7 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
+@@ -398,7 +398,7 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
sp -= frame_size;
/* Align the stack pointer according to the i386 ABI,
* i.e. so that on function entry ((sp + 4) & 15) == 0. */
return (void __user *) sp;
}
-@@ -457,7 +457,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
+@@ -456,7 +456,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
* These are actually not used anymore, but left because some
* gdb versions depend on them as a marker.
*/
} put_user_catch(err);
if (err)
-@@ -499,7 +499,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -498,7 +498,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
0xb8,
__NR_ia32_rt_sigreturn,
0x80cd,
};
frame = get_sigframe(ka, regs, sizeof(*frame), &fpstate);
-@@ -529,16 +529,18 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -528,16 +528,18 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
if (ka->sa.sa_flags & SA_RESTORER)
restorer = ka->sa.sa_restorer;
RESTORE_REST
cmpq $(IA32_NR_syscalls-1),%rax
diff --git a/arch/x86/ia32/sys_ia32.c b/arch/x86/ia32/sys_ia32.c
-index f6f5c53..b358b28 100644
+index aec2202..f76174e 100644
--- a/arch/x86/ia32/sys_ia32.c
+++ b/arch/x86/ia32/sys_ia32.c
@@ -69,8 +69,8 @@ asmlinkage long sys32_ftruncate64(unsigned int fd, unsigned long offset_low,
SET_UID(uid, stat->uid);
SET_GID(gid, stat->gid);
if (!access_ok(VERIFY_WRITE, ubuf, sizeof(struct stat64)) ||
-@@ -308,8 +308,8 @@ asmlinkage long sys32_rt_sigprocmask(int how, compat_sigset_t __user *set,
- }
- set_fs(KERNEL_DS);
- ret = sys_rt_sigprocmask(how,
-- set ? (sigset_t __user *)&s : NULL,
-- oset ? (sigset_t __user *)&s : NULL,
-+ set ? (sigset_t __force_user *)&s : NULL,
-+ oset ? (sigset_t __force_user *)&s : NULL,
- sigsetsize);
- set_fs(old_fs);
- if (ret)
-@@ -332,7 +332,7 @@ asmlinkage long sys32_alarm(unsigned int seconds)
+@@ -292,7 +292,7 @@ asmlinkage long sys32_alarm(unsigned int seconds)
return alarm_setitimer(seconds);
}
int options)
{
return compat_sys_wait4(pid, stat_addr, options, NULL);
-@@ -353,7 +353,7 @@ asmlinkage long sys32_sched_rr_get_interval(compat_pid_t pid,
+@@ -313,7 +313,7 @@ asmlinkage long sys32_sched_rr_get_interval(compat_pid_t pid,
mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (put_compat_timespec(&t, interval))
return -EFAULT;
-@@ -369,7 +369,7 @@ asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *set,
+@@ -329,7 +329,7 @@ asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *set,
mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (!ret) {
switch (_NSIG_WORDS) {
-@@ -394,7 +394,7 @@ asmlinkage long sys32_rt_sigqueueinfo(int pid, int sig,
+@@ -354,7 +354,7 @@ asmlinkage long sys32_rt_sigqueueinfo(int pid, int sig,
if (copy_siginfo_from_user32(&info, uinfo))
return -EFAULT;
set_fs(KERNEL_DS);
set_fs(old_fs);
return ret;
}
-@@ -439,7 +439,7 @@ asmlinkage long sys32_sendfile(int out_fd, int in_fd,
+@@ -399,7 +399,7 @@ asmlinkage long sys32_sendfile(int out_fd, int in_fd,
return -EFAULT;
set_fs(KERNEL_DS);
.long \orig - .
.long \alt - .
diff --git a/arch/x86/include/asm/alternative.h b/arch/x86/include/asm/alternative.h
-index 37ad100..7d47faa 100644
+index 49331be..9706065 100644
--- a/arch/x86/include/asm/alternative.h
+++ b/arch/x86/include/asm/alternative.h
@@ -89,7 +89,7 @@ static inline int alternatives_text_reserved(void *start, void *end)
".previous"
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
-index 3ab9bdd..238033e 100644
+index d854101..f6ea947 100644
--- a/arch/x86/include/asm/apic.h
+++ b/arch/x86/include/asm/apic.h
-@@ -45,7 +45,7 @@ static inline void generic_apic_probe(void)
+@@ -44,7 +44,7 @@ static inline void generic_apic_probe(void)
#ifdef CONFIG_X86_LOCAL_APIC
/*
* atomic_dec_if_positive - decrement by 1 if old value positive
diff --git a/arch/x86/include/asm/atomic64_32.h b/arch/x86/include/asm/atomic64_32.h
-index fa13f0e..27c2e08 100644
+index 1981199..36b9dfb 100644
--- a/arch/x86/include/asm/atomic64_32.h
+++ b/arch/x86/include/asm/atomic64_32.h
@@ -12,6 +12,14 @@ typedef struct {
+
#define ATOMIC64_INIT(val) { (val) }
- #ifdef CONFIG_X86_CMPXCHG64
-@@ -38,6 +46,21 @@ static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n
+ #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...)
+@@ -37,21 +45,31 @@ typedef struct {
+ ATOMIC64_DECL_ONE(sym##_386)
+
+ ATOMIC64_DECL_ONE(add_386);
++ATOMIC64_DECL_ONE(add_unchecked_386);
+ ATOMIC64_DECL_ONE(sub_386);
++ATOMIC64_DECL_ONE(sub_unchecked_386);
+ ATOMIC64_DECL_ONE(inc_386);
++ATOMIC64_DECL_ONE(inc_unchecked_386);
+ ATOMIC64_DECL_ONE(dec_386);
++ATOMIC64_DECL_ONE(dec_unchecked_386);
+ #endif
+
+ #define alternative_atomic64(f, out, in...) \
+ __alternative_atomic64(f, f, ASM_OUTPUT2(out), ## in)
+
+ ATOMIC64_DECL(read);
++ATOMIC64_DECL(read_unchecked);
+ ATOMIC64_DECL(set);
++ATOMIC64_DECL(set_unchecked);
+ ATOMIC64_DECL(xchg);
+ ATOMIC64_DECL(add_return);
++ATOMIC64_DECL(add_return_unchecked);
+ ATOMIC64_DECL(sub_return);
++ATOMIC64_DECL(sub_return_unchecked);
+ ATOMIC64_DECL(inc_return);
++ATOMIC64_DECL(inc_return_unchecked);
+ ATOMIC64_DECL(dec_return);
++ATOMIC64_DECL(dec_return_unchecked);
+ ATOMIC64_DECL(dec_if_positive);
+ ATOMIC64_DECL(inc_not_zero);
+ ATOMIC64_DECL(add_unless);
+@@ -77,6 +95,21 @@ static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n
}
/**
* atomic64_xchg - xchg atomic64 variable
* @v: pointer to type atomic64_t
* @n: value to assign
-@@ -77,6 +100,24 @@ static inline void atomic64_set(atomic64_t *v, long long i)
+@@ -112,6 +145,22 @@ static inline void atomic64_set(atomic64_t *v, long long i)
}
/**
+{
+ unsigned high = (unsigned)(i >> 32);
+ unsigned low = (unsigned)i;
-+ asm volatile(ATOMIC64_ALTERNATIVE(set)
-+ : "+b" (low), "+c" (high)
-+ : "S" (v)
-+ : "eax", "edx", "memory"
-+ );
++ alternative_atomic64(set, /* no output */,
++ "S" (v), "b" (low), "c" (high)
++ : "eax", "edx", "memory");
+}
+
+/**
* atomic64_read - read atomic64 variable
* @v: pointer to type atomic64_t
*
-@@ -93,6 +134,22 @@ static inline long long atomic64_read(const atomic64_t *v)
+@@ -125,6 +174,19 @@ static inline long long atomic64_read(const atomic64_t *v)
}
/**
+static inline long long atomic64_read_unchecked(atomic64_unchecked_t *v)
+{
+ long long r;
-+ asm volatile(ATOMIC64_ALTERNATIVE(read_unchecked)
-+ : "=A" (r), "+c" (v)
-+ : : "memory"
-+ );
++ alternative_atomic64(read, "=&A" (r), "c" (v) : "memory");
+ return r;
+ }
+
* atomic64_add_return - add and return
* @i: integer value to add
* @v: pointer to type atomic64_t
-@@ -108,6 +165,22 @@ static inline long long atomic64_add_return(long long i, atomic64_t *v)
+@@ -139,6 +201,21 @@ static inline long long atomic64_add_return(long long i, atomic64_t *v)
return i;
}
+ */
+static inline long long atomic64_add_return_unchecked(long long i, atomic64_unchecked_t *v)
+{
-+ asm volatile(ATOMIC64_ALTERNATIVE(add_return_unchecked)
-+ : "+A" (i), "+c" (v)
-+ : : "memory"
-+ );
++ alternative_atomic64(add_return_unchecked,
++ ASM_OUTPUT2("+A" (i), "+c" (v)),
++ ASM_NO_INPUT_CLOBBER("memory"));
+ return i;
+}
+
/*
* Other variants with different arithmetic operators:
*/
-@@ -131,6 +204,17 @@ static inline long long atomic64_inc_return(atomic64_t *v)
+@@ -158,6 +235,14 @@ static inline long long atomic64_inc_return(atomic64_t *v)
return a;
}
+static inline long long atomic64_inc_return_unchecked(atomic64_unchecked_t *v)
+{
+ long long a;
-+ asm volatile(ATOMIC64_ALTERNATIVE(inc_return_unchecked)
-+ : "=A" (a)
-+ : "S" (v)
-+ : "memory", "ecx"
-+ );
++ alternative_atomic64(inc_return_unchecked, "=&A" (a),
++ "S" (v) : "memory", "ecx");
+ return a;
+}
+
static inline long long atomic64_dec_return(atomic64_t *v)
{
long long a;
-@@ -159,6 +243,22 @@ static inline long long atomic64_add(long long i, atomic64_t *v)
+@@ -182,6 +267,21 @@ static inline long long atomic64_add(long long i, atomic64_t *v)
}
/**
+ */
+static inline long long atomic64_add_unchecked(long long i, atomic64_unchecked_t *v)
+{
-+ asm volatile(ATOMIC64_ALTERNATIVE_(add_unchecked, add_return_unchecked)
-+ : "+A" (i), "+c" (v)
-+ : : "memory"
-+ );
++ __alternative_atomic64(add_unchecked, add_return_unchecked,
++ ASM_OUTPUT2("+A" (i), "+c" (v)),
++ ASM_NO_INPUT_CLOBBER("memory"));
+ return i;
+}
+
#ifdef CONFIG_X86_VSMP
#ifdef CONFIG_SMP
diff --git a/arch/x86/include/asm/cacheflush.h b/arch/x86/include/asm/cacheflush.h
-index 4e12668..501d239 100644
+index 9863ee3..4a1f8e1 100644
--- a/arch/x86/include/asm/cacheflush.h
+++ b/arch/x86/include/asm/cacheflush.h
-@@ -26,7 +26,7 @@ static inline unsigned long get_page_memtype(struct page *pg)
+@@ -27,7 +27,7 @@ static inline unsigned long get_page_memtype(struct page *pg)
unsigned long pg_flags = pg->flags & _PGMT_MASK;
if (pg_flags == _PGMT_DEFAULT)
({ \
__typeof__ (*(ptr)) __ret = (inc); \
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
-index 8d67d42..183d0eb 100644
+index 340ee49..4238ced 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86/include/asm/cpufeature.h
-@@ -367,7 +367,7 @@ static __always_inline __pure bool __static_cpu_has(u16 bit)
+@@ -371,7 +371,7 @@ static __always_inline __pure bool __static_cpu_has(u16 bit)
".section .discard,\"aw\",@progbits\n"
" .byte 0xff + (4f-3f) - (2b-1b)\n" /* size check */
".previous\n"
#define BIOS_ROM_BASE 0xffe00000
diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h
-index 5f962df..7289f09 100644
+index 5939f44..f8845f6 100644
--- a/arch/x86/include/asm/elf.h
+++ b/arch/x86/include/asm/elf.h
-@@ -238,7 +238,25 @@ extern int force_personality32;
+@@ -243,7 +243,25 @@ extern int force_personality32;
the loader. We need to make sure that it is out of the way of the program
that it will "exec", and that there is sufficient room for the brk. */
+#else
+#define PAX_ELF_ET_DYN_BASE 0x400000UL
+
-+#define PAX_DELTA_MMAP_LEN ((test_thread_flag(TIF_IA32)) ? 16 : TASK_SIZE_MAX_SHIFT - PAGE_SHIFT - 3)
-+#define PAX_DELTA_STACK_LEN ((test_thread_flag(TIF_IA32)) ? 16 : TASK_SIZE_MAX_SHIFT - PAGE_SHIFT - 3)
++#define PAX_DELTA_MMAP_LEN ((test_thread_flag(TIF_ADDR32)) ? 16 : TASK_SIZE_MAX_SHIFT - PAGE_SHIFT - 3)
++#define PAX_DELTA_STACK_LEN ((test_thread_flag(TIF_ADDR32)) ? 16 : TASK_SIZE_MAX_SHIFT - PAGE_SHIFT - 3)
+#endif
+#endif
/* This yields a mask that user programs can use to figure out what
instruction set this CPU supports. This could be done in user space,
-@@ -291,9 +309,7 @@ do { \
+@@ -296,16 +314,12 @@ do { \
#define ARCH_DLINFO \
do { \
+ NEW_AUX_ENT(AT_SYSINFO_EHDR, current->mm->context.vdso); \
} while (0)
+ #define ARCH_DLINFO_X32 \
+ do { \
+- if (vdso_enabled) \
+- NEW_AUX_ENT(AT_SYSINFO_EHDR, \
+- (unsigned long)current->mm->context.vdso); \
++ NEW_AUX_ENT(AT_SYSINFO_EHDR, current->mm->context.vdso); \
+ } while (0)
+
#define AT_SYSINFO 32
-@@ -304,7 +320,7 @@ do { \
+@@ -320,7 +334,7 @@ else \
#endif /* !CONFIG_X86_32 */
#define VDSO_ENTRY \
((unsigned long)VDSO32_SYMBOL(VDSO_CURRENT_BASE, vsyscall))
-@@ -318,9 +334,6 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
+@@ -336,9 +350,6 @@ extern int x32_setup_additional_pages(struct linux_binprm *bprm,
extern int syscall32_setup_pages(struct linux_binprm *, int exstack);
#define compat_arch_setup_additional_pages syscall32_setup_pages
+extern void machine_emergency_restart(void) __noreturn;
#endif /* _ASM_X86_EMERGENCY_RESTART_H */
-diff --git a/arch/x86/include/asm/floppy.h b/arch/x86/include/asm/floppy.h
-index dbe82a5..c6d8a00 100644
---- a/arch/x86/include/asm/floppy.h
-+++ b/arch/x86/include/asm/floppy.h
-@@ -157,6 +157,7 @@ static unsigned long dma_mem_alloc(unsigned long size)
- }
-
+diff --git a/arch/x86/include/asm/fpu-internal.h b/arch/x86/include/asm/fpu-internal.h
+index 4fa8815..71b121a 100644
+--- a/arch/x86/include/asm/fpu-internal.h
++++ b/arch/x86/include/asm/fpu-internal.h
+@@ -86,6 +86,11 @@ static inline int fxrstor_checking(struct i387_fxsave_struct *fx)
+ {
+ int err;
-+static unsigned long vdma_mem_alloc(unsigned long size) __size_overflow(1);
- static unsigned long vdma_mem_alloc(unsigned long size)
++#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
++ if ((unsigned long)fx < PAX_USER_SHADOW_BASE)
++ fx = (struct i387_fxsave_struct __user *)((void *)fx + PAX_USER_SHADOW_BASE);
++#endif
++
+ /* See comment in fxsave() below. */
+ #ifdef CONFIG_AS_FXSAVEQ
+ asm volatile("1: fxrstorq %[fx]\n\t"
+@@ -115,6 +120,11 @@ static inline int fxsave_user(struct i387_fxsave_struct __user *fx)
{
- return (unsigned long)vmalloc(size);
+ int err;
+
++#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
++ if ((unsigned long)fx < PAX_USER_SHADOW_BASE)
++ fx = (struct i387_fxsave_struct __user *)((void __user *)fx + PAX_USER_SHADOW_BASE);
++#endif
++
+ /*
+ * Clear the bytes not touched by the fxsave and reserved
+ * for the SW usage.
+@@ -271,7 +281,7 @@ static inline int restore_fpu_checking(struct task_struct *tsk)
+ "emms\n\t" /* clear stack tags */
+ "fildl %P[addr]", /* set F?P to defined value */
+ X86_FEATURE_FXSAVE_LEAK,
+- [addr] "m" (tsk->thread.fpu.has_fpu));
++ [addr] "m" (init_tss[smp_processor_id()].x86_tss.sp0));
+
+ return fpu_restore_checking(&tsk->thread.fpu);
+ }
diff --git a/arch/x86/include/asm/futex.h b/arch/x86/include/asm/futex.h
-index d09bb03..4ea4194 100644
+index 71ecbcb..bac10b7 100644
--- a/arch/x86/include/asm/futex.h
+++ b/arch/x86/include/asm/futex.h
-@@ -12,16 +12,18 @@
- #include <asm/system.h>
+@@ -11,16 +11,18 @@
+ #include <asm/processor.h>
#define __futex_atomic_op1(insn, ret, oldval, uaddr, oparg) \
+ typecheck(u32 __user *, uaddr); \
asm volatile("1:\tmovl %2, %0\n" \
"\tmovl\t%0, %3\n" \
"\t" insn "\n" \
-@@ -34,7 +36,7 @@
+@@ -33,7 +35,7 @@
_ASM_EXTABLE(1b, 4b) \
_ASM_EXTABLE(2b, 4b) \
: "=&a" (oldval), "=&r" (ret), \
: "r" (oparg), "i" (-EFAULT), "1" (0))
static inline int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
-@@ -61,10 +63,10 @@ static inline int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
+@@ -60,10 +62,10 @@ static inline int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
switch (op) {
case FUTEX_OP_SET:
uaddr, oparg);
break;
case FUTEX_OP_OR:
-@@ -123,13 +125,13 @@ static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
+@@ -122,13 +124,13 @@ static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))
return -EFAULT;
/* EISA */
extern void eisa_set_level_irq(unsigned int irq);
-diff --git a/arch/x86/include/asm/i387.h b/arch/x86/include/asm/i387.h
-index 2479049..3fb9795 100644
---- a/arch/x86/include/asm/i387.h
-+++ b/arch/x86/include/asm/i387.h
-@@ -93,6 +93,11 @@ static inline int fxrstor_checking(struct i387_fxsave_struct *fx)
- {
- int err;
-
-+#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
-+ if ((unsigned long)fx < PAX_USER_SHADOW_BASE)
-+ fx = (struct i387_fxsave_struct __user *)((void *)fx + PAX_USER_SHADOW_BASE);
-+#endif
-+
- /* See comment in fxsave() below. */
- #ifdef CONFIG_AS_FXSAVEQ
- asm volatile("1: fxrstorq %[fx]\n\t"
-@@ -122,6 +127,11 @@ static inline int fxsave_user(struct i387_fxsave_struct __user *fx)
- {
- int err;
-
-+#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
-+ if ((unsigned long)fx < PAX_USER_SHADOW_BASE)
-+ fx = (struct i387_fxsave_struct __user *)((void __user *)fx + PAX_USER_SHADOW_BASE);
-+#endif
-+
- /*
- * Clear the bytes not touched by the fxsave and reserved
- * for the SW usage.
-@@ -278,7 +288,7 @@ static inline int restore_fpu_checking(struct task_struct *tsk)
- "emms\n\t" /* clear stack tags */
- "fildl %P[addr]", /* set F?P to defined value */
- X86_FEATURE_FXSAVE_LEAK,
-- [addr] "m" (tsk->thread.fpu.has_fpu));
-+ [addr] "m" (init_tss[smp_processor_id()].x86_tss.sp0));
-
- return fpu_restore_checking(&tsk->thread.fpu);
- }
-@@ -445,7 +455,7 @@ static inline bool interrupted_kernel_fpu_idle(void)
- static inline bool interrupted_user_mode(void)
- {
- struct pt_regs *regs = get_irq_regs();
-- return regs && user_mode_vm(regs);
-+ return regs && user_mode(regs);
- }
-
- /*
diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
index d8e8eef..99f81ae 100644
--- a/arch/x86/include/asm/io.h
#define flush_insn_slot(p) do { } while (0)
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
-index 52d6640..136b3bd 100644
+index e216ba0..453f6ec 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
-@@ -663,7 +663,7 @@ struct kvm_x86_ops {
+@@ -679,7 +679,7 @@ struct kvm_x86_ops {
int (*check_intercept)(struct kvm_vcpu *vcpu,
struct x86_instruction_info *info,
enum x86_intercept_stage stage);
struct kvm_arch_async_pf {
u32 token;
-@@ -694,7 +694,7 @@ void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages);
- int load_pdptrs(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, unsigned long cr3);
-
- int emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa,
-- const void *val, int bytes);
-+ const void *val, int bytes) __size_overflow(2);
- u8 kvm_get_guest_memory_type(struct kvm_vcpu *vcpu, gfn_t gfn);
-
- extern bool tdp_enabled;
-@@ -781,7 +781,7 @@ int fx_init(struct kvm_vcpu *vcpu);
-
- void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu);
- void kvm_mmu_pte_write(struct kvm_vcpu *vcpu, gpa_t gpa,
-- const u8 *new, int bytes);
-+ const u8 *new, int bytes) __size_overflow(2);
- int kvm_mmu_unprotect_page(struct kvm *kvm, gfn_t gfn);
- int kvm_mmu_unprotect_page_virt(struct kvm_vcpu *vcpu, gva_t gva);
- void __kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu);
diff --git a/arch/x86/include/asm/local.h b/arch/x86/include/asm/local.h
-index 9cdae5d..300d20f 100644
+index c8bed0d..e5721fa 100644
--- a/arch/x86/include/asm/local.h
+++ b/arch/x86/include/asm/local.h
-@@ -18,26 +18,58 @@ typedef struct {
+@@ -17,26 +17,58 @@ typedef struct {
static inline void local_inc(local_t *l)
{
: "+m" (l->a.counter)
: "ir" (i));
}
-@@ -55,7 +87,16 @@ static inline int local_sub_and_test(long i, local_t *l)
+@@ -54,7 +86,16 @@ static inline int local_sub_and_test(long i, local_t *l)
{
unsigned char c;
: "+m" (l->a.counter), "=qm" (c)
: "ir" (i) : "memory");
return c;
-@@ -73,7 +114,16 @@ static inline int local_dec_and_test(local_t *l)
+@@ -72,7 +113,16 @@ static inline int local_dec_and_test(local_t *l)
{
unsigned char c;
: "+m" (l->a.counter), "=qm" (c)
: : "memory");
return c != 0;
-@@ -91,7 +141,16 @@ static inline int local_inc_and_test(local_t *l)
+@@ -90,7 +140,16 @@ static inline int local_inc_and_test(local_t *l)
{
unsigned char c;
: "+m" (l->a.counter), "=qm" (c)
: : "memory");
return c != 0;
-@@ -110,7 +169,16 @@ static inline int local_add_negative(long i, local_t *l)
+@@ -109,7 +168,16 @@ static inline int local_add_negative(long i, local_t *l)
{
unsigned char c;
: "+m" (l->a.counter), "=qm" (c)
: "ir" (i) : "memory");
return c;
-@@ -133,7 +201,15 @@ static inline long local_add_return(long i, local_t *l)
+@@ -132,7 +200,15 @@ static inline long local_add_return(long i, local_t *l)
#endif
/* Modern 486+ processor */
__i = i;
#ifdef CONFIG_SMP
diff --git a/arch/x86/include/asm/mmu_context.h b/arch/x86/include/asm/mmu_context.h
-index 6902152..399f3a2 100644
+index 6902152..da4283a 100644
--- a/arch/x86/include/asm/mmu_context.h
+++ b/arch/x86/include/asm/mmu_context.h
@@ -24,6 +24,18 @@ void destroy_context(struct mm_struct *mm);
/* Re-load page tables */
+#ifdef CONFIG_PAX_PER_CPU_PGD
+ pax_open_kernel();
-+ __clone_user_pgds(get_cpu_pgd(cpu), next->pgd, USER_PGD_PTRS);
-+ __shadow_user_pgds(get_cpu_pgd(cpu) + USER_PGD_PTRS, next->pgd, USER_PGD_PTRS);
++ __clone_user_pgds(get_cpu_pgd(cpu), next->pgd);
++ __shadow_user_pgds(get_cpu_pgd(cpu) + USER_PGD_PTRS, next->pgd);
+ pax_close_kernel();
+ load_cr3(get_cpu_pgd(cpu));
+#else
+
+#ifdef CONFIG_PAX_PER_CPU_PGD
+ pax_open_kernel();
-+ __clone_user_pgds(get_cpu_pgd(cpu), next->pgd, USER_PGD_PTRS);
-+ __shadow_user_pgds(get_cpu_pgd(cpu) + USER_PGD_PTRS, next->pgd, USER_PGD_PTRS);
++ __clone_user_pgds(get_cpu_pgd(cpu), next->pgd);
++ __shadow_user_pgds(get_cpu_pgd(cpu) + USER_PGD_PTRS, next->pgd);
+ pax_close_kernel();
+ load_cr3(get_cpu_pgd(cpu));
+#endif
extern unsigned long __phys_addr(unsigned long);
#define __phys_reloc_hide(x) (x)
diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h
-index a7d2db9..edb023e 100644
+index aa0f913..0c5bc6a 100644
--- a/arch/x86/include/asm/paravirt.h
+++ b/arch/x86/include/asm/paravirt.h
-@@ -667,6 +667,18 @@ static inline void set_pgd(pgd_t *pgdp, pgd_t pgd)
+@@ -668,6 +668,18 @@ static inline void set_pgd(pgd_t *pgdp, pgd_t pgd)
val);
}
static inline void pgd_clear(pgd_t *pgdp)
{
set_pgd(pgdp, __pgd(0));
-@@ -748,6 +760,21 @@ static inline void __set_fixmap(unsigned /* enum fixed_addresses */ idx,
+@@ -749,6 +761,21 @@ static inline void __set_fixmap(unsigned /* enum fixed_addresses */ idx,
pv_mmu_ops.set_fixmap(idx, phys, flags);
}
#if defined(CONFIG_SMP) && defined(CONFIG_PARAVIRT_SPINLOCKS)
static inline int arch_spin_is_locked(struct arch_spinlock *lock)
-@@ -964,7 +991,7 @@ extern void default_banner(void);
+@@ -965,7 +992,7 @@ extern void default_banner(void);
#define PARA_PATCH(struct, off) ((PARAVIRT_PATCH_##struct + (off)) / 4)
#define PARA_SITE(ptype, clobbers, ops) _PVSITE(ptype, clobbers, ops, .long, 4)
#endif
#define INTERRUPT_RETURN \
-@@ -1041,6 +1068,21 @@ extern void default_banner(void);
+@@ -1042,6 +1069,21 @@ extern void default_banner(void);
PARA_SITE(PARA_PATCH(pv_cpu_ops, PV_CPU_irq_enable_sysexit), \
CLBR_NONE, \
jmp PARA_INDIRECT(pv_cpu_ops+PV_CPU_irq_enable_sysexit))
static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte)
diff --git a/arch/x86/include/asm/pgtable-3level.h b/arch/x86/include/asm/pgtable-3level.h
-index effff47..f9e4035 100644
+index effff47..bbb8295 100644
--- a/arch/x86/include/asm/pgtable-3level.h
+++ b/arch/x86/include/asm/pgtable-3level.h
-@@ -38,12 +38,16 @@ static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte)
+@@ -31,6 +31,56 @@ static inline void native_set_pte(pte_t *ptep, pte_t pte)
+ ptep->pte_low = pte.pte_low;
+ }
+
++#define __HAVE_ARCH_READ_PMD_ATOMIC
++/*
++ * pte_offset_map_lock on 32bit PAE kernels was reading the pmd_t with
++ * a "*pmdp" dereference done by gcc. Problem is, in certain places
++ * where pte_offset_map_lock is called, concurrent page faults are
++ * allowed, if the mmap_sem is hold for reading. An example is mincore
++ * vs page faults vs MADV_DONTNEED. On the page fault side
++ * pmd_populate rightfully does a set_64bit, but if we're reading the
++ * pmd_t with a "*pmdp" on the mincore side, a SMP race can happen
++ * because gcc will not read the 64bit of the pmd atomically. To fix
++ * this all places running pmd_offset_map_lock() while holding the
++ * mmap_sem in read mode, shall read the pmdp pointer using this
++ * function to know if the pmd is null nor not, and in turn to know if
++ * they can run pmd_offset_map_lock or pmd_trans_huge or other pmd
++ * operations.
++ *
++ * Without THP if the mmap_sem is hold for reading, the
++ * pmd can only transition from null to not null while read_pmd_atomic runs.
++ * So there's no need of literally reading it atomically.
++ *
++ * With THP if the mmap_sem is hold for reading, the pmd can become
++ * THP or null or point to a pte (and in turn become "stable") at any
++ * time under read_pmd_atomic, so it's mandatory to read it atomically
++ * with cmpxchg8b.
++ */
++#ifndef CONFIG_TRANSPARENT_HUGEPAGE
++static inline pmd_t read_pmd_atomic(pmd_t *pmdp)
++{
++ pmdval_t ret;
++ u32 *tmp = (u32 *)pmdp;
++
++ ret = (pmdval_t) (*tmp);
++ if (ret) {
++ /*
++ * If the low part is null, we must not read the high part
++ * or we can end up with a partial pmd.
++ */
++ smp_rmb();
++ ret |= ((pmdval_t)*(tmp + 1)) << 32;
++ }
++
++ return __pmd(ret);
++}
++#else /* CONFIG_TRANSPARENT_HUGEPAGE */
++static inline pmd_t read_pmd_atomic(pmd_t *pmdp)
++{
++ return __pmd(atomic64_read((atomic64_t *)pmdp));
++}
++#endif /* CONFIG_TRANSPARENT_HUGEPAGE */
++
+ static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte)
+ {
+ set_64bit((unsigned long long *)(ptep), native_pte_val(pte));
+@@ -38,12 +88,16 @@ static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte)
static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd)
{
/*
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
-index 49afb3f..ed14d07 100644
+index 49afb3f..91a8c63 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -44,6 +44,7 @@ extern struct mm_struct *pgd_page_get_mm(struct page *page);
}
+#ifdef CONFIG_PAX_PER_CPU_PGD
-+extern void __clone_user_pgds(pgd_t *dst, const pgd_t *src, int count);
++extern void __clone_user_pgds(pgd_t *dst, const pgd_t *src);
+#endif
+
+#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
-+extern void __shadow_user_pgds(pgd_t *dst, const pgd_t *src, int count);
++extern void __shadow_user_pgds(pgd_t *dst, const pgd_t *src);
+#else
-+static inline void __shadow_user_pgds(pgd_t *dst, const pgd_t *src, int count) {}
++static inline void __shadow_user_pgds(pgd_t *dst, const pgd_t *src) {}
+#endif
#include <asm-generic/pgtable.h>
#define pgprot_writecombine pgprot_writecombine
extern pgprot_t pgprot_writecombine(pgprot_t prot);
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
-index 58545c9..fe6fc38e 100644
+index 4fa7dcc..764e33a 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
-@@ -266,7 +266,7 @@ struct tss_struct {
+@@ -276,7 +276,7 @@ struct tss_struct {
} ____cacheline_aligned;
/*
* Save the original ist values for checking stack pointers during debugging
-@@ -860,11 +860,18 @@ static inline void spin_lock_prefetch(const void *x)
+@@ -807,11 +807,18 @@ static inline void spin_lock_prefetch(const void *x)
*/
#define TASK_SIZE PAGE_OFFSET
#define TASK_SIZE_MAX TASK_SIZE
.vm86_info = NULL, \
.sysenter_cs = __KERNEL_CS, \
.io_bitmap_ptr = NULL, \
-@@ -878,7 +885,7 @@ static inline void spin_lock_prefetch(const void *x)
+@@ -825,7 +832,7 @@ static inline void spin_lock_prefetch(const void *x)
*/
#define INIT_TSS { \
.x86_tss = { \
.ss0 = __KERNEL_DS, \
.ss1 = __KERNEL_CS, \
.io_bitmap_base = INVALID_IO_BITMAP_OFFSET, \
-@@ -889,11 +896,7 @@ static inline void spin_lock_prefetch(const void *x)
+@@ -836,11 +843,7 @@ static inline void spin_lock_prefetch(const void *x)
extern unsigned long thread_saved_pc(struct task_struct *tsk);
#define THREAD_SIZE_LONGS (THREAD_SIZE/sizeof(unsigned long))
/*
* The below -8 is to reserve 8 bytes on top of the ring0 stack.
-@@ -908,7 +911,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
+@@ -855,7 +858,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
#define task_pt_regs(task) \
({ \
struct pt_regs *__regs__; \
__regs__ - 1; \
})
-@@ -918,13 +921,13 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
+@@ -865,13 +868,13 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
/*
* User space process size. 47bits minus one guard page.
*/
- 0xc0000000 : 0xFFFFe000)
+ 0xc0000000 : 0xFFFFf000)
- #define TASK_SIZE (test_thread_flag(TIF_IA32) ? \
+ #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \
IA32_PAGE_OFFSET : TASK_SIZE_MAX)
-@@ -935,11 +938,11 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
+@@ -882,11 +885,11 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
#define STACK_TOP_MAX TASK_SIZE_MAX
#define INIT_THREAD { \
}
/*
-@@ -961,6 +964,10 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_ip,
+@@ -914,6 +917,10 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_ip,
*/
#define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
#define KSTK_EIP(task) (task_pt_regs(task)->ip)
/* Get/set a process' ability to use the timestamp counter instruction */
+@@ -976,12 +983,12 @@ extern bool cpu_has_amd_erratum(const int *);
+
+ void cpu_idle_wait(void);
+
+-extern unsigned long arch_align_stack(unsigned long sp);
++#define arch_align_stack(x) ((x) & ~0xfUL)
+ extern void free_init_pages(char *what, unsigned long begin, unsigned long end);
+
+ void default_idle(void);
+ bool set_pm_idle_to_default(void);
+
+-void stop_this_cpu(void *dummy);
++void stop_this_cpu(void *dummy) __noreturn;
+
+ #endif /* _ASM_X86_PROCESSOR_H */
diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
-index 3566454..4bdfb8c 100644
+index dcfde52..dbfea06 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
-@@ -156,28 +156,29 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
+@@ -155,28 +155,29 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
}
/*
#endif
}
-@@ -193,15 +194,16 @@ static inline int v8086_mode(struct pt_regs *regs)
+@@ -192,15 +193,16 @@ static inline int v8086_mode(struct pt_regs *regs)
#ifdef CONFIG_X86_64
static inline bool user_64bit_mode(struct pt_regs *regs)
{
#endif /* __KERNEL__ */
diff --git a/arch/x86/include/asm/segment.h b/arch/x86/include/asm/segment.h
-index 5e64171..f58957e 100644
+index 1654662..5af4157 100644
--- a/arch/x86/include/asm/segment.h
+++ b/arch/x86/include/asm/segment.h
@@ -64,10 +64,15 @@
#define __KERNEL_DS (GDT_ENTRY_KERNEL_DS*8)
#define __USER_DS (GDT_ENTRY_DEFAULT_USER_DS*8+3)
#define __USER_CS (GDT_ENTRY_DEFAULT_USER_CS*8+3)
+@@ -263,7 +279,7 @@ static inline unsigned long get_limit(unsigned long segment)
+ {
+ unsigned long __limit;
+ asm("lsll %1,%0" : "=r" (__limit) : "r" (segment));
+- return __limit + 1;
++ return __limit;
+ }
+
+ #endif /* !__ASSEMBLY__ */
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
index 0434c40..1714bf0 100644
--- a/arch/x86/include/asm/smp.h
#endif
diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h
-index a82c2bf..2198f61 100644
+index 76bfa2c..12d3fe7 100644
--- a/arch/x86/include/asm/spinlock.h
+++ b/arch/x86/include/asm/spinlock.h
@@ -175,6 +175,14 @@ static inline int arch_write_can_lock(arch_rwlock_t *lock)
}
diff --git a/arch/x86/include/asm/stackprotector.h b/arch/x86/include/asm/stackprotector.h
-index 1575177..cb23f52 100644
+index b5d9533..41655fa 100644
--- a/arch/x86/include/asm/stackprotector.h
+++ b/arch/x86/include/asm/stackprotector.h
-@@ -48,7 +48,7 @@
+@@ -47,7 +47,7 @@
* head_32 for boot CPU and setup_per_cpu_areas() for others.
*/
#define GDT_STACK_CANARY_INIT \
/*
* Initialize the stackprotector canary value.
-@@ -113,7 +113,7 @@ static inline void setup_stack_canary_segment(int cpu)
+@@ -112,7 +112,7 @@ static inline void setup_stack_canary_segment(int cpu)
static inline void load_stack_canary_segment(void)
{
};
void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
-diff --git a/arch/x86/include/asm/sys_ia32.h b/arch/x86/include/asm/sys_ia32.h
-index cb23852..2dde194 100644
---- a/arch/x86/include/asm/sys_ia32.h
-+++ b/arch/x86/include/asm/sys_ia32.h
-@@ -40,7 +40,7 @@ asmlinkage long sys32_rt_sigprocmask(int, compat_sigset_t __user *,
- compat_sigset_t __user *, unsigned int);
- asmlinkage long sys32_alarm(unsigned int);
-
--asmlinkage long sys32_waitpid(compat_pid_t, unsigned int *, int);
-+asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int);
- asmlinkage long sys32_sysfs(int, u32, u32);
-
- asmlinkage long sys32_sched_rr_get_interval(compat_pid_t,
-diff --git a/arch/x86/include/asm/syscalls.h b/arch/x86/include/asm/syscalls.h
-index f1d8b44..a4de8b7 100644
---- a/arch/x86/include/asm/syscalls.h
-+++ b/arch/x86/include/asm/syscalls.h
-@@ -30,7 +30,7 @@ long sys_clone(unsigned long, unsigned long, void __user *,
- void __user *, struct pt_regs *);
-
- /* kernel/ldt.c */
--asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
-+asmlinkage int sys_modify_ldt(int, void __user *, unsigned long) __size_overflow(3);
-
- /* kernel/signal.c */
- long sys_rt_sigreturn(struct pt_regs *);
-diff --git a/arch/x86/include/asm/system.h b/arch/x86/include/asm/system.h
-index 2d2f01c..f985723 100644
---- a/arch/x86/include/asm/system.h
-+++ b/arch/x86/include/asm/system.h
-@@ -129,7 +129,7 @@ do { \
+diff --git a/arch/x86/include/asm/switch_to.h b/arch/x86/include/asm/switch_to.h
+index 4ec45b3..a4f0a8a 100644
+--- a/arch/x86/include/asm/switch_to.h
++++ b/arch/x86/include/asm/switch_to.h
+@@ -108,7 +108,7 @@ do { \
"call __switch_to\n\t" \
"movq "__percpu_arg([current_task])",%%rsi\n\t" \
__switch_canary \
"movq %%rax,%%rdi\n\t" \
"testl %[_tif_fork],%P[ti_flags](%%r8)\n\t" \
"jnz ret_from_fork\n\t" \
-@@ -140,7 +140,7 @@ do { \
+@@ -119,7 +119,7 @@ do { \
[threadrsp] "i" (offsetof(struct task_struct, thread.sp)), \
[ti_flags] "i" (offsetof(struct thread_info, flags)), \
[_tif_fork] "i" (_TIF_FORK), \
[current_task] "m" (current_task) \
__switch_canary_iparam \
: "memory", "cc" __EXTRA_CLOBBER)
-@@ -200,7 +200,7 @@ static inline unsigned long get_limit(unsigned long segment)
- {
- unsigned long __limit;
- asm("lsll %1,%0" : "=r" (__limit) : "r" (segment));
-- return __limit + 1;
-+ return __limit;
- }
-
- static inline void native_clts(void)
-@@ -397,13 +397,13 @@ void enable_hlt(void);
-
- void cpu_idle_wait(void);
-
--extern unsigned long arch_align_stack(unsigned long sp);
-+#define arch_align_stack(x) ((x) & ~0xfUL)
- extern void free_init_pages(char *what, unsigned long begin, unsigned long end);
-
- void default_idle(void);
- bool set_pm_idle_to_default(void);
+diff --git a/arch/x86/include/asm/sys_ia32.h b/arch/x86/include/asm/sys_ia32.h
+index 3fda9db4..4ca1c61 100644
+--- a/arch/x86/include/asm/sys_ia32.h
++++ b/arch/x86/include/asm/sys_ia32.h
+@@ -40,7 +40,7 @@ asmlinkage long sys32_sigaction(int, struct old_sigaction32 __user *,
+ struct old_sigaction32 __user *);
+ asmlinkage long sys32_alarm(unsigned int);
--void stop_this_cpu(void *dummy);
-+void stop_this_cpu(void *dummy) __noreturn;
+-asmlinkage long sys32_waitpid(compat_pid_t, unsigned int *, int);
++asmlinkage long sys32_waitpid(compat_pid_t, unsigned int __user *, int);
+ asmlinkage long sys32_sysfs(int, u32, u32);
- /*
- * Force strict CPU ordering.
+ asmlinkage long sys32_sched_rr_get_interval(compat_pid_t,
diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h
-index cfd8144..664ac89 100644
+index ad6df8c..5e0cf6e 100644
--- a/arch/x86/include/asm/thread_info.h
+++ b/arch/x86/include/asm/thread_info.h
@@ -10,6 +10,7 @@
#define init_stack (init_thread_union.stack)
#else /* !__ASSEMBLY__ */
-@@ -95,6 +89,7 @@ struct thread_info {
- #define TIF_BLOCKSTEP 25 /* set when we want DEBUGCTLMSR_BTF */
- #define TIF_LAZY_MMU_UPDATES 27 /* task is updating the mmu lazily */
+@@ -97,6 +91,7 @@ struct thread_info {
#define TIF_SYSCALL_TRACEPOINT 28 /* syscall tracepoint instrumentation */
-+#define TIF_GRSEC_SETXID 29 /* update credentials on syscall entry/exit */
+ #define TIF_ADDR32 29 /* 32-bit address space on 64 bits */
+ #define TIF_X32 30 /* 32-bit native x86-64 binary */
++#define TIF_GRSEC_SETXID 31 /* update credentials on syscall entry/exit */
#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
#define _TIF_NOTIFY_RESUME (1 << TIF_NOTIFY_RESUME)
-@@ -116,16 +111,17 @@ struct thread_info {
- #define _TIF_BLOCKSTEP (1 << TIF_BLOCKSTEP)
- #define _TIF_LAZY_MMU_UPDATES (1 << TIF_LAZY_MMU_UPDATES)
+@@ -120,16 +115,18 @@ struct thread_info {
#define _TIF_SYSCALL_TRACEPOINT (1 << TIF_SYSCALL_TRACEPOINT)
+ #define _TIF_ADDR32 (1 << TIF_ADDR32)
+ #define _TIF_X32 (1 << TIF_X32)
+#define _TIF_GRSEC_SETXID (1 << TIF_GRSEC_SETXID)
/* work to do in syscall_trace_enter() */
#define _TIF_WORK_SYSCALL_ENTRY \
(_TIF_SYSCALL_TRACE | _TIF_SYSCALL_EMU | _TIF_SYSCALL_AUDIT | \
- _TIF_SECCOMP | _TIF_SINGLESTEP | _TIF_SYSCALL_TRACEPOINT)
-+ _TIF_SECCOMP | _TIF_SINGLESTEP | _TIF_SYSCALL_TRACEPOINT | _TIF_GRSEC_SETXID)
++ _TIF_SECCOMP | _TIF_SINGLESTEP | _TIF_SYSCALL_TRACEPOINT | \
++ _TIF_GRSEC_SETXID)
/* work to do in syscall_trace_leave() */
#define _TIF_WORK_SYSCALL_EXIT \
/* work to do on interrupt/exception return */
#define _TIF_WORK_MASK \
-@@ -135,7 +131,8 @@ struct thread_info {
+@@ -139,7 +136,8 @@ struct thread_info {
/* work to do on any return to user space */
#define _TIF_ALLWORK_MASK \
/* Only used for 64 bit */
#define _TIF_DO_NOTIFY_MASK \
-@@ -169,45 +166,40 @@ struct thread_info {
+@@ -173,45 +171,40 @@ struct thread_info {
ret; \
})
/*
* macros/functions for gaining access to the thread information structure
* preempt_count needs to be 1 initially, until the scheduler is functional.
-@@ -215,27 +207,8 @@ static inline struct thread_info *current_thread_info(void)
+@@ -219,27 +212,8 @@ static inline struct thread_info *current_thread_info(void)
#ifndef __ASSEMBLY__
DECLARE_PER_CPU(unsigned long, kernel_stack);
#endif
#endif /* !X86_32 */
-@@ -269,5 +242,16 @@ extern void arch_task_cache_init(void);
+@@ -285,5 +259,16 @@ extern void arch_task_cache_init(void);
extern void free_thread_info(struct thread_info *ti);
extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
#define arch_task_cache_init arch_task_cache_init
#endif
#endif /* _ASM_X86_THREAD_INFO_H */
diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h
-index 8be5f54..7ae826d 100644
+index e054459..14bc8a7 100644
--- a/arch/x86/include/asm/uaccess.h
+++ b/arch/x86/include/asm/uaccess.h
@@ -7,12 +7,15 @@
#ifdef CONFIG_X86_WP_WORKS_OK
diff --git a/arch/x86/include/asm/uaccess_32.h b/arch/x86/include/asm/uaccess_32.h
-index 566e803..7183d0b 100644
+index 8084bc7..cc139cb 100644
--- a/arch/x86/include/asm/uaccess_32.h
+++ b/arch/x86/include/asm/uaccess_32.h
@@ -11,15 +11,15 @@
/**
* __copy_to_user_inatomic: - Copy a block of data into user space, with less checking.
-@@ -41,8 +41,13 @@ unsigned long __must_check __copy_from_user_ll_nocache_nozero
- */
-
+@@ -43,6 +43,9 @@ unsigned long __must_check __copy_from_user_ll_nocache_nozero
static __always_inline unsigned long __must_check
-+__copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) __size_overflow(3);
-+static __always_inline unsigned long __must_check
__copy_to_user_inatomic(void __user *to, const void *from, unsigned long n)
{
+ if ((long)n < 0)
if (__builtin_constant_p(n)) {
unsigned long ret;
-@@ -61,6 +66,8 @@ __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n)
+@@ -61,6 +64,8 @@ __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n)
return ret;
}
}
return __copy_to_user_ll(to, from, n);
}
-@@ -79,15 +86,23 @@ __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n)
- * On success, this will be zero.
- */
- static __always_inline unsigned long __must_check
-+__copy_to_user(void __user *to, const void *from, unsigned long n) __size_overflow(3);
-+static __always_inline unsigned long __must_check
+@@ -82,12 +87,16 @@ static __always_inline unsigned long __must_check
__copy_to_user(void __user *to, const void *from, unsigned long n)
{
might_fault();
}
static __always_inline unsigned long
-+__copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) __size_overflow(3);
-+static __always_inline unsigned long
__copy_from_user_inatomic(void *to, const void __user *from, unsigned long n)
{
+ if ((long)n < 0)
/* Avoid zeroing the tail if the copy fails..
* If 'n' is constant and 1, 2, or 4, we do still zero on a failure,
* but as the zeroing behaviour is only significant when n is not
-@@ -134,9 +149,15 @@ __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n)
- * for explanation of why this is needed.
- */
- static __always_inline unsigned long
-+__copy_from_user(void *to, const void __user *from, unsigned long n) __size_overflow(3);
-+static __always_inline unsigned long
+@@ -137,6 +146,10 @@ static __always_inline unsigned long
__copy_from_user(void *to, const void __user *from, unsigned long n)
{
might_fault();
if (__builtin_constant_p(n)) {
unsigned long ret;
-@@ -152,13 +173,21 @@ __copy_from_user(void *to, const void __user *from, unsigned long n)
+@@ -152,6 +165,8 @@ __copy_from_user(void *to, const void __user *from, unsigned long n)
return ret;
}
}
return __copy_from_user_ll(to, from, n);
}
- static __always_inline unsigned long __copy_from_user_nocache(void *to,
-+ const void __user *from, unsigned long n) __size_overflow(3);
-+static __always_inline unsigned long __copy_from_user_nocache(void *to,
+@@ -159,6 +174,10 @@ static __always_inline unsigned long __copy_from_user_nocache(void *to,
const void __user *from, unsigned long n)
{
might_fault();
if (__builtin_constant_p(n)) {
unsigned long ret;
-@@ -179,17 +208,24 @@ static __always_inline unsigned long __copy_from_user_nocache(void *to,
-
- static __always_inline unsigned long
+@@ -181,15 +200,19 @@ static __always_inline unsigned long
__copy_from_user_inatomic_nocache(void *to, const void __user *from,
-+ unsigned long n) __size_overflow(3);
-+static __always_inline unsigned long
-+__copy_from_user_inatomic_nocache(void *to, const void __user *from,
unsigned long n)
{
- return __copy_from_user_ll_nocache_nozero(to, from, n);
extern void copy_from_user_overflow(void)
#ifdef CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
-@@ -199,17 +235,65 @@ extern void copy_from_user_overflow(void)
+@@ -199,17 +222,61 @@ extern void copy_from_user_overflow(void)
#endif
;
+ * On success, this will be zero.
+ */
+static inline unsigned long __must_check
-+copy_to_user(void __user *to, const void *from, unsigned long n) __size_overflow(3);
-+static inline unsigned long __must_check
+copy_to_user(void __user *to, const void *from, unsigned long n)
+{
+ int sz = __compiletime_object_size(from);
+ * data to the requested size using zero bytes.
+ */
+static inline unsigned long __must_check
-+copy_from_user(void *to, const void __user *from, unsigned long n) __size_overflow(3);
-+static inline unsigned long __must_check
+copy_from_user(void *to, const void __user *from, unsigned long n)
{
int sz = __compiletime_object_size(to);
return n;
}
-@@ -235,7 +319,7 @@ long __must_check __strncpy_from_user(char *dst,
+@@ -230,7 +297,7 @@ static inline unsigned long __must_check copy_from_user(void *to,
#define strlen_user(str) strnlen_user(str, LONG_MAX)
long strnlen_user(const char __user *str, long n);
#endif /* _ASM_X86_UACCESS_32_H */
diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h
-index 1c66d30..e294b5f 100644
+index fcd4b6f..1d52af4 100644
--- a/arch/x86/include/asm/uaccess_64.h
+++ b/arch/x86/include/asm/uaccess_64.h
@@ -10,6 +10,9 @@
{
unsigned ret;
-@@ -32,142 +37,237 @@ copy_user_generic(void *to, const void *from, unsigned len)
+@@ -32,142 +37,238 @@ copy_user_generic(void *to, const void *from, unsigned len)
ASM_OUTPUT2("=a" (ret), "=D" (to), "=S" (from),
"=d" (len)),
"1" (to), "2" (from), "3" (len)
-__must_check unsigned long
-copy_in_user(void __user *to, const void __user *from, unsigned len);
+copy_in_user(void __user *to, const void __user *from, unsigned long len) __size_overflow(3);
++
++extern void copy_to_user_overflow(void)
++#ifdef CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
++ __compiletime_error("copy_to_user() buffer size is not provably correct")
++#else
++ __compiletime_warning("copy_to_user() buffer size is not provably correct")
++#endif
++;
++
++extern void copy_from_user_overflow(void)
++#ifdef CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
++ __compiletime_error("copy_from_user() buffer size is not provably correct")
++#else
++ __compiletime_warning("copy_from_user() buffer size is not provably correct")
++#endif
++;
static inline unsigned long __must_check copy_from_user(void *to,
const void __user *from,
-+ unsigned long n) __size_overflow(3);
-+static inline unsigned long __must_check copy_from_user(void *to,
-+ const void __user *from,
unsigned long n)
{
- int sz = __compiletime_object_size(to);
static __always_inline __must_check
-int copy_to_user(void __user *dst, const void *src, unsigned size)
-+int copy_to_user(void __user *dst, const void *src, unsigned long size) __size_overflow(3);
-+static __always_inline __must_check
+int copy_to_user(void __user *dst, const void *src, unsigned long size)
{
might_fault();
static __always_inline __must_check
-int __copy_from_user(void *dst, const void __user *src, unsigned size)
-+unsigned long __copy_from_user(void *dst, const void __user *src, unsigned long size) __size_overflow(3);
-+static __always_inline __must_check
+unsigned long __copy_from_user(void *dst, const void __user *src, unsigned long size)
{
- int ret = 0;
+#endif
+
+ if (unlikely(sz != -1 && sz < size)) {
-+#ifdef CONFIG_DEBUG_VM
-+ WARN(1, "Buffer overflow detected!\n");
-+#endif
++ copy_from_user_overflow();
+ return size;
+ }
+
static __always_inline __must_check
-int __copy_to_user(void __user *dst, const void *src, unsigned size)
-+unsigned long __copy_to_user(void __user *dst, const void *src, unsigned long size) __size_overflow(3);
-+static __always_inline __must_check
+unsigned long __copy_to_user(void __user *dst, const void *src, unsigned long size)
{
- int ret = 0;
+#endif
+
+ if (unlikely(sz != -1 && sz < size)) {
-+#ifdef CONFIG_DEBUG_VM
-+ WARN(1, "Buffer overflow detected!\n");
-+#endif
++ copy_to_user_overflow();
+ return size;
+ }
+
static __always_inline __must_check
-int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
-+unsigned long __copy_in_user(void __user *dst, const void __user *src, unsigned long size) __size_overflow(3);
-+static __always_inline __must_check
+unsigned long __copy_in_user(void __user *dst, const void __user *src, unsigned long size)
{
- int ret = 0;
ret, "b", "b", "=q", 1);
if (likely(!ret))
__put_user_asm(tmp, (u8 __user *)dst,
-@@ -176,7 +276,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -176,7 +277,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
}
case 2: {
u16 tmp;
ret, "w", "w", "=r", 2);
if (likely(!ret))
__put_user_asm(tmp, (u16 __user *)dst,
-@@ -186,7 +286,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -186,7 +287,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
case 4: {
u32 tmp;
ret, "l", "k", "=r", 4);
if (likely(!ret))
__put_user_asm(tmp, (u32 __user *)dst,
-@@ -195,7 +295,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -195,7 +296,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
}
case 8: {
u64 tmp;
ret, "q", "", "=r", 8);
if (likely(!ret))
__put_user_asm(tmp, (u64 __user *)dst,
-@@ -203,8 +303,16 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -203,47 +304,92 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
return ret;
}
default:
}
}
-@@ -215,39 +323,83 @@ __strncpy_from_user(char *dst, const char __user *src, long count);
__must_check long strnlen_user(const char __user *str, long n);
__must_check long __strnlen_user(const char __user *str, long n);
__must_check long strlen_user(const char __user *str);
static __must_check __always_inline int
-__copy_from_user_inatomic(void *dst, const void __user *src, unsigned size)
-+__copy_from_user_inatomic(void *dst, const void __user *src, unsigned long size) __size_overflow(3);
-+static __must_check __always_inline int
+__copy_from_user_inatomic(void *dst, const void __user *src, unsigned long size)
{
- return copy_user_generic(dst, (__force const void *)src, size);
-static __must_check __always_inline int
-__copy_to_user_inatomic(void __user *dst, const void *src, unsigned size)
+static __must_check __always_inline unsigned long
-+__copy_to_user_inatomic(void __user *dst, const void *src, unsigned long size) __size_overflow(3);
-+static __must_check __always_inline unsigned long
+__copy_to_user_inatomic(void __user *dst, const void *src, unsigned long size)
{
- return copy_user_generic((__force void *)dst, src, size);
-static inline int
-__copy_from_user_nocache(void *dst, const void __user *src, unsigned size)
-+static inline unsigned long __copy_from_user_nocache(void *dst, const void __user *src, unsigned long size) __size_overflow(3);
+static inline unsigned long __copy_from_user_nocache(void *dst, const void __user *src, unsigned long size)
{
might_sleep();
-__copy_from_user_inatomic_nocache(void *dst, const void __user *src,
- unsigned size)
+static inline unsigned long __copy_from_user_inatomic_nocache(void *dst, const void __user *src,
-+ unsigned long size) __size_overflow(3);
-+static inline unsigned long __copy_from_user_inatomic_nocache(void *dst, const void __user *src,
+ unsigned long size)
{
+ if (size > INT_MAX)
#endif
diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h
-index a609c39..7a68dc7 100644
+index 764b66a..ad3cfc8 100644
--- a/arch/x86/include/asm/x86_init.h
+++ b/arch/x86/include/asm/x86_init.h
@@ -29,7 +29,7 @@ struct x86_init_mpparse {
/**
* struct x86_cpuinit_ops - platform specific cpu hotplug setups
-@@ -149,7 +149,7 @@ struct x86_init_ops {
- struct x86_cpuinit_ops {
+@@ -151,7 +151,7 @@ struct x86_cpuinit_ops {
void (*setup_percpu_clockev)(void);
+ void (*early_percpu_clock_init)(void);
void (*fixup_cpu_id)(struct cpuinfo_x86 *c, int node);
-};
+} __no_const;
/**
* struct x86_platform_ops - platform specific runtime functions
-@@ -171,7 +171,7 @@ struct x86_platform_ops {
- void (*nmi_init)(void);
- unsigned char (*get_nmi_reason)(void);
+@@ -177,7 +177,7 @@ struct x86_platform_ops {
int (*i8042_detect)(void);
+ void (*save_sched_clock_state)(void);
+ void (*restore_sched_clock_state)(void);
-};
+} __no_const;
struct pci_dev;
-@@ -180,7 +180,7 @@ struct x86_msi_ops {
+@@ -186,7 +186,7 @@ struct x86_msi_ops {
void (*teardown_msi_irq)(unsigned int irq);
void (*teardown_msi_irqs)(struct pci_dev *dev);
void (*restore_msi_irqs)(struct pci_dev *dev, int irq);
pushw $0
pushw trampoline_segment
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
-index 103b6ab..2004d0a 100644
+index 146a49c..1b5338b 100644
--- a/arch/x86/kernel/acpi/sleep.c
+++ b/arch/x86/kernel/acpi/sleep.c
-@@ -94,8 +94,12 @@ int acpi_suspend_lowlevel(void)
+@@ -98,8 +98,12 @@ int acpi_suspend_lowlevel(void)
header->trampoline_segment = trampoline_address() >> 4;
#ifdef CONFIG_SMP
stack_start = (unsigned long)temp_stack + sizeof(temp_stack);
#endif
initial_code = (unsigned long)wakeup_long64;
diff --git a/arch/x86/kernel/acpi/wakeup_32.S b/arch/x86/kernel/acpi/wakeup_32.S
-index 13ab720..95d5442 100644
+index 7261083..5c12053 100644
--- a/arch/x86/kernel/acpi/wakeup_32.S
+++ b/arch/x86/kernel/acpi/wakeup_32.S
@@ -30,13 +30,11 @@ wakeup_pmode_return:
}
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
-index 5b3f88e..61232b4 100644
+index edc2448..553e7c5 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -184,7 +184,7 @@ int first_system_vector = 0xfe;
int pic_mode;
-@@ -1912,7 +1912,7 @@ void smp_error_interrupt(struct pt_regs *regs)
+@@ -1917,7 +1917,7 @@ void smp_error_interrupt(struct pt_regs *regs)
apic_write(APIC_ESR, 0);
v1 = apic_read(APIC_ESR);
ack_APIC_irq();
apic_printk(APIC_DEBUG, KERN_DEBUG "APIC error on CPU%d: %02x(%02x)",
smp_processor_id(), v0 , v1);
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
-index fb07275..e06bb59 100644
+index e88300d..cd5a87a 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
-@@ -1096,7 +1096,7 @@ int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin,
+@@ -83,7 +83,9 @@ static struct io_apic_ops io_apic_ops = {
+
+ void __init set_io_apic_ops(const struct io_apic_ops *ops)
+ {
+- io_apic_ops = *ops;
++ pax_open_kernel();
++ memcpy((void*)&io_apic_ops, ops, sizeof io_apic_ops);
++ pax_close_kernel();
+ }
+
+ /*
+@@ -1135,7 +1137,7 @@ int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin,
}
EXPORT_SYMBOL(IO_APIC_get_PCI_irq_vector);
{
/* Used to the online set of cpus does not change
* during assign_irq_vector.
-@@ -1104,7 +1104,7 @@ void lock_vector_lock(void)
+@@ -1143,7 +1145,7 @@ void lock_vector_lock(void)
raw_spin_lock(&vector_lock);
}
{
raw_spin_unlock(&vector_lock);
}
-@@ -2510,7 +2510,7 @@ static void ack_apic_edge(struct irq_data *data)
+@@ -2549,7 +2551,7 @@ static void ack_apic_edge(struct irq_data *data)
ack_APIC_irq();
}
-atomic_t irq_mis_count;
+atomic_unchecked_t irq_mis_count;
- static void ack_apic_level(struct irq_data *data)
- {
-@@ -2576,7 +2576,7 @@ static void ack_apic_level(struct irq_data *data)
+ #ifdef CONFIG_GENERIC_PENDING_IRQ
+ static inline bool ioapic_irqd_mask(struct irq_data *data, struct irq_cfg *cfg)
+@@ -2667,7 +2669,7 @@ static void ack_apic_level(struct irq_data *data)
* at the cpu.
*/
if (!(v & (1 << (i & 0x1f)))) {
eoi_ioapic_irq(irq, cfg);
}
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
-index f76623c..aab694f 100644
+index 459e78c..f037006 100644
--- a/arch/x86/kernel/apm_32.c
+++ b/arch/x86/kernel/apm_32.c
-@@ -411,7 +411,7 @@ static DEFINE_MUTEX(apm_mutex);
+@@ -410,7 +410,7 @@ static DEFINE_MUTEX(apm_mutex);
* This is for buggy BIOS's that refer to (real mode) segment 0x40
* even though they are called in protected mode.
*/
(unsigned long)__va(0x400UL), PAGE_SIZE - 0x400 - 1);
static const char driver_version[] = "1.16ac"; /* no spaces */
-@@ -589,7 +589,10 @@ static long __apm_bios_call(void *_call)
+@@ -588,7 +588,10 @@ static long __apm_bios_call(void *_call)
BUG_ON(cpu != 0);
gdt = get_cpu_gdt_table(cpu);
save_desc_40 = gdt[0x40 / 8];
apm_irq_save(flags);
APM_DO_SAVE_SEGS;
-@@ -598,7 +601,11 @@ static long __apm_bios_call(void *_call)
+@@ -597,7 +600,11 @@ static long __apm_bios_call(void *_call)
&call->esi);
APM_DO_RESTORE_SEGS;
apm_irq_restore(flags);
put_cpu();
return call->eax & 0xff;
-@@ -665,7 +672,10 @@ static long __apm_bios_call_simple(void *_call)
+@@ -664,7 +671,10 @@ static long __apm_bios_call_simple(void *_call)
BUG_ON(cpu != 0);
gdt = get_cpu_gdt_table(cpu);
save_desc_40 = gdt[0x40 / 8];
apm_irq_save(flags);
APM_DO_SAVE_SEGS;
-@@ -673,7 +683,11 @@ static long __apm_bios_call_simple(void *_call)
+@@ -672,7 +682,11 @@ static long __apm_bios_call_simple(void *_call)
&call->eax);
APM_DO_RESTORE_SEGS;
apm_irq_restore(flags);
put_cpu();
return error;
}
-@@ -2347,12 +2361,15 @@ static int __init apm_init(void)
+@@ -2345,12 +2359,15 @@ static int __init apm_init(void)
* code to that CPU.
*/
gdt = get_cpu_gdt_table(0);
BLANK();
OFFSET(XEN_vcpu_info_mask, vcpu_info, evtchn_upcall_mask);
diff --git a/arch/x86/kernel/asm-offsets_64.c b/arch/x86/kernel/asm-offsets_64.c
-index 834e897..dacddc8 100644
+index 1b4754f..fbb4227 100644
--- a/arch/x86/kernel/asm-offsets_64.c
+++ b/arch/x86/kernel/asm-offsets_64.c
-@@ -70,6 +70,7 @@ int main(void)
+@@ -76,6 +76,7 @@ int main(void)
BLANK();
#undef ENTRY
BLANK();
diff --git a/arch/x86/kernel/cpu/Makefile b/arch/x86/kernel/cpu/Makefile
-index 25f24dc..4094a7f 100644
+index 6ab6aa2..8f71507 100644
--- a/arch/x86/kernel/cpu/Makefile
+++ b/arch/x86/kernel/cpu/Makefile
@@ -8,10 +8,6 @@ CFLAGS_REMOVE_common.o = -pg
obj-y += proc.o capflags.o powerflags.o common.o
obj-y += vmware.o hypervisor.o sched.o mshyperv.o
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
-index 80ab83d..0a7b34e 100644
+index 146bb62..ac9c74a 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
-@@ -670,7 +670,7 @@ static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 *c,
+@@ -691,7 +691,7 @@ static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 *c,
unsigned int size)
{
/* AMD errata T13 (order #21922) */
if (c->x86_model == 3 && c->x86_mask == 0)
size = 64;
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
-index 1a810e4..9fa8201 100644
+index cf79302..b1b28ae 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
-@@ -84,60 +84,6 @@ static const struct cpu_dev __cpuinitconst default_cpu = {
+@@ -86,60 +86,6 @@ static const struct cpu_dev __cpuinitconst default_cpu = {
static const struct cpu_dev *this_cpu __cpuinitdata = &default_cpu;
static int __init x86_xsave_setup(char *s)
{
setup_clear_cpu_cap(X86_FEATURE_XSAVE);
-@@ -372,7 +318,7 @@ void switch_to_new_gdt(int cpu)
+@@ -374,7 +320,7 @@ void switch_to_new_gdt(int cpu)
{
struct desc_ptr gdt_descr;
gdt_descr.size = GDT_SIZE - 1;
load_gdt(&gdt_descr);
/* Reload the per-cpu base */
-@@ -839,6 +785,10 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
+@@ -841,6 +787,10 @@ static void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
/* Filter out anything that depends on CPUID levels we don't have */
filter_cpuid_features(c, true);
/* If the model name is still unset, do table lookup. */
if (!c->x86_model_id[0]) {
const char *p;
-@@ -1019,10 +969,12 @@ static __init int setup_disablecpuid(char *arg)
+@@ -1021,10 +971,12 @@ static __init int setup_disablecpuid(char *arg)
}
__setup("clearcpuid=", setup_disablecpuid);
DEFINE_PER_CPU_FIRST(union irq_stack_union,
irq_stack_union) __aligned(PAGE_SIZE);
-@@ -1036,7 +988,7 @@ DEFINE_PER_CPU(struct task_struct *, current_task) ____cacheline_aligned =
+@@ -1038,7 +990,7 @@ DEFINE_PER_CPU(struct task_struct *, current_task) ____cacheline_aligned =
EXPORT_PER_CPU_SYMBOL(current_task);
DEFINE_PER_CPU(unsigned long, kernel_stack) =
load_idt(&idt_descr);
}
#endif
-diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c b/arch/x86/kernel/cpu/mcheck/mce-inject.c
-index fc4beb3..f20a5a7 100644
---- a/arch/x86/kernel/cpu/mcheck/mce-inject.c
-+++ b/arch/x86/kernel/cpu/mcheck/mce-inject.c
-@@ -199,6 +199,8 @@ static void raise_mce(struct mce *m)
-
- /* Error injection interface */
- static ssize_t mce_write(struct file *filp, const char __user *ubuf,
-+ size_t usize, loff_t *off) __size_overflow(3);
-+static ssize_t mce_write(struct file *filp, const char __user *ubuf,
- size_t usize, loff_t *off)
- {
- struct mce m;
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
-index 5a11ae2..a1a1c8a 100644
+index 61604ae..98250a5 100644
--- a/arch/x86/kernel/cpu/mcheck/mce.c
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
@@ -42,6 +42,7 @@
return;
}
/* First print corrected ones that are still unlogged */
-@@ -658,7 +659,7 @@ static int mce_timed_out(u64 *t)
+@@ -684,7 +685,7 @@ static int mce_timed_out(u64 *t)
* might have been modified by someone else.
*/
rmb();
wait_for_panic();
if (!monarch_timeout)
goto out;
-@@ -1446,7 +1447,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code)
+@@ -1535,7 +1536,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code)
}
/* Call the installed machine check handler for this CPU setup. */
unexpected_machine_check;
/*
-@@ -1469,7 +1470,9 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
+@@ -1558,7 +1559,9 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
return;
}
__mcheck_cpu_init_generic();
__mcheck_cpu_init_vendor(c);
-@@ -1483,7 +1486,7 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
+@@ -1572,7 +1575,7 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
*/
static DEFINE_SPINLOCK(mce_chrdev_state_lock);
static int mce_chrdev_open_exclu; /* already open exclusive? */
static int mce_chrdev_open(struct inode *inode, struct file *file)
-@@ -1491,7 +1494,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
+@@ -1580,7 +1583,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
spin_lock(&mce_chrdev_state_lock);
if (mce_chrdev_open_exclu ||
spin_unlock(&mce_chrdev_state_lock);
return -EBUSY;
-@@ -1499,7 +1502,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
+@@ -1588,7 +1591,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
if (file->f_flags & O_EXCL)
mce_chrdev_open_exclu = 1;
spin_unlock(&mce_chrdev_state_lock);
-@@ -1510,7 +1513,7 @@ static int mce_chrdev_release(struct inode *inode, struct file *file)
+@@ -1599,7 +1602,7 @@ static int mce_chrdev_release(struct inode *inode, struct file *file)
{
spin_lock(&mce_chrdev_state_lock);
mce_chrdev_open_exclu = 0;
spin_unlock(&mce_chrdev_state_lock);
-@@ -2229,7 +2232,7 @@ struct dentry *mce_get_debugfs_dir(void)
+@@ -2324,7 +2327,7 @@ struct dentry *mce_get_debugfs_dir(void)
static void mce_reset(void)
{
cpu_missing = 0;
atomic_set(&mce_callin, 0);
atomic_set(&global_nwo, 0);
diff --git a/arch/x86/kernel/cpu/mcheck/p5.c b/arch/x86/kernel/cpu/mcheck/p5.c
-index 5c0e653..0882b0a 100644
+index 2d5454c..51987eb 100644
--- a/arch/x86/kernel/cpu/mcheck/p5.c
+++ b/arch/x86/kernel/cpu/mcheck/p5.c
-@@ -12,6 +12,7 @@
- #include <asm/system.h>
+@@ -11,6 +11,7 @@
+ #include <asm/processor.h>
#include <asm/mce.h>
#include <asm/msr.h>
+#include <asm/pgtable.h>
/* By default disabled */
int mce_p5_enabled __read_mostly;
-@@ -50,7 +51,9 @@ void intel_p5_mcheck_init(struct cpuinfo_x86 *c)
+@@ -49,7 +50,9 @@ void intel_p5_mcheck_init(struct cpuinfo_x86 *c)
if (!cpu_has(c, X86_FEATURE_MCE))
return;
wmb();
diff --git a/arch/x86/kernel/cpu/mcheck/winchip.c b/arch/x86/kernel/cpu/mcheck/winchip.c
-index 54060f5..c1a7577 100644
+index 2d7998f..17c9de1 100644
--- a/arch/x86/kernel/cpu/mcheck/winchip.c
+++ b/arch/x86/kernel/cpu/mcheck/winchip.c
-@@ -11,6 +11,7 @@
- #include <asm/system.h>
+@@ -10,6 +10,7 @@
+ #include <asm/processor.h>
#include <asm/mce.h>
#include <asm/msr.h>
+#include <asm/pgtable.h>
/* Machine check handler for WinChip C6: */
static void winchip_machine_check(struct pt_regs *regs, long error_code)
-@@ -24,7 +25,9 @@ void winchip_mcheck_init(struct cpuinfo_x86 *c)
+@@ -23,7 +24,9 @@ void winchip_mcheck_init(struct cpuinfo_x86 *c)
{
u32 lo, hi;
/* Make sure the vector pointer is visible before we enable MCEs: */
wmb();
-diff --git a/arch/x86/kernel/cpu/mtrr/if.c b/arch/x86/kernel/cpu/mtrr/if.c
-index 7928963..1b16001 100644
---- a/arch/x86/kernel/cpu/mtrr/if.c
-+++ b/arch/x86/kernel/cpu/mtrr/if.c
-@@ -91,6 +91,8 @@ mtrr_file_del(unsigned long base, unsigned long size,
- * "base=%Lx size=%Lx type=%s" or "disable=%d"
- */
- static ssize_t
-+mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos) __size_overflow(3);
-+static ssize_t
- mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos)
- {
- int i, err;
diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index 6b96110..0da73eb 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
extern int generic_get_free_region(unsigned long base, unsigned long size,
int replace_reg);
diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
-index 5adce10..99284ec 100644
+index bb8e034..fb9020b 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
-@@ -1665,7 +1665,7 @@ perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs)
+@@ -1835,7 +1835,7 @@ perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs)
break;
perf_callchain_store(entry, frame.return_address);
.__cr3 = __pa_nodebug(swapper_pg_dir),
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c
-index 4025fe4..d8451c6 100644
+index 1b81839..0b4e7b0 100644
--- a/arch/x86/kernel/dumpstack.c
+++ b/arch/x86/kernel/dumpstack.c
@@ -2,6 +2,9 @@
#include <linux/kallsyms.h>
#include <linux/kprobes.h>
#include <linux/uaccess.h>
-@@ -35,9 +38,8 @@ void printk_address(unsigned long address, int reliable)
+@@ -35,16 +38,14 @@ void printk_address(unsigned long address, int reliable)
static void
print_ftrace_graph_addr(unsigned long addr, void *data,
const struct stacktrace_ops *ops,
- struct thread_info *tinfo, int *graph)
+ struct task_struct *task, int *graph)
{
-- struct task_struct *task = tinfo->task;
+- struct task_struct *task;
unsigned long ret_addr;
- int index = task->curr_ret_stack;
+ int index;
+
+ if (addr != (unsigned long)return_to_handler)
+ return;
+
+- task = tinfo->task;
+ index = task->curr_ret_stack;
-@@ -58,7 +60,7 @@ print_ftrace_graph_addr(unsigned long addr, void *data,
+ if (!task->ret_stack || index < *graph)
+@@ -61,7 +62,7 @@ print_ftrace_graph_addr(unsigned long addr, void *data,
static inline void
print_ftrace_graph_addr(unsigned long addr, void *data,
const struct stacktrace_ops *ops,
{ }
#endif
-@@ -69,10 +71,8 @@ print_ftrace_graph_addr(unsigned long addr, void *data,
+@@ -72,10 +73,8 @@ print_ftrace_graph_addr(unsigned long addr, void *data,
* severe exception (double fault, nmi, stack fault, debug, mce) hardware stack
*/
if (end) {
if (p < end && p >= (end-THREAD_SIZE))
return 1;
-@@ -83,14 +83,14 @@ static inline int valid_stack_ptr(struct thread_info *tinfo,
+@@ -86,14 +85,14 @@ static inline int valid_stack_ptr(struct thread_info *tinfo,
}
unsigned long
unsigned long addr;
addr = *stack;
-@@ -102,7 +102,7 @@ print_context_stack(struct thread_info *tinfo,
+@@ -105,7 +104,7 @@ print_context_stack(struct thread_info *tinfo,
} else {
ops->address(data, addr, 0);
}
}
stack++;
}
-@@ -111,7 +111,7 @@ print_context_stack(struct thread_info *tinfo,
+@@ -114,7 +113,7 @@ print_context_stack(struct thread_info *tinfo,
EXPORT_SYMBOL_GPL(print_context_stack);
unsigned long
unsigned long *stack, unsigned long bp,
const struct stacktrace_ops *ops, void *data,
unsigned long *end, int *graph)
-@@ -119,7 +119,7 @@ print_context_stack_bp(struct thread_info *tinfo,
+@@ -122,7 +121,7 @@ print_context_stack_bp(struct thread_info *tinfo,
struct stack_frame *frame = (struct stack_frame *)bp;
unsigned long *ret_addr = &frame->return_address;
unsigned long addr = *ret_addr;
if (!__kernel_text_address(addr))
-@@ -128,7 +128,7 @@ print_context_stack_bp(struct thread_info *tinfo,
+@@ -131,7 +130,7 @@ print_context_stack_bp(struct thread_info *tinfo,
ops->address(data, addr, 1);
frame = frame->next_frame;
ret_addr = &frame->return_address;
}
return (unsigned long)frame;
-@@ -186,7 +186,7 @@ void dump_stack(void)
+@@ -189,7 +188,7 @@ void dump_stack(void)
bp = stack_frame(current, NULL);
printk("Pid: %d, comm: %.20s %s %s %.*s\n",
init_utsname()->release,
(int)strcspn(init_utsname()->version, " "),
init_utsname()->version);
-@@ -222,6 +222,8 @@ unsigned __kprobes long oops_begin(void)
+@@ -225,6 +224,8 @@ unsigned __kprobes long oops_begin(void)
}
EXPORT_SYMBOL_GPL(oops_begin);
void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
{
if (regs && kexec_should_crash(current))
-@@ -243,7 +245,10 @@ void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
+@@ -246,7 +247,10 @@ void __kprobes oops_end(unsigned long flags, struct pt_regs *regs, int signr)
panic("Fatal exception in interrupt");
if (panic_on_oops)
panic("Fatal exception");
}
int __kprobes __die(const char *str, struct pt_regs *regs, long err)
-@@ -270,7 +275,7 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)
+@@ -273,7 +277,7 @@ int __kprobes __die(const char *str, struct pt_regs *regs, long err)
show_registers(regs);
#ifdef CONFIG_X86_32
sp = regs->sp;
ss = regs->ss & 0xffff;
} else {
-@@ -298,7 +303,7 @@ void die(const char *str, struct pt_regs *regs, long err)
+@@ -301,7 +305,7 @@ void die(const char *str, struct pt_regs *regs, long err)
unsigned long flags = oops_begin();
int sig = SIGSEGV;
if (__die(str, regs, err))
diff --git a/arch/x86/kernel/dumpstack_32.c b/arch/x86/kernel/dumpstack_32.c
-index c99f9ed..2a15d80 100644
+index 88ec912..e95e935 100644
--- a/arch/x86/kernel/dumpstack_32.c
+++ b/arch/x86/kernel/dumpstack_32.c
@@ -38,15 +38,13 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
if (ops->stack(data, "IRQ") < 0)
break;
touch_nmi_watchdog();
+@@ -87,7 +85,7 @@ void show_registers(struct pt_regs *regs)
+ int i;
+
+ print_modules();
+- __show_regs(regs, !user_mode_vm(regs));
++ __show_regs(regs, !user_mode(regs));
+
+ printk(KERN_EMERG "Process %.*s (pid: %d, ti=%p task=%p task.ti=%p)\n",
+ TASK_COMM_LEN, current->comm, task_pid_nr(current),
@@ -96,21 +94,22 @@ void show_registers(struct pt_regs *regs)
* When in-kernel, we also print out the stack and code at the
* time of the fault..
+EXPORT_SYMBOL(pax_check_alloca);
+#endif
diff --git a/arch/x86/kernel/dumpstack_64.c b/arch/x86/kernel/dumpstack_64.c
-index 17107bd..b2deecf 100644
+index 17107bd..9623722 100644
--- a/arch/x86/kernel/dumpstack_64.c
+++ b/arch/x86/kernel/dumpstack_64.c
@@ -119,9 +119,9 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
data, estack_end, &graph);
ops->stack(data, "<EOE>");
/*
-@@ -172,7 +172,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
+@@ -161,6 +161,8 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
+ * second-to-last pointer (index -2 to end) in the
+ * exception stack:
+ */
++ if ((u16)estack_end[-1] != __KERNEL_DS)
++ goto out;
+ stack = (unsigned long *) estack_end[-2];
+ continue;
+ }
+@@ -172,7 +174,7 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
if (in_irq_stack(stack, irq_stack, irq_stack_end)) {
if (ops->stack(data, "IRQ") < 0)
break;
ops, data, irq_stack_end, &graph);
/*
* We link to the next stack (which would be
-@@ -191,7 +191,8 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
+@@ -191,7 +193,9 @@ void dump_trace(struct task_struct *task, struct pt_regs *regs,
/*
* This handles the process stack:
*/
- bp = ops->walk_stack(tinfo, stack, bp, ops, data, NULL, &graph);
+ stack_start = (void *)((unsigned long)stack & ~(THREAD_SIZE-1));
+ bp = ops->walk_stack(task, stack_start, stack, bp, ops, data, NULL, &graph);
++out:
put_cpu();
}
EXPORT_SYMBOL(dump_trace);
-@@ -305,3 +306,50 @@ int is_valid_bugaddr(unsigned long ip)
+@@ -305,3 +309,50 @@ int is_valid_bugaddr(unsigned long ip)
return ud2 == 0x0b0f;
}
/*
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
-index 1333d98..b340ca2 100644
+index cdc79b5..4710a75 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -56,6 +56,8 @@
movq %rsp, %rsi
leaq -RBP(%rsp),%rdi /* arg1 for handler */
-- testl $3, CS(%rdi)
-+ testb $3, CS(%rdi)
+- testl $3, CS-RBP(%rsi)
++ testb $3, CS-RBP(%rsi)
je 1f
SWAPGS
/*
-@@ -356,9 +640,10 @@ ENTRY(save_rest)
+@@ -355,9 +639,10 @@ ENTRY(save_rest)
movq_cfi r15, R15+16
movq %r11, 8(%rsp) /* return address */
FIXUP_TOP_OF_STACK %r11, 16
/* save complete stack frame */
.pushsection .kprobes.text, "ax"
-@@ -387,9 +672,10 @@ ENTRY(save_paranoid)
+@@ -386,9 +671,10 @@ ENTRY(save_paranoid)
js 1f /* negative -> in kernel */
SWAPGS
xorl %ebx,%ebx
.popsection
/*
-@@ -411,7 +697,7 @@ ENTRY(ret_from_fork)
+@@ -410,7 +696,7 @@ ENTRY(ret_from_fork)
RESTORE_REST
jz retint_restore_args
testl $_TIF_IA32, TI_flags(%rcx) # 32-bit compat task needs IRET
-@@ -421,7 +707,7 @@ ENTRY(ret_from_fork)
+@@ -420,7 +706,7 @@ ENTRY(ret_from_fork)
jmp ret_from_sys_call # go to the SYSRET fastpath
CFI_ENDPROC
/*
* System call entry. Up to 6 arguments in registers are supported.
-@@ -457,7 +743,7 @@ END(ret_from_fork)
+@@ -456,7 +742,7 @@ END(ret_from_fork)
ENTRY(system_call)
CFI_STARTPROC simple
CFI_SIGNAL_FRAME
CFI_REGISTER rip,rcx
/*CFI_REGISTER rflags,r11*/
SWAPGS_UNSAFE_STACK
-@@ -470,21 +756,23 @@ GLOBAL(system_call_after_swapgs)
+@@ -469,16 +755,18 @@ GLOBAL(system_call_after_swapgs)
movq %rsp,PER_CPU_VAR(old_rsp)
movq PER_CPU_VAR(kernel_stack),%rsp
+ testl $_TIF_WORK_SYSCALL_ENTRY,TI_flags(%rcx)
jnz tracesys
system_call_fastpath:
- cmpq $__NR_syscall_max,%rax
+ #if __SYSCALL_MASK == ~0
+@@ -488,7 +776,7 @@ system_call_fastpath:
+ cmpl $__NR_syscall_max,%eax
+ #endif
ja badsys
- movq %r10,%rcx
+ movq R10-ARGOFFSET(%rsp),%rcx
call *sys_call_table(,%rax,8) # XXX: rip relative
movq %rax,RAX-ARGOFFSET(%rsp)
/*
-@@ -498,10 +786,13 @@ sysret_check:
+@@ -502,10 +790,13 @@ sysret_check:
LOCKDEP_SYS_EXIT
DISABLE_INTERRUPTS(CLBR_NONE)
TRACE_IRQS_OFF
/*
* sysretq will re-enable interrupts:
*/
-@@ -553,14 +844,18 @@ badsys:
+@@ -557,14 +848,18 @@ badsys:
* jump back to the normal fast path.
*/
auditsys:
jmp system_call_fastpath
/*
-@@ -581,7 +876,7 @@ sysret_audit:
+@@ -585,7 +880,7 @@ sysret_audit:
/* Do syscall tracing */
tracesys:
#ifdef CONFIG_AUDITSYSCALL
jz auditsys
#endif
SAVE_REST
-@@ -589,16 +884,20 @@ tracesys:
+@@ -593,12 +888,16 @@ tracesys:
FIXUP_TOP_OF_STACK %rdi
movq %rsp,%rdi
call syscall_trace_enter
LOAD_ARGS ARGOFFSET, 1
+ pax_set_fptr_mask
RESTORE_REST
+ #if __SYSCALL_MASK == ~0
cmpq $__NR_syscall_max,%rax
+@@ -607,7 +906,7 @@ tracesys:
+ cmpl $__NR_syscall_max,%eax
+ #endif
ja int_ret_from_sys_call /* RAX(%rsp) set to -ENOSYS above */
- movq %r10,%rcx /* fixup for C */
+ movq R10-ARGOFFSET(%rsp),%rcx /* fixup for C */
call *sys_call_table(,%rax,8)
movq %rax,RAX-ARGOFFSET(%rsp)
/* Use IRET because user could have changed frame */
-@@ -619,6 +918,7 @@ GLOBAL(int_with_check)
+@@ -628,6 +927,7 @@ GLOBAL(int_with_check)
andl %edi,%edx
jnz int_careful
andl $~TS_COMPAT,TI_status(%rcx)
jmp retint_swapgs
/* Either reschedule or signal or syscall exit tracking needed. */
-@@ -665,7 +965,7 @@ int_restore_rest:
+@@ -674,7 +974,7 @@ int_restore_rest:
TRACE_IRQS_OFF
jmp int_with_check
CFI_ENDPROC
/*
* Certain special system calls that need to save a complete full stack frame.
-@@ -681,7 +981,7 @@ ENTRY(\label)
+@@ -690,7 +990,7 @@ ENTRY(\label)
call \func
jmp ptregscall_common
CFI_ENDPROC
.endm
PTREGSCALL stub_clone, sys_clone, %r8
-@@ -699,9 +999,10 @@ ENTRY(ptregscall_common)
+@@ -708,9 +1008,10 @@ ENTRY(ptregscall_common)
movq_cfi_restore R12+8, r12
movq_cfi_restore RBP+8, rbp
movq_cfi_restore RBX+8, rbx
ENTRY(stub_execve)
CFI_STARTPROC
-@@ -716,7 +1017,7 @@ ENTRY(stub_execve)
+@@ -725,7 +1026,7 @@ ENTRY(stub_execve)
RESTORE_REST
jmp int_ret_from_sys_call
CFI_ENDPROC
/*
* sigreturn is special because it needs to restore all registers on return.
-@@ -734,7 +1035,7 @@ ENTRY(stub_rt_sigreturn)
+@@ -743,7 +1044,7 @@ ENTRY(stub_rt_sigreturn)
RESTORE_REST
jmp int_ret_from_sys_call
CFI_ENDPROC
-END(stub_rt_sigreturn)
+ENDPROC(stub_rt_sigreturn)
- /*
- * Build the entry stubs and pointer table with some assembler magic.
-@@ -769,7 +1070,7 @@ vector=vector+1
+ #ifdef CONFIG_X86_X32_ABI
+ PTREGSCALL stub_x32_sigaltstack, sys32_sigaltstack, %rdx
+@@ -812,7 +1113,7 @@ vector=vector+1
2: jmp common_interrupt
.endr
CFI_ENDPROC
.previous
END(interrupt)
-@@ -789,6 +1090,16 @@ END(interrupt)
+@@ -832,6 +1133,16 @@ END(interrupt)
subq $ORIG_RAX-RBP, %rsp
CFI_ADJUST_CFA_OFFSET ORIG_RAX-RBP
SAVE_ARGS_IRQ
call \func
.endm
-@@ -820,7 +1131,7 @@ ret_from_intr:
+@@ -863,7 +1174,7 @@ ret_from_intr:
exit_intr:
GET_THREAD_INFO(%rcx)
je retint_kernel
/* Interrupt came from user space */
-@@ -842,12 +1153,15 @@ retint_swapgs: /* return to user-space */
+@@ -885,12 +1196,15 @@ retint_swapgs: /* return to user-space */
* The iretq could re-enable interrupts:
*/
DISABLE_INTERRUPTS(CLBR_ANY)
/*
* The iretq could re-enable interrupts:
*/
-@@ -936,7 +1250,7 @@ ENTRY(retint_kernel)
+@@ -979,7 +1293,7 @@ ENTRY(retint_kernel)
#endif
CFI_ENDPROC
/*
* End of kprobes section
*/
-@@ -953,7 +1267,7 @@ ENTRY(\sym)
+@@ -996,7 +1310,7 @@ ENTRY(\sym)
interrupt \do_sym
jmp ret_from_intr
CFI_ENDPROC
.endm
#ifdef CONFIG_SMP
-@@ -1026,12 +1340,22 @@ ENTRY(\sym)
+@@ -1069,12 +1383,22 @@ ENTRY(\sym)
CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
call error_entry
DEFAULT_FRAME 0
.endm
.macro paranoidzeroentry sym do_sym
-@@ -1043,15 +1367,25 @@ ENTRY(\sym)
+@@ -1086,15 +1410,25 @@ ENTRY(\sym)
CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
call save_paranoid
TRACE_IRQS_OFF
.macro paranoidzeroentry_ist sym do_sym ist
ENTRY(\sym)
INTR_FRAME
-@@ -1061,14 +1395,30 @@ ENTRY(\sym)
+@@ -1104,14 +1438,30 @@ ENTRY(\sym)
CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
call save_paranoid
TRACE_IRQS_OFF
.endm
.macro errorentry sym do_sym
-@@ -1079,13 +1429,23 @@ ENTRY(\sym)
+@@ -1122,13 +1472,23 @@ ENTRY(\sym)
CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
call error_entry
DEFAULT_FRAME 0
.endm
/* error code is on the stack already */
-@@ -1098,13 +1458,23 @@ ENTRY(\sym)
+@@ -1141,13 +1501,23 @@ ENTRY(\sym)
call save_paranoid
DEFAULT_FRAME 0
TRACE_IRQS_OFF
.endm
zeroentry divide_error do_divide_error
-@@ -1134,9 +1504,10 @@ gs_change:
+@@ -1177,9 +1547,10 @@ gs_change:
2: mfence /* workaround */
SWAPGS
popfq_cfi
.section __ex_table,"a"
.align 8
-@@ -1158,13 +1529,14 @@ ENTRY(kernel_thread_helper)
+@@ -1201,13 +1572,14 @@ ENTRY(kernel_thread_helper)
* Here we are in the child and the registers are set as they were
* at kernel_thread() invocation in the parent.
*/
/*
* execve(). This function needs to use IRET, not SYSRET, to set up all state properly.
-@@ -1191,11 +1563,11 @@ ENTRY(kernel_execve)
+@@ -1234,11 +1606,11 @@ ENTRY(kernel_execve)
RESTORE_REST
testq %rax,%rax
je int_ret_from_sys_call
/* Call softirq on interrupt stack. Interrupts are off. */
ENTRY(call_softirq)
-@@ -1213,9 +1585,10 @@ ENTRY(call_softirq)
+@@ -1256,9 +1628,10 @@ ENTRY(call_softirq)
CFI_DEF_CFA_REGISTER rsp
CFI_ADJUST_CFA_OFFSET -8
decl PER_CPU_VAR(irq_count)
#ifdef CONFIG_XEN
zeroentry xen_hypervisor_callback xen_do_hypervisor_callback
-@@ -1253,7 +1626,7 @@ ENTRY(xen_do_hypervisor_callback) # do_hypervisor_callback(struct *pt_regs)
+@@ -1296,7 +1669,7 @@ ENTRY(xen_do_hypervisor_callback) # do_hypervisor_callback(struct *pt_regs)
decl PER_CPU_VAR(irq_count)
jmp error_exit
CFI_ENDPROC
/*
* Hypervisor uses this for application faults while it executes.
-@@ -1312,7 +1685,7 @@ ENTRY(xen_failsafe_callback)
+@@ -1355,7 +1728,7 @@ ENTRY(xen_failsafe_callback)
SAVE_ALL
jmp error_exit
CFI_ENDPROC
apicinterrupt XEN_HVM_EVTCHN_CALLBACK \
xen_hvm_callback_vector xen_evtchn_do_upcall
-@@ -1361,16 +1734,31 @@ ENTRY(paranoid_exit)
+@@ -1404,16 +1777,31 @@ ENTRY(paranoid_exit)
TRACE_IRQS_OFF
testl %ebx,%ebx /* swapgs needed? */
jnz paranoid_restore
jmp irq_return
paranoid_userspace:
GET_THREAD_INFO(%rcx)
-@@ -1399,7 +1787,7 @@ paranoid_schedule:
+@@ -1442,7 +1830,7 @@ paranoid_schedule:
TRACE_IRQS_OFF
jmp paranoid_userspace
CFI_ENDPROC
/*
* Exception entry point. This expects an error code/orig_rax on the stack.
-@@ -1426,12 +1814,13 @@ ENTRY(error_entry)
+@@ -1469,12 +1857,13 @@ ENTRY(error_entry)
movq_cfi r14, R14+8
movq_cfi r15, R15+8
xorl %ebx,%ebx
ret
/*
-@@ -1458,7 +1847,7 @@ bstep_iret:
+@@ -1501,7 +1890,7 @@ bstep_iret:
movq %rcx,RIP+8(%rsp)
jmp error_swapgs
CFI_ENDPROC
/* ebx: no swapgs flag (1: don't need swapgs, 0: need it) */
-@@ -1478,7 +1867,7 @@ ENTRY(error_exit)
+@@ -1521,7 +1910,7 @@ ENTRY(error_exit)
jnz retint_careful
jmp retint_swapgs
CFI_ENDPROC
/*
* Test if a given stack is an NMI stack or not.
-@@ -1535,9 +1924,11 @@ ENTRY(nmi)
+@@ -1579,9 +1968,11 @@ ENTRY(nmi)
* If %cs was not the kernel segment, then the NMI triggered in user
* space, which means it is definitely not nested.
*/
/*
* Check the special variable on the stack to see if NMIs are
* executing.
-@@ -1659,6 +2050,16 @@ restart_nmi:
+@@ -1728,6 +2119,16 @@ end_repeat_nmi:
*/
call save_paranoid
DEFAULT_FRAME 0
/* paranoidentry do_nmi, 0; without TRACE_IRQS_OFF */
movq %rsp,%rdi
movq $-1,%rsi
-@@ -1666,14 +2067,25 @@ restart_nmi:
+@@ -1735,21 +2136,32 @@ end_repeat_nmi:
testl %ebx,%ebx /* swapgs needed? */
jnz nmi_restore
nmi_swapgs:
-END(nmi)
+ENDPROC(nmi)
- /*
- * If an NMI hit an iret because of an exception or breakpoint,
-@@ -1700,7 +2112,7 @@ ENTRY(ignore_sysret)
+ ENTRY(ignore_sysret)
+ CFI_STARTPROC
mov $-ENOSYS,%eax
sysret
CFI_ENDPROC
+EXPORT_SYMBOL(__LOAD_PHYSICAL_ADDR);
+#endif
diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c
-index f239f30..aab2a58 100644
+index 2d6e649..df6e1af 100644
--- a/arch/x86/kernel/i387.c
+++ b/arch/x86/kernel/i387.c
-@@ -189,6 +189,9 @@ int xfpregs_active(struct task_struct *target, const struct user_regset *regset)
-
- int xfpregs_get(struct task_struct *target, const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ void *kbuf, void __user *ubuf) __size_overflow(4);
-+int xfpregs_get(struct task_struct *target, const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- void *kbuf, void __user *ubuf)
- {
- int ret;
-@@ -208,6 +211,9 @@ int xfpregs_get(struct task_struct *target, const struct user_regset *regset,
-
- int xfpregs_set(struct task_struct *target, const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ const void *kbuf, const void __user *ubuf) __size_overflow(4);
-+int xfpregs_set(struct task_struct *target, const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- const void *kbuf, const void __user *ubuf)
- {
- int ret;
-@@ -241,6 +247,9 @@ int xfpregs_set(struct task_struct *target, const struct user_regset *regset,
-
- int xstateregs_get(struct task_struct *target, const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ void *kbuf, void __user *ubuf) __size_overflow(4);
-+int xstateregs_get(struct task_struct *target, const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- void *kbuf, void __user *ubuf)
- {
- int ret;
-@@ -270,6 +279,9 @@ int xstateregs_get(struct task_struct *target, const struct user_regset *regset,
-
- int xstateregs_set(struct task_struct *target, const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ const void *kbuf, const void __user *ubuf) __size_overflow(4);
-+int xstateregs_set(struct task_struct *target, const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- const void *kbuf, const void __user *ubuf)
- {
- int ret;
-@@ -440,6 +452,9 @@ static void convert_to_fxsr(struct task_struct *tsk,
-
- int fpregs_get(struct task_struct *target, const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ void *kbuf, void __user *ubuf) __size_overflow(3,4);
-+int fpregs_get(struct task_struct *target, const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- void *kbuf, void __user *ubuf)
- {
- struct user_i387_ia32_struct env;
-@@ -472,6 +487,9 @@ int fpregs_get(struct task_struct *target, const struct user_regset *regset,
-
- int fpregs_set(struct task_struct *target, const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ const void *kbuf, const void __user *ubuf) __size_overflow(3,4);
-+int fpregs_set(struct task_struct *target, const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- const void *kbuf, const void __user *ubuf)
+@@ -59,7 +59,7 @@ static inline bool interrupted_kernel_fpu_idle(void)
+ static inline bool interrupted_user_mode(void)
{
- struct user_i387_ia32_struct env;
-@@ -620,6 +638,8 @@ static inline int restore_i387_fsave(struct _fpstate_ia32 __user *buf)
+ struct pt_regs *regs = get_irq_regs();
+- return regs && user_mode_vm(regs);
++ return regs && user_mode(regs);
}
- static int restore_i387_fxsave(struct _fpstate_ia32 __user *buf,
-+ unsigned int size) __size_overflow(2);
-+static int restore_i387_fxsave(struct _fpstate_ia32 __user *buf,
- unsigned int size)
- {
- struct task_struct *tsk = current;
+ /*
diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
-index 6104852..6114160 100644
+index 36d1853..bf25736 100644
--- a/arch/x86/kernel/i8259.c
+++ b/arch/x86/kernel/i8259.c
-@@ -210,7 +210,7 @@ spurious_8259A_irq:
+@@ -209,7 +209,7 @@ spurious_8259A_irq:
"spurious 8259A interrupt: IRQ%d.\n", irq);
spurious_irq_mask |= irqmask;
}
return -EPERM;
}
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
-index 7943e0c..dd32c5c 100644
+index 3dafc60..aa8e9c4 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -18,7 +18,7 @@
return sum;
}
diff --git a/arch/x86/kernel/irq_32.c b/arch/x86/kernel/irq_32.c
-index 40fc861..9b8739b 100644
+index 58b7f27..e112d08 100644
--- a/arch/x86/kernel/irq_32.c
+++ b/arch/x86/kernel/irq_32.c
@@ -39,7 +39,7 @@ static int check_stack_overflow(void)
irqctx = __this_cpu_read(hardirq_ctx);
/*
-@@ -92,21 +91,16 @@ execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+@@ -92,16 +91,16 @@ execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
* handler) we can't do that and just have to keep using the
* current stack (which is the irq stack already after all)
*/
+ isp = (u32 *) ((char *)irqctx + sizeof(*irqctx) - 8);
+ irqctx->previous_esp = current_stack_pointer;
-- /*
-- * Copy the softirq bits in preempt_count so that the
-- * softirq checks work in the hardirq context.
-- */
-- irqctx->tinfo.preempt_count =
-- (irqctx->tinfo.preempt_count & ~SOFTIRQ_MASK) |
-- (curctx->tinfo.preempt_count & SOFTIRQ_MASK);
+- /* Copy the preempt_count so that the [soft]irq checks work. */
+- irqctx->tinfo.preempt_count = curctx->tinfo.preempt_count;
+#ifdef CONFIG_PAX_MEMORY_UDEREF
+ __set_fs(MAKE_MM_SEG(0));
+#endif
if (unlikely(overflow))
call_on_stack(print_stack_overflow, isp);
-@@ -118,6 +112,11 @@ execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+@@ -113,6 +112,11 @@ execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
: "0" (irq), "1" (desc), "2" (isp),
"D" (desc->handle_irq)
: "memory", "cc", "ecx");
return 1;
}
-@@ -126,29 +125,11 @@ execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+@@ -121,29 +125,11 @@ execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
*/
void __cpuinit irq_ctx_init(int cpu)
{
printk(KERN_DEBUG "CPU %u irqstacks, hard=%p soft=%p\n",
cpu, per_cpu(hardirq_ctx, cpu), per_cpu(softirq_ctx, cpu));
-@@ -157,7 +138,6 @@ void __cpuinit irq_ctx_init(int cpu)
+@@ -152,7 +138,6 @@ void __cpuinit irq_ctx_init(int cpu)
asmlinkage void do_softirq(void)
{
unsigned long flags;
union irq_ctx *irqctx;
u32 *isp;
-@@ -167,15 +147,22 @@ asmlinkage void do_softirq(void)
+@@ -162,15 +147,22 @@ asmlinkage void do_softirq(void)
local_irq_save(flags);
if (local_softirq_pending()) {
/*
* Shouldn't happen, we returned above if in_interrupt():
*/
+@@ -191,7 +183,7 @@ bool handle_irq(unsigned irq, struct pt_regs *regs)
+ if (unlikely(!desc))
+ return false;
+
+- if (user_mode_vm(regs) || !execute_on_irq_stack(overflow, desc, irq)) {
++ if (user_mode(regs) || !execute_on_irq_stack(overflow, desc, irq)) {
+ if (unlikely(overflow))
+ print_stack_overflow();
+ desc->handle_irq(irq, desc);
diff --git a/arch/x86/kernel/irq_64.c b/arch/x86/kernel/irq_64.c
index d04d3ec..ea4b374 100644
--- a/arch/x86/kernel/irq_64.c
if (regs->sp >= curbase + sizeof(struct thread_info) +
diff --git a/arch/x86/kernel/kdebugfs.c b/arch/x86/kernel/kdebugfs.c
-index 90fcf62..e682cdd 100644
+index 1d5d31e..ab846ed 100644
--- a/arch/x86/kernel/kdebugfs.c
+++ b/arch/x86/kernel/kdebugfs.c
@@ -28,6 +28,8 @@ struct setup_data_node {
{
struct setup_data_node *node = file->private_data;
diff --git a/arch/x86/kernel/kgdb.c b/arch/x86/kernel/kgdb.c
-index 2f45c4c..d95504f 100644
+index 8bfb614..2b3b35f 100644
--- a/arch/x86/kernel/kgdb.c
+++ b/arch/x86/kernel/kgdb.c
-@@ -126,11 +126,11 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
+@@ -127,11 +127,11 @@ char *dbg_get_reg(int regno, void *mem, struct pt_regs *regs)
#ifdef CONFIG_X86_32
switch (regno) {
case GDB_SS:
*(unsigned long *)mem = kernel_stack_pointer(regs);
break;
case GDB_GS:
-@@ -475,12 +475,12 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
+@@ -476,12 +476,12 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
case 'k':
/* clear the trace bit */
linux_regs->flags &= ~X86_EFLAGS_TF;
raw_smp_processor_id());
}
-@@ -545,7 +545,7 @@ static int __kgdb_notify(struct die_args *args, unsigned long cmd)
+@@ -546,7 +546,7 @@ static int __kgdb_notify(struct die_args *args, unsigned long cmd)
switch (cmd) {
case DIE_DEBUG:
if (user_mode(regs))
return single_step_cont(regs, args);
break;
+diff --git a/arch/x86/kernel/kprobes-opt.c b/arch/x86/kernel/kprobes-opt.c
+index c5e410e..da6aaf9 100644
+--- a/arch/x86/kernel/kprobes-opt.c
++++ b/arch/x86/kernel/kprobes-opt.c
+@@ -338,7 +338,7 @@ int __kprobes arch_prepare_optimized_kprobe(struct optimized_kprobe *op)
+ * Verify if the address gap is in 2GB range, because this uses
+ * a relative jump.
+ */
+- rel = (long)op->optinsn.insn - (long)op->kp.addr + RELATIVEJUMP_SIZE;
++ rel = (long)op->optinsn.insn - ktla_ktva((long)op->kp.addr) + RELATIVEJUMP_SIZE;
+ if (abs(rel) > 0x7fffffff)
+ return -ERANGE;
+
+@@ -359,11 +359,11 @@ int __kprobes arch_prepare_optimized_kprobe(struct optimized_kprobe *op)
+ synthesize_set_arg1(buf + TMPL_MOVE_IDX, (unsigned long)op);
+
+ /* Set probe function call */
+- synthesize_relcall(buf + TMPL_CALL_IDX, optimized_callback);
++ synthesize_relcall(buf + TMPL_CALL_IDX, ktla_ktva(optimized_callback));
+
+ /* Set returning jmp instruction at the tail of out-of-line buffer */
+ synthesize_reljump(buf + TMPL_END_IDX + op->optinsn.size,
+- (u8 *)op->kp.addr + op->optinsn.size);
++ (u8 *)ktla_ktva(op->kp.addr) + op->optinsn.size);
+
+ flush_icache_range((unsigned long) buf,
+ (unsigned long) buf + TMPL_END_IDX +
+@@ -385,7 +385,7 @@ static void __kprobes setup_optimize_kprobe(struct text_poke_param *tprm,
+ ((long)op->kp.addr + RELATIVEJUMP_SIZE));
+
+ /* Backup instructions which will be replaced by jump address */
+- memcpy(op->optinsn.copied_insn, op->kp.addr + INT3_SIZE,
++ memcpy(op->optinsn.copied_insn, ktla_ktva(op->kp.addr) + INT3_SIZE,
+ RELATIVE_ADDR_SIZE);
+
+ insn_buf[0] = RELATIVEJUMP_OPCODE;
diff --git a/arch/x86/kernel/kprobes.c b/arch/x86/kernel/kprobes.c
-index 7da647d..56fe348 100644
+index e213fc8..d783ba4 100644
--- a/arch/x86/kernel/kprobes.c
+++ b/arch/x86/kernel/kprobes.c
-@@ -118,8 +118,11 @@ static void __kprobes __synthesize_relative_insn(void *from, void *to, u8 op)
+@@ -120,8 +120,11 @@ static void __kprobes __synthesize_relative_insn(void *from, void *to, u8 op)
} __attribute__((packed)) *insn;
insn = (struct __arch_relative_insn *)from;
}
/* Insert a jump instruction at address 'from', which jumps to address 'to'.*/
-@@ -156,7 +159,7 @@ static int __kprobes can_boost(kprobe_opcode_t *opcodes)
+@@ -164,7 +167,7 @@ int __kprobes can_boost(kprobe_opcode_t *opcodes)
kprobe_opcode_t opcode;
kprobe_opcode_t *orig_opcodes = opcodes;
return 0; /* Page fault may occur on this address. */
retry:
-@@ -317,7 +320,9 @@ static int __kprobes __copy_instruction(u8 *dest, u8 *src, int recover)
- }
- }
- insn_get_length(&insn);
+@@ -332,7 +335,9 @@ int __kprobes __copy_instruction(u8 *dest, u8 *src)
+ /* Another subsystem puts a breakpoint, failed to recover */
+ if (insn.opcode.bytes[0] == BREAKPOINT_INSTRUCTION)
+ return 0;
+ pax_open_kernel();
memcpy(dest, insn.kaddr, insn.length);
+ pax_close_kernel();
#ifdef CONFIG_X86_64
if (insn_rip_relative(&insn)) {
-@@ -341,7 +346,9 @@ static int __kprobes __copy_instruction(u8 *dest, u8 *src, int recover)
- (u8 *) dest;
+@@ -355,7 +360,9 @@ int __kprobes __copy_instruction(u8 *dest, u8 *src)
+ newdisp = (u8 *) src + (s64) insn.displacement.value - (u8 *) dest;
BUG_ON((s64) (s32) newdisp != newdisp); /* Sanity check. */
disp = (u8 *) dest + insn_offset_displacement(&insn);
+ pax_open_kernel();
}
#endif
return insn.length;
-@@ -355,12 +362,12 @@ static void __kprobes arch_copy_kprobe(struct kprobe *p)
- */
- __copy_instruction(p->ainsn.insn, p->addr, 0);
-
-- if (can_boost(p->addr))
-+ if (can_boost(ktla_ktva(p->addr)))
- p->ainsn.boostable = 0;
- else
- p->ainsn.boostable = -1;
-
-- p->opcode = *p->addr;
-+ p->opcode = *(ktla_ktva(p->addr));
- }
-
- int __kprobes arch_prepare_kprobe(struct kprobe *p)
-@@ -477,7 +484,7 @@ static void __kprobes setup_singlestep(struct kprobe *p, struct pt_regs *regs,
+@@ -485,7 +492,7 @@ setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *k
* nor set current_kprobe, because it doesn't use single
* stepping.
*/
preempt_enable_no_resched();
return;
}
-@@ -496,7 +503,7 @@ static void __kprobes setup_singlestep(struct kprobe *p, struct pt_regs *regs,
+@@ -504,7 +511,7 @@ setup_singlestep(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *k
if (p->opcode == BREAKPOINT_INSTRUCTION)
regs->ip = (unsigned long)p->addr;
else
}
/*
-@@ -575,7 +582,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
+@@ -583,7 +590,7 @@ static int __kprobes kprobe_handler(struct pt_regs *regs)
setup_singlestep(p, regs, kcb, 0);
return 1;
}
/*
* The breakpoint instruction was removed right
* after we hit it. Another cpu has removed
-@@ -683,6 +690,9 @@ static void __used __kprobes kretprobe_trampoline_holder(void)
+@@ -628,6 +635,9 @@ static void __used __kprobes kretprobe_trampoline_holder(void)
" movq %rax, 152(%rsp)\n"
RESTORE_REGS_STRING
" popfq\n"
#else
" pushf\n"
SAVE_REGS_STRING
-@@ -820,7 +830,7 @@ static void __kprobes resume_execution(struct kprobe *p,
- struct pt_regs *regs, struct kprobe_ctlblk *kcb)
+@@ -765,7 +775,7 @@ static void __kprobes
+ resume_execution(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb)
{
unsigned long *tos = stack_addr(regs);
- unsigned long copy_ip = (unsigned long)p->ainsn.insn;
unsigned long orig_ip = (unsigned long)p->addr;
kprobe_opcode_t *insn = p->ainsn.insn;
-@@ -1002,7 +1012,7 @@ int __kprobes kprobe_exceptions_notify(struct notifier_block *self,
+@@ -947,7 +957,7 @@ kprobe_exceptions_notify(struct notifier_block *self, unsigned long val, void *d
struct die_args *args = data;
int ret = NOTIFY_DONE;
return ret;
switch (val) {
-@@ -1384,7 +1394,7 @@ int __kprobes arch_prepare_optimized_kprobe(struct optimized_kprobe *op)
- * Verify if the address gap is in 2GB range, because this uses
- * a relative jump.
- */
-- rel = (long)op->optinsn.insn - (long)op->kp.addr + RELATIVEJUMP_SIZE;
-+ rel = (long)op->optinsn.insn - ktla_ktva((long)op->kp.addr) + RELATIVEJUMP_SIZE;
- if (abs(rel) > 0x7fffffff)
- return -ERANGE;
-
-@@ -1405,11 +1415,11 @@ int __kprobes arch_prepare_optimized_kprobe(struct optimized_kprobe *op)
- synthesize_set_arg1(buf + TMPL_MOVE_IDX, (unsigned long)op);
-
- /* Set probe function call */
-- synthesize_relcall(buf + TMPL_CALL_IDX, optimized_callback);
-+ synthesize_relcall(buf + TMPL_CALL_IDX, ktla_ktva(optimized_callback));
-
- /* Set returning jmp instruction at the tail of out-of-line buffer */
- synthesize_reljump(buf + TMPL_END_IDX + op->optinsn.size,
-- (u8 *)op->kp.addr + op->optinsn.size);
-+ (u8 *)ktla_ktva(op->kp.addr) + op->optinsn.size);
-
- flush_icache_range((unsigned long) buf,
- (unsigned long) buf + TMPL_END_IDX +
-@@ -1431,7 +1441,7 @@ static void __kprobes setup_optimize_kprobe(struct text_poke_param *tprm,
- ((long)op->kp.addr + RELATIVEJUMP_SIZE));
-
- /* Backup instructions which will be replaced by jump address */
-- memcpy(op->optinsn.copied_insn, op->kp.addr + INT3_SIZE,
-+ memcpy(op->optinsn.copied_insn, ktla_ktva(op->kp.addr) + INT3_SIZE,
- RELATIVE_ADDR_SIZE);
-
- insn_buf[0] = RELATIVEJUMP_OPCODE;
diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c
-index ea69726..a305f16 100644
+index ebc9873..1b9724b 100644
--- a/arch/x86/kernel/ldt.c
+++ b/arch/x86/kernel/ldt.c
-@@ -67,13 +67,13 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
+@@ -66,13 +66,13 @@ static int alloc_ldt(mm_context_t *pc, int mincount, int reload)
if (reload) {
#ifdef CONFIG_SMP
preempt_disable();
#endif
}
if (oldsize) {
-@@ -95,7 +95,7 @@ static inline int copy_ldt(mm_context_t *new, mm_context_t *old)
+@@ -94,7 +94,7 @@ static inline int copy_ldt(mm_context_t *new, mm_context_t *old)
return err;
for (i = 0; i < old->size; i++)
return 0;
}
-@@ -116,6 +116,24 @@ int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
+@@ -115,6 +115,24 @@ int init_new_context(struct task_struct *tsk, struct mm_struct *mm)
retval = copy_ldt(&mm->context, &old_mm->context);
mutex_unlock(&old_mm->context.lock);
}
return retval;
}
-@@ -141,6 +159,7 @@ void destroy_context(struct mm_struct *mm)
- }
- }
-
-+static int read_ldt(void __user *ptr, unsigned long bytecount) __size_overflow(2);
- static int read_ldt(void __user *ptr, unsigned long bytecount)
- {
- int err;
-@@ -175,6 +194,7 @@ error_return:
- return err;
- }
-
-+static int read_default_ldt(void __user *ptr, unsigned long bytecount) __size_overflow(2);
- static int read_default_ldt(void __user *ptr, unsigned long bytecount)
- {
- /* CHECKME: Can we use _one_ random number ? */
-@@ -230,6 +250,13 @@ static int write_ldt(void __user *ptr, unsigned long bytecount, int oldmode)
+@@ -229,6 +247,13 @@ static int write_ldt(void __user *ptr, unsigned long bytecount, int oldmode)
}
}
if (oldmode)
ldt.avl = 0;
diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c
-index a3fa43b..8966f4c 100644
+index 5b19e4d..6476a76 100644
--- a/arch/x86/kernel/machine_kexec_32.c
+++ b/arch/x86/kernel/machine_kexec_32.c
-@@ -27,7 +27,7 @@
+@@ -26,7 +26,7 @@
#include <asm/cacheflush.h>
#include <asm/debugreg.h>
{
struct desc_ptr curidt;
-@@ -39,7 +39,7 @@ static void set_idt(void *newidt, __u16 limit)
+@@ -38,7 +38,7 @@ static void set_idt(void *newidt, __u16 limit)
}
{
struct desc_ptr curgdt;
-@@ -217,7 +217,7 @@ void machine_kexec(struct kimage *image)
+@@ -216,7 +216,7 @@ void machine_kexec(struct kimage *image)
}
control_page = page_address(image->control_code_page);
relocate_kernel_ptr = control_page;
page_list[PA_CONTROL_PAGE] = __pa(control_page);
diff --git a/arch/x86/kernel/microcode_intel.c b/arch/x86/kernel/microcode_intel.c
-index 3ca42d0..79d24cd 100644
+index 0327e2b..e43737b 100644
--- a/arch/x86/kernel/microcode_intel.c
+++ b/arch/x86/kernel/microcode_intel.c
-@@ -434,15 +434,16 @@ static enum ucode_state request_microcode_fw(int cpu, struct device *device)
- return ret;
- }
+@@ -430,13 +430,13 @@ static enum ucode_state request_microcode_fw(int cpu, struct device *device)
-+static int get_ucode_user(void *to, const void *from, size_t n) __size_overflow(3);
static int get_ucode_user(void *to, const void *from, size_t n)
{
- return copy_from_user(to, from, n);
static void microcode_fini_cpu(int cpu)
diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c
-index 925179f..1f0d561 100644
+index f21fd94..61565cd 100644
--- a/arch/x86/kernel/module.c
+++ b/arch/x86/kernel/module.c
-@@ -36,15 +36,61 @@
+@@ -35,15 +35,60 @@
#define DEBUGP(fmt...)
#endif
-void *module_alloc(unsigned long size)
-+static inline void *__module_alloc(unsigned long size, pgprot_t prot) __size_overflow(1);
+static inline void *__module_alloc(unsigned long size, pgprot_t prot)
{
- if (PAGE_ALIGN(size) > MODULES_LEN)
#ifdef CONFIG_X86_32
int apply_relocate(Elf32_Shdr *sechdrs,
const char *strtab,
-@@ -55,14 +101,16 @@ int apply_relocate(Elf32_Shdr *sechdrs,
+@@ -54,14 +99,16 @@ int apply_relocate(Elf32_Shdr *sechdrs,
unsigned int i;
Elf32_Rel *rel = (void *)sechdrs[relsec].sh_addr;
Elf32_Sym *sym;
/* This is the symbol it is referring to. Note that all
undefined symbols have been resolved. */
sym = (Elf32_Sym *)sechdrs[symindex].sh_addr
-@@ -71,11 +119,15 @@ int apply_relocate(Elf32_Shdr *sechdrs,
+@@ -70,11 +117,15 @@ int apply_relocate(Elf32_Shdr *sechdrs,
switch (ELF32_R_TYPE(rel[i].r_info)) {
case R_386_32:
/* We add the value into the location given */
break;
default:
printk(KERN_ERR "module %s: Unknown relocation: %u\n",
-@@ -120,21 +172,30 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
+@@ -119,21 +170,30 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
case R_X86_64_NONE:
break;
case R_X86_64_64:
if ((s64)val != *(s32 *)loc)
goto overflow;
diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c
-index 47acaf3..ec48ab6 100644
+index 32856fa..ce95eaa 100644
--- a/arch/x86/kernel/nmi.c
+++ b/arch/x86/kernel/nmi.c
-@@ -505,6 +505,17 @@ static inline void nmi_nesting_postprocess(void)
+@@ -507,6 +507,17 @@ static inline void nmi_nesting_postprocess(void)
dotraplinkage notrace __kprobes void
do_nmi(struct pt_regs *regs, long error_code)
{
.spin_is_locked = __ticket_spin_is_locked,
.spin_is_contended = __ticket_spin_is_contended,
diff --git a/arch/x86/kernel/paravirt.c b/arch/x86/kernel/paravirt.c
-index d90272e..6bb013b 100644
+index ab13760..01218e0 100644
--- a/arch/x86/kernel/paravirt.c
+++ b/arch/x86/kernel/paravirt.c
-@@ -53,6 +53,9 @@ u64 _paravirt_ident_64(u64 x)
+@@ -55,6 +55,9 @@ u64 _paravirt_ident_64(u64 x)
{
return x;
}
void __init default_banner(void)
{
-@@ -145,15 +148,19 @@ unsigned paravirt_patch_default(u8 type, u16 clobbers, void *insnbuf,
+@@ -147,15 +150,19 @@ unsigned paravirt_patch_default(u8 type, u16 clobbers, void *insnbuf,
if (opfunc == NULL)
/* If there's no function, patch it with a ud2a (BUG) */
ret = paravirt_patch_insns(insnbuf, len, ud2a, ud2a+sizeof(ud2a));
else if (type == PARAVIRT_PATCH(pv_cpu_ops.iret) ||
type == PARAVIRT_PATCH(pv_cpu_ops.irq_enable_sysexit) ||
-@@ -178,7 +185,7 @@ unsigned paravirt_patch_insns(void *insnbuf, unsigned len,
+@@ -180,7 +187,7 @@ unsigned paravirt_patch_insns(void *insnbuf, unsigned len,
if (insn_len > len || start == NULL)
insn_len = len;
else
return insn_len;
}
-@@ -302,7 +309,7 @@ void arch_flush_lazy_mmu_mode(void)
+@@ -304,7 +311,7 @@ void arch_flush_lazy_mmu_mode(void)
preempt_enable();
}
.name = "bare hardware",
.paravirt_enabled = 0,
.kernel_rpl = 0,
-@@ -313,16 +320,16 @@ struct pv_info pv_info = {
+@@ -315,16 +322,16 @@ struct pv_info pv_info = {
#endif
};
.save_fl = __PV_IS_CALLEE_SAVE(native_save_fl),
.restore_fl = __PV_IS_CALLEE_SAVE(native_restore_fl),
.irq_disable = __PV_IS_CALLEE_SAVE(native_irq_disable),
-@@ -334,7 +341,7 @@ struct pv_irq_ops pv_irq_ops = {
+@@ -336,7 +343,7 @@ struct pv_irq_ops pv_irq_ops = {
#endif
};
.cpuid = native_cpuid,
.get_debugreg = native_get_debugreg,
.set_debugreg = native_set_debugreg,
-@@ -395,21 +402,26 @@ struct pv_cpu_ops pv_cpu_ops = {
+@@ -397,21 +404,26 @@ struct pv_cpu_ops pv_cpu_ops = {
.end_context_switch = paravirt_nop,
};
.read_cr2 = native_read_cr2,
.write_cr2 = native_write_cr2,
-@@ -459,6 +471,7 @@ struct pv_mmu_ops pv_mmu_ops = {
+@@ -461,6 +473,7 @@ struct pv_mmu_ops pv_mmu_ops = {
.make_pud = PTE_IDENT,
.set_pgd = native_set_pgd,
#endif
#endif /* PAGETABLE_LEVELS >= 3 */
-@@ -478,6 +491,12 @@ struct pv_mmu_ops pv_mmu_ops = {
+@@ -480,6 +493,12 @@ struct pv_mmu_ops pv_mmu_ops = {
},
.set_fixmap = native_set_fixmap,
#define DEBUG 1
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
-index 15763af..da59ada 100644
+index 1d92a5a..7bc8c29 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
-@@ -48,16 +48,33 @@ void free_thread_xstate(struct task_struct *tsk)
+@@ -69,16 +69,33 @@ void free_thread_xstate(struct task_struct *tsk)
void free_thread_info(struct thread_info *ti)
{
}
/*
-@@ -70,7 +87,7 @@ void exit_thread(void)
+@@ -91,7 +108,7 @@ void exit_thread(void)
unsigned long *bp = t->io_bitmap_ptr;
if (bp) {
t->io_bitmap_ptr = NULL;
clear_thread_flag(TIF_IO_BITMAP);
-@@ -106,7 +123,7 @@ void show_regs_common(void)
+@@ -127,7 +144,7 @@ void show_regs_common(void)
printk(KERN_CONT "\n");
printk(KERN_DEFAULT "Pid: %d, comm: %.20s %s %s %.*s",
init_utsname()->release,
(int)strcspn(init_utsname()->version, " "),
init_utsname()->version);
-@@ -120,6 +137,9 @@ void flush_thread(void)
+@@ -141,6 +158,9 @@ void flush_thread(void)
{
struct task_struct *tsk = current;
flush_ptrace_hw_breakpoint(tsk);
memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array));
/*
-@@ -282,10 +302,10 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
+@@ -303,10 +323,10 @@ int kernel_thread(int (*fn)(void *), void *arg, unsigned long flags)
regs.di = (unsigned long) arg;
#ifdef CONFIG_X86_32
#else
regs.ss = __KERNEL_DS;
#endif
-@@ -411,7 +431,7 @@ bool set_pm_idle_to_default(void)
+@@ -392,7 +412,7 @@ static void __exit_idle(void)
+ void exit_idle(void)
+ {
+ /* idle loop has pid 0 */
+- if (current->pid)
++ if (task_pid_nr(current))
+ return;
+ __exit_idle();
+ }
+@@ -501,7 +521,7 @@ bool set_pm_idle_to_default(void)
return ret;
}
{
local_irq_disable();
/*
-@@ -653,16 +673,37 @@ static int __init idle_setup(char *str)
+@@ -743,16 +763,37 @@ static int __init idle_setup(char *str)
}
early_param("idle", idle_setup);
+}
+#endif
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
-index c08d1ff..6ae1c81 100644
+index ae68473..7b0bb71 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
-@@ -67,6 +67,7 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
+@@ -64,6 +64,7 @@ asmlinkage void ret_from_fork(void) __asm__("ret_from_fork");
unsigned long thread_saved_pc(struct task_struct *tsk)
{
return ((unsigned long *)tsk->thread.sp)[3];
+//XXX return tsk->thread.eip;
}
- #ifndef CONFIG_SMP
-@@ -132,15 +133,14 @@ void __show_regs(struct pt_regs *regs, int all)
+ void __show_regs(struct pt_regs *regs, int all)
+@@ -73,15 +74,14 @@ void __show_regs(struct pt_regs *regs, int all)
unsigned long sp;
unsigned short ss, gs;
show_regs_common();
-@@ -202,13 +202,14 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
+@@ -143,13 +143,14 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
struct task_struct *tsk;
int err;
p->thread.ip = (unsigned long) ret_from_fork;
-@@ -299,7 +300,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
+@@ -240,7 +241,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
struct thread_struct *prev = &prev_p->thread,
*next = &next_p->thread;
int cpu = smp_processor_id();
fpu_switch_t fpu;
/* never put a printk in __switch_to... printk() calls wake_up*() indirectly */
-@@ -323,6 +324,10 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
+@@ -264,6 +265,10 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
*/
lazy_save_gs(prev->gs);
/*
* Load the per-thread Thread-Local Storage descriptor.
*/
-@@ -353,6 +358,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
+@@ -294,6 +299,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
*/
arch_end_context_switch(next_p);
/*
* Restore %gs if needed (which is common)
*/
-@@ -361,8 +369,6 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
+@@ -302,8 +310,6 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
switch_fpu_finish(next_p, fpu);
return prev_p;
}
-@@ -392,4 +398,3 @@ unsigned long get_wchan(struct task_struct *p)
+@@ -333,4 +339,3 @@ unsigned long get_wchan(struct task_struct *p)
} while (count++ < 16);
return 0;
}
-
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
-index cfa5c90..4facd28 100644
+index 43d8b48..c45d566 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
-@@ -89,7 +89,7 @@ static void __exit_idle(void)
- void exit_idle(void)
- {
- /* idle loop has pid 0 */
-- if (current->pid)
-+ if (task_pid_nr(current))
- return;
- __exit_idle();
- }
-@@ -270,8 +270,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
+@@ -162,8 +162,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
struct pt_regs *childregs;
struct task_struct *me = current;
*childregs = *regs;
childregs->ax = 0;
-@@ -283,6 +282,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
+@@ -175,6 +174,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
p->thread.sp = (unsigned long) childregs;
p->thread.sp0 = (unsigned long) (childregs+1);
p->thread.usersp = me->thread.usersp;
set_tsk_thread_flag(p, TIF_FORK);
-@@ -385,7 +385,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
+@@ -280,7 +280,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
struct thread_struct *prev = &prev_p->thread;
struct thread_struct *next = &next_p->thread;
int cpu = smp_processor_id();
unsigned fsindex, gsindex;
fpu_switch_t fpu;
-@@ -467,10 +467,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
+@@ -362,10 +362,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
prev->usersp = percpu_read(old_rsp);
percpu_write(old_rsp, next->usersp);
percpu_write(current_task, next_p);
/*
* Now maybe reload the debug registers and handle I/O bitmaps
-@@ -525,12 +524,11 @@ unsigned long get_wchan(struct task_struct *p)
+@@ -434,12 +433,11 @@ unsigned long get_wchan(struct task_struct *p)
if (!p || p == current || p->state == TASK_RUNNING)
return 0;
stack = (unsigned long)task_stack_page(p);
ip = *(u64 *)(fp+8);
if (!in_sched_functions(ip))
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
-index 5026738..574f70a 100644
+index cf11783..e7ce551 100644
--- a/arch/x86/kernel/ptrace.c
+++ b/arch/x86/kernel/ptrace.c
-@@ -792,6 +792,10 @@ static int ioperm_active(struct task_struct *target,
- static int ioperm_get(struct task_struct *target,
- const struct user_regset *regset,
- unsigned int pos, unsigned int count,
-+ void *kbuf, void __user *ubuf) __size_overflow(3,4);
-+static int ioperm_get(struct task_struct *target,
-+ const struct user_regset *regset,
-+ unsigned int pos, unsigned int count,
- void *kbuf, void __user *ubuf)
- {
- if (!target->thread.io_bitmap_ptr)
-@@ -823,7 +827,7 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -824,7 +824,7 @@ long arch_ptrace(struct task_struct *child, long request,
unsigned long addr, unsigned long data)
{
int ret;
switch (request) {
/* read the word at location addr in the USER area. */
-@@ -908,14 +912,14 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -909,14 +909,14 @@ long arch_ptrace(struct task_struct *child, long request,
if ((int) addr < 0)
return -EIO;
ret = do_get_thread_area(child, addr,
break;
#endif
-@@ -1332,7 +1336,7 @@ static void fill_sigtrap_info(struct task_struct *tsk,
+@@ -1426,7 +1426,7 @@ static void fill_sigtrap_info(struct task_struct *tsk,
memset(info, 0, sizeof(*info));
info->si_signo = SIGTRAP;
info->si_code = si_code;
}
void user_single_step_siginfo(struct task_struct *tsk,
-@@ -1361,6 +1365,10 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
+@@ -1455,6 +1455,10 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
# define IS_IA32 0
#endif
/*
* We must return the syscall number to actually look up in the table.
* This can be -1L to skip running any syscall at all.
-@@ -1369,6 +1377,11 @@ long syscall_trace_enter(struct pt_regs *regs)
+@@ -1463,6 +1467,11 @@ long syscall_trace_enter(struct pt_regs *regs)
{
long ret = 0;
/*
* If we stepped into a sysenter/syscall insn, it trapped in
* kernel mode; do_debug() cleared TF and set TIF_SINGLESTEP.
-@@ -1412,6 +1425,11 @@ void syscall_trace_leave(struct pt_regs *regs)
+@@ -1506,6 +1515,11 @@ void syscall_trace_leave(struct pt_regs *regs)
{
bool step;
1:
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
-index d7d5099..28555d0 100644
+index 1a29015..712f324 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
-@@ -448,7 +448,7 @@ static void __init parse_setup_data(void)
+@@ -447,7 +447,7 @@ static void __init parse_setup_data(void)
switch (data->type) {
case SETUP_E820_EXT:
break;
case SETUP_DTB:
add_dtb(pa_data);
-@@ -649,7 +649,7 @@ static void __init trim_bios_range(void)
+@@ -639,7 +639,7 @@ static void __init trim_bios_range(void)
* area (640->1Mb) as ram even though it is not.
* take them out.
*/
sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
}
-@@ -767,14 +767,14 @@ void __init setup_arch(char **cmdline_p)
+@@ -763,14 +763,14 @@ void __init setup_arch(char **cmdline_p)
if (!boot_params.hdr.root_flags)
root_mountflags &= ~MS_RDONLY;
bss_resource.start = virt_to_phys(&__bss_start);
bss_resource.end = virt_to_phys(&__bss_stop)-1;
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
-index 5a98aa2..848d2be 100644
+index 5a98aa2..2f9288d 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -21,19 +21,17 @@
[0 ... NR_CPUS-1] = BOOT_PERCPU_OFFSET,
};
EXPORT_SYMBOL(__per_cpu_offset);
-@@ -96,6 +94,8 @@ static bool __init pcpu_need_numa(void)
- * Pointer to the allocated area on success, NULL on failure.
- */
- static void * __init pcpu_alloc_bootmem(unsigned int cpu, unsigned long size,
-+ unsigned long align) __size_overflow(2);
-+static void * __init pcpu_alloc_bootmem(unsigned int cpu, unsigned long size,
- unsigned long align)
- {
- const unsigned long goal = __pa(MAX_DMA_ADDRESS);
-@@ -124,6 +124,8 @@ static void * __init pcpu_alloc_bootmem(unsigned int cpu, unsigned long size,
- /*
- * Helpers for first chunk memory allocation
- */
-+static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, size_t align) __size_overflow(2);
-+
- static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, size_t align)
- {
- return pcpu_alloc_bootmem(cpu, size, align);
-@@ -155,10 +157,10 @@ static inline void setup_percpu_segment(int cpu)
+@@ -155,10 +153,10 @@ static inline void setup_percpu_segment(int cpu)
{
#ifdef CONFIG_X86_32
struct desc_struct gdt;
write_gdt_entry(get_cpu_gdt_table(cpu),
GDT_ENTRY_PERCPU, &gdt, DESCTYPE_S);
#endif
-@@ -219,6 +221,11 @@ void __init setup_per_cpu_areas(void)
+@@ -219,6 +217,11 @@ void __init setup_per_cpu_areas(void)
/* alrighty, percpu areas up and running */
delta = (unsigned long)pcpu_base_addr - (unsigned long)__per_cpu_start;
for_each_possible_cpu(cpu) {
per_cpu_offset(cpu) = delta + pcpu_unit_offsets[cpu];
per_cpu(this_cpu_off, cpu) = per_cpu_offset(cpu);
per_cpu(cpu_number, cpu) = cpu;
-@@ -259,6 +266,12 @@ void __init setup_per_cpu_areas(void)
+@@ -259,6 +262,12 @@ void __init setup_per_cpu_areas(void)
*/
set_cpu_numa_node(cpu, early_cpu_to_node(cpu));
#endif
* Up to this point, the boot CPU has been using .init.data
* area. Reload any changed state for the boot CPU.
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c
-index 46a01bd..2e88e6d 100644
+index 115eac4..c0591d5 100644
--- a/arch/x86/kernel/signal.c
+++ b/arch/x86/kernel/signal.c
-@@ -198,7 +198,7 @@ static unsigned long align_sigframe(unsigned long sp)
+@@ -190,7 +190,7 @@ static unsigned long align_sigframe(unsigned long sp)
* Align the stack pointer according to the i386 ABI,
* i.e. so that on function entry ((sp + 4) & 15) == 0.
*/
#else /* !CONFIG_X86_32 */
sp = round_down(sp, 16) - 8;
#endif
-@@ -249,11 +249,11 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
+@@ -241,11 +241,11 @@ get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, size_t frame_size,
* Return an always-bogus address instead so we will die with SIGSEGV.
*/
if (onsigstack && !likely(on_sig_stack(sp)))
return (void __user *)sp;
}
-@@ -308,9 +308,9 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
+@@ -300,9 +300,9 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
}
if (current->mm->context.vdso)
if (ka->sa.sa_flags & SA_RESTORER)
restorer = ka->sa.sa_restorer;
-@@ -324,7 +324,7 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
+@@ -316,7 +316,7 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
* reasons and because gdb uses it as a signature to notice
* signal handler stack frames.
*/
if (err)
return -EFAULT;
-@@ -378,7 +378,10 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -370,7 +370,10 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
err |= __copy_to_user(&frame->uc.uc_sigmask, set, sizeof(*set));
/* Set up to return from userspace. */
if (ka->sa.sa_flags & SA_RESTORER)
restorer = ka->sa.sa_restorer;
put_user_ex(restorer, &frame->pretcode);
-@@ -390,7 +393,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -382,7 +385,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
* reasons and because gdb uses it as a signature to notice
* signal handler stack frames.
*/
} put_user_catch(err);
if (err)
-@@ -765,7 +768,7 @@ static void do_signal(struct pt_regs *regs)
+@@ -773,7 +776,7 @@ static void do_signal(struct pt_regs *regs)
* X86_32: vm86 regs switched out by assembly code before reaching
* here, so testing against kernel CS suffices.
*/
signr = get_signal_to_deliver(&info, &ka, regs, NULL);
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
-index 66d250c..f1b10bd 100644
+index 6e1e406..edfb7cb 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
-@@ -715,17 +715,20 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)
+@@ -699,17 +699,20 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu)
set_idle_for_cpu(cpu, c_idle.idle);
do_rest:
per_cpu(current_task, cpu) = c_idle.idle;
initial_code = (unsigned long)start_secondary;
stack_start = c_idle.idle->thread.sp;
-@@ -868,6 +871,12 @@ int __cpuinit native_cpu_up(unsigned int cpu)
+@@ -851,6 +854,12 @@ int __cpuinit native_cpu_up(unsigned int cpu)
per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
+ return addr;
}
diff --git a/arch/x86/kernel/sys_x86_64.c b/arch/x86/kernel/sys_x86_64.c
-index 0514890..3dbebce 100644
+index b4d3c39..82bb73b 100644
--- a/arch/x86/kernel/sys_x86_64.c
+++ b/arch/x86/kernel/sys_x86_64.c
@@ -95,8 +95,8 @@ out:
+static void find_start_end(struct mm_struct *mm, unsigned long flags,
+ unsigned long *begin, unsigned long *end)
{
- if (!test_thread_flag(TIF_IA32) && (flags & MAP_32BIT)) {
+ if (!test_thread_flag(TIF_ADDR32) && (flags & MAP_32BIT)) {
unsigned long new_begin;
@@ -115,7 +115,7 @@ static void find_start_end(unsigned long flags, unsigned long *begin,
*begin = new_begin;
+ if (end - len >= addr && check_heap_stack_gap(vma, addr, len))
return addr;
}
- if (((flags & MAP_32BIT) || test_thread_flag(TIF_IA32))
+ if (((flags & MAP_32BIT) || test_thread_flag(TIF_ADDR32))
@@ -172,7 +175,7 @@ full_search:
}
return -ENOMEM;
{
struct vm_area_struct *vma;
struct mm_struct *mm = current->mm;
-- unsigned long addr = addr0;
-+ unsigned long base = mm->mmap_base, addr = addr0;
+- unsigned long addr = addr0, start_addr;
++ unsigned long base = mm->mmap_base, addr = addr0, start_addr;
/* requested length too big for entire address space */
if (len > TASK_SIZE)
@@ -208,13 +211,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
- if (!test_thread_flag(TIF_IA32) && (flags & MAP_32BIT))
+ if (!test_thread_flag(TIF_ADDR32) && (flags & MAP_32BIT))
goto bottomup;
+#ifdef CONFIG_PAX_RANDMMAP
}
/* check if free_area_cache is useful for us */
-@@ -232,7 +240,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
- ALIGN_TOPDOWN);
-
- vma = find_vma(mm, tmp_addr);
-- if (!vma || tmp_addr + len <= vma->vm_start)
-+ if (check_heap_stack_gap(vma, tmp_addr, len))
- /* remember the address as a hint for next time */
- return mm->free_area_cache = tmp_addr;
- }
-@@ -251,7 +259,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -240,7 +248,7 @@ try_again:
* return with success:
*/
vma = find_vma(mm, addr);
/* remember the address as a hint for next time */
return mm->free_area_cache = addr;
-@@ -260,8 +268,8 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -249,8 +257,8 @@ try_again:
mm->cached_hole_size = vma->vm_start - addr;
/* try just below the current vma->vm_start */
+ addr = skip_heap_stack_gap(vma, len);
+ } while (!IS_ERR_VALUE(addr));
- bottomup:
+ fail:
/*
@@ -270,13 +278,21 @@ bottomup:
* can happen with large stack limits and large mmap()
return addr;
diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c
-index e2410e2..4fe3fbc 100644
+index 6410744..79758f0 100644
--- a/arch/x86/kernel/tboot.c
+++ b/arch/x86/kernel/tboot.c
@@ -219,7 +219,7 @@ static int tboot_setup_sleep(void)
shutdown();
/* should not reach here */
-@@ -298,7 +298,7 @@ void tboot_sleep(u8 sleep_state, u32 pm1a_control, u32 pm1b_control)
- tboot_shutdown(acpi_shutdown_map[sleep_state]);
+@@ -299,7 +299,7 @@ static int tboot_sleep(u8 sleep_state, u32 pm1a_control, u32 pm1b_control)
+ return 0;
}
-static atomic_t ap_wfs_count;
static int tboot_wait_for_aps(int num_aps)
{
-@@ -322,9 +322,9 @@ static int __cpuinit tboot_cpu_callback(struct notifier_block *nfb,
+@@ -323,9 +323,9 @@ static int __cpuinit tboot_cpu_callback(struct notifier_block *nfb,
{
switch (action) {
case CPU_DYING:
return NOTIFY_BAD;
break;
}
-@@ -343,7 +343,7 @@ static __init int tboot_late_init(void)
+@@ -344,7 +344,7 @@ static __init int tboot_late_init(void)
tboot_create_trampoline();
- atomic_set(&ap_wfs_count, 0);
+ atomic_set_unchecked(&ap_wfs_count, 0);
register_hotcpu_notifier(&tboot_cpu_notifier);
- return 0;
- }
+
+ acpi_os_set_prepare_sleep(&tboot_sleep);
diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
-index dd5fbf4..b7f2232 100644
+index c6eba2b..3303326 100644
--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -31,9 +31,9 @@ unsigned long profile_pc(struct pt_regs *regs)
return pc;
}
diff --git a/arch/x86/kernel/tls.c b/arch/x86/kernel/tls.c
-index bcfec2d..8f88b4a 100644
+index 9d9d2f9..ed344e4 100644
--- a/arch/x86/kernel/tls.c
+++ b/arch/x86/kernel/tls.c
-@@ -85,6 +85,11 @@ int do_set_thread_area(struct task_struct *p, int idx,
+@@ -84,6 +84,11 @@ int do_set_thread_area(struct task_struct *p, int idx,
if (idx < GDT_ENTRY_TLS_MIN || idx > GDT_ENTRY_TLS_MAX)
return -EINVAL;
set_tls_desc(p, idx, &info, 1);
return 0;
-diff --git a/arch/x86/kernel/tls.h b/arch/x86/kernel/tls.h
-index 2f083a2..7d3fecc 100644
---- a/arch/x86/kernel/tls.h
-+++ b/arch/x86/kernel/tls.h
-@@ -16,6 +16,6 @@
-
- extern user_regset_active_fn regset_tls_active;
- extern user_regset_get_fn regset_tls_get;
--extern user_regset_set_fn regset_tls_set;
-+extern user_regset_set_fn regset_tls_set __size_overflow(4);
-
- #endif /* _ARCH_X86_KERNEL_TLS_H */
diff --git a/arch/x86/kernel/trampoline_32.S b/arch/x86/kernel/trampoline_32.S
index 451c0a7..e57f551 100644
--- a/arch/x86/kernel/trampoline_32.S
.short 0
.quad 0x00cf9b000000ffff # __KERNEL32_CS
diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
-index 4bbe04d..41d0943 100644
+index ff9281f1..30cb4ac 100644
--- a/arch/x86/kernel/traps.c
+++ b/arch/x86/kernel/traps.c
@@ -70,12 +70,6 @@ asmlinkage int system_call(void);
@@ -165,8 +159,20 @@ kernel_trap:
if (!fixup_exception(regs)) {
tsk->thread.error_code = error_code;
- tsk->thread.trap_no = trapnr;
+ tsk->thread.trap_nr = trapnr;
+
+#if defined(CONFIG_X86_32) && defined(CONFIG_PAX_KERNEXEC)
+ if (trapnr == 12 && ((regs->cs & 0xFFFF) == __KERNEL_CS || (regs->cs & 0xFFFF) == __KERNEXEC_KERNEL_CS))
return;
#ifdef CONFIG_X86_32
-@@ -255,14 +261,30 @@ do_general_protection(struct pt_regs *regs, long error_code)
+@@ -259,14 +265,30 @@ do_general_protection(struct pt_regs *regs, long error_code)
conditional_sti(regs);
#ifdef CONFIG_X86_32
+#endif
+
tsk->thread.error_code = error_code;
- tsk->thread.trap_no = 13;
+ tsk->thread.trap_nr = X86_TRAP_GP;
-@@ -295,6 +317,13 @@ gp_in_kernel:
- if (notify_die(DIE_GPF, "general protection fault", regs,
- error_code, 13, SIGSEGV) == NOTIFY_STOP)
+@@ -299,6 +321,13 @@ gp_in_kernel:
+ if (notify_die(DIE_GPF, "general protection fault", regs, error_code,
+ X86_TRAP_GP, SIGSEGV) == NOTIFY_STOP)
return;
+
+#if defined(CONFIG_X86_32) && defined(CONFIG_PAX_KERNEXEC)
die("general protection fault", regs, error_code);
}
-@@ -421,7 +450,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
+@@ -425,7 +454,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
/* It's safe to allow irq's after DR6 has been saved */
preempt_conditional_sti(regs);
- if (regs->flags & X86_VM_MASK) {
+ if (v8086_mode(regs)) {
- handle_vm86_trap((struct kernel_vm86_regs *) regs,
- error_code, 1);
+ handle_vm86_trap((struct kernel_vm86_regs *) regs, error_code,
+ X86_TRAP_DB);
preempt_conditional_cli(regs);
-@@ -436,7 +465,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
+@@ -440,7 +469,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
* We already checked v86 mode above, so we can check for kernel mode
* by just checking the CPL of CS.
*/
tsk->thread.debugreg6 &= ~DR_STEP;
set_tsk_thread_flag(tsk, TIF_SINGLESTEP);
regs->flags &= ~X86_EFLAGS_TF;
-@@ -466,7 +495,7 @@ void math_error(struct pt_regs *regs, int error_code, int trapnr)
+@@ -471,7 +500,7 @@ void math_error(struct pt_regs *regs, int error_code, int trapnr)
return;
conditional_sti(regs);
* verify_cpu, returns the status of longmode and SSE in register %eax.
* 0: Success 1: Failure
diff --git a/arch/x86/kernel/vm86_32.c b/arch/x86/kernel/vm86_32.c
-index 328cb37..f37fee1 100644
+index 255f58a..5e91150 100644
--- a/arch/x86/kernel/vm86_32.c
+++ b/arch/x86/kernel/vm86_32.c
@@ -41,6 +41,7 @@
#include <asm/uaccess.h>
#include <asm/io.h>
-@@ -109,6 +110,9 @@ static int copy_vm86_regs_to_user(struct vm86_regs __user *user,
- /* convert vm86_regs to kernel_vm86_regs */
- static int copy_vm86_regs_from_user(struct kernel_vm86_regs *regs,
- const struct vm86_regs __user *user,
-+ unsigned extra) __size_overflow(3);
-+static int copy_vm86_regs_from_user(struct kernel_vm86_regs *regs,
-+ const struct vm86_regs __user *user,
- unsigned extra)
- {
- int ret = 0;
-@@ -148,7 +152,7 @@ struct pt_regs *save_v86_state(struct kernel_vm86_regs *regs)
+@@ -148,7 +149,7 @@ struct pt_regs *save_v86_state(struct kernel_vm86_regs *regs)
do_exit(SIGSEGV);
}
current->thread.sp0 = current->thread.saved_sp0;
current->thread.sysenter_cs = __KERNEL_CS;
load_sp0(tss, ¤t->thread);
-@@ -210,6 +214,13 @@ int sys_vm86old(struct vm86_struct __user *v86, struct pt_regs *regs)
+@@ -210,6 +211,13 @@ int sys_vm86old(struct vm86_struct __user *v86, struct pt_regs *regs)
struct task_struct *tsk;
int tmp, ret = -EPERM;
tsk = current;
if (tsk->thread.saved_sp0)
goto out;
-@@ -240,6 +251,14 @@ int sys_vm86(unsigned long cmd, unsigned long arg, struct pt_regs *regs)
+@@ -240,6 +248,14 @@ int sys_vm86(unsigned long cmd, unsigned long arg, struct pt_regs *regs)
int tmp, ret;
struct vm86plus_struct __user *v86;
tsk = current;
switch (cmd) {
case VM86_REQUEST_IRQ:
-@@ -326,7 +345,7 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
+@@ -326,7 +342,7 @@ static void do_sys_vm86(struct kernel_vm86_struct *info, struct task_struct *tsk
tsk->thread.saved_fs = info->regs32->fs;
tsk->thread.saved_gs = get_user_gs(info->regs32);
tsk->thread.sp0 = (unsigned long) &info->VM86_TSS_ESP0;
if (cpu_has_sep)
tsk->thread.sysenter_cs = 0;
-@@ -533,7 +552,7 @@ static void do_int(struct kernel_vm86_regs *regs, int i,
+@@ -533,7 +549,7 @@ static void do_int(struct kernel_vm86_regs *regs, int i,
goto cannot_handle;
if (i == 0x21 && is_revectored(AH(regs), &KVM86->int21_revectored))
goto cannot_handle;
#ifdef CONFIG_SMP
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
-index b07ba93..a212969 100644
+index 7515cf0..331a1a0 100644
--- a/arch/x86/kernel/vsyscall_64.c
+++ b/arch/x86/kernel/vsyscall_64.c
-@@ -57,15 +57,13 @@ DEFINE_VVAR(struct vsyscall_gtod_data, vsyscall_gtod_data) =
- .lock = __SEQLOCK_UNLOCKED(__vsyscall_gtod_data.lock),
- };
+@@ -54,15 +54,13 @@
+ DEFINE_VVAR(int, vgetcpu_mode);
+ DEFINE_VVAR(struct vsyscall_gtod_data, vsyscall_gtod_data);
-static enum { EMULATE, NATIVE, NONE } vsyscall_mode = EMULATE;
+static enum { EMULATE, NONE } vsyscall_mode = EMULATE;
else if (!strcmp("none", str))
vsyscall_mode = NONE;
else
-@@ -207,7 +205,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
+@@ -206,7 +204,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
tsk = current;
if (seccomp_mode(&tsk->seccomp))
/*
* With a real vsyscall, page faults cause SIGSEGV. We want to
-@@ -279,8 +277,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
+@@ -278,8 +276,7 @@ bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
return true;
sigsegv:
}
/*
-@@ -333,10 +330,7 @@ void __init map_vsyscall(void)
+@@ -332,10 +329,7 @@ void __init map_vsyscall(void)
extern char __vvar_page;
unsigned long physaddr_vvar_page = __pa_symbol(&__vvar_page);
EXPORT_SYMBOL(copy_page);
EXPORT_SYMBOL(clear_page);
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c
-index 7110911..e8cdee5 100644
+index e62728e..5fc3a07 100644
--- a/arch/x86/kernel/xsave.c
+++ b/arch/x86/kernel/xsave.c
-@@ -130,7 +130,7 @@ int check_for_xstate(struct i387_fxsave_struct __user *buf,
+@@ -131,7 +131,7 @@ int check_for_xstate(struct i387_fxsave_struct __user *buf,
fx_sw_user->xstate_size > fx_sw_user->extended_size)
return -EINVAL;
fx_sw_user->extended_size -
FP_XSTATE_MAGIC2_SIZE));
if (err)
-@@ -266,7 +266,7 @@ fx_only:
+@@ -267,7 +267,7 @@ fx_only:
* the other extended state.
*/
xrstor_state(init_xstate_buf, pcntxt_mask & ~XSTATE_FPSSE);
}
/*
-@@ -295,7 +295,7 @@ int restore_i387_xstate(void __user *buf)
+@@ -296,7 +296,7 @@ int restore_i387_xstate(void __user *buf)
if (use_xsave())
err = restore_user_xstate(buf);
else
if (unlikely(err)) {
/*
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
-index 89b02bf..0f6511d 100644
+index 9fed5be..18fd595 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -124,15 +124,20 @@ int kvm_vcpu_ioctl_set_cpuid2(struct kvm_vcpu *vcpu,
out:
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
-index 0982507..7f6d72f 100644
+index 8375622..b7bca1a 100644
--- a/arch/x86/kvm/emulate.c
+++ b/arch/x86/kvm/emulate.c
-@@ -250,6 +250,7 @@ struct gprefix {
+@@ -252,6 +252,7 @@ struct gprefix {
#define ____emulate_2op(ctxt, _op, _x, _y, _suffix, _dsttype) \
do { \
__asm__ __volatile__ ( \
_PRE_EFLAGS("0", "4", "2") \
_op _suffix " %"_x"3,%1; " \
-@@ -264,8 +265,6 @@ struct gprefix {
+@@ -266,8 +267,6 @@ struct gprefix {
/* Raw emulation: instruction has two explicit operands. */
#define __emulate_2op_nobyte(ctxt,_op,_wx,_wy,_lx,_ly,_qx,_qy) \
do { \
switch ((ctxt)->dst.bytes) { \
case 2: \
____emulate_2op(ctxt,_op,_wx,_wy,"w",u16); \
-@@ -281,7 +280,6 @@ struct gprefix {
+@@ -283,7 +282,6 @@ struct gprefix {
#define __emulate_2op(ctxt,_op,_bx,_by,_wx,_wy,_lx,_ly,_qx,_qy) \
do { \
case 1: \
____emulate_2op(ctxt,_op,_bx,_by,"b",u8); \
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
-index cfdc6e0..ab92e84 100644
+index 8584322..17d5955 100644
--- a/arch/x86/kvm/lapic.c
+++ b/arch/x86/kvm/lapic.c
@@ -54,7 +54,7 @@
#define APIC_LVT_NUM 6
/* 14 is the version for Xeon and Pentium 8.4.8*/
diff --git a/arch/x86/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h
-index 1561028..0ed7f14 100644
+index df5a703..63748a7 100644
--- a/arch/x86/kvm/paging_tmpl.h
+++ b/arch/x86/kvm/paging_tmpl.h
@@ -197,7 +197,7 @@ retry_walk:
goto error;
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
-index e385214..f8df033 100644
+index e334389..6839087 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
-@@ -3420,7 +3420,11 @@ static void reload_tss(struct kvm_vcpu *vcpu)
+@@ -3509,7 +3509,11 @@ static void reload_tss(struct kvm_vcpu *vcpu)
int cpu = raw_smp_processor_id();
struct svm_cpu_data *sd = per_cpu(svm_data, cpu);
load_TR_desc();
}
-@@ -3798,6 +3802,10 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -3887,6 +3891,10 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
#endif
#endif
local_irq_disable();
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
-index a7a6f60..04b745a 100644
+index 4ff0ab9..2ff68d3 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
-@@ -1306,7 +1306,11 @@ static void reload_tss(void)
+@@ -1303,7 +1303,11 @@ static void reload_tss(void)
struct desc_struct *descs;
descs = (void *)gdt->address;
load_TR_desc();
}
-@@ -2637,8 +2641,11 @@ static __init int hardware_setup(void)
+@@ -2625,8 +2629,11 @@ static __init int hardware_setup(void)
if (!cpu_has_vmx_flexpriority())
flexpriority_enabled = 0;
if (enable_ept && !cpu_has_vmx_ept_2m_page())
kvm_disable_largepages();
-@@ -3654,7 +3661,7 @@ static void vmx_set_constant_host_state(void)
+@@ -3642,7 +3649,7 @@ static void vmx_set_constant_host_state(void)
vmcs_writel(HOST_IDTR_BASE, dt.address); /* 22.2.4 */
asm("mov $.Lkvm_vmx_return, %0" : "=r"(tmpl));
rdmsr(MSR_IA32_SYSENTER_CS, low32, high32);
vmcs_write32(HOST_IA32_SYSENTER_CS, low32);
-@@ -6192,6 +6199,12 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6180,6 +6187,12 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
"jmp .Lkvm_vmx_return \n\t"
".Llaunched: " __ex(ASM_VMX_VMRESUME) "\n\t"
".Lkvm_vmx_return: "
/* Save guest registers, load host registers, keep flags */
"mov %0, %c[wordsize](%%"R"sp) \n\t"
"pop %0 \n\t"
-@@ -6240,6 +6253,11 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6228,6 +6241,11 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
#endif
[cr2]"i"(offsetof(struct vcpu_vmx, vcpu.arch.cr2)),
[wordsize]"i"(sizeof(ulong))
: "cc", "memory"
, R"ax", R"bx", R"di", R"si"
#ifdef CONFIG_X86_64
-@@ -6268,7 +6286,16 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6256,7 +6274,16 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
}
}
vmx->exit_reason = vmcs_read32(VM_EXIT_REASON);
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
-index 8d1c6c6..6e6d611 100644
+index 185a2b8..866d2a6 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
-@@ -873,6 +873,7 @@ static int do_set_msr(struct kvm_vcpu *vcpu, unsigned index, u64 *data)
- return kvm_set_msr(vcpu, index, *data);
- }
-
-+static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock) __size_overflow(2);
- static void kvm_write_wall_clock(struct kvm *kvm, gpa_t wall_clock)
- {
- int version;
-@@ -1307,12 +1308,13 @@ static int set_msr_mce(struct kvm_vcpu *vcpu, u32 msr, u64 data)
- return 0;
- }
-
-+static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data) __size_overflow(2);
- static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data)
+@@ -1357,8 +1357,8 @@ static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data)
{
struct kvm *kvm = vcpu->kvm;
int lm = is_long_mode(vcpu);
u8 blob_size = lm ? kvm->arch.xen_hvm_config.blob_size_64
: kvm->arch.xen_hvm_config.blob_size_32;
u32 page_num = data & ~PAGE_MASK;
-@@ -2145,6 +2147,8 @@ long kvm_arch_dev_ioctl(struct file *filp,
+@@ -2213,6 +2213,8 @@ long kvm_arch_dev_ioctl(struct file *filp,
if (n < msr_list.nmsrs)
goto out;
r = -EFAULT;
if (copy_to_user(user_msr_list->indices, &msrs_to_save,
num_msrs_to_save * sizeof(u32)))
goto out;
-@@ -2266,7 +2270,7 @@ static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu,
+@@ -2338,7 +2340,7 @@ static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu,
static int kvm_vcpu_ioctl_interrupt(struct kvm_vcpu *vcpu,
struct kvm_interrupt *irq)
{
return -EINVAL;
if (irqchip_in_kernel(vcpu->kvm))
return -ENXIO;
-@@ -3499,6 +3503,9 @@ gpa_t kvm_mmu_gva_to_gpa_system(struct kvm_vcpu *vcpu, gva_t gva,
-
- static int kvm_read_guest_virt_helper(gva_t addr, void *val, unsigned int bytes,
- struct kvm_vcpu *vcpu, u32 access,
-+ struct x86_exception *exception) __size_overflow(1,3);
-+static int kvm_read_guest_virt_helper(gva_t addr, void *val, unsigned int bytes,
-+ struct kvm_vcpu *vcpu, u32 access,
- struct x86_exception *exception)
- {
- void *data = val;
-@@ -3530,6 +3537,9 @@ out:
- /* used for instruction fetching */
- static int kvm_fetch_guest_virt(struct x86_emulate_ctxt *ctxt,
- gva_t addr, void *val, unsigned int bytes,
-+ struct x86_exception *exception) __size_overflow(2,4);
-+static int kvm_fetch_guest_virt(struct x86_emulate_ctxt *ctxt,
-+ gva_t addr, void *val, unsigned int bytes,
- struct x86_exception *exception)
- {
- struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt);
-@@ -3554,6 +3564,9 @@ EXPORT_SYMBOL_GPL(kvm_read_guest_virt);
-
- static int kvm_read_guest_virt_system(struct x86_emulate_ctxt *ctxt,
- gva_t addr, void *val, unsigned int bytes,
-+ struct x86_exception *exception) __size_overflow(2,4);
-+static int kvm_read_guest_virt_system(struct x86_emulate_ctxt *ctxt,
-+ gva_t addr, void *val, unsigned int bytes,
- struct x86_exception *exception)
- {
- struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt);
-@@ -3667,12 +3680,16 @@ static int read_prepare(struct kvm_vcpu *vcpu, void *val, int bytes)
- }
-
- static int read_emulate(struct kvm_vcpu *vcpu, gpa_t gpa,
-+ void *val, int bytes) __size_overflow(2);
-+static int read_emulate(struct kvm_vcpu *vcpu, gpa_t gpa,
- void *val, int bytes)
- {
- return !kvm_read_guest(vcpu->kvm, gpa, val, bytes);
- }
-
- static int write_emulate(struct kvm_vcpu *vcpu, gpa_t gpa,
-+ void *val, int bytes) __size_overflow(2);
-+static int write_emulate(struct kvm_vcpu *vcpu, gpa_t gpa,
- void *val, int bytes)
- {
- return emulator_write_phys(vcpu, gpa, val, bytes);
-@@ -3823,6 +3840,12 @@ static int emulator_cmpxchg_emulated(struct x86_emulate_ctxt *ctxt,
- const void *old,
- const void *new,
- unsigned int bytes,
-+ struct x86_exception *exception) __size_overflow(5);
-+static int emulator_cmpxchg_emulated(struct x86_emulate_ctxt *ctxt,
-+ unsigned long addr,
-+ const void *old,
-+ const void *new,
-+ unsigned int bytes,
- struct x86_exception *exception)
- {
- struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt);
-@@ -4782,7 +4805,7 @@ static void kvm_set_mmio_spte_mask(void)
+@@ -4860,7 +4862,7 @@ static void kvm_set_mmio_spte_mask(void)
kvm_mmu_set_mmio_spte_mask(mask);
}
{
int r;
struct kvm_x86_ops *ops = (struct kvm_x86_ops *)opaque;
-diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
-index cb80c29..aeee86c 100644
---- a/arch/x86/kvm/x86.h
-+++ b/arch/x86/kvm/x86.h
-@@ -116,11 +116,11 @@ void kvm_write_tsc(struct kvm_vcpu *vcpu, u64 data);
-
- int kvm_read_guest_virt(struct x86_emulate_ctxt *ctxt,
- gva_t addr, void *val, unsigned int bytes,
-- struct x86_exception *exception);
-+ struct x86_exception *exception) __size_overflow(2,4);
-
- int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt,
- gva_t addr, void *val, unsigned int bytes,
-- struct x86_exception *exception);
-+ struct x86_exception *exception) __size_overflow(2,4);
-
- extern u64 host_xcr0;
-
diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c
index 642d880..44e0f3f 100644
--- a/arch/x86/lguest/boot.c
}
/*G:050
-diff --git a/arch/x86/lib/atomic64_32.c b/arch/x86/lib/atomic64_32.c
-index 042f682..c92afb6 100644
---- a/arch/x86/lib/atomic64_32.c
-+++ b/arch/x86/lib/atomic64_32.c
-@@ -8,18 +8,30 @@
-
- long long atomic64_read_cx8(long long, const atomic64_t *v);
- EXPORT_SYMBOL(atomic64_read_cx8);
-+long long atomic64_read_unchecked_cx8(long long, const atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_read_unchecked_cx8);
- long long atomic64_set_cx8(long long, const atomic64_t *v);
- EXPORT_SYMBOL(atomic64_set_cx8);
-+long long atomic64_set_unchecked_cx8(long long, const atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_set_unchecked_cx8);
- long long atomic64_xchg_cx8(long long, unsigned high);
- EXPORT_SYMBOL(atomic64_xchg_cx8);
- long long atomic64_add_return_cx8(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_add_return_cx8);
-+long long atomic64_add_return_unchecked_cx8(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_add_return_unchecked_cx8);
- long long atomic64_sub_return_cx8(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_sub_return_cx8);
-+long long atomic64_sub_return_unchecked_cx8(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_sub_return_unchecked_cx8);
- long long atomic64_inc_return_cx8(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_inc_return_cx8);
-+long long atomic64_inc_return_unchecked_cx8(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_inc_return_unchecked_cx8);
- long long atomic64_dec_return_cx8(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_dec_return_cx8);
-+long long atomic64_dec_return_unchecked_cx8(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_dec_return_unchecked_cx8);
- long long atomic64_dec_if_positive_cx8(atomic64_t *v);
- EXPORT_SYMBOL(atomic64_dec_if_positive_cx8);
- int atomic64_inc_not_zero_cx8(atomic64_t *v);
-@@ -30,26 +42,46 @@ EXPORT_SYMBOL(atomic64_add_unless_cx8);
- #ifndef CONFIG_X86_CMPXCHG64
- long long atomic64_read_386(long long, const atomic64_t *v);
- EXPORT_SYMBOL(atomic64_read_386);
-+long long atomic64_read_unchecked_386(long long, const atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_read_unchecked_386);
- long long atomic64_set_386(long long, const atomic64_t *v);
- EXPORT_SYMBOL(atomic64_set_386);
-+long long atomic64_set_unchecked_386(long long, const atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_set_unchecked_386);
- long long atomic64_xchg_386(long long, unsigned high);
- EXPORT_SYMBOL(atomic64_xchg_386);
- long long atomic64_add_return_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_add_return_386);
-+long long atomic64_add_return_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_add_return_unchecked_386);
- long long atomic64_sub_return_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_sub_return_386);
-+long long atomic64_sub_return_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_sub_return_unchecked_386);
- long long atomic64_inc_return_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_inc_return_386);
-+long long atomic64_inc_return_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_inc_return_unchecked_386);
- long long atomic64_dec_return_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_dec_return_386);
-+long long atomic64_dec_return_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_dec_return_unchecked_386);
- long long atomic64_add_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_add_386);
-+long long atomic64_add_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_add_unchecked_386);
- long long atomic64_sub_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_sub_386);
-+long long atomic64_sub_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_sub_unchecked_386);
- long long atomic64_inc_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_inc_386);
-+long long atomic64_inc_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_inc_unchecked_386);
- long long atomic64_dec_386(long long a, atomic64_t *v);
- EXPORT_SYMBOL(atomic64_dec_386);
-+long long atomic64_dec_unchecked_386(long long a, atomic64_unchecked_t *v);
-+EXPORT_SYMBOL(atomic64_dec_unchecked_386);
- long long atomic64_dec_if_positive_386(atomic64_t *v);
- EXPORT_SYMBOL(atomic64_dec_if_positive_386);
- int atomic64_inc_not_zero_386(atomic64_t *v);
diff --git a/arch/x86/lib/atomic64_386_32.S b/arch/x86/lib/atomic64_386_32.S
-index e8e7e0d..56fd1b0 100644
+index 00933d5..3a64af9 100644
--- a/arch/x86/lib/atomic64_386_32.S
+++ b/arch/x86/lib/atomic64_386_32.S
@@ -48,6 +48,10 @@ BEGIN(read)
+ _ASM_EXTABLE(1234b, 2f)
+#endif
+
- cmpl %eax, %esi
+ cmpl %eax, %ecx
je 3f
1:
@@ -168,6 +318,13 @@ BEGIN(inc_not_zero)
movl %eax, (v)
movl %edx, 4(v)
diff --git a/arch/x86/lib/atomic64_cx8_32.S b/arch/x86/lib/atomic64_cx8_32.S
-index 391a083..3a2cf39 100644
+index f5cc9eb..51fa319 100644
--- a/arch/x86/lib/atomic64_cx8_32.S
+++ b/arch/x86/lib/atomic64_cx8_32.S
@@ -35,10 +35,20 @@ ENTRY(atomic64_read_cx8)
ENTRY(atomic64_xchg_cx8)
CFI_STARTPROC
-@@ -62,12 +87,13 @@ ENTRY(atomic64_xchg_cx8)
+@@ -60,12 +85,13 @@ ENTRY(atomic64_xchg_cx8)
cmpxchg8b (%esi)
jne 1b
CFI_STARTPROC
SAVE ebp
SAVE ebx
-@@ -84,27 +110,44 @@ ENTRY(atomic64_\func\()_return_cx8)
+@@ -82,27 +108,44 @@ ENTRY(atomic64_\func\()_return_cx8)
movl %edx, %ecx
\ins\()l %esi, %ebx
\insc\()l %edi, %ecx
CFI_STARTPROC
SAVE ebx
-@@ -114,21 +157,39 @@ ENTRY(atomic64_\func\()_return_cx8)
+@@ -112,21 +155,39 @@ ENTRY(atomic64_\func\()_return_cx8)
movl %edx, %ecx
\ins\()l $1, %ebx
\insc\()l $0, %ecx
ENTRY(atomic64_dec_if_positive_cx8)
CFI_STARTPROC
-@@ -140,6 +201,13 @@ ENTRY(atomic64_dec_if_positive_cx8)
+@@ -138,6 +199,13 @@ ENTRY(atomic64_dec_if_positive_cx8)
movl %edx, %ecx
subl $1, %ebx
sbb $0, %ecx
js 2f
LOCK_PREFIX
cmpxchg8b (%esi)
-@@ -149,6 +217,7 @@ ENTRY(atomic64_dec_if_positive_cx8)
+@@ -147,6 +215,7 @@ ENTRY(atomic64_dec_if_positive_cx8)
movl %ebx, %eax
movl %ecx, %edx
RESTORE ebx
ret
CFI_ENDPROC
ENDPROC(atomic64_dec_if_positive_cx8)
-@@ -174,6 +243,13 @@ ENTRY(atomic64_add_unless_cx8)
+@@ -171,6 +240,13 @@ ENTRY(atomic64_add_unless_cx8)
movl %edx, %ecx
- addl %esi, %ebx
+ addl %ebp, %ebx
adcl %edi, %ecx
+
+#ifdef CONFIG_PAX_REFCOUNT
+#endif
+
LOCK_PREFIX
- cmpxchg8b (%ebp)
+ cmpxchg8b (%esi)
jne 1b
-@@ -184,6 +260,7 @@ ENTRY(atomic64_add_unless_cx8)
+@@ -181,6 +257,7 @@ ENTRY(atomic64_add_unless_cx8)
CFI_ADJUST_CFA_OFFSET -8
RESTORE ebx
RESTORE ebp
ret
4:
cmpl %edx, 4(%esp)
-@@ -206,6 +283,13 @@ ENTRY(atomic64_inc_not_zero_cx8)
- movl %edx, %ecx
+@@ -203,6 +280,13 @@ ENTRY(atomic64_inc_not_zero_cx8)
+ xorl %ecx, %ecx
addl $1, %ebx
- adcl $0, %ecx
+ adcl %edx, %ecx
+
+#ifdef CONFIG_PAX_REFCOUNT
+ into
LOCK_PREFIX
cmpxchg8b (%esi)
jne 1b
-@@ -213,6 +297,7 @@ ENTRY(atomic64_inc_not_zero_cx8)
+@@ -210,6 +294,7 @@ ENTRY(atomic64_inc_not_zero_cx8)
movl $1, %eax
3:
RESTORE ebx
+ pax_force_retaddr
ret
- 4:
- testl %edx, %edx
+ CFI_ENDPROC
+ ENDPROC(atomic64_inc_not_zero_cx8)
diff --git a/arch/x86/lib/checksum_32.S b/arch/x86/lib/checksum_32.S
index 78d16a5..fbcf666 100644
--- a/arch/x86/lib/checksum_32.S
CFI_ENDPROC
diff --git a/arch/x86/lib/copy_page_64.S b/arch/x86/lib/copy_page_64.S
-index 01c805b..dccb07f 100644
+index 6b34d04..dccb07f 100644
--- a/arch/x86/lib/copy_page_64.S
+++ b/arch/x86/lib/copy_page_64.S
@@ -9,6 +9,7 @@ copy_page_c:
ret
CFI_ENDPROC
ENDPROC(copy_page_c)
-@@ -39,7 +40,7 @@ ENTRY(copy_page)
+@@ -20,12 +21,14 @@ ENDPROC(copy_page_c)
+
+ ENTRY(copy_page)
+ CFI_STARTPROC
+- subq $2*8,%rsp
+- CFI_ADJUST_CFA_OFFSET 2*8
++ subq $3*8,%rsp
++ CFI_ADJUST_CFA_OFFSET 3*8
+ movq %rbx,(%rsp)
+ CFI_REL_OFFSET rbx, 0
+ movq %r12,1*8(%rsp)
+ CFI_REL_OFFSET r12, 1*8
++ movq %r13,2*8(%rsp)
++ CFI_REL_OFFSET r13, 2*8
+
+ movl $(4096/64)-5,%ecx
+ .p2align 4
+@@ -37,7 +40,7 @@ ENTRY(copy_page)
movq 16 (%rsi), %rdx
movq 24 (%rsi), %r8
movq 32 (%rsi), %r9
movq 48 (%rsi), %r11
movq 56 (%rsi), %r12
-@@ -50,7 +51,7 @@ ENTRY(copy_page)
+@@ -48,7 +51,7 @@ ENTRY(copy_page)
movq %rdx, 16 (%rdi)
movq %r8, 24 (%rdi)
movq %r9, 32 (%rdi)
movq %r11, 48 (%rdi)
movq %r12, 56 (%rdi)
-@@ -69,7 +70,7 @@ ENTRY(copy_page)
+@@ -67,7 +70,7 @@ ENTRY(copy_page)
movq 16 (%rsi), %rdx
movq 24 (%rsi), %r8
movq 32 (%rsi), %r9
movq 48 (%rsi), %r11
movq 56 (%rsi), %r12
-@@ -78,7 +79,7 @@ ENTRY(copy_page)
+@@ -76,7 +79,7 @@ ENTRY(copy_page)
movq %rdx, 16 (%rdi)
movq %r8, 24 (%rdi)
movq %r9, 32 (%rdi)
movq %r11, 48 (%rdi)
movq %r12, 56 (%rdi)
-@@ -95,6 +96,7 @@ ENTRY(copy_page)
- CFI_RESTORE r13
- addq $3*8,%rsp
- CFI_ADJUST_CFA_OFFSET -3*8
+@@ -89,8 +92,11 @@ ENTRY(copy_page)
+ CFI_RESTORE rbx
+ movq 1*8(%rsp),%r12
+ CFI_RESTORE r12
+- addq $2*8,%rsp
+- CFI_ADJUST_CFA_OFFSET -2*8
++ movq 2*8(%rsp),%r13
++ CFI_RESTORE r13
++ addq $3*8,%rsp
++ CFI_ADJUST_CFA_OFFSET -3*8
+ pax_force_retaddr
ret
.Lcopy_page_end:
CFI_ENDPROC
-@@ -105,7 +107,7 @@ ENDPROC(copy_page)
+@@ -101,7 +107,7 @@ ENDPROC(copy_page)
#include <asm/cpufeature.h>
CFI_ENDPROC
END(bad_get_user)
diff --git a/arch/x86/lib/insn.c b/arch/x86/lib/insn.c
-index 5a1f9f3..ba9f577 100644
+index b1e6c4b..21ae8fc 100644
--- a/arch/x86/lib/insn.c
+++ b/arch/x86/lib/insn.c
@@ -21,6 +21,11 @@
CFI_ENDPROC
ENDPROC(__iowrite32_copy)
diff --git a/arch/x86/lib/memcpy_64.S b/arch/x86/lib/memcpy_64.S
-index efbf2a0..8893637 100644
+index 1c273be..da9cc0e 100644
--- a/arch/x86/lib/memcpy_64.S
+++ b/arch/x86/lib/memcpy_64.S
-@@ -34,6 +34,7 @@
+@@ -33,6 +33,7 @@
rep movsq
movl %edx, %ecx
rep movsb
ret
.Lmemcpy_e:
.previous
-@@ -51,6 +52,7 @@
-
- movl %edx, %ecx
+@@ -49,6 +50,7 @@
+ movq %rdi, %rax
+ movq %rdx, %rcx
rep movsb
+ pax_force_retaddr
ret
.Lmemcpy_e_e:
.previous
-@@ -81,13 +83,13 @@ ENTRY(memcpy)
+@@ -76,13 +78,13 @@ ENTRY(memcpy)
*/
movq 0*8(%rsi), %r8
movq 1*8(%rsi), %r9
movq %r11, 3*8(%rdi)
leaq 4*8(%rdi), %rdi
jae .Lcopy_forward_loop
-@@ -110,12 +112,12 @@ ENTRY(memcpy)
+@@ -105,12 +107,12 @@ ENTRY(memcpy)
subq $0x20, %rdx
movq -1*8(%rsi), %r8
movq -2*8(%rsi), %r9
movq %r11, -4*8(%rdi)
leaq -4*8(%rdi), %rdi
jae .Lcopy_backward_loop
-@@ -135,12 +137,13 @@ ENTRY(memcpy)
+@@ -130,12 +132,13 @@ ENTRY(memcpy)
*/
movq 0*8(%rsi), %r8
movq 1*8(%rsi), %r9
retq
.p2align 4
.Lless_16bytes:
-@@ -153,6 +156,7 @@ ENTRY(memcpy)
+@@ -148,6 +151,7 @@ ENTRY(memcpy)
movq -1*8(%rsi, %rdx), %r9
movq %r8, 0*8(%rdi)
movq %r9, -1*8(%rdi, %rdx)
retq
.p2align 4
.Lless_8bytes:
-@@ -166,6 +170,7 @@ ENTRY(memcpy)
+@@ -161,6 +165,7 @@ ENTRY(memcpy)
movl -4(%rsi, %rdx), %r8d
movl %ecx, (%rdi)
movl %r8d, -4(%rdi, %rdx)
retq
.p2align 4
.Lless_3bytes:
-@@ -183,6 +188,7 @@ ENTRY(memcpy)
- jnz .Lloop_1
+@@ -179,6 +184,7 @@ ENTRY(memcpy)
+ movb %cl, (%rdi)
.Lend:
+ pax_force_retaddr
.Lmemmove_end_forward_efs:
.previous
diff --git a/arch/x86/lib/memset_64.S b/arch/x86/lib/memset_64.S
-index 79bd454..dff325a 100644
+index 2dcb380..963660a 100644
--- a/arch/x86/lib/memset_64.S
+++ b/arch/x86/lib/memset_64.S
-@@ -31,6 +31,7 @@
- movl %r8d,%ecx
+@@ -30,6 +30,7 @@
+ movl %edx,%ecx
rep stosb
movq %r9,%rax
+ pax_force_retaddr
ret
.Lmemset_e:
.previous
-@@ -53,6 +54,7 @@
- movl %edx,%ecx
+@@ -52,6 +53,7 @@
+ movq %rdx,%rcx
rep stosb
movq %r9,%rax
+ pax_force_retaddr
ret
.Lmemset_e_e:
.previous
-@@ -60,13 +62,13 @@
+@@ -59,7 +61,7 @@
ENTRY(memset)
ENTRY(__memset)
CFI_STARTPROC
- movq %rdi,%r10
- movq %rdx,%r11
++ movq %rdi,%r11
/* expand byte value */
movzbl %sil,%ecx
- movabs $0x0101010101010101,%rax
- mul %rcx /* with rax, clobbers rdx */
-+ movq %rdi,%rdx
-
- /* align dst */
- movl %edi,%r9d
-@@ -120,7 +122,8 @@ ENTRY(__memset)
+@@ -117,7 +119,8 @@ ENTRY(__memset)
jnz .Lloop_1
.Lende:
- movq %r10,%rax
-+ movq %rdx,%rax
++ movq %r11,%rax
+ pax_force_retaddr
ret
ret
CFI_ENDPROC
diff --git a/arch/x86/lib/usercopy_32.c b/arch/x86/lib/usercopy_32.c
-index e218d5d..a99a1eb 100644
+index ef2a6a5..3b28862 100644
--- a/arch/x86/lib/usercopy_32.c
+++ b/arch/x86/lib/usercopy_32.c
-@@ -43,7 +43,7 @@ do { \
- __asm__ __volatile__( \
- " testl %1,%1\n" \
- " jz 2f\n" \
-- "0: lodsb\n" \
-+ "0: "__copyuser_seg"lodsb\n" \
- " stosb\n" \
- " testb %%al,%%al\n" \
- " jz 1f\n" \
-@@ -128,10 +128,12 @@ do { \
+@@ -41,10 +41,12 @@ do { \
int __d0; \
might_fault(); \
__asm__ __volatile__( \
".section .fixup,\"ax\"\n" \
"3: lea 0(%2,%0,4),%0\n" \
" jmp 2b\n" \
-@@ -200,6 +202,7 @@ long strnlen_user(const char __user *s, long n)
+@@ -113,6 +115,7 @@ long strnlen_user(const char __user *s, long n)
might_fault();
__asm__ __volatile__(
" testl %0, %0\n"
" jz 3f\n"
" andl %0,%%ecx\n"
-@@ -208,6 +211,7 @@ long strnlen_user(const char __user *s, long n)
+@@ -121,6 +124,7 @@ long strnlen_user(const char __user *s, long n)
" subl %%ecx,%0\n"
" addl %0,%%eax\n"
"1:\n"
".section .fixup,\"ax\"\n"
"2: xorl %%eax,%%eax\n"
" jmp 1b\n"
-@@ -227,7 +231,7 @@ EXPORT_SYMBOL(strnlen_user);
+@@ -140,7 +144,7 @@ EXPORT_SYMBOL(strnlen_user);
#ifdef CONFIG_X86_INTEL_USERCOPY
static unsigned long
{
int d0, d1;
__asm__ __volatile__(
-@@ -239,36 +243,36 @@ __copy_user_intel(void __user *to, const void *from, unsigned long size)
+@@ -152,36 +156,36 @@ __copy_user_intel(void __user *to, const void *from, unsigned long size)
" .align 2,0x90\n"
"3: movl 0(%4), %%eax\n"
"4: movl 4(%4), %%edx\n"
" addl $-64, %0\n"
" addl $64, %4\n"
" addl $64, %3\n"
-@@ -278,10 +282,12 @@ __copy_user_intel(void __user *to, const void *from, unsigned long size)
+@@ -191,10 +195,12 @@ __copy_user_intel(void __user *to, const void *from, unsigned long size)
" shrl $2, %0\n"
" andl $3, %%eax\n"
" cld\n"
".section .fixup,\"ax\"\n"
"101: lea 0(%%eax,%0,4),%0\n"
" jmp 100b\n"
-@@ -334,46 +340,155 @@ __copy_user_intel(void __user *to, const void *from, unsigned long size)
+@@ -247,46 +253,155 @@ __copy_user_intel(void __user *to, const void *from, unsigned long size)
}
static unsigned long
" movl %%eax, 56(%3)\n"
" movl %%edx, 60(%3)\n"
" addl $-64, %0\n"
-@@ -385,9 +500,9 @@ __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size)
+@@ -298,9 +413,9 @@ __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size)
" shrl $2, %0\n"
" andl $3, %%eax\n"
" cld\n"
"8:\n"
".section .fixup,\"ax\"\n"
"9: lea 0(%%eax,%0,4),%0\n"
-@@ -434,47 +549,49 @@ __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size)
+@@ -347,47 +462,49 @@ __copy_user_zeroing_intel(void *to, const void __user *from, unsigned long size)
*/
static unsigned long __copy_user_zeroing_intel_nocache(void *to,
" movnti %%eax, 56(%3)\n"
" movnti %%edx, 60(%3)\n"
" addl $-64, %0\n"
-@@ -487,9 +604,9 @@ static unsigned long __copy_user_zeroing_intel_nocache(void *to,
+@@ -400,9 +517,9 @@ static unsigned long __copy_user_zeroing_intel_nocache(void *to,
" shrl $2, %0\n"
" andl $3, %%eax\n"
" cld\n"
"8:\n"
".section .fixup,\"ax\"\n"
"9: lea 0(%%eax,%0,4),%0\n"
-@@ -531,47 +648,49 @@ static unsigned long __copy_user_zeroing_intel_nocache(void *to,
+@@ -444,47 +561,49 @@ static unsigned long __copy_user_zeroing_intel_nocache(void *to,
}
static unsigned long __copy_user_intel_nocache(void *to,
" movnti %%eax, 56(%3)\n"
" movnti %%edx, 60(%3)\n"
" addl $-64, %0\n"
-@@ -584,9 +703,9 @@ static unsigned long __copy_user_intel_nocache(void *to,
+@@ -497,9 +616,9 @@ static unsigned long __copy_user_intel_nocache(void *to,
" shrl $2, %0\n"
" andl $3, %%eax\n"
" cld\n"
"8:\n"
".section .fixup,\"ax\"\n"
"9: lea 0(%%eax,%0,4),%0\n"
-@@ -629,32 +748,36 @@ static unsigned long __copy_user_intel_nocache(void *to,
+@@ -542,32 +661,36 @@ static unsigned long __copy_user_intel_nocache(void *to,
*/
unsigned long __copy_user_zeroing_intel(void *to, const void __user *from,
unsigned long size);
".section .fixup,\"ax\"\n" \
"5: addl %3,%0\n" \
" jmp 2b\n" \
-@@ -682,14 +805,14 @@ do { \
+@@ -595,14 +718,14 @@ do { \
" negl %0\n" \
" andl $7,%0\n" \
" subl %0,%3\n" \
"2:\n" \
".section .fixup,\"ax\"\n" \
"5: addl %3,%0\n" \
-@@ -775,9 +898,9 @@ survive:
+@@ -688,9 +811,9 @@ survive:
}
#endif
if (movsl_is_ok(to, from, n))
return n;
}
EXPORT_SYMBOL(__copy_to_user_ll);
-@@ -797,10 +920,9 @@ unsigned long __copy_from_user_ll_nozero(void *to, const void __user *from,
+@@ -710,10 +833,9 @@ unsigned long __copy_from_user_ll_nozero(void *to, const void __user *from,
unsigned long n)
{
if (movsl_is_ok(to, from, n))
return n;
}
EXPORT_SYMBOL(__copy_from_user_ll_nozero);
-@@ -827,65 +949,50 @@ unsigned long __copy_from_user_ll_nocache_nozero(void *to, const void __user *fr
+@@ -740,65 +862,50 @@ unsigned long __copy_from_user_ll_nocache_nozero(void *to, const void __user *fr
if (n > 64 && cpu_has_xmm2)
n = __copy_user_intel_nocache(to, from, n);
else
+EXPORT_SYMBOL(set_fs);
+#endif
diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
-index b7c2849..8633ad8 100644
+index 0d0326f..6a6155b 100644
--- a/arch/x86/lib/usercopy_64.c
+++ b/arch/x86/lib/usercopy_64.c
-@@ -42,6 +42,12 @@ long
- __strncpy_from_user(char *dst, const char __user *src, long count)
- {
- long res;
-+
-+#ifdef CONFIG_PAX_MEMORY_UDEREF
-+ if ((unsigned long)src < PAX_USER_SHADOW_BASE)
-+ src += PAX_USER_SHADOW_BASE;
-+#endif
-+
- __do_strncpy_from_user(dst, src, count, res);
- return res;
- }
-@@ -65,6 +71,12 @@ unsigned long __clear_user(void __user *addr, unsigned long size)
+@@ -16,6 +16,12 @@ unsigned long __clear_user(void __user *addr, unsigned long size)
{
long __d0;
might_fault();
/* no memory constraint because it doesn't change any memory gcc knows
about */
asm volatile(
-@@ -149,12 +161,20 @@ long strlen_user(const char __user *s)
+@@ -100,12 +106,20 @@ long strlen_user(const char __user *s)
}
EXPORT_SYMBOL(strlen_user);
}
EXPORT_SYMBOL(copy_in_user);
-@@ -164,7 +184,7 @@ EXPORT_SYMBOL(copy_in_user);
+@@ -115,7 +129,7 @@ EXPORT_SYMBOL(copy_in_user);
* it is not necessary to optimize tail handling.
*/
unsigned long
{
char c;
unsigned zero_len;
+@@ -132,3 +146,15 @@ copy_user_handle_tail(char *to, char *from, unsigned len, unsigned zerorest)
+ break;
+ return len;
+ }
++
++void copy_from_user_overflow(void)
++{
++ WARN(1, "Buffer overflow detected!\n");
++}
++EXPORT_SYMBOL(copy_from_user_overflow);
++
++void copy_to_user_overflow(void)
++{
++ WARN(1, "Buffer overflow detected!\n");
++}
++EXPORT_SYMBOL(copy_to_user_overflow);
diff --git a/arch/x86/mm/extable.c b/arch/x86/mm/extable.c
index 1fb85db..8b3540b 100644
--- a/arch/x86/mm/extable.c
extern u32 pnp_bios_is_utter_crap;
pnp_bios_is_utter_crap = 1;
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
-index f0b4caf..d92fd42 100644
+index 3ecfd1a..304d554 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -13,11 +13,18 @@
if (error_code & PF_WRITE) {
/* write, present and write, not present: */
if (unlikely(!(vma->vm_flags & VM_WRITE)))
-@@ -1005,18 +1197,32 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
+@@ -1005,18 +1197,33 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
{
struct vm_area_struct *vma;
struct task_struct *tsk;
+#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
+ if (!user_mode(regs) && address < 2 * PAX_USER_SHADOW_BASE) {
+ if (!search_exception_tables(regs->ip)) {
++ printk(KERN_ERR "PAX: please report this to pageexec@freemail.hu\n");
+ bad_area_nosemaphore(regs, error_code, address);
+ return;
+ }
/*
* Detect and handle instructions that would cause a page fault for
-@@ -1077,7 +1283,7 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
+@@ -1077,7 +1284,7 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
* User-mode registers count as a user access even for any
* potential system fault or CPU buglet:
*/
local_irq_enable();
error_code |= PF_USER;
} else {
-@@ -1132,6 +1338,11 @@ retry:
+@@ -1132,6 +1339,11 @@ retry:
might_sleep();
}
vma = find_vma(mm, address);
if (unlikely(!vma)) {
bad_area(regs, error_code, address);
-@@ -1143,18 +1354,24 @@ retry:
+@@ -1143,18 +1355,24 @@ retry:
bad_area(regs, error_code, address);
return;
}
if (unlikely(expand_stack(vma, address))) {
bad_area(regs, error_code, address);
return;
-@@ -1209,3 +1426,292 @@ good_area:
+@@ -1209,3 +1427,292 @@ good_area:
up_read(&mm->mmap_sem);
}
return 0;
diff --git a/arch/x86/mm/highmem_32.c b/arch/x86/mm/highmem_32.c
-index f4f29b1..5cac4fb 100644
+index 6f31ee5..8ee4164 100644
--- a/arch/x86/mm/highmem_32.c
+++ b/arch/x86/mm/highmem_32.c
@@ -44,7 +44,11 @@ void *kmap_atomic_prot(struct page *page, pgprot_t prot)
return (void *)vaddr;
diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c
-index 8ecbb4b..a269cab 100644
+index f6679a7..8f795a3 100644
--- a/arch/x86/mm/hugetlbpage.c
+++ b/arch/x86/mm/hugetlbpage.c
@@ -266,13 +266,20 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file,
}
static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
-@@ -308,10 +316,9 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
- {
- struct hstate *h = hstate_file(file);
+@@ -310,9 +318,8 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
struct mm_struct *mm = current->mm;
-- struct vm_area_struct *vma, *prev_vma;
-- unsigned long base = mm->mmap_base, addr = addr0;
-+ struct vm_area_struct *vma;
-+ unsigned long base = mm->mmap_base, addr;
+ struct vm_area_struct *vma;
+ unsigned long base = mm->mmap_base;
+- unsigned long addr = addr0;
++ unsigned long addr;
unsigned long largest_hole = mm->cached_hole_size;
-- int first_time = 1;
+- unsigned long start_addr;
/* don't allow allocations above current base */
if (mm->free_area_cache > base)
-@@ -321,14 +328,15 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
+@@ -322,16 +329,15 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
largest_hole = 0;
mm->free_area_cache = base;
}
-try_again:
-+
+- start_addr = mm->free_area_cache;
+
/* make sure it can fit in the remaining address space */
if (mm->free_area_cache < len)
goto fail;
/* either no address requested or can't fit in requested address hole */
- addr = (mm->free_area_cache - len) & huge_page_mask(h);
-+ addr = (mm->free_area_cache - len);
++ addr = mm->free_area_cache - len;
do {
+ addr &= huge_page_mask(h);
/*
* Lookup failure means no vma is above this address,
* i.e. return with success:
-@@ -341,46 +349,47 @@ try_again:
- * new region fits between prev_vma->vm_end and
- * vma->vm_start, use it:
- */
-- prev_vma = vma->vm_prev;
-- if (addr + len <= vma->vm_start &&
-- (!prev_vma || (addr >= prev_vma->vm_end))) {
+@@ -340,10 +346,10 @@ try_again:
+ if (!vma)
+ return addr;
+
+- if (addr + len <= vma->vm_start) {
+ if (check_heap_stack_gap(vma, addr, len)) {
/* remember the address as a hint for next time */
- mm->cached_hole_size = largest_hole;
- return (mm->free_area_cache = addr);
-- } else {
-- /* pull free_area_cache down to the first hole */
-- if (mm->free_area_cache == vma->vm_end) {
-- mm->free_area_cache = vma->vm_start;
-- mm->cached_hole_size = largest_hole;
-- }
+ mm->cached_hole_size = largest_hole;
+ return (mm->free_area_cache = addr);
-+ }
-+ /* pull free_area_cache down to the first hole */
-+ if (mm->free_area_cache == vma->vm_end) {
-+ mm->free_area_cache = vma->vm_start;
-+ mm->cached_hole_size = largest_hole;
- }
+ } else if (mm->free_area_cache == vma->vm_end) {
+ /* pull free_area_cache down to the first hole */
+ mm->free_area_cache = vma->vm_start;
+@@ -352,29 +358,34 @@ try_again:
/* remember the largest hole we saw so far */
if (addr + largest_hole < vma->vm_start)
- * if hint left us with no space for the requested
- * mapping then try again:
- */
-- if (first_time) {
+- if (start_addr != base) {
- mm->free_area_cache = base;
- largest_hole = 0;
-- first_time = 0;
- goto try_again;
- }
- /*
mm->cached_hole_size = ~0UL;
addr = hugetlb_get_unmapped_area_bottomup(file, addr0,
len, pgoff, flags);
-@@ -388,6 +397,7 @@ fail:
+@@ -382,6 +393,7 @@ fail:
/*
* Restore the topdown base:
*/
mm->free_area_cache = base;
mm->cached_hole_size = ~0UL;
-@@ -401,10 +411,19 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -395,10 +407,19 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
struct hstate *h = hstate_file(file);
struct mm_struct *mm = current->mm;
struct vm_area_struct *vma;
return -ENOMEM;
if (flags & MAP_FIXED) {
-@@ -416,8 +435,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -410,8 +431,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
if (addr) {
addr = ALIGN(addr, huge_page_size(h));
vma = find_vma(mm, addr);
}
if (mm->get_unmapped_area == arch_get_unmapped_area)
diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c
-index 6cabf65..77e9c1c 100644
+index 4f0cec7..00976ce 100644
--- a/arch/x86/mm/init.c
+++ b/arch/x86/mm/init.c
-@@ -17,6 +17,7 @@
+@@ -16,6 +16,8 @@
#include <asm/tlb.h>
#include <asm/proto.h>
#include <asm/dma.h> /* for MAX_DMA_PFN */
+#include <asm/desc.h>
++#include <asm/bios_ebda.h>
unsigned long __initdata pgt_buf_start;
unsigned long __meminitdata pgt_buf_end;
-@@ -33,7 +34,7 @@ int direct_gbpages
+@@ -32,7 +34,7 @@ int direct_gbpages
static void __init find_early_table_space(unsigned long end, int use_pse,
int use_gbpages)
{
phys_addr_t base;
puds = (end + PUD_SIZE - 1) >> PUD_SHIFT;
-@@ -314,8 +315,29 @@ unsigned long __init_refok init_memory_mapping(unsigned long start,
+@@ -311,10 +313,37 @@ unsigned long __init_refok init_memory_mapping(unsigned long start,
+ * Access has to be given to non-kernel-ram areas as well, these contain the PCI
+ * mmio resources as well as potential bios/acpi data regions.
*/
++
++#ifdef CONFIG_GRKERNSEC_KMEM
++static unsigned int ebda_start __read_only;
++static unsigned int ebda_end __read_only;
++#endif
++
int devmem_is_allowed(unsigned long pagenr)
{
+#ifdef CONFIG_GRKERNSEC_KMEM
+ if (!pagenr)
+ return 1;
+ /* allow EBDA */
-+ if ((0x9f000 >> PAGE_SHIFT) == pagenr)
++ if (pagenr >= ebda_start && pagenr < ebda_end)
+ return 1;
+#else
+ if (!pagenr)
if (iomem_is_exclusive(pagenr << PAGE_SHIFT))
return 0;
if (!page_is_ram(pagenr))
-@@ -374,6 +396,86 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end)
+@@ -371,8 +400,116 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end)
+ #endif
+ }
++#ifdef CONFIG_GRKERNSEC_KMEM
++static inline void gr_init_ebda(void)
++{
++ unsigned int ebda_addr;
++ unsigned int ebda_size = 0;
++
++ ebda_addr = get_bios_ebda();
++ if (ebda_addr) {
++ ebda_size = *(unsigned char *)phys_to_virt(ebda_addr);
++ ebda_size <<= 10;
++ }
++ if (ebda_addr && ebda_size) {
++ ebda_start = ebda_addr >> PAGE_SHIFT;
++ ebda_end = min((unsigned int)PAGE_ALIGN(ebda_addr + ebda_size), (unsigned int)0xa0000) >> PAGE_SHIFT;
++ } else {
++ ebda_start = 0x9f000 >> PAGE_SHIFT;
++ ebda_end = 0xa0000 >> PAGE_SHIFT;
++ }
++}
++#else
++static inline void gr_init_ebda(void) { }
++#endif
++
void free_initmem(void)
{
-+
+#ifdef CONFIG_PAX_KERNEXEC
+#ifdef CONFIG_X86_32
+ /* PaX: limit KERNEL_CS to actual size */
+ unsigned long addr, limit;
+ struct desc_struct d;
+ int cpu;
++#else
++ pgd_t *pgd;
++ pud_t *pud;
++ pmd_t *pmd;
++ unsigned long addr, end;
++#endif
++#endif
++
++ gr_init_ebda();
+
++#ifdef CONFIG_PAX_KERNEXEC
++#ifdef CONFIG_X86_32
+ limit = paravirt_enabled() ? ktva_ktla(0xffffffff) : (unsigned long)&_etext;
+ limit = (limit - 1UL) >> PAGE_SHIFT;
+
+#endif
+
+#else
-+ pgd_t *pgd;
-+ pud_t *pud;
-+ pmd_t *pmd;
-+ unsigned long addr, end;
-+
+ /* PaX: make kernel code/rodata read-only, rest non-executable */
+ for (addr = __START_KERNEL_map; addr < __START_KERNEL_map + KERNEL_IMAGE_SIZE; addr += PMD_SIZE) {
+ pgd = pgd_offset_k(addr);
(unsigned long)(&__init_begin),
(unsigned long)(&__init_end));
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c
-index 8663f6c..829ae76 100644
+index 575d86f..4987469 100644
--- a/arch/x86/mm/init_32.c
+++ b/arch/x86/mm/init_32.c
-@@ -74,36 +74,6 @@ static __init void *alloc_low_page(void)
+@@ -73,36 +73,6 @@ static __init void *alloc_low_page(void)
}
/*
* Create a page table and place a pointer to it in a middle page
* directory entry:
*/
-@@ -123,13 +93,28 @@ static pte_t * __init one_page_table_init(pmd_t *pmd)
+@@ -122,13 +92,28 @@ static pte_t * __init one_page_table_init(pmd_t *pmd)
page_table = (pte_t *)alloc_low_page();
paravirt_alloc_pte(&init_mm, __pa(page_table) >> PAGE_SHIFT);
pmd_t * __init populate_extra_pmd(unsigned long vaddr)
{
int pgd_idx = pgd_index(vaddr);
-@@ -203,6 +188,7 @@ page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base)
+@@ -202,6 +187,7 @@ page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base)
int pgd_idx, pmd_idx;
unsigned long vaddr;
pgd_t *pgd;
pmd_t *pmd;
pte_t *pte = NULL;
-@@ -212,8 +198,13 @@ page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base)
+@@ -211,8 +197,13 @@ page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base)
pgd = pgd_base + pgd_idx;
for ( ; (pgd_idx < PTRS_PER_PGD) && (vaddr != end); pgd++, pgd_idx++) {
for (; (pmd_idx < PTRS_PER_PMD) && (vaddr != end);
pmd++, pmd_idx++) {
pte = page_table_kmap_check(one_page_table_init(pmd),
-@@ -225,11 +216,20 @@ page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base)
+@@ -224,11 +215,20 @@ page_table_range_init(unsigned long start, unsigned long end, pgd_t *pgd_base)
}
}
}
/*
-@@ -246,9 +246,10 @@ kernel_physical_mapping_init(unsigned long start,
+@@ -245,9 +245,10 @@ kernel_physical_mapping_init(unsigned long start,
unsigned long last_map_addr = end;
unsigned long start_pfn, end_pfn;
pgd_t *pgd_base = swapper_pg_dir;
pmd_t *pmd;
pte_t *pte;
unsigned pages_2m, pages_4k;
-@@ -281,8 +282,13 @@ repeat:
+@@ -280,8 +281,13 @@ repeat:
pfn = start_pfn;
pgd_idx = pgd_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET);
pgd = pgd_base + pgd_idx;
if (pfn >= end_pfn)
continue;
-@@ -294,14 +300,13 @@ repeat:
+@@ -293,14 +299,13 @@ repeat:
#endif
for (; pmd_idx < PTRS_PER_PMD && pfn < end_pfn;
pmd++, pmd_idx++) {
pgprot_t prot = PAGE_KERNEL_LARGE;
/*
* first pass will use the same initial
-@@ -311,11 +316,7 @@ repeat:
+@@ -310,11 +315,7 @@ repeat:
__pgprot(PTE_IDENT_ATTR |
_PAGE_PSE);
prot = PAGE_KERNEL_LARGE_EXEC;
pages_2m++;
-@@ -332,7 +333,7 @@ repeat:
+@@ -331,7 +332,7 @@ repeat:
pte_ofs = pte_index((pfn<<PAGE_SHIFT) + PAGE_OFFSET);
pte += pte_ofs;
for (; pte_ofs < PTRS_PER_PTE && pfn < end_pfn;
pgprot_t prot = PAGE_KERNEL;
/*
* first pass will use the same initial
-@@ -340,7 +341,7 @@ repeat:
+@@ -339,7 +340,7 @@ repeat:
*/
pgprot_t init_prot = __pgprot(PTE_IDENT_ATTR);
prot = PAGE_KERNEL_EXEC;
pages_4k++;
-@@ -466,7 +467,7 @@ void __init native_pagetable_setup_start(pgd_t *base)
+@@ -465,7 +466,7 @@ void __init native_pagetable_setup_start(pgd_t *base)
pud = pud_offset(pgd, va);
pmd = pmd_offset(pud, va);
break;
pte = pte_offset_kernel(pmd, va);
-@@ -518,12 +519,10 @@ void __init early_ioremap_page_table_range_init(void)
+@@ -517,12 +518,10 @@ void __init early_ioremap_page_table_range_init(void)
static void __init pagetable_init(void)
{
EXPORT_SYMBOL_GPL(__supported_pte_mask);
/* user-defined highmem size */
-@@ -735,6 +734,12 @@ void __init mem_init(void)
+@@ -734,6 +733,12 @@ void __init mem_init(void)
pci_iommu_alloc();
#ifdef CONFIG_FLATMEM
BUG_ON(!mem_map);
#endif
-@@ -761,7 +766,7 @@ void __init mem_init(void)
+@@ -760,7 +765,7 @@ void __init mem_init(void)
reservedpages++;
codesize = (unsigned long) &_etext - (unsigned long) &_text;
initsize = (unsigned long) &__init_end - (unsigned long) &__init_begin;
printk(KERN_INFO "Memory: %luk/%luk available (%dk kernel code, "
-@@ -802,10 +807,10 @@ void __init mem_init(void)
+@@ -801,10 +806,10 @@ void __init mem_init(void)
((unsigned long)&__init_end -
(unsigned long)&__init_begin) >> 10,
((unsigned long)&_etext - (unsigned long)&_text) >> 10);
/*
-@@ -883,6 +888,7 @@ void set_kernel_text_rw(void)
+@@ -882,6 +887,7 @@ void set_kernel_text_rw(void)
if (!kernel_set_to_readonly)
return;
pr_debug("Set kernel text: %lx - %lx for read write\n",
start, start+size);
-@@ -897,6 +903,7 @@ void set_kernel_text_ro(void)
+@@ -896,6 +902,7 @@ void set_kernel_text_ro(void)
if (!kernel_set_to_readonly)
return;
pr_debug("Set kernel text: %lx - %lx for read only\n",
start, start+size);
-@@ -925,6 +932,7 @@ void mark_rodata_ro(void)
+@@ -924,6 +931,7 @@ void mark_rodata_ro(void)
unsigned long start = PFN_ALIGN(_text);
unsigned long size = PFN_ALIGN(_etext) - start;
printk(KERN_INFO "Write protecting the kernel text: %luk\n",
size >> 10);
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
-index 436a030..4f97ffc 100644
+index fc18be0..e539653 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
-@@ -75,7 +75,7 @@ early_param("gbpages", parse_direct_gbpages_on);
+@@ -74,7 +74,7 @@ early_param("gbpages", parse_direct_gbpages_on);
* around without checking the pgd every time.
*/
EXPORT_SYMBOL_GPL(__supported_pte_mask);
int force_personality32;
-@@ -108,12 +108,22 @@ void sync_global_pgds(unsigned long start, unsigned long end)
+@@ -107,12 +107,22 @@ void sync_global_pgds(unsigned long start, unsigned long end)
for (address = start; address <= end; address += PGDIR_SIZE) {
const pgd_t *pgd_ref = pgd_offset_k(address);
list_for_each_entry(page, &pgd_list, lru) {
pgd_t *pgd;
spinlock_t *pgt_lock;
-@@ -122,6 +132,7 @@ void sync_global_pgds(unsigned long start, unsigned long end)
+@@ -121,6 +131,7 @@ void sync_global_pgds(unsigned long start, unsigned long end)
/* the pgt_lock only for Xen */
pgt_lock = &pgd_page_get_mm(page)->page_table_lock;
spin_lock(pgt_lock);
if (pgd_none(*pgd))
set_pgd(pgd, *pgd_ref);
-@@ -129,7 +140,10 @@ void sync_global_pgds(unsigned long start, unsigned long end)
+@@ -128,7 +139,10 @@ void sync_global_pgds(unsigned long start, unsigned long end)
BUG_ON(pgd_page_vaddr(*pgd)
!= pgd_page_vaddr(*pgd_ref));
}
spin_unlock(&pgd_lock);
}
-@@ -162,7 +176,7 @@ static pud_t *fill_pud(pgd_t *pgd, unsigned long vaddr)
+@@ -161,7 +175,7 @@ static pud_t *fill_pud(pgd_t *pgd, unsigned long vaddr)
{
if (pgd_none(*pgd)) {
pud_t *pud = (pud_t *)spp_getpage();
if (pud != pud_offset(pgd, 0))
printk(KERN_ERR "PAGETABLE BUG #00! %p <-> %p\n",
pud, pud_offset(pgd, 0));
-@@ -174,7 +188,7 @@ static pmd_t *fill_pmd(pud_t *pud, unsigned long vaddr)
+@@ -173,7 +187,7 @@ static pmd_t *fill_pmd(pud_t *pud, unsigned long vaddr)
{
if (pud_none(*pud)) {
pmd_t *pmd = (pmd_t *) spp_getpage();
if (pmd != pmd_offset(pud, 0))
printk(KERN_ERR "PAGETABLE BUG #01! %p <-> %p\n",
pmd, pmd_offset(pud, 0));
-@@ -203,7 +217,9 @@ void set_pte_vaddr_pud(pud_t *pud_page, unsigned long vaddr, pte_t new_pte)
+@@ -202,7 +216,9 @@ void set_pte_vaddr_pud(pud_t *pud_page, unsigned long vaddr, pte_t new_pte)
pmd = fill_pmd(pud, vaddr);
pte = fill_pte(pmd, vaddr);
/*
* It's enough to flush this one mapping.
-@@ -262,14 +278,12 @@ static void __init __init_extra_mapping(unsigned long phys, unsigned long size,
+@@ -261,14 +277,12 @@ static void __init __init_extra_mapping(unsigned long phys, unsigned long size,
pgd = pgd_offset_k((unsigned long)__va(phys));
if (pgd_none(*pgd)) {
pud = (pud_t *) spp_getpage();
}
pmd = pmd_offset(pud, phys);
BUG_ON(!pmd_none(*pmd));
-@@ -330,7 +344,7 @@ static __ref void *alloc_low_page(unsigned long *phys)
+@@ -329,7 +343,7 @@ static __ref void *alloc_low_page(unsigned long *phys)
if (pfn >= pgt_buf_top)
panic("alloc_low_page: ran out of memory");
clear_page(adr);
*phys = pfn * PAGE_SIZE;
return adr;
-@@ -346,7 +360,7 @@ static __ref void *map_low_page(void *virt)
+@@ -345,7 +359,7 @@ static __ref void *map_low_page(void *virt)
phys = __pa(virt);
left = phys & (PAGE_SIZE - 1);
adr = (void *)(((unsigned long)adr) | left);
return adr;
-@@ -546,7 +560,7 @@ phys_pud_init(pud_t *pud_page, unsigned long addr, unsigned long end,
+@@ -545,7 +559,7 @@ phys_pud_init(pud_t *pud_page, unsigned long addr, unsigned long end,
unmap_low_page(pmd);
spin_lock(&init_mm.page_table_lock);
spin_unlock(&init_mm.page_table_lock);
}
__flush_tlb_all();
-@@ -592,7 +606,7 @@ kernel_physical_mapping_init(unsigned long start,
+@@ -591,7 +605,7 @@ kernel_physical_mapping_init(unsigned long start,
unmap_low_page(pud);
spin_lock(&init_mm.page_table_lock);
spin_unlock(&init_mm.page_table_lock);
pgd_changed = true;
}
-@@ -684,6 +698,12 @@ void __init mem_init(void)
+@@ -683,6 +697,12 @@ void __init mem_init(void)
pci_iommu_alloc();
/* clear_bss() already clear the empty_zero_page */
reservedpages = 0;
-@@ -844,8 +864,8 @@ int kern_addr_valid(unsigned long addr)
+@@ -843,8 +863,8 @@ int kern_addr_valid(unsigned long addr)
static struct vm_area_struct gate_vma = {
.vm_start = VSYSCALL_START,
.vm_end = VSYSCALL_START + (VSYSCALL_MAPPED_PAGES * PAGE_SIZE),
};
struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
-@@ -879,7 +899,7 @@ int in_gate_area_no_mm(unsigned long addr)
+@@ -878,7 +898,7 @@ int in_gate_area_no_mm(unsigned long addr)
const char *arch_vma_name(struct vm_area_struct *vma)
{
p += get_opcode(p, &opcode);
for (i = 0; i < ARRAY_SIZE(imm_wop); i++)
diff --git a/arch/x86/mm/pgtable.c b/arch/x86/mm/pgtable.c
-index 8573b83..7d9628f 100644
+index 8573b83..4f3ed7e 100644
--- a/arch/x86/mm/pgtable.c
+++ b/arch/x86/mm/pgtable.c
-@@ -84,10 +84,60 @@ static inline void pgd_list_del(pgd_t *pgd)
+@@ -84,10 +84,64 @@ static inline void pgd_list_del(pgd_t *pgd)
list_del(&page->lru);
}
+#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
+pgdval_t clone_pgd_mask __read_only = ~_PAGE_PRESENT;
-+void __shadow_user_pgds(pgd_t *dst, const pgd_t *src, int count)
++void __shadow_user_pgds(pgd_t *dst, const pgd_t *src)
+{
++ unsigned int count = USER_PGD_PTRS;
+
+ while (count--)
+ *dst++ = __pgd((pgd_val(*src++) | (_PAGE_NX & __supported_pte_mask)) & ~_PAGE_USER);
+}
+#endif
-
++
+#ifdef CONFIG_PAX_PER_CPU_PGD
-+void __clone_user_pgds(pgd_t *dst, const pgd_t *src, int count)
++void __clone_user_pgds(pgd_t *dst, const pgd_t *src)
+{
++ unsigned int count = USER_PGD_PTRS;
++
+ while (count--) {
+ pgd_t pgd;
+
static void pgd_set_mm(pgd_t *pgd, struct mm_struct *mm)
{
BUILD_BUG_ON(sizeof(virt_to_page(pgd)->index) < sizeof(mm));
-@@ -128,6 +178,7 @@ static void pgd_dtor(pgd_t *pgd)
+@@ -128,6 +182,7 @@ static void pgd_dtor(pgd_t *pgd)
pgd_list_del(pgd);
spin_unlock(&pgd_lock);
}
/*
* List of all pgd's needed for non-PAE so it can invalidate entries
-@@ -140,7 +191,7 @@ static void pgd_dtor(pgd_t *pgd)
+@@ -140,7 +195,7 @@ static void pgd_dtor(pgd_t *pgd)
* -- wli
*/
/*
* In PAE mode, we need to do a cr3 reload (=tlb flush) when
* updating the top-level pagetable entries to guarantee the
-@@ -152,7 +203,7 @@ static void pgd_dtor(pgd_t *pgd)
+@@ -152,7 +207,7 @@ static void pgd_dtor(pgd_t *pgd)
* not shared between pagetables (!SHARED_KERNEL_PMDS), we allocate
* and initialize the kernel pmds here.
*/
void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd)
{
-@@ -170,36 +221,38 @@ void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd)
+@@ -170,36 +225,38 @@ void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd)
*/
flush_tlb_mm(mm);
}
return -ENOMEM;
}
-@@ -212,51 +265,55 @@ static int preallocate_pmds(pmd_t *pmds[])
+@@ -212,51 +269,55 @@ static int preallocate_pmds(pmd_t *pmds[])
* preallocate which never got a corresponding vma will need to be
* freed manually.
*/
pgd = (pgd_t *)__get_free_page(PGALLOC_GFP);
-@@ -265,11 +322,11 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
+@@ -265,11 +326,11 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
mm->pgd = pgd;
/*
* Make sure that pre-populating the pmds is atomic with
-@@ -279,14 +336,14 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
+@@ -279,14 +340,14 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
spin_lock(&pgd_lock);
pgd_ctor(mm, pgd);
out_free_pgd:
free_page((unsigned long)pgd);
out:
-@@ -295,7 +352,7 @@ out:
+@@ -295,7 +356,7 @@ out:
void pgd_free(struct mm_struct *mm, pgd_t *pgd)
{
paravirt_pgd_free(mm, pgd);
free_page((unsigned long)pgd);
diff --git a/arch/x86/mm/pgtable_32.c b/arch/x86/mm/pgtable_32.c
-index cac7184..09a39fa 100644
+index a69bcb8..19068ab 100644
--- a/arch/x86/mm/pgtable_32.c
+++ b/arch/x86/mm/pgtable_32.c
-@@ -48,10 +48,13 @@ void set_pte_vaddr(unsigned long vaddr, pte_t pteval)
+@@ -47,10 +47,13 @@ void set_pte_vaddr(unsigned long vaddr, pte_t pteval)
return;
}
pte = pte_offset_kernel(pmd, vaddr);
EXPORT_SYMBOL_GPL(leave_mm);
diff --git a/arch/x86/net/bpf_jit.S b/arch/x86/net/bpf_jit.S
-index 6687022..ceabcfa 100644
+index 877b9a1..a8ecf42 100644
--- a/arch/x86/net/bpf_jit.S
+++ b/arch/x86/net/bpf_jit.S
@@ -9,6 +9,7 @@
/*
* Calling convention :
-@@ -35,6 +36,7 @@ sk_load_word:
+@@ -35,6 +36,7 @@ sk_load_word_positive_offset:
jle bpf_slow_path_word
mov (SKBDATA,%rsi),%eax
bswap %eax /* ntohl() */
+ pax_force_retaddr
ret
-
-@@ -53,6 +55,7 @@ sk_load_half:
+ sk_load_half:
+@@ -52,6 +54,7 @@ sk_load_half_positive_offset:
jle bpf_slow_path_half
movzwl (SKBDATA,%rsi),%eax
rol $8,%ax # ntohs()
+ pax_force_retaddr
ret
- sk_load_byte_ind:
-@@ -66,6 +69,7 @@ sk_load_byte:
+ sk_load_byte:
+@@ -66,6 +69,7 @@ sk_load_byte_positive_offset:
cmp %esi,%r9d /* if (offset >= hlen) goto bpf_slow_path_byte */
jle bpf_slow_path_byte
movzbl (SKBDATA,%rsi),%eax
ret
/**
-@@ -82,6 +86,7 @@ ENTRY(sk_load_byte_msh)
+@@ -87,6 +91,7 @@ sk_load_byte_msh_positive_offset:
movzbl (SKBDATA,%rsi),%ebx
and $15,%bl
shl $2,%bl
-+ pax_force_retaddr
- ret
- CFI_ENDPROC
- ENDPROC(sk_load_byte_msh)
-@@ -91,6 +96,7 @@ bpf_error:
- xor %eax,%eax
- mov -8(%rbp),%rbx
- leaveq
+ pax_force_retaddr
ret
/* rsi contains offset and can be scratched */
-@@ -113,6 +119,7 @@ bpf_slow_path_word:
+@@ -109,6 +114,7 @@ bpf_slow_path_word:
js bpf_error
mov -12(%rbp),%eax
bswap %eax
ret
bpf_slow_path_half:
-@@ -121,12 +128,14 @@ bpf_slow_path_half:
+@@ -117,12 +123,14 @@ bpf_slow_path_half:
mov -12(%rbp),%ax
rol $8,%ax
movzwl %ax,%eax
ret
bpf_slow_path_byte_msh:
-@@ -137,4 +146,5 @@ bpf_slow_path_byte_msh:
+@@ -133,6 +141,7 @@ bpf_slow_path_byte_msh:
and $15,%al
shl $2,%al
xchg %eax,%ebx
++ pax_force_retaddr
+ ret
+
+ #define sk_negative_common(SIZE) \
+@@ -157,6 +166,7 @@ sk_load_word_negative_offset:
+ sk_negative_common(4)
+ mov (%rax), %eax
+ bswap %eax
++ pax_force_retaddr
+ ret
+
+ bpf_slow_path_half_neg:
+@@ -168,6 +178,7 @@ sk_load_half_negative_offset:
+ mov (%rax),%ax
+ rol $8,%ax
+ movzwl %ax,%eax
++ pax_force_retaddr
+ ret
+
+ bpf_slow_path_byte_neg:
+@@ -177,6 +188,7 @@ sk_load_byte_negative_offset:
+ .globl sk_load_byte_negative_offset
+ sk_negative_common(1)
+ movzbl (%rax), %eax
++ pax_force_retaddr
+ ret
+
+ bpf_slow_path_byte_msh_neg:
+@@ -190,6 +202,7 @@ sk_load_byte_msh_negative_offset:
+ and $15,%al
+ shl $2,%al
+ xchg %eax,%ebx
++ pax_force_retaddr
+ ret
+
+ bpf_error:
+@@ -197,4 +210,5 @@ bpf_error:
+ xor %eax,%eax
+ mov -8(%rbp),%rbx
+ leaveq
+ pax_force_retaddr
ret
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
-index 5a5b6e4..201d42e 100644
+index 0597f95..a12c36e 100644
--- a/arch/x86/net/bpf_jit_comp.c
+++ b/arch/x86/net/bpf_jit_comp.c
-@@ -117,6 +117,10 @@ static inline void bpf_flush_icache(void *start, void *end)
+@@ -120,6 +120,11 @@ static inline void bpf_flush_icache(void *start, void *end)
set_fs(old_fs);
}
+ struct work_struct work;
+ void *image;
+};
++
+ #define CHOOSE_LOAD_FUNC(K, func) \
+ ((int)K < 0 ? ((int)K >= SKF_LL_OFF ? func##_negative_offset : func) : func##_positive_offset)
- void bpf_jit_compile(struct sk_filter *fp)
- {
-@@ -141,6 +145,10 @@ void bpf_jit_compile(struct sk_filter *fp)
+@@ -146,6 +151,10 @@ void bpf_jit_compile(struct sk_filter *fp)
if (addrs == NULL)
return;
/* Before first pass, make a rough estimation of addrs[]
* each bpf instruction is translated to less than 64 bytes
*/
-@@ -477,7 +485,7 @@ void bpf_jit_compile(struct sk_filter *fp)
- common_load: seen |= SEEN_DATAREF;
- if ((int)K < 0) {
- /* Abort the JIT because __load_pointer() is needed. */
-- goto out;
-+ goto error;
- }
- t_offset = func - (image + addrs[i]);
- EMIT1_off32(0xbe, K); /* mov imm32,%esi */
-@@ -492,7 +500,7 @@ common_load: seen |= SEEN_DATAREF;
- case BPF_S_LDX_B_MSH:
- if ((int)K < 0) {
- /* Abort the JIT because __load_pointer() is needed. */
-- goto out;
-+ goto error;
- }
- seen |= SEEN_DATAREF | SEEN_XREG;
- t_offset = sk_load_byte_msh - (image + addrs[i]);
-@@ -582,17 +590,18 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];
+@@ -589,17 +598,18 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];
break;
default:
/* hmm, too complex filter, give up with jit compiler */
}
proglen += ilen;
addrs[i] = proglen;
-@@ -613,11 +622,9 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];
+@@ -620,11 +630,9 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];
break;
}
if (proglen == oldproglen) {
}
oldproglen = proglen;
}
-@@ -633,7 +640,10 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];
+@@ -640,7 +648,10 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];
bpf_flush_icache(image, image + proglen);
fp->bpf_func = (void *)image;
out:
kfree(addrs);
return;
-@@ -641,18 +651,20 @@ out:
+@@ -648,18 +659,20 @@ out:
static void jit_free_defer(struct work_struct *arg)
{
}
}
diff --git a/arch/x86/oprofile/backtrace.c b/arch/x86/oprofile/backtrace.c
-index bff89df..377758a 100644
+index d6aa6e8..266395a 100644
--- a/arch/x86/oprofile/backtrace.c
+++ b/arch/x86/oprofile/backtrace.c
@@ -46,11 +46,11 @@ dump_user_backtrace_32(struct stack_frame_ia32 *head)
if (depth)
dump_trace(NULL, regs, (unsigned long *)stack, 0,
diff --git a/arch/x86/pci/mrst.c b/arch/x86/pci/mrst.c
-index cb29191..036766d 100644
+index 140942f..8a5cc55 100644
--- a/arch/x86/pci/mrst.c
+++ b/arch/x86/pci/mrst.c
-@@ -234,7 +234,9 @@ int __init pci_mrst_init(void)
- printk(KERN_INFO "Moorestown platform detected, using MRST PCI ops\n");
+@@ -238,7 +238,9 @@ int __init pci_mrst_init(void)
+ printk(KERN_INFO "Intel MID platform detected, using MID PCI ops\n");
pci_mmcfg_late_init();
pcibios_enable_irq = mrst_pci_irq_enable;
- pci_root_ops = pci_mrst_ops;
+ pax_open_kernel();
+ memcpy((void *)&pci_root_ops, &pci_mrst_ops, sizeof(pci_mrst_ops));
+ pax_close_kernel();
+ pci_soc_mode = 1;
/* Continue with standard init */
return 1;
- }
diff --git a/arch/x86/pci/pcbios.c b/arch/x86/pci/pcbios.c
index da8fe05..7ee6704 100644
--- a/arch/x86/pci/pcbios.c
ret
ENDPROC(efi_call6)
diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c
-index 475e2cd..1b8e708 100644
+index e31bcd8..f12dc46 100644
--- a/arch/x86/platform/mrst/mrst.c
+++ b/arch/x86/platform/mrst/mrst.c
-@@ -76,18 +76,20 @@ struct sfi_rtc_table_entry sfi_mrtc_array[SFI_MRTC_MAX];
+@@ -78,13 +78,15 @@ struct sfi_rtc_table_entry sfi_mrtc_array[SFI_MRTC_MAX];
EXPORT_SYMBOL_GPL(sfi_mrtc_array);
int sfi_mrtc_num;
-static void mrst_power_off(void)
+static __noreturn void mrst_power_off(void)
{
- if (__mrst_cpu_chip == MRST_CPU_CHIP_LINCROFT)
- intel_scu_ipc_simple_command(IPCMSG_COLD_RESET, 1);
+ BUG();
}
-static void mrst_reboot(void)
+static __noreturn void mrst_reboot(void)
{
- if (__mrst_cpu_chip == MRST_CPU_CHIP_LINCROFT)
- intel_scu_ipc_simple_command(IPCMSG_COLD_RESET, 0);
- else
- intel_scu_ipc_simple_command(IPCMSG_COLD_BOOT, 0);
+ intel_scu_ipc_simple_command(IPCMSG_COLD_BOOT, 0);
+ BUG();
}
/* parse all the mtimer info to a static mtimer array */
-diff --git a/arch/x86/platform/uv/tlb_uv.c b/arch/x86/platform/uv/tlb_uv.c
-index 3ae0e61..4202d86 100644
---- a/arch/x86/platform/uv/tlb_uv.c
-+++ b/arch/x86/platform/uv/tlb_uv.c
-@@ -1424,6 +1424,8 @@ static ssize_t tunables_read(struct file *file, char __user *userbuf,
- * 0: display meaning of the statistics
- */
- static ssize_t ptc_proc_write(struct file *file, const char __user *user,
-+ size_t count, loff_t *data) __size_overflow(3);
-+static ssize_t ptc_proc_write(struct file *file, const char __user *user,
- size_t count, loff_t *data)
- {
- int cpu;
-@@ -1539,6 +1541,8 @@ static int parse_tunables_write(struct bau_control *bcp, char *instr,
- * Handle a write to debugfs. (/sys/kernel/debug/sgi_uv/bau_tunables)
- */
- static ssize_t tunables_write(struct file *file, const char __user *user,
-+ size_t count, loff_t *data) __size_overflow(3);
-+static ssize_t tunables_write(struct file *file, const char __user *user,
- size_t count, loff_t *data)
- {
- int cpu;
diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c
-index f10c0af..3ec1f95 100644
+index 218cdb1..fd55c08 100644
--- a/arch/x86/power/cpu.c
+++ b/arch/x86/power/cpu.c
-@@ -131,7 +131,7 @@ static void do_fpu_end(void)
+@@ -132,7 +132,7 @@ static void do_fpu_end(void)
static void fix_processor_context(void)
{
int cpu = smp_processor_id();
set_tss_desc(cpu, t); /*
* This just modifies memory; should not be
-@@ -141,7 +141,9 @@ static void fix_processor_context(void)
+@@ -142,7 +142,9 @@ static void fix_processor_context(void)
*/
#ifdef CONFIG_X86_64
syscall_init(); /* This sets MSR_*STAR and related */
#endif
+diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c
+index b685296..0180fa9 100644
+--- a/arch/x86/tools/relocs.c
++++ b/arch/x86/tools/relocs.c
+@@ -12,10 +12,13 @@
+ #include <regex.h>
+ #include <tools/le_byteshift.h>
+
++#include "../../../include/generated/autoconf.h"
++
+ static void die(char *fmt, ...);
+
+ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+ static Elf32_Ehdr ehdr;
++static Elf32_Phdr *phdr;
+ static unsigned long reloc_count, reloc_idx;
+ static unsigned long *relocs;
+ static unsigned long reloc16_count, reloc16_idx;
+@@ -323,9 +326,39 @@ static void read_ehdr(FILE *fp)
+ }
+ }
+
++static void read_phdrs(FILE *fp)
++{
++ unsigned int i;
++
++ phdr = calloc(ehdr.e_phnum, sizeof(Elf32_Phdr));
++ if (!phdr) {
++ die("Unable to allocate %d program headers\n",
++ ehdr.e_phnum);
++ }
++ if (fseek(fp, ehdr.e_phoff, SEEK_SET) < 0) {
++ die("Seek to %d failed: %s\n",
++ ehdr.e_phoff, strerror(errno));
++ }
++ if (fread(phdr, sizeof(*phdr), ehdr.e_phnum, fp) != ehdr.e_phnum) {
++ die("Cannot read ELF program headers: %s\n",
++ strerror(errno));
++ }
++ for(i = 0; i < ehdr.e_phnum; i++) {
++ phdr[i].p_type = elf32_to_cpu(phdr[i].p_type);
++ phdr[i].p_offset = elf32_to_cpu(phdr[i].p_offset);
++ phdr[i].p_vaddr = elf32_to_cpu(phdr[i].p_vaddr);
++ phdr[i].p_paddr = elf32_to_cpu(phdr[i].p_paddr);
++ phdr[i].p_filesz = elf32_to_cpu(phdr[i].p_filesz);
++ phdr[i].p_memsz = elf32_to_cpu(phdr[i].p_memsz);
++ phdr[i].p_flags = elf32_to_cpu(phdr[i].p_flags);
++ phdr[i].p_align = elf32_to_cpu(phdr[i].p_align);
++ }
++
++}
++
+ static void read_shdrs(FILE *fp)
+ {
+- int i;
++ unsigned int i;
+ Elf32_Shdr shdr;
+
+ secs = calloc(ehdr.e_shnum, sizeof(struct section));
+@@ -360,7 +393,7 @@ static void read_shdrs(FILE *fp)
+
+ static void read_strtabs(FILE *fp)
+ {
+- int i;
++ unsigned int i;
+ for (i = 0; i < ehdr.e_shnum; i++) {
+ struct section *sec = &secs[i];
+ if (sec->shdr.sh_type != SHT_STRTAB) {
+@@ -385,7 +418,7 @@ static void read_strtabs(FILE *fp)
+
+ static void read_symtabs(FILE *fp)
+ {
+- int i,j;
++ unsigned int i,j;
+ for (i = 0; i < ehdr.e_shnum; i++) {
+ struct section *sec = &secs[i];
+ if (sec->shdr.sh_type != SHT_SYMTAB) {
+@@ -418,7 +451,9 @@ static void read_symtabs(FILE *fp)
+
+ static void read_relocs(FILE *fp)
+ {
+- int i,j;
++ unsigned int i,j;
++ uint32_t base;
++
+ for (i = 0; i < ehdr.e_shnum; i++) {
+ struct section *sec = &secs[i];
+ if (sec->shdr.sh_type != SHT_REL) {
+@@ -438,9 +473,22 @@ static void read_relocs(FILE *fp)
+ die("Cannot read symbol table: %s\n",
+ strerror(errno));
+ }
++ base = 0;
++
++#if defined(CONFIG_PAX_KERNEXEC) && defined(CONFIG_X86_32)
++ for (j = 0; j < ehdr.e_phnum; j++) {
++ if (phdr[j].p_type != PT_LOAD )
++ continue;
++ if (secs[sec->shdr.sh_info].shdr.sh_offset < phdr[j].p_offset || secs[sec->shdr.sh_info].shdr.sh_offset >= phdr[j].p_offset + phdr[j].p_filesz)
++ continue;
++ base = CONFIG_PAGE_OFFSET + phdr[j].p_paddr - phdr[j].p_vaddr;
++ break;
++ }
++#endif
++
+ for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Rel); j++) {
+ Elf32_Rel *rel = &sec->reltab[j];
+- rel->r_offset = elf32_to_cpu(rel->r_offset);
++ rel->r_offset = elf32_to_cpu(rel->r_offset) + base;
+ rel->r_info = elf32_to_cpu(rel->r_info);
+ }
+ }
+@@ -449,13 +497,13 @@ static void read_relocs(FILE *fp)
+
+ static void print_absolute_symbols(void)
+ {
+- int i;
++ unsigned int i;
+ printf("Absolute symbols\n");
+ printf(" Num: Value Size Type Bind Visibility Name\n");
+ for (i = 0; i < ehdr.e_shnum; i++) {
+ struct section *sec = &secs[i];
+ char *sym_strtab;
+- int j;
++ unsigned int j;
+
+ if (sec->shdr.sh_type != SHT_SYMTAB) {
+ continue;
+@@ -482,7 +530,7 @@ static void print_absolute_symbols(void)
+
+ static void print_absolute_relocs(void)
+ {
+- int i, printed = 0;
++ unsigned int i, printed = 0;
+
+ for (i = 0; i < ehdr.e_shnum; i++) {
+ struct section *sec = &secs[i];
+@@ -551,7 +599,7 @@ static void print_absolute_relocs(void)
+ static void walk_relocs(void (*visit)(Elf32_Rel *rel, Elf32_Sym *sym),
+ int use_real_mode)
+ {
+- int i;
++ unsigned int i;
+ /* Walk through the relocations */
+ for (i = 0; i < ehdr.e_shnum; i++) {
+ char *sym_strtab;
+@@ -581,6 +629,22 @@ static void walk_relocs(void (*visit)(Elf32_Rel *rel, Elf32_Sym *sym),
+ sym = &sh_symtab[ELF32_R_SYM(rel->r_info)];
+ r_type = ELF32_R_TYPE(rel->r_info);
+
++ /* Don't relocate actual per-cpu variables, they are absolute indices, not addresses */
++ if (!strcmp(sec_name(sym->st_shndx), ".data..percpu") && strcmp(sym_name(sym_strtab, sym), "__per_cpu_load"))
++ continue;
++
++#if defined(CONFIG_PAX_KERNEXEC) && defined(CONFIG_X86_32)
++ /* Don't relocate actual code, they are relocated implicitly by the base address of KERNEL_CS */
++ if (!strcmp(sec_name(sym->st_shndx), ".module.text") && !strcmp(sym_name(sym_strtab, sym), "_etext"))
++ continue;
++ if (!strcmp(sec_name(sym->st_shndx), ".init.text"))
++ continue;
++ if (!strcmp(sec_name(sym->st_shndx), ".exit.text"))
++ continue;
++ if (!strcmp(sec_name(sym->st_shndx), ".text") && strcmp(sym_name(sym_strtab, sym), "__LOAD_PHYSICAL_ADDR"))
++ continue;
++#endif
++
+ shn_abs = sym->st_shndx == SHN_ABS;
+
+ switch (r_type) {
+@@ -674,7 +738,7 @@ static int write32(unsigned int v, FILE *f)
+
+ static void emit_relocs(int as_text, int use_real_mode)
+ {
+- int i;
++ unsigned int i;
+ /* Count how many relocations I have and allocate space for them. */
+ reloc_count = 0;
+ walk_relocs(count_reloc, use_real_mode);
+@@ -801,6 +865,7 @@ int main(int argc, char **argv)
+ fname, strerror(errno));
+ }
+ read_ehdr(fp);
++ read_phdrs(fp);
+ read_shdrs(fp);
+ read_strtabs(fp);
+ read_symtabs(fp);
diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile
-index 5d17950..2253fc9 100644
+index fd14be1..e3c79c0 100644
--- a/arch/x86/vdso/Makefile
+++ b/arch/x86/vdso/Makefile
-@@ -137,7 +137,7 @@ quiet_cmd_vdso = VDSO $@
+@@ -181,7 +181,7 @@ quiet_cmd_vdso = VDSO $@
-Wl,-T,$(filter %.lds,$^) $(filter %.o,$^) && \
sh $(srctree)/$(src)/checkundef.sh '$(NM)' '$@'
#
diff --git a/arch/x86/vdso/vdso32-setup.c b/arch/x86/vdso/vdso32-setup.c
-index 468d591..8e80a0a 100644
+index 66e6d93..587f435 100644
--- a/arch/x86/vdso/vdso32-setup.c
+++ b/arch/x86/vdso/vdso32-setup.c
@@ -25,6 +25,7 @@
gate_vma.vm_flags = VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC;
- gate_vma.vm_page_prot = __P101;
+ gate_vma.vm_page_prot = vm_get_page_prot(gate_vma.vm_flags);
- /*
- * Make sure the vDSO gets into every core dump.
- * Dumping its contents makes post-mortem fully interpretable later
-@@ -331,14 +332,14 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
+
+ return 0;
+ }
+@@ -330,14 +331,14 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
if (compat)
addr = VDSO_HIGH_BASE;
else {
if (compat_uses_vma || !compat) {
/*
-@@ -361,11 +362,11 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
+@@ -353,11 +354,11 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
}
current_thread_info()->sysenter_return =
up_write(&mm->mmap_sem);
-@@ -412,8 +413,14 @@ __initcall(ia32_binfmt_init);
+@@ -404,8 +405,14 @@ __initcall(ia32_binfmt_init);
const char *arch_vma_name(struct vm_area_struct *vma)
{
return NULL;
}
-@@ -423,7 +430,7 @@ struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
+@@ -415,7 +422,7 @@ struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
* Check to see if the corresponding task was created in compat vdso
* mode.
*/
return NULL;
}
diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
-index 153407c..611cba9 100644
+index 00aaf04..4a26505 100644
--- a/arch/x86/vdso/vma.c
+++ b/arch/x86/vdso/vma.c
@@ -16,8 +16,6 @@
extern char vdso_start[], vdso_end[];
extern unsigned short vdso_sync_cpuid;
-@@ -96,7 +94,6 @@ static unsigned long vdso_addr(unsigned long start, unsigned len)
+@@ -141,7 +139,6 @@ static unsigned long vdso_addr(unsigned long start, unsigned len)
* unaligned here as a result of stack start randomization.
*/
addr = PAGE_ALIGN(addr);
return addr;
}
-@@ -106,40 +103,35 @@ static unsigned long vdso_addr(unsigned long start, unsigned len)
- int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
+@@ -154,30 +151,31 @@ static int setup_additional_pages(struct linux_binprm *bprm,
+ unsigned size)
{
struct mm_struct *mm = current->mm;
- unsigned long addr;
+ if (!(mm->pax_flags & MF_PAX_RANDMMAP))
+#endif
+
- addr = vdso_addr(mm->start_stack, vdso_size);
+ addr = vdso_addr(mm->start_stack, size);
+ addr = align_addr(addr, NULL, ALIGN_VDSO);
- addr = get_unmapped_area(NULL, addr, vdso_size, 0, 0);
+ addr = get_unmapped_area(NULL, addr, size, 0, 0);
if (IS_ERR_VALUE(addr)) {
ret = addr;
goto up_fail;
- current->mm->context.vdso = (void *)addr;
+ mm->context.vdso = addr;
- ret = install_special_mapping(mm, addr, vdso_size,
+ ret = install_special_mapping(mm, addr, size,
VM_READ|VM_EXEC|
- VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC|
- VM_ALWAYSDUMP,
- vdso_pages);
+ VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC,
+ pages);
- if (ret) {
- current->mm->context.vdso = NULL;
- goto up_fail;
- }
-+
+ if (ret)
+ mm->context.vdso = 0;
up_fail:
up_write(&mm->mmap_sem);
- return ret;
+@@ -197,10 +195,3 @@ int x32_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
+ vdsox32_size);
}
+ #endif
-
-static __init int vdso_setup(char *s)
-{
-}
-__setup("vdso=", vdso_setup);
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
-index 4e517d4..68a48f5 100644
+index 6c7f1e8..de96944 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
-@@ -86,8 +86,6 @@ EXPORT_SYMBOL_GPL(xen_start_info);
+@@ -95,8 +95,6 @@ EXPORT_SYMBOL_GPL(xen_start_info);
struct shared_info xen_dummy_shared_info;
RESERVE_BRK(shared_info_page_brk, PAGE_SIZE);
__read_mostly int xen_have_vector_callback;
EXPORT_SYMBOL_GPL(xen_have_vector_callback);
-@@ -1030,30 +1028,30 @@ static const struct pv_apic_ops xen_apic_ops __initconst = {
+@@ -1157,30 +1155,30 @@ static const struct pv_apic_ops xen_apic_ops __initconst = {
#endif
};
{
if (pm_power_off)
pm_power_off();
-@@ -1156,7 +1154,17 @@ asmlinkage void __init xen_start_kernel(void)
+@@ -1283,7 +1281,17 @@ asmlinkage void __init xen_start_kernel(void)
__userpte_alloc_gfp &= ~__GFP_HIGHMEM;
/* Work out if we support NX */
xen_setup_features();
-@@ -1187,13 +1195,6 @@ asmlinkage void __init xen_start_kernel(void)
+@@ -1314,13 +1322,6 @@ asmlinkage void __init xen_start_kernel(void)
machine_ops = xen_machine_ops;
#ifdef CONFIG_ACPI_NUMA
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
-index dc19347..1b07a2c 100644
+index 69f5857..0699dc5 100644
--- a/arch/x86/xen/mmu.c
+++ b/arch/x86/xen/mmu.c
@@ -1738,6 +1738,9 @@ pgd_t * __init xen_setup_kernel_pagetable(pgd_t *pgd,
set_page_prot(level2_kernel_pgt, PAGE_KERNEL_RO);
set_page_prot(level2_fixmap_pgt, PAGE_KERNEL_RO);
-@@ -1963,6 +1970,7 @@ static void __init xen_post_allocator_init(void)
+@@ -1964,6 +1971,7 @@ static void __init xen_post_allocator_init(void)
pv_mmu_ops.set_pud = xen_set_pud;
#if PAGETABLE_LEVELS == 4
pv_mmu_ops.set_pgd = xen_set_pgd;
#endif
/* This will work as long as patching hasn't happened yet
-@@ -2044,6 +2052,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = {
+@@ -2045,6 +2053,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = {
.pud_val = PV_CALLEE_SAVE(xen_pud_val),
.make_pud = PV_CALLEE_SAVE(xen_make_pud),
.set_pgd = xen_set_pgd_hyper,
.alloc_pud = xen_alloc_pmd_init,
.release_pud = xen_release_pmd_init,
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
-index f2ce60a..14e08dc 100644
+index 0503c0c..ceb2d16 100644
--- a/arch/x86/xen/smp.c
+++ b/arch/x86/xen/smp.c
-@@ -209,11 +209,6 @@ static void __init xen_smp_prepare_boot_cpu(void)
+@@ -215,11 +215,6 @@ static void __init xen_smp_prepare_boot_cpu(void)
{
BUG_ON(smp_processor_id() != 0);
native_smp_prepare_boot_cpu();
xen_filter_cpu_maps();
xen_setup_vcpu_info_placement();
}
-@@ -290,12 +285,12 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle)
+@@ -296,12 +291,12 @@ cpu_initialize_context(unsigned int cpu, struct task_struct *idle)
gdt = get_cpu_gdt_table(cpu);
ctxt->flags = VGCF_IN_KERNEL;
#else
ctxt->gs_base_kernel = per_cpu_offset(cpu);
#endif
-@@ -346,13 +341,12 @@ static int __cpuinit xen_cpu_up(unsigned int cpu)
+@@ -352,13 +347,12 @@ static int __cpuinit xen_cpu_up(unsigned int cpu)
int rc;
per_cpu(current_task, cpu) = idle;
bio = bio_copy_kern(q, kbuf, len, gfp_mask, reading);
else
diff --git a/block/blk-softirq.c b/block/blk-softirq.c
-index 1366a89..e17f54b 100644
+index 467c8de..4bddc6d 100644
--- a/block/blk-softirq.c
+++ b/block/blk-softirq.c
-@@ -17,7 +17,7 @@ static DEFINE_PER_CPU(struct list_head, blk_cpu_done);
+@@ -18,7 +18,7 @@ static DEFINE_PER_CPU(struct list_head, blk_cpu_done);
* Softirq action handler - move entries to local list and loop over them
* while passing them to the queue registered handler.
*/
if (in_len && copy_from_user(buffer, sic->data + cmdlen, in_len))
goto error;
-diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
-index a0f768c..1da9c73 100644
---- a/crypto/ablkcipher.c
-+++ b/crypto/ablkcipher.c
-@@ -307,6 +307,8 @@ int ablkcipher_walk_phys(struct ablkcipher_request *req,
- EXPORT_SYMBOL_GPL(ablkcipher_walk_phys);
-
- static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key,
-+ unsigned int keylen) __size_overflow(3);
-+static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key,
- unsigned int keylen)
- {
- struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm);
-@@ -329,6 +331,8 @@ static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key,
- }
-
- static int setkey(struct crypto_ablkcipher *tfm, const u8 *key,
-+ unsigned int keylen) __size_overflow(3);
-+static int setkey(struct crypto_ablkcipher *tfm, const u8 *key,
- unsigned int keylen)
- {
- struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm);
-diff --git a/crypto/aead.c b/crypto/aead.c
-index 04add3dc..983032f 100644
---- a/crypto/aead.c
-+++ b/crypto/aead.c
-@@ -27,6 +27,8 @@
- #include "internal.h"
-
- static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key,
-+ unsigned int keylen) __size_overflow(3);
-+static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key,
- unsigned int keylen)
- {
- struct aead_alg *aead = crypto_aead_alg(tfm);
-@@ -48,6 +50,7 @@ static int setkey_unaligned(struct crypto_aead *tfm, const u8 *key,
- return ret;
- }
-
-+static int setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) __size_overflow(3);
- static int setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen)
- {
- struct aead_alg *aead = crypto_aead_alg(tfm);
-diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
-index 1e61d1a..cf06b86 100644
---- a/crypto/blkcipher.c
-+++ b/crypto/blkcipher.c
-@@ -359,6 +359,8 @@ int blkcipher_walk_virt_block(struct blkcipher_desc *desc,
- EXPORT_SYMBOL_GPL(blkcipher_walk_virt_block);
-
- static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
-+ unsigned int keylen) __size_overflow(3);
-+static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
- unsigned int keylen)
- {
- struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher;
-@@ -380,6 +382,7 @@ static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
- return ret;
- }
-
-+static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) __size_overflow(3);
- static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
- {
- struct blkcipher_alg *cipher = &tfm->__crt_alg->cra_blkcipher;
-diff --git a/crypto/cipher.c b/crypto/cipher.c
-index 39541e0..802d956 100644
---- a/crypto/cipher.c
-+++ b/crypto/cipher.c
-@@ -21,6 +21,8 @@
- #include "internal.h"
-
- static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
-+ unsigned int keylen) __size_overflow(3);
-+static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
- unsigned int keylen)
- {
- struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher;
-@@ -43,6 +45,7 @@ static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
-
- }
-
-+static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen) __size_overflow(3);
- static int setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
- {
- struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher;
diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index 671d4d6..5f24030 100644
--- a/crypto/cryptd.c
static void cryptd_queue_worker(struct work_struct *work);
diff --git a/drivers/acpi/apei/cper.c b/drivers/acpi/apei/cper.c
-index 5d41894..22021e4 100644
+index e6defd8..c26a225 100644
--- a/drivers/acpi/apei/cper.c
+++ b/drivers/acpi/apei/cper.c
@@ -38,12 +38,12 @@
}
EXPORT_SYMBOL_GPL(cper_next_record_id);
-diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
-index 86933ca..5cb1a69 100644
---- a/drivers/acpi/battery.c
-+++ b/drivers/acpi/battery.c
-@@ -787,6 +787,9 @@ static int acpi_battery_print_alarm(struct seq_file *seq, int result)
-
- static ssize_t acpi_battery_write_alarm(struct file *file,
- const char __user * buffer,
-+ size_t count, loff_t * ppos) __size_overflow(3);
-+static ssize_t acpi_battery_write_alarm(struct file *file,
-+ const char __user * buffer,
- size_t count, loff_t * ppos)
- {
- int result = 0;
diff --git a/drivers/acpi/ec_sys.c b/drivers/acpi/ec_sys.c
-index b258cab..3fb7da7 100644
+index 7586544..636a2f0 100644
--- a/drivers/acpi/ec_sys.c
+++ b/drivers/acpi/ec_sys.c
@@ -12,6 +12,7 @@
#include "internal.h"
MODULE_AUTHOR("Thomas Renninger <trenn@suse.de>");
-@@ -40,7 +41,7 @@ static ssize_t acpi_ec_read_io(struct file *f, char __user *buf,
+@@ -34,7 +35,7 @@ static ssize_t acpi_ec_read_io(struct file *f, char __user *buf,
* struct acpi_ec *ec = ((struct seq_file *)f->private_data)->private;
*/
unsigned int size = EC_SPACE_SIZE;
loff_t init_off = *off;
int err = 0;
-@@ -53,9 +54,11 @@ static ssize_t acpi_ec_read_io(struct file *f, char __user *buf,
+@@ -47,9 +48,11 @@ static ssize_t acpi_ec_read_io(struct file *f, char __user *buf,
size = count;
while (size) {
*off += 1;
size--;
}
-@@ -71,7 +74,6 @@ static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf,
+@@ -65,7 +68,6 @@ static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf,
unsigned int size = count;
loff_t init_off = *off;
int err = 0;
if (*off >= EC_SPACE_SIZE)
-@@ -82,7 +84,9 @@ static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf,
+@@ -76,7 +78,9 @@ static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf,
}
while (size) {
bool enable = !device_may_wakeup(&dev->dev);
device_set_wakeup_enable(&dev->dev, enable);
diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
-index 8ae05ce..7dbbed9 100644
+index 0734086..3ad3e4c 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
-@@ -555,7 +555,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
+@@ -556,7 +556,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
return 0;
#endif
/*
* Buggy BIOS check
-diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c
-index 6e36d0c..f319944 100644
---- a/drivers/acpi/sbs.c
-+++ b/drivers/acpi/sbs.c
-@@ -655,6 +655,9 @@ static int acpi_battery_read_alarm(struct seq_file *seq, void *offset)
-
- static ssize_t
- acpi_battery_write_alarm(struct file *file, const char __user * buffer,
-+ size_t count, loff_t * ppos) __size_overflow(3);
-+static ssize_t
-+acpi_battery_write_alarm(struct file *file, const char __user * buffer,
- size_t count, loff_t * ppos)
- {
- struct seq_file *seq = file->private_data;
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
-index c06e0ec..a2c06ba 100644
+index d31ee55..8363a8b 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
-@@ -4736,7 +4736,7 @@ void ata_qc_free(struct ata_queued_cmd *qc)
+@@ -4742,7 +4742,7 @@ void ata_qc_free(struct ata_queued_cmd *qc)
struct ata_port *ap;
unsigned int tag;
ap = qc->ap;
qc->flags = 0;
-@@ -4752,7 +4752,7 @@ void __ata_qc_complete(struct ata_queued_cmd *qc)
+@@ -4758,7 +4758,7 @@ void __ata_qc_complete(struct ata_queued_cmd *qc)
struct ata_port *ap;
struct ata_link *link;
WARN_ON_ONCE(!(qc->flags & ATA_QCFLAG_ACTIVE));
ap = qc->ap;
link = qc->dev->link;
-@@ -5816,6 +5816,7 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
+@@ -5822,6 +5822,7 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
return;
spin_lock(&lock);
for (cur = ops->inherits; cur; cur = cur->inherits) {
void **inherit = (void **)cur;
-@@ -5829,8 +5830,9 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
+@@ -5835,8 +5836,9 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
if (IS_ERR(*pp))
*pp = NULL;
}
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
-index 048589f..4002b98 100644
+index 3239517..343b5f6 100644
--- a/drivers/ata/pata_arasan_cf.c
+++ b/drivers/ata/pata_arasan_cf.c
@@ -862,7 +862,9 @@ static int __devinit arasan_cf_probe(struct platform_device *pdev)
if (vcc->pop) vcc->pop(vcc,skb);
else dev_kfree_skb(skb);
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
-index 956e9ac..133516d 100644
+index 2059ee4..faf51c7 100644
--- a/drivers/atm/eni.c
+++ b/drivers/atm/eni.c
-@@ -526,7 +526,7 @@ static int rx_aal0(struct atm_vcc *vcc)
+@@ -522,7 +522,7 @@ static int rx_aal0(struct atm_vcc *vcc)
DPRINTK(DEV_LABEL "(itf %d): trashing empty cell\n",
vcc->dev->number);
length = 0;
}
else {
length = ATM_CELL_SIZE-1; /* no HEC */
-@@ -581,7 +581,7 @@ static int rx_aal5(struct atm_vcc *vcc)
+@@ -577,7 +577,7 @@ static int rx_aal5(struct atm_vcc *vcc)
size);
}
eff = length = 0;
}
else {
size = (descr & MID_RED_COUNT)*(ATM_CELL_PAYLOAD >> 2);
-@@ -598,7 +598,7 @@ static int rx_aal5(struct atm_vcc *vcc)
+@@ -594,7 +594,7 @@ static int rx_aal5(struct atm_vcc *vcc)
"(VCI=%d,length=%ld,size=%ld (descr 0x%lx))\n",
vcc->dev->number,vcc->vci,length,size << 2,descr);
length = eff = 0;
}
}
skb = eff ? atm_alloc_charge(vcc,eff << 2,GFP_ATOMIC) : NULL;
-@@ -771,7 +771,7 @@ rx_dequeued++;
+@@ -767,7 +767,7 @@ rx_dequeued++;
vcc->push(vcc,skb);
pushed++;
}
}
wake_up(&eni_dev->rx_wait);
}
-@@ -1229,7 +1229,7 @@ static void dequeue_tx(struct atm_dev *dev)
+@@ -1227,7 +1227,7 @@ static void dequeue_tx(struct atm_dev *dev)
PCI_DMA_TODEVICE);
if (vcc->pop) vcc->pop(vcc,skb);
else dev_kfree_skb_irq(skb);
wake_up(&eni_dev->tx_wait);
dma_complete++;
}
-@@ -1569,7 +1569,7 @@ tx_complete++;
+@@ -1567,7 +1567,7 @@ tx_complete++;
/*--------------------------------- entries ---------------------------------*/
"UTP", "05?", "06?", "07?", /* 4- 7 */
"TAXI","09?", "10?", "11?", /* 8-11 */
diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c
-index 5072f8a..fa52520d 100644
+index 86fed1b..6dc4721 100644
--- a/drivers/atm/firestream.c
+++ b/drivers/atm/firestream.c
-@@ -750,7 +750,7 @@ static void process_txdone_queue (struct fs_dev *dev, struct queue *q)
+@@ -749,7 +749,7 @@ static void process_txdone_queue (struct fs_dev *dev, struct queue *q)
}
}
fs_dprintk (FS_DEBUG_TXMEM, "i");
fs_dprintk (FS_DEBUG_ALLOC, "Free t-skb: %p\n", skb);
-@@ -817,7 +817,7 @@ static void process_incoming (struct fs_dev *dev, struct queue *q)
+@@ -816,7 +816,7 @@ static void process_incoming (struct fs_dev *dev, struct queue *q)
#endif
skb_put (skb, qe->p1 & 0xffff);
ATM_SKB(skb)->vcc = atm_vcc;
__net_timestamp(skb);
fs_dprintk (FS_DEBUG_ALLOC, "Free rec-skb: %p (pushed)\n", skb);
atm_vcc->push (atm_vcc, skb);
-@@ -838,12 +838,12 @@ static void process_incoming (struct fs_dev *dev, struct queue *q)
+@@ -837,12 +837,12 @@ static void process_incoming (struct fs_dev *dev, struct queue *q)
kfree (pe);
}
if (atm_vcc)
return 0;
}
diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c
-index b812103..e391a49 100644
+index 75fd691..2d20b14 100644
--- a/drivers/atm/horizon.c
+++ b/drivers/atm/horizon.c
-@@ -1035,7 +1035,7 @@ static void rx_schedule (hrz_dev * dev, int irq) {
+@@ -1034,7 +1034,7 @@ static void rx_schedule (hrz_dev * dev, int irq) {
{
struct atm_vcc * vcc = ATM_SKB(skb)->vcc;
// VC layer stats
__net_timestamp(skb);
// end of our responsibility
vcc->push (vcc, skb);
-@@ -1187,7 +1187,7 @@ static void tx_schedule (hrz_dev * const dev, int irq) {
+@@ -1186,7 +1186,7 @@ static void tx_schedule (hrz_dev * const dev, int irq) {
dev->tx_iovec = NULL;
// VC layer stats
}
atomic_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc);
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
-index 9e373ba..cf93727 100644
+index d438601..8b98495 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
-@@ -1146,7 +1146,7 @@ static int rx_pkt(struct atm_dev *dev)
+@@ -1145,7 +1145,7 @@ static int rx_pkt(struct atm_dev *dev)
status = (u_short) (buf_desc_ptr->desc_mode);
if (status & (RX_CER | RX_PTE | RX_OFL))
{
IF_ERR(printk("IA: bad packet, dropping it");)
if (status & RX_CER) {
IF_ERR(printk(" cause: packet CRC error\n");)
-@@ -1169,7 +1169,7 @@ static int rx_pkt(struct atm_dev *dev)
+@@ -1168,7 +1168,7 @@ static int rx_pkt(struct atm_dev *dev)
len = dma_addr - buf_addr;
if (len > iadev->rx_buf_sz) {
printk("Over %d bytes sdu received, dropped!!!\n", iadev->rx_buf_sz);
goto out_free_desc;
}
-@@ -1319,7 +1319,7 @@ static void rx_dle_intr(struct atm_dev *dev)
+@@ -1318,7 +1318,7 @@ static void rx_dle_intr(struct atm_dev *dev)
ia_vcc = INPH_IA_VCC(vcc);
if (ia_vcc == NULL)
{
atm_return(vcc, skb->truesize);
dev_kfree_skb_any(skb);
goto INCR_DLE;
-@@ -1331,7 +1331,7 @@ static void rx_dle_intr(struct atm_dev *dev)
+@@ -1330,7 +1330,7 @@ static void rx_dle_intr(struct atm_dev *dev)
if ((length > iadev->rx_buf_sz) || (length >
(skb->len - sizeof(struct cpcs_trailer))))
{
IF_ERR(printk("rx_dle_intr: Bad AAL5 trailer %d (skb len %d)",
length, skb->len);)
atm_return(vcc, skb->truesize);
-@@ -1347,7 +1347,7 @@ static void rx_dle_intr(struct atm_dev *dev)
+@@ -1346,7 +1346,7 @@ static void rx_dle_intr(struct atm_dev *dev)
IF_RX(printk("rx_dle_intr: skb push");)
vcc->push(vcc,skb);
iadev->rx_pkt_cnt++;
}
INCR_DLE:
-@@ -2827,15 +2827,15 @@ static int ia_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg)
+@@ -2826,15 +2826,15 @@ static int ia_ioctl(struct atm_dev *dev, unsigned int cmd, void __user *arg)
{
struct k_sonet_stats *stats;
stats = &PRIV(_ia_dev[board])->sonet_stats;
}
ia_cmds.status = 0;
break;
-@@ -2940,7 +2940,7 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
+@@ -2939,7 +2939,7 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
if ((desc == 0) || (desc > iadev->num_tx_desc))
{
IF_ERR(printk(DEV_LABEL "invalid desc for send: %d\n", desc);)
if (vcc->pop)
vcc->pop(vcc, skb);
else
-@@ -3045,14 +3045,14 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
+@@ -3044,14 +3044,14 @@ static int ia_pkt_tx (struct atm_vcc *vcc, struct sk_buff *skb) {
ATM_DESC(skb) = vcc->vci;
skb_queue_tail(&iadev->tx_dma_q, skb);
vcc->tx_quota = vcc->tx_quota * 3 / 4;
printk("Tx1: vcc->tx_quota = %d \n", (u32)vcc->tx_quota );
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c
-index f556969..0da15eb 100644
+index 68c7588..7036683 100644
--- a/drivers/atm/lanai.c
+++ b/drivers/atm/lanai.c
@@ -1303,7 +1303,7 @@ static void lanai_send_one_aal5(struct lanai_dev *lanai,
}
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
-index e8cd652..bbbd1fc 100644
+index 9851093..adb2b1e 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -714,7 +714,7 @@ void solos_bh(unsigned long card_arg)
break;
case PKT_STATUS:
-@@ -1008,7 +1008,7 @@ static uint32_t fpga_tx(struct solos_card *card)
+@@ -1009,7 +1009,7 @@ static uint32_t fpga_tx(struct solos_card *card)
vcc = SKB_CB(oldskb)->vcc;
if (vcc) {
} else
dev_kfree_skb_irq(oldskb);
diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c
-index 90f1ccc..04c4a1e 100644
+index 0215934..ce9f5b1 100644
--- a/drivers/atm/suni.c
+++ b/drivers/atm/suni.c
-@@ -50,8 +50,8 @@ static DEFINE_SPINLOCK(sunis_lock);
+@@ -49,8 +49,8 @@ static DEFINE_SPINLOCK(sunis_lock);
#define ADD_LIMITED(s,v) \
}
diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c
-index d889f56..17eb71e 100644
+index abe4e20..83c4727 100644
--- a/drivers/atm/zatm.c
+++ b/drivers/atm/zatm.c
-@@ -460,7 +460,7 @@ printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]);
+@@ -459,7 +459,7 @@ printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]);
}
if (!size) {
dev_kfree_skb_irq(skb);
continue;
}
if (!atm_charge(vcc,skb->truesize)) {
-@@ -470,7 +470,7 @@ printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]);
+@@ -469,7 +469,7 @@ printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]);
skb->len = size;
ATM_SKB(skb)->vcc = vcc;
vcc->push(vcc,skb);
}
zout(pos & 0xffff,MTA(mbx));
#if 0 /* probably a stupid idea */
-@@ -734,7 +734,7 @@ if (*ZATM_PRV_DSC(skb) != (uPD98401_TXPD_V | uPD98401_TXPD_DP |
+@@ -733,7 +733,7 @@ if (*ZATM_PRV_DSC(skb) != (uPD98401_TXPD_V | uPD98401_TXPD_DP |
skb_queue_head(&zatm_vcc->backlog,skb);
break;
}
if (err)
printk(KERN_INFO "devtmpfs: error mounting %i\n", err);
else
+diff --git a/drivers/base/node.c b/drivers/base/node.c
+index 90aa2a1..af1a177 100644
+--- a/drivers/base/node.c
++++ b/drivers/base/node.c
+@@ -592,11 +592,9 @@ static ssize_t print_nodes_state(enum node_states state, char *buf)
+ {
+ int n;
+
+- n = nodelist_scnprintf(buf, PAGE_SIZE, node_states[state]);
+- if (n > 0 && PAGE_SIZE > n + 1) {
+- *(buf + n++) = '\n';
+- *(buf + n++) = '\0';
+- }
++ n = nodelist_scnprintf(buf, PAGE_SIZE-2, node_states[state]);
++ buf[n++] = '\n';
++ buf[n] = '\0';
+ return n;
+ }
+
diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
-index caf995f..6f76697 100644
+index 2a3e581..3d6a73f 100644
--- a/drivers/base/power/wakeup.c
+++ b/drivers/base/power/wakeup.c
@@ -30,14 +30,14 @@ bool events_check_enabled;
*cnt = (comb >> IN_PROGRESS_BITS);
*inpr = comb & MAX_IN_PROGRESS;
-@@ -353,7 +353,7 @@ static void wakeup_source_activate(struct wakeup_source *ws)
+@@ -379,7 +379,7 @@ static void wakeup_source_activate(struct wakeup_source *ws)
ws->last_time = ktime_get();
/* Increment the counter of events in progress. */
}
/**
-@@ -443,7 +443,7 @@ static void wakeup_source_deactivate(struct wakeup_source *ws)
+@@ -475,7 +475,7 @@ static void wakeup_source_deactivate(struct wakeup_source *ws)
* Increment the counter of registered wakeup events and decrement the
* couter of wakeup events in progress simultaneously.
*/
mdev->bm_writ_cnt =
mdev->read_cnt =
diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
-index af2a250..0fdeb75 100644
+index 946166e..356b39a 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
-@@ -2297,7 +2297,7 @@ static void drbd_connector_callback(struct cn_msg *req, struct netlink_skb_parms
- return;
- }
-
-- if (!cap_raised(current_cap(), CAP_SYS_ADMIN)) {
-+ if (!capable(CAP_SYS_ADMIN)) {
- retcode = ERR_PERM;
- goto fail;
- }
@@ -2359,7 +2359,7 @@ static void drbd_connector_callback(struct cn_msg *req, struct netlink_skb_parms
module_put(THIS_MODULE);
}
}
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
-index cd50435..ba1ffb5 100644
+index bbca966..65e37dd 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -226,7 +226,7 @@ static int __do_lo_send_write(struct file *file,
if (likely(bw == len))
return 0;
diff --git a/drivers/char/Kconfig b/drivers/char/Kconfig
-index 4364303..9adf4ee 100644
+index ee94686..3e09ad3 100644
--- a/drivers/char/Kconfig
+++ b/drivers/char/Kconfig
@@ -8,7 +8,8 @@ source "drivers/tty/Kconfig"
help
Say Y here if you want to support the /dev/kmem device. The
/dev/kmem device is rarely used, but can be used for certain
-@@ -596,6 +597,7 @@ config DEVPORT
+@@ -581,6 +582,7 @@ config DEVPORT
bool
depends on !M68K
depends on ISA || PCI
return -EFAULT;
client = agp_find_client_by_pid(reserve.pid);
-diff --git a/drivers/char/briq_panel.c b/drivers/char/briq_panel.c
-index 095ab90..afad0a4 100644
---- a/drivers/char/briq_panel.c
-+++ b/drivers/char/briq_panel.c
-@@ -9,6 +9,7 @@
- #include <linux/types.h>
- #include <linux/errno.h>
- #include <linux/tty.h>
-+#include <linux/mutex.h>
- #include <linux/timer.h>
- #include <linux/kernel.h>
- #include <linux/wait.h>
-@@ -34,6 +35,7 @@ static int vfd_is_open;
- static unsigned char vfd[40];
- static int vfd_cursor;
- static unsigned char ledpb, led;
-+static DEFINE_MUTEX(vfd_mutex);
-
- static void update_vfd(void)
- {
-@@ -140,12 +142,15 @@ static ssize_t briq_panel_write(struct file *file, const char __user *buf, size_
- if (!vfd_is_open)
- return -EBUSY;
-
-+ mutex_lock(&vfd_mutex);
- for (;;) {
- char c;
- if (!indx)
- break;
-- if (get_user(c, buf))
-+ if (get_user(c, buf)) {
-+ mutex_unlock(&vfd_mutex);
- return -EFAULT;
-+ }
- if (esc) {
- set_led(c);
- esc = 0;
-@@ -175,6 +180,7 @@ static ssize_t briq_panel_write(struct file *file, const char __user *buf, size_
- buf++;
- }
- update_vfd();
-+ mutex_unlock(&vfd_mutex);
-
- return len;
- }
diff --git a/drivers/char/genrtc.c b/drivers/char/genrtc.c
-index f773a9d..65cd683 100644
+index 21cb980..f15107c 100644
--- a/drivers/char/genrtc.c
+++ b/drivers/char/genrtc.c
-@@ -273,6 +273,7 @@ static int gen_rtc_ioctl(struct file *file,
+@@ -272,6 +272,7 @@ static int gen_rtc_ioctl(struct file *file,
switch (cmd) {
case RTC_PLL_GET:
return -EINVAL;
else
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
-index 0833896..cccce52 100644
+index dfd7876..c0b0885 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
-@@ -572,7 +572,7 @@ static inline unsigned long hpet_time_div(struct hpets *hpets,
+@@ -571,7 +571,7 @@ static inline unsigned long hpet_time_div(struct hpets *hpets,
}
static int
{
struct hpet_timer __iomem *timer;
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
-index 58c0e63..46c16bf 100644
+index 2c29942..604c5ba 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
-@@ -415,7 +415,7 @@ struct ipmi_smi {
+@@ -420,7 +420,7 @@ struct ipmi_smi {
struct proc_dir_entry *proc_dir;
char proc_dir_name[10];
/*
* run_to_completion duplicate of smb_info, smi_info
-@@ -448,9 +448,9 @@ static DEFINE_MUTEX(smi_watchers_mutex);
+@@ -453,9 +453,9 @@ static DEFINE_MUTEX(smi_watchers_mutex);
#define ipmi_inc_stat(intf, stat) \
static int is_lan_addr(struct ipmi_addr *addr)
{
-@@ -2868,7 +2868,7 @@ int ipmi_register_smi(struct ipmi_smi_handlers *handlers,
+@@ -2884,7 +2884,7 @@ int ipmi_register_smi(struct ipmi_smi_handlers *handlers,
INIT_LIST_HEAD(&intf->cmd_rcvrs);
init_waitqueue_head(&intf->waitq);
for (i = 0; i < IPMI_NUM_STATS; i++)
intf->proc_dir = NULL;
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
-index 50fcf9c..91b5528 100644
+index 1e638ff..a869ef5 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
-@@ -277,7 +277,7 @@ struct smi_info {
+@@ -275,7 +275,7 @@ struct smi_info {
unsigned char slave_addr;
/* Counters and things for the proc filesystem. */
struct task_struct *thread;
-@@ -286,9 +286,9 @@ struct smi_info {
+@@ -284,9 +284,9 @@ struct smi_info {
};
#define smi_inc_stat(smi, stat) \
#define SI_MAX_PARMS 4
-@@ -3230,7 +3230,7 @@ static int try_smi_init(struct smi_info *new_smi)
+@@ -3209,7 +3209,7 @@ static int try_smi_init(struct smi_info *new_smi)
atomic_set(&new_smi->req_events, 0);
new_smi->run_to_completion = 0;
for (i = 0; i < SI_NUM_STATS; i++)
new_smi->interrupt_disabled = 1;
atomic_set(&new_smi->stop_operation, 0);
diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c
-index 1aeaaba..e018570 100644
+index 47ff7e4..0c7d340 100644
--- a/drivers/char/mbcs.c
+++ b/drivers/char/mbcs.c
-@@ -800,7 +800,7 @@ static int mbcs_remove(struct cx_dev *dev)
+@@ -799,7 +799,7 @@ static int mbcs_remove(struct cx_dev *dev)
return 0;
}
static int memory_open(struct inode *inode, struct file *filp)
diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c
-index da3cfee..a5a6606 100644
+index 9df78e2..01ba9ae 100644
--- a/drivers/char/nvram.c
+++ b/drivers/char/nvram.c
-@@ -248,7 +248,7 @@ static ssize_t nvram_read(struct file *file, char __user *buf,
+@@ -247,7 +247,7 @@ static ssize_t nvram_read(struct file *file, char __user *buf,
spin_unlock_irq(&rtc_lock);
*ppos = i;
diff --git a/drivers/char/random.c b/drivers/char/random.c
-index 54ca8b2..4a092ed 100644
+index 4ec04a7..4a092ed 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -261,8 +261,13 @@
static int max_write_thresh = INPUT_POOL_WORDS * 32;
static char sysctl_bootid[16];
-@@ -1260,10 +1272,15 @@ static int proc_do_uuid(ctl_table *table, int write,
- uuid = table->data;
- if (!uuid) {
- uuid = tmp_uuid;
-- uuid[8] = 0;
-- }
-- if (uuid[8] == 0)
- generate_random_uuid(uuid);
-+ } else {
-+ static DEFINE_SPINLOCK(bootid_spinlock);
-+
-+ spin_lock(&bootid_spinlock);
-+ if (!uuid[8])
-+ generate_random_uuid(uuid);
-+ spin_unlock(&bootid_spinlock);
-+ }
-
- sprintf(buf, "%pU", uuid);
-
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
-index 1ee8ce7..b778bef 100644
+index 45713f0..8286d21 100644
--- a/drivers/char/sonypi.c
+++ b/drivers/char/sonypi.c
-@@ -55,6 +55,7 @@
+@@ -54,6 +54,7 @@
+
#include <asm/uaccess.h>
#include <asm/io.h>
- #include <asm/system.h>
+#include <asm/local.h>
#include <linux/sonypi.h>
-@@ -491,7 +492,7 @@ static struct sonypi_device {
+@@ -490,7 +491,7 @@ static struct sonypi_device {
spinlock_t fifo_lock;
wait_queue_head_t fifo_proc_list;
struct fasync_struct *fifo_async;
int model;
struct input_dev *input_jog_dev;
struct input_dev *input_key_dev;
-@@ -898,7 +899,7 @@ static int sonypi_misc_fasync(int fd, struct file *filp, int on)
+@@ -897,7 +898,7 @@ static int sonypi_misc_fasync(int fd, struct file *filp, int on)
static int sonypi_misc_release(struct inode *inode, struct file *file)
{
mutex_lock(&sonypi_device.lock);
mutex_unlock(&sonypi_device.lock);
return 0;
}
-@@ -907,9 +908,9 @@ static int sonypi_misc_open(struct inode *inode, struct file *file)
+@@ -906,9 +907,9 @@ static int sonypi_misc_open(struct inode *inode, struct file *file)
{
mutex_lock(&sonypi_device.lock);
/* Flush input queue on first open */
acpi_os_unmap_memory(virt, len);
return 0;
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
-index b58b561..c9088c8 100644
+index cdf2f54..e55c197 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -563,7 +563,7 @@ static ssize_t fill_readbuf(struct port *port, char *out_buf, size_t out_count,
}
static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
-diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
-index c9eee6d..f9d5280 100644
---- a/drivers/edac/amd64_edac.c
-+++ b/drivers/edac/amd64_edac.c
-@@ -2685,7 +2685,7 @@ static void __devexit amd64_remove_one_instance(struct pci_dev *pdev)
- * PCI core identifies what devices are on a system during boot, and then
- * inquiry this table to see if this driver is for a given device found.
- */
--static const struct pci_device_id amd64_pci_table[] __devinitdata = {
-+static const struct pci_device_id amd64_pci_table[] __devinitconst = {
- {
- .vendor = PCI_VENDOR_ID_AMD,
- .device = PCI_DEVICE_ID_AMD_K8_NB_MEMCTL,
-diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
-index e47e73b..348e0bd 100644
---- a/drivers/edac/amd76x_edac.c
-+++ b/drivers/edac/amd76x_edac.c
-@@ -321,7 +321,7 @@ static void __devexit amd76x_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id amd76x_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id amd76x_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(AMD, FE_GATE_700C), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- AMD762},
-diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
-index 1af531a..3a8ff27 100644
---- a/drivers/edac/e752x_edac.c
-+++ b/drivers/edac/e752x_edac.c
-@@ -1380,7 +1380,7 @@ static void __devexit e752x_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id e752x_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id e752x_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 7520_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- E7520},
-diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c
-index 6ffb6d2..383d8d7 100644
---- a/drivers/edac/e7xxx_edac.c
-+++ b/drivers/edac/e7xxx_edac.c
-@@ -525,7 +525,7 @@ static void __devexit e7xxx_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id e7xxx_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id e7xxx_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 7205_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- E7205},
diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c
index 97f5064..202b6e6 100644
--- a/drivers/edac/edac_pci_sysfs.c
panic("EDAC: PCI Parity Error");
}
}
-diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c
-index c0510b3..6e2a954 100644
---- a/drivers/edac/i3000_edac.c
-+++ b/drivers/edac/i3000_edac.c
-@@ -470,7 +470,7 @@ static void __devexit i3000_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id i3000_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i3000_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 3000_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- I3000},
-diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c
-index 73f55e200..5faaf59 100644
---- a/drivers/edac/i3200_edac.c
-+++ b/drivers/edac/i3200_edac.c
-@@ -445,7 +445,7 @@ static void __devexit i3200_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id i3200_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i3200_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 3200_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- I3200},
-diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c
-index 4dc3ac2..67d05a6 100644
---- a/drivers/edac/i5000_edac.c
-+++ b/drivers/edac/i5000_edac.c
-@@ -1516,7 +1516,7 @@ static void __devexit i5000_remove_one(struct pci_dev *pdev)
- *
- * The "E500P" device is the first device supported.
- */
--static const struct pci_device_id i5000_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i5000_pci_tbl[] __devinitconst = {
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000_DEV16),
- .driver_data = I5000P},
-
-diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
-index bcbdeec..9886d16 100644
---- a/drivers/edac/i5100_edac.c
-+++ b/drivers/edac/i5100_edac.c
-@@ -1051,7 +1051,7 @@ static void __devexit i5100_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id i5100_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i5100_pci_tbl[] __devinitconst = {
- /* Device 16, Function 0, Channel 0 Memory Map, Error Flag/Mask, ... */
- { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5100_16) },
- { 0, }
-diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c
-index 74d6ec34..baff517 100644
---- a/drivers/edac/i5400_edac.c
-+++ b/drivers/edac/i5400_edac.c
-@@ -1383,7 +1383,7 @@ static void __devexit i5400_remove_one(struct pci_dev *pdev)
- *
- * The "E500P" device is the first device supported.
- */
--static const struct pci_device_id i5400_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i5400_pci_tbl[] __devinitconst = {
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR)},
- {0,} /* 0 terminated list. */
- };
-diff --git a/drivers/edac/i7300_edac.c b/drivers/edac/i7300_edac.c
-index 6104dba..e7ea8e1 100644
---- a/drivers/edac/i7300_edac.c
-+++ b/drivers/edac/i7300_edac.c
-@@ -1192,7 +1192,7 @@ static void __devexit i7300_remove_one(struct pci_dev *pdev)
- *
- * Has only 8086:360c PCI ID
- */
--static const struct pci_device_id i7300_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i7300_pci_tbl[] __devinitconst = {
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I7300_MCH_ERR)},
- {0,} /* 0 terminated list. */
- };
-diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
-index 8568d9b..42b2fa8 100644
---- a/drivers/edac/i7core_edac.c
-+++ b/drivers/edac/i7core_edac.c
-@@ -391,7 +391,7 @@ static const struct pci_id_table pci_dev_table[] = {
- /*
- * pci_device_id table for which devices we are looking for
- */
--static const struct pci_device_id i7core_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i7core_pci_tbl[] __devinitconst = {
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)},
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0)},
- {0,} /* 0 terminated list. */
-diff --git a/drivers/edac/i82443bxgx_edac.c b/drivers/edac/i82443bxgx_edac.c
-index 4329d39..f3022ef 100644
---- a/drivers/edac/i82443bxgx_edac.c
-+++ b/drivers/edac/i82443bxgx_edac.c
-@@ -380,7 +380,7 @@ static void __devexit i82443bxgx_edacmc_remove_one(struct pci_dev *pdev)
-
- EXPORT_SYMBOL_GPL(i82443bxgx_edacmc_remove_one);
-
--static const struct pci_device_id i82443bxgx_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i82443bxgx_pci_tbl[] __devinitconst = {
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_0)},
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_2)},
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443GX_0)},
-diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c
-index 931a057..fd28340 100644
---- a/drivers/edac/i82860_edac.c
-+++ b/drivers/edac/i82860_edac.c
-@@ -270,7 +270,7 @@ static void __devexit i82860_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id i82860_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i82860_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 82860_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- I82860},
-diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
-index 33864c6..01edc61 100644
---- a/drivers/edac/i82875p_edac.c
-+++ b/drivers/edac/i82875p_edac.c
-@@ -511,7 +511,7 @@ static void __devexit i82875p_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id i82875p_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i82875p_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 82875_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- I82875P},
-diff --git a/drivers/edac/i82975x_edac.c b/drivers/edac/i82975x_edac.c
-index 4184e01..dcb2cd3 100644
---- a/drivers/edac/i82975x_edac.c
-+++ b/drivers/edac/i82975x_edac.c
-@@ -612,7 +612,7 @@ static void __devexit i82975x_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id i82975x_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id i82975x_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, 82975_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- I82975X
diff --git a/drivers/edac/mce_amd.h b/drivers/edac/mce_amd.h
-index 0106747..0b40417 100644
+index c6074c5..88a9e2e 100644
--- a/drivers/edac/mce_amd.h
+++ b/drivers/edac/mce_amd.h
-@@ -83,7 +83,7 @@ struct amd_decoder_ops {
+@@ -82,7 +82,7 @@ extern const char * const ii_msgs[];
+ struct amd_decoder_ops {
bool (*dc_mce)(u16, u8);
bool (*ic_mce)(u16, u8);
- bool (*nb_mce)(u16, u8);
-};
+} __no_const;
void amd_report_gart_errors(bool);
void amd_register_ecc_decoder(void (*f)(int, struct mce *));
-diff --git a/drivers/edac/r82600_edac.c b/drivers/edac/r82600_edac.c
-index e294e1b..a41b05b 100644
---- a/drivers/edac/r82600_edac.c
-+++ b/drivers/edac/r82600_edac.c
-@@ -373,7 +373,7 @@ static void __devexit r82600_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id r82600_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id r82600_pci_tbl[] __devinitconst = {
- {
- PCI_DEVICE(PCI_VENDOR_ID_RADISYS, R82600_BRIDGE_ID)
- },
-diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
-index 1dc118d..8c68af9 100644
---- a/drivers/edac/sb_edac.c
-+++ b/drivers/edac/sb_edac.c
-@@ -367,7 +367,7 @@ static const struct pci_id_table pci_dev_descr_sbridge_table[] = {
- /*
- * pci_device_id table for which devices we are looking for
- */
--static const struct pci_device_id sbridge_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id sbridge_pci_tbl[] __devinitconst = {
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TA)},
- {0,} /* 0 terminated list. */
- };
-diff --git a/drivers/edac/x38_edac.c b/drivers/edac/x38_edac.c
-index b6f47de..c5acf3a 100644
---- a/drivers/edac/x38_edac.c
-+++ b/drivers/edac/x38_edac.c
-@@ -440,7 +440,7 @@ static void __devexit x38_remove_one(struct pci_dev *pdev)
- edac_mc_free(mci);
- }
-
--static const struct pci_device_id x38_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id x38_pci_tbl[] __devinitconst = {
- {
- PCI_VEND_DEV(INTEL, X38_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
- X38},
diff --git a/drivers/firewire/core-card.c b/drivers/firewire/core-card.c
-index 85661b0..c784559a 100644
+index cc595eb..4ec702a 100644
--- a/drivers/firewire/core-card.c
+++ b/drivers/firewire/core-card.c
-@@ -657,7 +657,7 @@ void fw_card_release(struct kref *kref)
+@@ -679,7 +679,7 @@ void fw_card_release(struct kref *kref)
void fw_core_remove_card(struct fw_card *card)
{
card->driver->update_phy_reg(card, 4,
PHY_LINK_ACTIVE | PHY_CONTENDER, 0);
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
-index 4799393..37bd3ab 100644
+index 2e6b245..c3857d9 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
-@@ -1331,8 +1331,7 @@ static int init_iso_resource(struct client *client,
+@@ -1341,8 +1341,7 @@ static int init_iso_resource(struct client *client,
int ret;
if ((request->channels == 0 && request->bandwidth == 0) ||
r = kmalloc(sizeof(*r), GFP_KERNEL);
diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c
-index 855ab3f..11f4bbd 100644
+index dea2dcc..a4fb978 100644
--- a/drivers/firewire/core-transaction.c
+++ b/drivers/firewire/core-transaction.c
@@ -37,6 +37,7 @@
#include <asm/byteorder.h>
diff --git a/drivers/firewire/core.h b/drivers/firewire/core.h
-index b45be57..5fad18b 100644
+index 9047f55..e47c7ff 100644
--- a/drivers/firewire/core.h
+++ b/drivers/firewire/core.h
-@@ -101,6 +101,7 @@ struct fw_card_driver {
+@@ -110,6 +110,7 @@ struct fw_card_driver {
int (*stop_iso)(struct fw_iso_context *ctx);
};
return -EINVAL;
}
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
-index 84a4a80..ce0306e 100644
+index 8111889..367b253 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
-@@ -280,7 +280,7 @@ static bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
+@@ -286,7 +286,7 @@ static bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
struct drm_crtc *tmp;
int crtc_mask = 1;
dev = crtc->dev;
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
-index ebf7d3f..d64c436 100644
+index 6116e3b..c29dd16 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
-@@ -312,7 +312,7 @@ module_exit(drm_core_exit);
+@@ -316,7 +316,7 @@ module_exit(drm_core_exit);
/**
* Copy and IOCTL return string to user space
*/
{
int len;
-@@ -391,7 +391,7 @@ long drm_ioctl(struct file *filp,
+@@ -399,7 +399,7 @@ long drm_ioctl(struct file *filp,
+ return -ENODEV;
- dev = file_priv->minor->dev;
atomic_inc(&dev->ioctl_count);
- atomic_inc(&dev->counts[_DRM_STAT_IOCTLS]);
+ atomic_inc_unchecked(&dev->counts[_DRM_STAT_IOCTLS]);
DRM_DEBUG("pid=%d, cmd=0x%02x, nr=0x%02x, dev 0x%lx, auth=%d\n",
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
-index 6263b01..7987f55 100644
+index 123de28..43a0897 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -71,7 +71,7 @@ static int drm_setup(struct drm_device * dev)
dev->sigdata.lock = NULL;
-@@ -135,8 +135,8 @@ int drm_open(struct inode *inode, struct file *filp)
+@@ -138,8 +138,8 @@ int drm_open(struct inode *inode, struct file *filp)
retcode = drm_open_helper(inode, filp, dev);
if (!retcode) {
retcode = drm_setup(dev);
}
if (!retcode) {
-@@ -473,7 +473,7 @@ int drm_release(struct inode *inode, struct file *filp)
+@@ -482,7 +482,7 @@ int drm_release(struct inode *inode, struct file *filp)
mutex_lock(&drm_global_mutex);
if (dev->driver->preclose)
dev->driver->preclose(dev, file_priv);
-@@ -482,10 +482,10 @@ int drm_release(struct inode *inode, struct file *filp)
+@@ -491,10 +491,10 @@ int drm_release(struct inode *inode, struct file *filp)
* Begin inline drm_release
*/
/* Release any auth tokens that might point to this file_priv,
(do that under the drm_global_mutex) */
-@@ -571,8 +571,8 @@ int drm_release(struct inode *inode, struct file *filp)
+@@ -584,8 +584,8 @@ int drm_release(struct inode *inode, struct file *filp)
* End inline drm_release
*/
if (__put_user(count, &request->count)
|| __put_user(list, &request->list))
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
-index 956fd38..e52167a 100644
+index cf85155..f2665cb 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
-@@ -251,7 +251,7 @@ int drm_getstats(struct drm_device *dev, void *data,
+@@ -252,7 +252,7 @@ int drm_getstats(struct drm_device *dev, void *data,
stats->data[i].value =
(file_priv->master->lock.hw_lock ? file_priv->master->lock.hw_lock->lock : 0);
else
if (drm_lock_free(&master->lock, lock->context)) {
/* FIXME: Should really bail out here. */
+diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c
+index aa454f8..6d38580 100644
+--- a/drivers/gpu/drm/drm_stub.c
++++ b/drivers/gpu/drm/drm_stub.c
+@@ -512,7 +512,7 @@ void drm_unplug_dev(struct drm_device *dev)
+
+ drm_device_set_unplugged(dev);
+
+- if (dev->open_count == 0) {
++ if (local_read(&dev->open_count) == 0) {
+ drm_put_dev(dev);
+ }
+ mutex_unlock(&drm_global_mutex);
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c
-index 7f4b4e1..bf4def2 100644
+index f920fb5..001c52d 100644
--- a/drivers/gpu/drm/i810/i810_dma.c
+++ b/drivers/gpu/drm/i810/i810_dma.c
-@@ -948,8 +948,8 @@ static int i810_dma_vertex(struct drm_device *dev, void *data,
+@@ -945,8 +945,8 @@ static int i810_dma_vertex(struct drm_device *dev, void *data,
dma->buflist[vertex->idx],
vertex->discard, vertex->used);
sarea_priv->last_enqueue = dev_priv->counter - 1;
sarea_priv->last_dispatch = (int)hw_status[5];
-@@ -1109,8 +1109,8 @@ static int i810_dma_mc(struct drm_device *dev, void *data,
+@@ -1106,8 +1106,8 @@ static int i810_dma_mc(struct drm_device *dev, void *data,
i810_dma_dispatch_mc(dev, dma->buflist[mc->idx], mc->used,
mc->last_render);
int front_offset;
} drm_i810_private_t;
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
-index deaa657..e0fd296 100644
+index e6162a1..b2ff486 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
-@@ -499,7 +499,7 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
+@@ -500,7 +500,7 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
I915_READ(GTIMR));
}
seq_printf(m, "Interrupts received: %d\n",
for (i = 0; i < I915_NUM_RINGS; i++) {
if (IS_GEN6(dev) || IS_GEN7(dev)) {
seq_printf(m, "Graphics Interrupt mask (%s): %08x\n",
-@@ -1321,7 +1321,7 @@ static int i915_opregion(struct seq_file *m, void *unused)
+@@ -1313,7 +1313,7 @@ static int i915_opregion(struct seq_file *m, void *unused)
return ret;
if (opregion->header)
mutex_unlock(&dev->struct_mutex);
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
-index ddfe3d9..f6e6b21 100644
+index ba60f3c..e2dff7f 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
-@@ -1175,7 +1175,7 @@ static bool i915_switcheroo_can_switch(struct pci_dev *pdev)
+@@ -1178,7 +1178,7 @@ static bool i915_switcheroo_can_switch(struct pci_dev *pdev)
bool can_switch;
spin_lock(&dev->count_lock);
return can_switch;
}
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
-index 9689ca3..294f9c1 100644
+index 5fabc6c..0b08aa1 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
-@@ -231,7 +231,7 @@ struct drm_i915_display_funcs {
+@@ -240,7 +240,7 @@ struct drm_i915_display_funcs {
/* render clock increase/decrease */
/* display clock increase/decrease */
/* pll clock increase/decrease */
struct intel_device_info {
u8 gen;
-@@ -320,7 +320,7 @@ typedef struct drm_i915_private {
+@@ -350,7 +350,7 @@ typedef struct drm_i915_private {
int current_page;
int page_flipping;
/* protects the irq masks */
spinlock_t irq_lock;
-@@ -896,7 +896,7 @@ struct drm_i915_gem_object {
+@@ -937,7 +937,7 @@ struct drm_i915_gem_object {
* will be page flipped away on the next vblank. When it
* reaches 0, dev_priv->pending_flip_queue will be woken up.
*/
};
#define to_intel_bo(x) container_of(x, struct drm_i915_gem_object, base)
-@@ -1276,7 +1276,7 @@ extern int intel_setup_gmbus(struct drm_device *dev);
+@@ -1359,7 +1359,7 @@ extern int intel_setup_gmbus(struct drm_device *dev);
extern void intel_teardown_gmbus(struct drm_device *dev);
extern void intel_gmbus_set_speed(struct i2c_adapter *adapter, int speed);
extern void intel_gmbus_force_bit(struct i2c_adapter *adapter, bool force_bit);
return container_of(adapter, struct intel_gmbus, adapter)->force_bit;
}
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
-index e159e33..cdcc663 100644
+index de43194..a14c4cc 100644
--- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
+++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
@@ -189,7 +189,7 @@ i915_gem_object_set_to_gpu_domain(struct drm_i915_gem_object *obj,
/* The actual obj->write_domain will be updated with
* pending_write_domain after we emit the accumulated flush for all
-@@ -882,9 +882,9 @@ i915_gem_check_execbuffer(struct drm_i915_gem_execbuffer2 *exec)
+@@ -933,9 +933,9 @@ i915_gem_check_execbuffer(struct drm_i915_gem_execbuffer2 *exec)
static int
validate_exec_list(struct drm_i915_gem_exec_object2 *exec,
for (i = 0; i < count; i++) {
char __user *ptr = (char __user *)(uintptr_t)exec[i].relocs_ptr;
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
-index 5bd4361..0241a42 100644
+index f57e5cf..c82f79d 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
-@@ -475,7 +475,7 @@ static irqreturn_t ivybridge_irq_handler(DRM_IRQ_ARGS)
+@@ -472,7 +472,7 @@ static irqreturn_t ivybridge_irq_handler(DRM_IRQ_ARGS)
u32 de_iir, gt_iir, de_ier, pch_iir, pm_iir;
struct drm_i915_master_private *master_priv;
/* disable master interrupt before clearing iir */
de_ier = I915_READ(DEIER);
-@@ -566,7 +566,7 @@ static irqreturn_t ironlake_irq_handler(DRM_IRQ_ARGS)
+@@ -563,7 +563,7 @@ static irqreturn_t ironlake_irq_handler(DRM_IRQ_ARGS)
struct drm_i915_master_private *master_priv;
u32 bsd_usr_interrupt = GT_BSD_USER_INTERRUPT;
if (IS_GEN6(dev))
bsd_usr_interrupt = GT_GEN6_BSD_USER_INTERRUPT;
-@@ -1231,7 +1231,7 @@ static irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
+@@ -1292,7 +1292,7 @@ static irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
int ret = IRQ_NONE, pipe;
bool blc_event = false;
iir = I915_READ(IIR);
-@@ -1743,7 +1743,7 @@ static void ironlake_irq_preinstall(struct drm_device *dev)
+@@ -1803,7 +1803,7 @@ static void ironlake_irq_preinstall(struct drm_device *dev)
{
drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func);
INIT_WORK(&dev_priv->error_work, i915_error_work_func);
-@@ -1932,7 +1932,7 @@ static void i915_driver_irq_preinstall(struct drm_device * dev)
+@@ -1980,7 +1980,7 @@ static void i915_driver_irq_preinstall(struct drm_device * dev)
drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
int pipe;
INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func);
INIT_WORK(&dev_priv->error_work, i915_error_work_func);
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
-index 2163818..cede019 100644
+index d4d162f..e80037c 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
-@@ -2238,7 +2238,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
+@@ -2254,7 +2254,7 @@ intel_finish_fb(struct drm_framebuffer *old_fb)
- wait_event(dev_priv->pending_flip_queue,
- atomic_read(&dev_priv->mm.wedged) ||
-- atomic_read(&obj->pending_flip) == 0);
-+ atomic_read_unchecked(&obj->pending_flip) == 0);
+ wait_event(dev_priv->pending_flip_queue,
+ atomic_read(&dev_priv->mm.wedged) ||
+- atomic_read(&obj->pending_flip) == 0);
++ atomic_read_unchecked(&obj->pending_flip) == 0);
- /* Big Hammer, we also need to ensure that any pending
- * MI_WAIT_FOR_EVENT inside a user batch buffer on the
-@@ -2859,7 +2859,7 @@ static void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc)
+ /* Big Hammer, we also need to ensure that any pending
+ * MI_WAIT_FOR_EVENT inside a user batch buffer on the
+@@ -2919,7 +2919,7 @@ static void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc)
obj = to_intel_framebuffer(crtc->fb)->obj;
dev_priv = crtc->dev->dev_private;
wait_event(dev_priv->pending_flip_queue,
}
static bool intel_crtc_driving_pch(struct drm_crtc *crtc)
-@@ -7171,7 +7171,7 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
+@@ -7286,7 +7286,7 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
atomic_clear_mask(1 << intel_crtc->plane,
&obj->pending_flip.counter);
wake_up(&dev_priv->pending_flip_queue);
schedule_work(&work->work);
-@@ -7354,7 +7354,13 @@ static int intel_gen6_queue_flip(struct drm_device *dev,
- OUT_RING(fb->pitches[0] | obj->tiling_mode);
- OUT_RING(obj->gtt_offset);
-
-- pf = I915_READ(PF_CTL(intel_crtc->pipe)) & PF_ENABLE;
-+ /* Contrary to the suggestions in the documentation,
-+ * "Enable Panel Fitter" does not seem to be required when page
-+ * flipping with a non-native mode, and worse causes a normal
-+ * modeset to fail.
-+ * pf = I915_READ(PF_CTL(intel_crtc->pipe)) & PF_ENABLE;
-+ */
-+ pf = 0;
- pipesrc = I915_READ(PIPESRC(intel_crtc->pipe)) & 0x0fff0fff;
- OUT_RING(pf | pipesrc);
- ADVANCE_LP_RING();
-@@ -7461,7 +7467,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
+@@ -7582,7 +7582,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
/* Block clients from rendering to the new back buffer until
* the flip occurs and the object is no longer visible.
*/
ret = dev_priv->display.queue_flip(dev, crtc, fb, obj);
if (ret)
-@@ -7475,7 +7481,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
+@@ -7596,7 +7596,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
return 0;
cleanup_pending:
*sequence = cur_fence;
diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
-index e5cbead..6c354a3 100644
+index 0be4a81..7464804 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
-@@ -199,7 +199,7 @@ struct methods {
- const char desc[8];
- void (*loadbios)(struct drm_device *, uint8_t *);
- const bool rw;
--};
-+} __do_const;
-
- static struct methods shadow_methods[] = {
- { "PRAMIN", load_vbios_pramin, true },
-@@ -5290,7 +5290,7 @@ parse_bit_U_tbl_entry(struct drm_device *dev, struct nvbios *bios,
+@@ -5329,7 +5329,7 @@ parse_bit_U_tbl_entry(struct drm_device *dev, struct nvbios *bios,
struct bit_table {
const char id;
int (* const parse_fn)(struct drm_device *, struct nvbios *, struct bit_entry *);
#define BIT_TABLE(id, funcid) ((struct bit_table){ id, parse_bit_##funcid##_tbl_entry })
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h
-index b827098..c31a797 100644
+index 3aef353..0ad1322 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drv.h
+++ b/drivers/gpu/drm/nouveau/nouveau_drv.h
-@@ -242,7 +242,7 @@ struct nouveau_channel {
+@@ -240,7 +240,7 @@ struct nouveau_channel {
struct list_head pending;
uint32_t sequence;
uint32_t sequence_ack;
struct nouveau_vma vma;
} fence;
-@@ -323,7 +323,7 @@ struct nouveau_exec_engine {
+@@ -321,7 +321,7 @@ struct nouveau_exec_engine {
u32 handle, u16 class);
void (*set_tile_region)(struct drm_device *dev, int i);
void (*tlb_flush)(struct drm_device *, int engine);
struct nouveau_instmem_engine {
void *priv;
-@@ -345,13 +345,13 @@ struct nouveau_instmem_engine {
+@@ -343,13 +343,13 @@ struct nouveau_instmem_engine {
struct nouveau_mc_engine {
int (*init)(struct drm_device *dev);
void (*takedown)(struct drm_device *dev);
struct nouveau_fb_engine {
int num_tiles;
-@@ -566,7 +566,7 @@ struct nouveau_vram_engine {
+@@ -590,7 +590,7 @@ struct nouveau_vram_engine {
void (*put)(struct drm_device *, struct nouveau_mem **);
bool (*flags_valid)(struct drm_device *, u32 tile_flags);
struct nouveau_engine {
struct nouveau_instmem_engine instmem;
-@@ -714,7 +714,7 @@ struct drm_nouveau_private {
+@@ -739,7 +739,7 @@ struct drm_nouveau_private {
struct drm_global_reference mem_global_ref;
struct ttm_bo_global_ref bo_global_ref;
struct ttm_bo_device bdev;
struct {
diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c b/drivers/gpu/drm/nouveau/nouveau_fence.c
-index 2f6daae..c9d7b9e 100644
+index c1dc20f..4df673c 100644
--- a/drivers/gpu/drm/nouveau/nouveau_fence.c
+++ b/drivers/gpu/drm/nouveau/nouveau_fence.c
@@ -85,7 +85,7 @@ nouveau_fence_update(struct nouveau_channel *chan)
if (chan->fence.sequence_ack == sequence)
goto out;
-@@ -539,7 +539,7 @@ nouveau_fence_channel_init(struct nouveau_channel *chan)
+@@ -538,7 +538,7 @@ nouveau_fence_channel_init(struct nouveau_channel *chan)
return ret;
}
}
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
-index 7ce3fde..cb3ea04 100644
+index ed52a6f..484acdc 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -314,7 +314,7 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv,
if (++trycnt > 100000) {
NV_ERROR(dev, "%s failed and gave up.\n", __func__);
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
-index f80c5e0..936baa7 100644
+index c2a8511..4b996f9 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
-@@ -543,7 +543,7 @@ static bool nouveau_switcheroo_can_switch(struct pci_dev *pdev)
+@@ -588,7 +588,7 @@ static bool nouveau_switcheroo_can_switch(struct pci_dev *pdev)
bool can_switch;
spin_lock(&dev->count_lock);
return 0;
}
+diff --git a/drivers/gpu/drm/nouveau/nv50_sor.c b/drivers/gpu/drm/nouveau/nv50_sor.c
+index 2746402..c8dc4a4 100644
+--- a/drivers/gpu/drm/nouveau/nv50_sor.c
++++ b/drivers/gpu/drm/nouveau/nv50_sor.c
+@@ -304,7 +304,7 @@ nv50_sor_dpms(struct drm_encoder *encoder, int mode)
+ }
+
+ if (nv_encoder->dcb->type == OUTPUT_DP) {
+- struct dp_train_func func = {
++ static struct dp_train_func func = {
+ .link_set = nv50_sor_dp_link_set,
+ .train_set = nv50_sor_dp_train_set,
+ .train_adj = nv50_sor_dp_train_adj
+diff --git a/drivers/gpu/drm/nouveau/nvd0_display.c b/drivers/gpu/drm/nouveau/nvd0_display.c
+index 0247250..d2f6aaf 100644
+--- a/drivers/gpu/drm/nouveau/nvd0_display.c
++++ b/drivers/gpu/drm/nouveau/nvd0_display.c
+@@ -1366,7 +1366,7 @@ nvd0_sor_dpms(struct drm_encoder *encoder, int mode)
+ nv_wait(dev, 0x61c030 + (or * 0x0800), 0x10000000, 0x00000000);
+
+ if (nv_encoder->dcb->type == OUTPUT_DP) {
+- struct dp_train_func func = {
++ static struct dp_train_func func = {
+ .link_set = nvd0_sor_dp_link_set,
+ .train_set = nvd0_sor_dp_train_set,
+ .train_adj = nvd0_sor_dp_train_adj
diff --git a/drivers/gpu/drm/r128/r128_cce.c b/drivers/gpu/drm/r128/r128_cce.c
index bcac90b..53bfc76 100644
--- a/drivers/gpu/drm/r128/r128_cce.c
if (regcomp
(&mask_rex, "(0x[0-9a-fA-F]*) *([_a-zA-Z0-9]*)", REG_EXTENDED)) {
diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
-index 1668ec1..30ebdab 100644
+index 138b952..d74f9cb 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
-@@ -250,7 +250,7 @@ struct radeon_fence_driver {
+@@ -253,7 +253,7 @@ struct radeon_fence_driver {
uint32_t scratch_reg;
uint64_t gpu_addr;
volatile uint32_t *cpu_addr;
uint32_t last_seq;
unsigned long last_jiffies;
unsigned long last_timeout;
-@@ -752,7 +752,7 @@ struct r600_blit_cp_primitives {
+@@ -753,7 +753,7 @@ struct r600_blit_cp_primitives {
int x2, int y2);
void (*draw_auto)(struct radeon_device *rdev);
void (*set_default_state)(struct radeon_device *rdev);
struct r600_blit {
struct mutex mutex;
-@@ -1201,7 +1201,7 @@ struct radeon_asic {
- void (*pre_page_flip)(struct radeon_device *rdev, int crtc);
- u32 (*page_flip)(struct radeon_device *rdev, int crtc, u64 crtc_base);
- void (*post_page_flip)(struct radeon_device *rdev, int crtc);
+@@ -1246,7 +1246,7 @@ struct radeon_asic {
+ u32 (*page_flip)(struct radeon_device *rdev, int crtc, u64 crtc_base);
+ void (*post_page_flip)(struct radeon_device *rdev, int crtc);
+ } pflip;
-};
+} __no_const;
/*
* Asic structures
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
-index 49f7cb7..2fcb48f 100644
+index 5992502..c19c633 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
-@@ -687,7 +687,7 @@ static bool radeon_switcheroo_can_switch(struct pci_dev *pdev)
+@@ -691,7 +691,7 @@ static bool radeon_switcheroo_can_switch(struct pci_dev *pdev)
bool can_switch;
spin_lock(&dev->count_lock);
DRM_DEBUG("pid=%d\n", DRM_CURRENTPID);
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
-index c421e77..e6bf2e8 100644
+index f493c64..524ab6b 100644
--- a/drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/drivers/gpu/drm/radeon/radeon_ttm.c
-@@ -842,8 +842,10 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
+@@ -843,8 +843,10 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
}
if (unlikely(ttm_vm_ops == NULL)) {
ttm_vm_ops = vma->vm_ops;
vma->vm_ops = &radeon_ttm_vm_ops;
return 0;
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c
-index f68dff2..8df955c 100644
+index f2c3b9d..d5a376b 100644
--- a/drivers/gpu/drm/radeon/rs690.c
+++ b/drivers/gpu/drm/radeon/rs690.c
@@ -304,9 +304,11 @@ void rs690_crtc_bandwidth_compute(struct radeon_device *rdev,
if (rdev->pm.max_bandwidth.full > rdev->pm.k8_bandwidth.full &&
rdev->pm.k8_bandwidth.full)
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c
-index 499debd..66fce72 100644
+index ebc6fac..a8313ed 100644
--- a/drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c
-@@ -398,9 +398,9 @@ static int ttm_pool_get_num_unused_pages(void)
+@@ -394,9 +394,9 @@ static int ttm_pool_get_num_unused_pages(void)
static int ttm_pool_mm_shrink(struct shrinker *shrink,
struct shrink_control *sc)
{
case VIA_IRQ_ABSOLUTE:
break;
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
-index dc27970..f18b008 100644
+index d0f2c07..9ebd9c3 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
-@@ -260,7 +260,7 @@ struct vmw_private {
+@@ -263,7 +263,7 @@ struct vmw_private {
* Fencing and IRQs.
*/
marker = list_first_entry(&queue->head,
struct vmw_marker, head);
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
-index 75dbe34..f9204a8 100644
+index 4da66b4..e948655 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
-@@ -2021,7 +2021,7 @@ static bool hid_ignore(struct hid_device *hdev)
+@@ -2063,7 +2063,7 @@ static bool hid_ignore(struct hid_device *hdev)
int hid_add_device(struct hid_device *hdev)
{
int ret;
if (WARN_ON(hdev->status & HID_STAT_ADDED))
-@@ -2036,7 +2036,7 @@ int hid_add_device(struct hid_device *hdev)
+@@ -2078,7 +2078,7 @@ int hid_add_device(struct hid_device *hdev)
/* XXX hack, any other cleaner solution after the driver core
* is converted to allow more than 20 bytes as the device name? */
dev_set_name(&hdev->dev, "%04X:%04X:%04X.%04X", hdev->bus,
hid_debug_register(hdev, dev_name(&hdev->dev));
ret = device_add(&hdev->dev);
+diff --git a/drivers/hid/hid-wiimote-debug.c b/drivers/hid/hid-wiimote-debug.c
+index eec3291..8ed706b 100644
+--- a/drivers/hid/hid-wiimote-debug.c
++++ b/drivers/hid/hid-wiimote-debug.c
+@@ -66,7 +66,7 @@ static ssize_t wiidebug_eeprom_read(struct file *f, char __user *u, size_t s,
+ else if (size == 0)
+ return -EIO;
+
+- if (copy_to_user(u, buf, size))
++ if (size > sizeof(buf) || copy_to_user(u, buf, size))
+ return -EFAULT;
+
+ *off += size;
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c
index b1ec0e2..c295a61 100644
--- a/drivers/hid/usbhid/hiddev.c
ret = create_gpadl_header(kbuffer, size, &msginfo, &msgcount);
if (ret)
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
-index 12aa97f..c0679f7 100644
+index 15956bd..ea34398 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -132,7 +132,7 @@ static u64 do_hypercall(u64 control, void *input, void *output)
__asm__ __volatile__ ("call *%8" : "=d"(hv_status_hi),
"=a"(hv_status_lo) : "d" (control_hi),
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
-index 6d7d286..92b0873 100644
+index 699f0d8..f4f19250 100644
--- a/drivers/hv/hyperv_vmbus.h
+++ b/drivers/hv/hyperv_vmbus.h
-@@ -556,7 +556,7 @@ enum vmbus_connect_state {
+@@ -555,7 +555,7 @@ enum vmbus_connect_state {
struct vmbus_connection {
enum vmbus_connect_state conn_state;
child_device_obj->device.bus = &hv_bus;
child_device_obj->device.parent = &hv_acpi_dev->dev;
diff --git a/drivers/hwmon/acpi_power_meter.c b/drivers/hwmon/acpi_power_meter.c
-index 554f046..f8b4729 100644
+index 9140236..ceaef4e 100644
--- a/drivers/hwmon/acpi_power_meter.c
+++ b/drivers/hwmon/acpi_power_meter.c
@@ -316,8 +316,6 @@ static ssize_t set_trip(struct device *dev, struct device_attribute *devattr,
mutex_lock(&resource->lock);
resource->trip[attr->index - 7] = temp;
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
-index 91fdd1f..b66a686 100644
+index 8b011d0..3de24a1 100644
--- a/drivers/hwmon/sht15.c
+++ b/drivers/hwmon/sht15.c
@@ -166,7 +166,7 @@ struct sht15_data {
- atomic_set(&data->interrupt_handled, 0);
+ atomic_set_unchecked(&data->interrupt_handled, 0);
enable_irq(gpio_to_irq(data->pdata->gpio_data));
- /* If still not occurred or another handler has been scheduled */
+ /* If still not occurred or another handler was scheduled */
if (gpio_get_value(data->pdata->gpio_data)
- || atomic_read(&data->interrupt_handled))
+ || atomic_read_unchecked(&data->interrupt_handled))
}
PDBG("%s stag_state 0x%0x type 0x%0x pdid 0x%0x, stag_idx 0x%x\n",
__func__, stag_state, type, pdid, stag_idx);
-diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c
-index a4de9d5..5fa20c3 100644
---- a/drivers/infiniband/hw/ipath/ipath_fs.c
-+++ b/drivers/infiniband/hw/ipath/ipath_fs.c
-@@ -126,6 +126,8 @@ static const struct file_operations atomic_counters_ops = {
- };
-
- static ssize_t flash_read(struct file *file, char __user *buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t flash_read(struct file *file, char __user *buf,
- size_t count, loff_t *ppos)
- {
- struct ipath_devdata *dd;
-@@ -177,6 +179,8 @@ bail:
- }
-
- static ssize_t flash_write(struct file *file, const char __user *buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t flash_write(struct file *file, const char __user *buf,
- size_t count, loff_t *ppos)
- {
- struct ipath_devdata *dd;
diff --git a/drivers/infiniband/hw/ipath/ipath_rc.c b/drivers/infiniband/hw/ipath/ipath_rc.c
index 79b3dbc..96e5fcc 100644
--- a/drivers/infiniband/hw/ipath/ipath_rc.c
extern u32 int_mod_timer_init;
extern u32 int_mod_cq_depth_256;
diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c
-index a4972ab..1bcfc31 100644
+index 71edfbb..15b62ae 100644
--- a/drivers/infiniband/hw/nes/nes_cm.c
+++ b/drivers/infiniband/hw/nes/nes_cm.c
@@ -68,14 +68,14 @@ u32 cm_packets_dropped;
int nes_add_ref_cm_node(struct nes_cm_node *cm_node)
{
-@@ -1274,7 +1274,7 @@ static int mini_cm_dec_refcnt_listen(struct nes_cm_core *cm_core,
+@@ -1279,7 +1279,7 @@ static int mini_cm_dec_refcnt_listen(struct nes_cm_core *cm_core,
kfree(listener);
listener = NULL;
ret = 0;
} else {
spin_unlock_irqrestore(&cm_core->listen_list_lock, flags);
}
-@@ -1473,7 +1473,7 @@ static struct nes_cm_node *make_cm_node(struct nes_cm_core *cm_core,
+@@ -1482,7 +1482,7 @@ static struct nes_cm_node *make_cm_node(struct nes_cm_core *cm_core,
cm_node->rem_mac);
add_hte_node(cm_core, cm_node);
return cm_node;
}
-@@ -1531,7 +1531,7 @@ static int rem_ref_cm_node(struct nes_cm_core *cm_core,
+@@ -1540,7 +1540,7 @@ static int rem_ref_cm_node(struct nes_cm_core *cm_core,
}
atomic_dec(&cm_core->node_cnt);
nesqp = cm_node->nesqp;
if (nesqp) {
nesqp->cm_node = NULL;
-@@ -1595,7 +1595,7 @@ static int process_options(struct nes_cm_node *cm_node, u8 *optionsloc,
+@@ -1604,7 +1604,7 @@ static int process_options(struct nes_cm_node *cm_node, u8 *optionsloc,
static void drop_packet(struct sk_buff *skb)
{
dev_kfree_skb_any(skb);
}
-@@ -1658,7 +1658,7 @@ static void handle_rst_pkt(struct nes_cm_node *cm_node, struct sk_buff *skb,
+@@ -1667,7 +1667,7 @@ static void handle_rst_pkt(struct nes_cm_node *cm_node, struct sk_buff *skb,
{
int reset = 0; /* whether to send reset in case of err.. */
nes_debug(NES_DBG_CM, "Received Reset, cm_node = %p, state = %u."
" refcnt=%d\n", cm_node, cm_node->state,
atomic_read(&cm_node->ref_count));
-@@ -2299,7 +2299,7 @@ static struct nes_cm_node *mini_cm_connect(struct nes_cm_core *cm_core,
+@@ -2308,7 +2308,7 @@ static struct nes_cm_node *mini_cm_connect(struct nes_cm_core *cm_core,
rem_ref_cm_node(cm_node->cm_core, cm_node);
return NULL;
}
loopbackremotenode->loopbackpartner = cm_node;
loopbackremotenode->tcp_cntxt.rcv_wscale =
NES_CM_DEFAULT_RCV_WND_SCALE;
-@@ -2574,7 +2574,7 @@ static int mini_cm_recv_pkt(struct nes_cm_core *cm_core,
+@@ -2583,7 +2583,7 @@ static int mini_cm_recv_pkt(struct nes_cm_core *cm_core,
nes_queue_mgt_skbs(skb, nesvnic, cm_node->nesqp);
else {
rem_ref_cm_node(cm_core, cm_node);
dev_kfree_skb_any(skb);
}
break;
-@@ -2881,7 +2881,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
+@@ -2890,7 +2890,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
if ((cm_id) && (cm_id->event_handler)) {
if (issue_disconn) {
cm_event.event = IW_CM_EVENT_DISCONNECT;
cm_event.status = disconn_status;
cm_event.local_addr = cm_id->local_addr;
-@@ -2903,7 +2903,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
+@@ -2912,7 +2912,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
}
if (issue_close) {
nes_disconnect(nesqp, 1);
cm_id->provider_data = nesqp;
-@@ -3039,7 +3039,7 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
+@@ -3048,7 +3048,7 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
nes_debug(NES_DBG_CM, "QP%u, cm_node=%p, jiffies = %lu listener = %p\n",
nesqp->hwqp.qp_id, cm_node, jiffies, cm_node->listener);
nes_debug(NES_DBG_CM, "netdev refcnt = %u.\n",
netdev_refcnt_read(nesvnic->netdev));
-@@ -3241,7 +3241,7 @@ int nes_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
+@@ -3250,7 +3250,7 @@ int nes_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
struct nes_cm_core *cm_core;
u8 *start_buff;
cm_node = (struct nes_cm_node *)cm_id->provider_data;
loopback = cm_node->loopbackpartner;
cm_core = cm_node->cm_core;
-@@ -3301,7 +3301,7 @@ int nes_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
+@@ -3310,7 +3310,7 @@ int nes_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
ntohl(cm_id->local_addr.sin_addr.s_addr),
ntohs(cm_id->local_addr.sin_port));
nesqp->active_conn = 1;
/* cache the cm_id in the qp */
-@@ -3407,7 +3407,7 @@ int nes_create_listen(struct iw_cm_id *cm_id, int backlog)
+@@ -3416,7 +3416,7 @@ int nes_create_listen(struct iw_cm_id *cm_id, int backlog)
g_cm_core->api->stop_listener(g_cm_core, (void *)cm_node);
return err;
}
}
cm_id->add_ref(cm_id);
-@@ -3508,7 +3508,7 @@ static void cm_event_connected(struct nes_cm_event *event)
+@@ -3517,7 +3517,7 @@ static void cm_event_connected(struct nes_cm_event *event)
if (nesqp->destroyed)
return;
nes_debug(NES_DBG_CM, "QP%u attempting to connect to 0x%08X:0x%04X on"
" local port 0x%04X. jiffies = %lu.\n",
nesqp->hwqp.qp_id,
-@@ -3695,7 +3695,7 @@ static void cm_event_reset(struct nes_cm_event *event)
+@@ -3704,7 +3704,7 @@ static void cm_event_reset(struct nes_cm_event *event)
cm_id->add_ref(cm_id);
ret = cm_id->event_handler(cm_id, &cm_event);
cm_event.event = IW_CM_EVENT_CLOSE;
cm_event.status = 0;
cm_event.provider_data = cm_id->provider_data;
-@@ -3731,7 +3731,7 @@ static void cm_event_mpa_req(struct nes_cm_event *event)
+@@ -3740,7 +3740,7 @@ static void cm_event_mpa_req(struct nes_cm_event *event)
return;
cm_id = cm_node->cm_id;
nes_debug(NES_DBG_CM, "cm_node = %p - cm_id = %p, jiffies = %lu\n",
cm_node, cm_id, jiffies);
-@@ -3771,7 +3771,7 @@ static void cm_event_mpa_reject(struct nes_cm_event *event)
+@@ -3780,7 +3780,7 @@ static void cm_event_mpa_reject(struct nes_cm_event *event)
return;
cm_id = cm_node->cm_id;
/**
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
-index 0927b5c..ed67986 100644
+index 8b8812d..a5e1133 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -46,9 +46,9 @@
/* Blow away the connection if it exists. */
diff --git a/drivers/infiniband/hw/qib/qib.h b/drivers/infiniband/hw/qib/qib.h
-index b881bdc..c2e360c 100644
+index 6b811e3..f8acf88 100644
--- a/drivers/infiniband/hw/qib/qib.h
+++ b/drivers/infiniband/hw/qib/qib.h
@@ -51,6 +51,7 @@
#include "qib_common.h"
#include "qib_verbs.h"
-diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c
-index 05e0f17..0275789 100644
---- a/drivers/infiniband/hw/qib/qib_fs.c
-+++ b/drivers/infiniband/hw/qib/qib_fs.c
-@@ -267,6 +267,8 @@ static const struct file_operations qsfp_ops[] = {
- };
-
- static ssize_t flash_read(struct file *file, char __user *buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t flash_read(struct file *file, char __user *buf,
- size_t count, loff_t *ppos)
- {
- struct qib_devdata *dd;
-@@ -318,6 +320,8 @@ bail:
- }
-
- static ssize_t flash_write(struct file *file, const char __user *buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t flash_write(struct file *file, const char __user *buf,
- size_t count, loff_t *ppos)
- {
- struct qib_devdata *dd;
diff --git a/drivers/input/gameport/gameport.c b/drivers/input/gameport/gameport.c
-index c351aa4..e6967c2 100644
+index da739d9..da1c7f4 100644
--- a/drivers/input/gameport/gameport.c
+++ b/drivers/input/gameport/gameport.c
-@@ -488,14 +488,14 @@ EXPORT_SYMBOL(gameport_set_phys);
+@@ -487,14 +487,14 @@ EXPORT_SYMBOL(gameport_set_phys);
*/
static void gameport_init_port(struct gameport *gameport)
{
gameport->dev.release = gameport_release_port;
if (gameport->parent)
diff --git a/drivers/input/input.c b/drivers/input/input.c
-index 1f78c95..3cddc6c 100644
+index 8921c61..f5cd63d 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -1814,7 +1814,7 @@ static void input_cleanse_bitmasks(struct input_dev *dev)
return count;
diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c
-index ba70058..571d25d 100644
+index d0f7533..fb8215b 100644
--- a/drivers/input/serio/serio.c
+++ b/drivers/input/serio/serio.c
-@@ -497,7 +497,7 @@ static void serio_release_port(struct device *dev)
+@@ -496,7 +496,7 @@ static void serio_release_port(struct device *dev)
*/
static void serio_init_port(struct serio *serio)
{
__module_get(THIS_MODULE);
-@@ -508,7 +508,7 @@ static void serio_init_port(struct serio *serio)
+@@ -507,7 +507,7 @@ static void serio_init_port(struct serio *serio)
mutex_init(&serio->drv_mutex);
device_initialize(&serio->dev);
dev_set_name(&serio->dev, "serio%ld",
serio->dev.release = serio_release_port;
serio->dev.groups = serio_device_attr_groups;
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
-index e44933d..9ba484a 100644
+index b902794..fc7b85b 100644
--- a/drivers/isdn/capi/capi.c
+++ b/drivers/isdn/capi/capi.c
@@ -83,8 +83,8 @@ struct capiminor {
capimsg_setu32(skb->data, 8, mp->ncci); /* NCCI */
capimsg_setu32(skb->data, 12, (u32)(long)skb->data);/* Data32 */
capimsg_setu16(skb->data, 16, len); /* Data length */
-diff --git a/drivers/isdn/gigaset/common.c b/drivers/isdn/gigaset/common.c
-index db621db..825ea1a 100644
---- a/drivers/isdn/gigaset/common.c
-+++ b/drivers/isdn/gigaset/common.c
-@@ -723,7 +723,7 @@ struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels,
- cs->commands_pending = 0;
- cs->cur_at_seq = 0;
- cs->gotfwver = -1;
-- cs->open_count = 0;
-+ local_set(&cs->open_count, 0);
- cs->dev = NULL;
- cs->tty = NULL;
- cs->tty_dev = NULL;
-diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h
-index 212efaf..f187c6b 100644
---- a/drivers/isdn/gigaset/gigaset.h
-+++ b/drivers/isdn/gigaset/gigaset.h
-@@ -35,6 +35,7 @@
- #include <linux/tty_driver.h>
- #include <linux/list.h>
- #include <linux/atomic.h>
-+#include <asm/local.h>
-
- #define GIG_VERSION {0, 5, 0, 0}
- #define GIG_COMPAT {0, 4, 0, 0}
-@@ -433,7 +434,7 @@ struct cardstate {
- spinlock_t cmdlock;
- unsigned curlen, cmdbytes;
-
-- unsigned open_count;
-+ local_t open_count;
- struct tty_struct *tty;
- struct tasklet_struct if_wake_tasklet;
- unsigned control_state;
-diff --git a/drivers/isdn/gigaset/interface.c b/drivers/isdn/gigaset/interface.c
-index ee0a549..a7c9798 100644
---- a/drivers/isdn/gigaset/interface.c
-+++ b/drivers/isdn/gigaset/interface.c
-@@ -163,9 +163,7 @@ static int if_open(struct tty_struct *tty, struct file *filp)
- }
- tty->driver_data = cs;
-
-- ++cs->open_count;
--
-- if (cs->open_count == 1) {
-+ if (local_inc_return(&cs->open_count) == 1) {
- spin_lock_irqsave(&cs->lock, flags);
- cs->tty = tty;
- spin_unlock_irqrestore(&cs->lock, flags);
-@@ -193,10 +191,10 @@ static void if_close(struct tty_struct *tty, struct file *filp)
-
- if (!cs->connected)
- gig_dbg(DEBUG_IF, "not connected"); /* nothing to do */
-- else if (!cs->open_count)
-+ else if (!local_read(&cs->open_count))
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- else {
-- if (!--cs->open_count) {
-+ if (!local_dec_return(&cs->open_count)) {
- spin_lock_irqsave(&cs->lock, flags);
- cs->tty = NULL;
- spin_unlock_irqrestore(&cs->lock, flags);
-@@ -231,7 +229,7 @@ static int if_ioctl(struct tty_struct *tty,
- if (!cs->connected) {
- gig_dbg(DEBUG_IF, "not connected");
- retval = -ENODEV;
-- } else if (!cs->open_count)
-+ } else if (!local_read(&cs->open_count))
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- else {
- retval = 0;
-@@ -361,7 +359,7 @@ static int if_write(struct tty_struct *tty, const unsigned char *buf, int count)
- retval = -ENODEV;
- goto done;
- }
-- if (!cs->open_count) {
-+ if (!local_read(&cs->open_count)) {
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- retval = -ENODEV;
- goto done;
-@@ -414,7 +412,7 @@ static int if_write_room(struct tty_struct *tty)
- if (!cs->connected) {
- gig_dbg(DEBUG_IF, "not connected");
- retval = -ENODEV;
-- } else if (!cs->open_count)
-+ } else if (!local_read(&cs->open_count))
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- else if (cs->mstate != MS_LOCKED) {
- dev_warn(cs->dev, "can't write to unlocked device\n");
-@@ -444,7 +442,7 @@ static int if_chars_in_buffer(struct tty_struct *tty)
-
- if (!cs->connected)
- gig_dbg(DEBUG_IF, "not connected");
-- else if (!cs->open_count)
-+ else if (!local_read(&cs->open_count))
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- else if (cs->mstate != MS_LOCKED)
- dev_warn(cs->dev, "can't write to unlocked device\n");
-@@ -472,7 +470,7 @@ static void if_throttle(struct tty_struct *tty)
-
- if (!cs->connected)
- gig_dbg(DEBUG_IF, "not connected"); /* nothing to do */
-- else if (!cs->open_count)
-+ else if (!local_read(&cs->open_count))
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- else
- gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
-@@ -496,7 +494,7 @@ static void if_unthrottle(struct tty_struct *tty)
-
- if (!cs->connected)
- gig_dbg(DEBUG_IF, "not connected"); /* nothing to do */
-- else if (!cs->open_count)
-+ else if (!local_read(&cs->open_count))
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- else
- gig_dbg(DEBUG_IF, "%s: not implemented\n", __func__);
-@@ -527,7 +525,7 @@ static void if_set_termios(struct tty_struct *tty, struct ktermios *old)
- goto out;
- }
-
-- if (!cs->open_count) {
-+ if (!local_read(&cs->open_count)) {
- dev_warn(cs->dev, "%s: device not opened\n", __func__);
- goto out;
- }
diff --git a/drivers/isdn/hardware/avm/b1.c b/drivers/isdn/hardware/avm/b1.c
-index 2a57da59..e7a12ed 100644
+index 821f7ac..28d4030 100644
--- a/drivers/isdn/hardware/avm/b1.c
+++ b/drivers/isdn/hardware/avm/b1.c
-@@ -176,7 +176,7 @@ int b1_load_t4file(avmcard *card, capiloaddatapart * t4file)
+@@ -176,7 +176,7 @@ int b1_load_t4file(avmcard *card, capiloaddatapart *t4file)
}
if (left) {
if (t4file->user) {
return -EFAULT;
} else {
memcpy(buf, dp, left);
-@@ -224,7 +224,7 @@ int b1_load_config(avmcard *card, capiloaddatapart * config)
+@@ -224,7 +224,7 @@ int b1_load_config(avmcard *card, capiloaddatapart *config)
}
if (left) {
if (config->user) {
} else {
memcpy(buf, dp, left);
diff --git a/drivers/isdn/hardware/eicon/divasync.h b/drivers/isdn/hardware/eicon/divasync.h
-index 85784a7..a19ca98 100644
+index dd6b53a..19d9ee6 100644
--- a/drivers/isdn/hardware/eicon/divasync.h
+++ b/drivers/isdn/hardware/eicon/divasync.h
@@ -146,7 +146,7 @@ typedef struct _diva_didd_add_adapter {
} diva_didd_add_adapter_t;
typedef struct _diva_didd_remove_adapter {
- IDI_CALL p_request;
+ IDI_CALL p_request;
-} diva_didd_remove_adapter_t;
+} __no_const diva_didd_remove_adapter_t;
typedef struct _diva_didd_read_adapter_array {
- void * buffer;
- dword length;
+ void *buffer;
+ dword length;
diff --git a/drivers/isdn/hardware/eicon/xdi_adapter.h b/drivers/isdn/hardware/eicon/xdi_adapter.h
-index a3bd163..8956575 100644
+index d303e65..28bcb7b 100644
--- a/drivers/isdn/hardware/eicon/xdi_adapter.h
+++ b/drivers/isdn/hardware/eicon/xdi_adapter.h
@@ -44,7 +44,7 @@ typedef struct _xdi_mbox_t {
typedef struct _diva_os_xdi_adapter {
struct list_head link;
diff --git a/drivers/isdn/icn/icn.c b/drivers/isdn/icn/icn.c
-index 1f355bb..43f1fea 100644
+index e74df7c..03a03ba 100644
--- a/drivers/isdn/icn/icn.c
+++ b/drivers/isdn/icn/icn.c
-@@ -1045,7 +1045,7 @@ icn_writecmd(const u_char * buf, int len, int user, icn_card * card)
+@@ -1045,7 +1045,7 @@ icn_writecmd(const u_char *buf, int len, int user, icn_card *card)
if (count > len)
count = len;
if (user) {
return -EFAULT;
} else
memcpy(msg, buf, count);
+diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c
+index 8bc4915..4cc6a2e 100644
+--- a/drivers/leds/leds-mc13783.c
++++ b/drivers/leds/leds-mc13783.c
+@@ -280,7 +280,7 @@ static int __devinit mc13783_led_probe(struct platform_device *pdev)
+ return -EINVAL;
+ }
+
+- led = kzalloc(sizeof(*led) * pdata->num_leds, GFP_KERNEL);
++ led = kcalloc(pdata->num_leds, sizeof(*led), GFP_KERNEL);
+ if (led == NULL) {
+ dev_err(&pdev->dev, "failed to alloc memory\n");
+ return -ENOMEM;
diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
index b5fdcb7..5b6c59f 100644
--- a/drivers/lguest/core.c
end_switcher_text - start_switcher_text);
printk(KERN_INFO "lguest: mapped switcher at %p\n",
-diff --git a/drivers/lguest/lguest_user.c b/drivers/lguest/lguest_user.c
-index ff4a0bc..f5fdd9c 100644
---- a/drivers/lguest/lguest_user.c
-+++ b/drivers/lguest/lguest_user.c
-@@ -198,6 +198,7 @@ static int user_send_irq(struct lg_cpu *cpu, const unsigned long __user *input)
- * Once our Guest is initialized, the Launcher makes it run by reading
- * from /dev/lguest.
- */
-+static ssize_t read(struct file *file, char __user *user, size_t size,loff_t*o) __size_overflow(3);
- static ssize_t read(struct file *file, char __user *user, size_t size,loff_t*o)
- {
- struct lguest *lg = file->private_data;
diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
index 3980903..ce25c5e 100644
--- a/drivers/lguest/x86/core.c
// Every interrupt can come to us here
// But we must truly tell each apart.
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
-index 4daf9e5..b8d1d0f 100644
+index 20e5c2c..9e849a9 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -748,7 +748,7 @@ static void __devexit macio_pci_remove(struct pci_dev* pdev)
.vendor = PCI_VENDOR_ID_APPLE,
.device = PCI_ANY_ID,
.subvendor = PCI_ANY_ID,
+diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
+index 17e2b47..bcbeec4 100644
+--- a/drivers/md/bitmap.c
++++ b/drivers/md/bitmap.c
+@@ -1823,7 +1823,7 @@ void bitmap_status(struct seq_file *seq, struct bitmap *bitmap)
+ chunk_kb ? "KB" : "B");
+ if (bitmap->file) {
+ seq_printf(seq, ", file: ");
+- seq_path(seq, &bitmap->file->f_path, " \t\n");
++ seq_path(seq, &bitmap->file->f_path, " \t\n\\");
+ }
+
+ seq_printf(seq, "\n");
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
-index 1ce84ed..0fdd40a 100644
+index a1a3e6d..1918bfc 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
-@@ -1589,7 +1589,7 @@ static int validate_params(uint cmd, struct dm_ioctl *param)
+@@ -1590,7 +1590,7 @@ static int validate_params(uint cmd, struct dm_ioctl *param)
cmd == DM_LIST_VERSIONS_CMD)
return 0;
if (!*param->name) {
DMWARN("name not supplied when creating device");
return -EINVAL;
-diff --git a/drivers/md/dm-log-userspace-transfer.c b/drivers/md/dm-log-userspace-transfer.c
-index 1f23e04..08d9a20 100644
---- a/drivers/md/dm-log-userspace-transfer.c
-+++ b/drivers/md/dm-log-userspace-transfer.c
-@@ -134,7 +134,7 @@ static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
- {
- struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1);
-
-- if (!cap_raised(current_cap(), CAP_SYS_ADMIN))
-+ if (!capable(CAP_SYS_ADMIN))
- return;
-
- spin_lock(&receiving_list_lock);
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
-index 9bfd057..5373ff3 100644
+index d039de8..0cf5b87 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -40,7 +40,7 @@ enum dm_raid1_error {
m = NULL;
if (likely(m))
-@@ -848,6 +848,10 @@ static void do_mirror(struct work_struct *work)
- static struct mirror_set *alloc_context(unsigned int nr_mirrors,
- uint32_t region_size,
- struct dm_target *ti,
-+ struct dm_dirty_log *dl) __size_overflow(1);
-+static struct mirror_set *alloc_context(unsigned int nr_mirrors,
-+ uint32_t region_size,
-+ struct dm_target *ti,
- struct dm_dirty_log *dl)
- {
- size_t len;
-@@ -937,7 +941,7 @@ static int get_mirror(struct mirror_set *ms, struct dm_target *ti,
+@@ -938,7 +938,7 @@ static int get_mirror(struct mirror_set *ms, struct dm_target *ti,
}
ms->mirror[mirror].ms = ms;
ms->mirror[mirror].error_type = 0;
ms->mirror[mirror].offset = offset;
-@@ -1347,7 +1351,7 @@ static void mirror_resume(struct dm_target *ti)
+@@ -1351,7 +1351,7 @@ static void mirror_resume(struct dm_target *ti)
*/
static char device_status_char(struct mirror *m)
{
return (test_bit(DM_RAID1_FLUSH_ERROR, &(m->error_type))) ? 'F' :
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c
-index 3d80cf0..7d98e1a 100644
+index 35c94ff..20d4c17 100644
--- a/drivers/md/dm-stripe.c
+++ b/drivers/md/dm-stripe.c
@@ -20,7 +20,7 @@ struct stripe {
};
struct stripe_c {
-@@ -55,6 +55,7 @@ static void trigger_event(struct work_struct *work)
- dm_table_event(sc->ti->table);
- }
-
-+static inline struct stripe_c *alloc_context(unsigned int stripes) __size_overflow(1);
- static inline struct stripe_c *alloc_context(unsigned int stripes)
- {
- size_t len;
-@@ -192,7 +193,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
+@@ -193,7 +193,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
kfree(sc);
return r;
}
}
ti->private = sc;
-@@ -314,7 +315,7 @@ static int stripe_status(struct dm_target *ti,
+@@ -315,7 +315,7 @@ static int stripe_status(struct dm_target *ti,
DMEMIT("%d ", sc->stripes);
for (i = 0; i < sc->stripes; i++) {
DMEMIT("%s ", sc->stripe[i].dev->name);
'D' : 'A';
}
buffer[i] = '\0';
-@@ -361,8 +362,8 @@ static int stripe_end_io(struct dm_target *ti, struct bio *bio,
+@@ -362,8 +362,8 @@ static int stripe_end_io(struct dm_target *ti, struct bio *bio,
*/
for (i = 0; i < sc->stripes; i++)
if (!strcmp(sc->stripe[i].dev->name, major_minor)) {
schedule_work(&sc->trigger_event);
}
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
-index 63cc542..8d45caf3 100644
+index 2e227fb..44ead1f 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
-@@ -391,7 +391,7 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,
+@@ -390,7 +390,7 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,
if (!dev_size)
return 0;
"start=%llu, len=%llu, dev_size=%llu",
dm_device_name(ti->table->md), bdevname(bdev, b),
diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c
-index 237571a..fb6d19b 100644
+index 737d388..811ad5a 100644
--- a/drivers/md/dm-thin-metadata.c
+++ b/drivers/md/dm-thin-metadata.c
@@ -432,7 +432,7 @@ static int init_pmd(struct dm_pool_metadata *pmd,
pmd->bl_info.value_type.inc = data_block_inc;
pmd->bl_info.value_type.dec = data_block_dec;
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
-index b89c548..2af3ce4 100644
+index e24143c..ce2f21a1 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -176,9 +176,9 @@ struct mapped_device {
struct list_head uevent_list;
spinlock_t uevent_lock; /* Protect access to uevent_list */
-@@ -1844,8 +1844,8 @@ static struct mapped_device *alloc_dev(int minor)
+@@ -1845,8 +1845,8 @@ static struct mapped_device *alloc_dev(int minor)
rwlock_init(&md->map_lock);
atomic_set(&md->holders, 1);
atomic_set(&md->open_count, 0);
INIT_LIST_HEAD(&md->uevent_list);
spin_lock_init(&md->uevent_lock);
-@@ -1979,7 +1979,7 @@ static void event_callback(void *context)
+@@ -1980,7 +1980,7 @@ static void event_callback(void *context)
dm_send_uevents(&uevents, &disk_to_dev(md->disk)->kobj);
wake_up(&md->eventq);
}
-@@ -2621,18 +2621,18 @@ int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
+@@ -2622,18 +2622,18 @@ int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
uint32_t dm_next_uevent_seq(struct mapped_device *md)
{
void dm_uevent_add(struct mapped_device *md, struct list_head *elist)
diff --git a/drivers/md/md.c b/drivers/md/md.c
-index 58027d8..d9cddcd 100644
+index 2b30ffd..bf789ce 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -277,10 +277,10 @@ EXPORT_SYMBOL_GPL(md_trim_bio);
wake_up(&md_event_waiters);
}
-@@ -1524,7 +1524,7 @@ static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_
+@@ -1526,7 +1526,7 @@ static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_
rdev->preferred_minor = 0xffff;
rdev->data_offset = le64_to_cpu(sb->data_offset);
rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256;
bmask = queue_logical_block_size(rdev->bdev->bd_disk->queue)-1;
-@@ -1743,7 +1743,7 @@ static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev)
+@@ -1745,7 +1745,7 @@ static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev)
else
sb->resync_offset = cpu_to_le64(0);
sb->raid_disks = cpu_to_le32(mddev->raid_disks);
sb->size = cpu_to_le64(mddev->dev_sectors);
-@@ -2689,7 +2689,7 @@ __ATTR(state, S_IRUGO|S_IWUSR, state_show, state_store);
+@@ -2691,7 +2691,7 @@ __ATTR(state, S_IRUGO|S_IWUSR, state_show, state_store);
static ssize_t
errors_show(struct md_rdev *rdev, char *page)
{
}
static ssize_t
-@@ -2698,7 +2698,7 @@ errors_store(struct md_rdev *rdev, const char *buf, size_t len)
+@@ -2700,7 +2700,7 @@ errors_store(struct md_rdev *rdev, const char *buf, size_t len)
char *e;
unsigned long n = simple_strtoul(buf, &e, 10);
if (*buf && (*e == 0 || *e == '\n')) {
return len;
}
return -EINVAL;
-@@ -3084,8 +3084,8 @@ int md_rdev_init(struct md_rdev *rdev)
+@@ -3086,8 +3086,8 @@ int md_rdev_init(struct md_rdev *rdev)
rdev->sb_loaded = 0;
rdev->bb_page = NULL;
atomic_set(&rdev->nr_pending, 0);
INIT_LIST_HEAD(&rdev->same_set);
init_waitqueue_head(&rdev->blocked_wait);
-@@ -6736,7 +6736,7 @@ static int md_seq_show(struct seq_file *seq, void *v)
+@@ -6738,7 +6738,7 @@ static int md_seq_show(struct seq_file *seq, void *v)
spin_unlock(&pers_lock);
seq_printf(seq, "\n");
return 0;
}
if (v == (void*)2) {
-@@ -6828,7 +6828,7 @@ static int md_seq_show(struct seq_file *seq, void *v)
- chunk_kb ? "KB" : "B");
- if (bitmap->file) {
- seq_printf(seq, ", file: ");
-- seq_path(seq, &bitmap->file->f_path, " \t\n");
-+ seq_path(seq, &bitmap->file->f_path, " \t\n\\");
- }
-
- seq_printf(seq, "\n");
-@@ -6859,7 +6859,7 @@ static int md_seq_open(struct inode *inode, struct file *file)
+@@ -6841,7 +6841,7 @@ static int md_seq_open(struct inode *inode, struct file *file)
return error;
seq = file->private_data;
return error;
}
-@@ -6873,7 +6873,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
+@@ -6855,7 +6855,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
/* always allow read */
mask = POLLIN | POLLRDNORM;
mask |= POLLERR | POLLPRI;
return mask;
}
-@@ -6917,7 +6917,7 @@ static int is_mddev_idle(struct mddev *mddev, int init)
+@@ -6899,7 +6899,7 @@ static int is_mddev_idle(struct mddev *mddev, int init)
struct gendisk *disk = rdev->bdev->bd_contains->bd_disk;
curr_events = (int)part_stat_read(&disk->part0, sectors[0]) +
(int)part_stat_read(&disk->part0, sectors[1]) -
* as sync_io is counted when a request starts, and
* disk_stats is counted when it completes.
diff --git a/drivers/md/md.h b/drivers/md/md.h
-index 44c63df..b795d1a 100644
+index 1c2063c..9639970 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -93,13 +93,13 @@ struct md_rdev {
* for reporting to userspace and storing
* in superblock.
*/
-@@ -421,7 +421,7 @@ static inline void rdev_dec_pending(struct md_rdev *rdev, struct mddev *mddev)
+@@ -429,7 +429,7 @@ static inline void rdev_dec_pending(struct md_rdev *rdev, struct mddev *mddev)
static inline void md_sync_acct(struct block_device *bdev, unsigned long nr_sectors)
{
/*----------------------------------------------------------------*/
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
-index edc735a..e9b97f1 100644
+index d7e9577..faa512f2 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
-@@ -1645,7 +1645,7 @@ static int fix_sync_read_error(struct r1bio *r1_bio)
+@@ -1688,7 +1688,7 @@ static int fix_sync_read_error(struct r1bio *r1_bio)
if (r1_sync_page_io(rdev, sect, s,
bio->bi_io_vec[idx].bv_page,
READ) != 0)
}
sectors -= s;
sect += s;
-@@ -1859,7 +1859,7 @@ static void fix_read_error(struct r1conf *conf, int read_disk,
+@@ -1902,7 +1902,7 @@ static void fix_read_error(struct r1conf *conf, int read_disk,
test_bit(In_sync, &rdev->flags)) {
if (r1_sync_page_io(rdev, sect, s,
conf->tmppage, READ)) {
"md/raid1:%s: read error corrected "
"(%d sectors at %llu on %s)\n",
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
-index 1898389..a3aa617 100644
+index d037adb..ed17dc9 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
-@@ -1636,7 +1636,7 @@ static void end_sync_read(struct bio *bio, int error)
+@@ -1684,7 +1684,7 @@ static void end_sync_read(struct bio *bio, int error)
/* The write handler will notice the lack of
* R10BIO_Uptodate and record any errors etc
*/
&conf->mirrors[d].rdev->corrected_errors);
/* for reconstruct, we always reschedule after a read.
-@@ -1987,7 +1987,7 @@ static void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev)
+@@ -2033,7 +2033,7 @@ static void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev)
{
struct timespec cur_time_mon;
unsigned long hours_since_last;
ktime_get_ts(&cur_time_mon);
-@@ -2009,9 +2009,9 @@ static void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev)
+@@ -2055,9 +2055,9 @@ static void check_decay_read_errors(struct mddev *mddev, struct md_rdev *rdev)
* overflowing the shift of read_errors by hours_since_last.
*/
if (hours_since_last >= 8 * sizeof(read_errors))
}
static int r10_sync_page_io(struct md_rdev *rdev, sector_t sector,
-@@ -2065,8 +2065,8 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
+@@ -2111,8 +2111,8 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
return;
check_decay_read_errors(mddev, rdev);
char b[BDEVNAME_SIZE];
bdevname(rdev->bdev, b);
-@@ -2074,7 +2074,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
+@@ -2120,7 +2120,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
"md/raid10:%s: %s: Raid device exceeded "
"read_error threshold [cur %d:max %d]\n",
mdname(mddev), b,
printk(KERN_NOTICE
"md/raid10:%s: %s: Failing raid device\n",
mdname(mddev), b);
-@@ -2223,7 +2223,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
+@@ -2271,7 +2271,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
(unsigned long long)(
sect + rdev->data_offset),
bdevname(rdev->bdev, b));
rdev_dec_pending(rdev, mddev);
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
-index d1162e5..c7cd902 100644
+index f351422..85c01bb 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
-@@ -1687,18 +1687,18 @@ static void raid5_end_read_request(struct bio * bi, int error)
+@@ -1686,18 +1686,18 @@ static void raid5_end_read_request(struct bio * bi, int error)
(unsigned long long)(sh->sector
+ rdev->data_offset),
bdevname(rdev->bdev, b));
if (test_bit(R5_ReadRepl, &sh->dev[i].flags))
printk_ratelimited(
KERN_WARNING
-@@ -1727,7 +1727,7 @@ static void raid5_end_read_request(struct bio * bi, int error)
+@@ -1726,7 +1726,7 @@ static void raid5_end_read_request(struct bio * bi, int error)
(unsigned long long)(sh->sector
+ rdev->data_offset),
bdn);
printk(KERN_WARNING
"md/raid:%s: Too many read errors, failing device %s.\n",
diff --git a/drivers/media/dvb/ddbridge/ddbridge-core.c b/drivers/media/dvb/ddbridge/ddbridge-core.c
-index ce4f858..7bcfb46 100644
+index d88c4aa..17c80b1 100644
--- a/drivers/media/dvb/ddbridge/ddbridge-core.c
+++ b/drivers/media/dvb/ddbridge/ddbridge-core.c
-@@ -1678,7 +1678,7 @@ static struct ddb_info ddb_v6 = {
+@@ -1679,7 +1679,7 @@ static struct ddb_info ddb_v6 = {
.subvendor = _subvend, .subdevice = _subdev, \
.driver_data = (unsigned long)&_driverdata }
#if defined(CONFIG_DVB_DIB3000MB) || (defined(CONFIG_DVB_DIB3000MB_MODULE) && defined(MODULE))
extern struct dvb_frontend* dib3000mb_attach(const struct dib3000_config* config,
diff --git a/drivers/media/dvb/ngene/ngene-cards.c b/drivers/media/dvb/ngene/ngene-cards.c
-index 8418c02..8555013 100644
+index 7539a5d..06531a6 100644
--- a/drivers/media/dvb/ngene/ngene-cards.c
+++ b/drivers/media/dvb/ngene/ngene-cards.c
-@@ -477,7 +477,7 @@ static struct ngene_info ngene_info_m780 = {
+@@ -478,7 +478,7 @@ static struct ngene_info ngene_info_m780 = {
/****************************************************************************/
NGENE_ID(0x18c3, 0xabc4, ngene_info_cineS2),
NGENE_ID(0x18c3, 0xdb01, ngene_info_satixS2),
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c
-index 16a089f..ab1667d 100644
+index 16a089f..1661b11 100644
--- a/drivers/media/radio/radio-cadet.c
+++ b/drivers/media/radio/radio-cadet.c
@@ -326,6 +326,8 @@ static ssize_t cadet_read(struct file *file, char __user *data, size_t count, lo
mutex_lock(&dev->lock);
if (dev->rdsstat == 0) {
dev->rdsstat = 1;
+@@ -347,7 +349,7 @@ static ssize_t cadet_read(struct file *file, char __user *data, size_t count, lo
+ readbuf[i++] = dev->rdsbuf[dev->rdsout++];
+ mutex_unlock(&dev->lock);
+
+- if (copy_to_user(data, readbuf, i))
++ if (i > sizeof(readbuf) || copy_to_user(data, readbuf, i))
+ return -EFAULT;
+ return i;
+ }
diff --git a/drivers/media/video/au0828/au0828.h b/drivers/media/video/au0828/au0828.h
index 9cde353..8c6a1c3 100644
--- a/drivers/media/video/au0828/au0828.h
struct i2c_client i2c_client;
u32 i2c_rc;
-diff --git a/drivers/media/video/cpia2/cpia2_core.c b/drivers/media/video/cpia2/cpia2_core.c
-index ee91e295..04ad048 100644
---- a/drivers/media/video/cpia2/cpia2_core.c
-+++ b/drivers/media/video/cpia2/cpia2_core.c
-@@ -86,6 +86,7 @@ static inline unsigned long kvirt_to_pa(unsigned long adr)
- return ret;
- }
-
-+static void *rvmalloc(unsigned long size) __size_overflow(1);
- static void *rvmalloc(unsigned long size)
- {
- void *mem;
-diff --git a/drivers/media/video/cx18/cx18-alsa-pcm.c b/drivers/media/video/cx18/cx18-alsa-pcm.c
-index 82d195b..181103c 100644
---- a/drivers/media/video/cx18/cx18-alsa-pcm.c
-+++ b/drivers/media/video/cx18/cx18-alsa-pcm.c
-@@ -229,6 +229,8 @@ static int snd_cx18_pcm_ioctl(struct snd_pcm_substream *substream,
-
-
- static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
-+ size_t size) __size_overflow(2);
-+static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
- size_t size)
- {
- struct snd_pcm_runtime *runtime = subs->runtime;
-diff --git a/drivers/media/video/cx231xx/cx231xx-audio.c b/drivers/media/video/cx231xx/cx231xx-audio.c
-index a2c2b7d..8f1bec7 100644
---- a/drivers/media/video/cx231xx/cx231xx-audio.c
-+++ b/drivers/media/video/cx231xx/cx231xx-audio.c
-@@ -389,6 +389,8 @@ static int cx231xx_init_audio_bulk(struct cx231xx *dev)
- }
-
- static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
-+ size_t size) __size_overflow(2);
-+static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
- size_t size)
- {
- struct snd_pcm_runtime *runtime = subs->runtime;
diff --git a/drivers/media/video/cx88/cx88-alsa.c b/drivers/media/video/cx88/cx88-alsa.c
index 04bf662..e0ac026 100644
--- a/drivers/media/video/cx88/cx88-alsa.c
{0x14f1,0x8801,PCI_ANY_ID,PCI_ANY_ID,0,0,0},
{0x14f1,0x8811,PCI_ANY_ID,PCI_ANY_ID,0,0,0},
{0, }
-diff --git a/drivers/media/video/em28xx/em28xx-audio.c b/drivers/media/video/em28xx/em28xx-audio.c
-index e2a7b77..753d0ee 100644
---- a/drivers/media/video/em28xx/em28xx-audio.c
-+++ b/drivers/media/video/em28xx/em28xx-audio.c
-@@ -225,6 +225,8 @@ static int em28xx_init_audio_isoc(struct em28xx *dev)
- }
-
- static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
-+ size_t size) __size_overflow(2);
-+static int snd_pcm_alloc_vmalloc_buffer(struct snd_pcm_substream *subs,
- size_t size)
- {
- struct snd_pcm_runtime *runtime = subs->runtime;
-diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c
-index b09a3c8..6dcba0a 100644
---- a/drivers/media/video/meye.c
-+++ b/drivers/media/video/meye.c
-@@ -72,6 +72,7 @@ static struct meye meye;
- /****************************************************************************/
- /* Memory allocation routines (stolen from bttv-driver.c) */
- /****************************************************************************/
-+static void *rvmalloc(unsigned long size) __size_overflow(1);
- static void *rvmalloc(unsigned long size)
- {
- void *mem;
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
-index 1fb7d5b..3901e77 100644
+index 88cf9d9..bbc4b2c 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -64,7 +64,6 @@ enum omap_vout_channels {
pvr2_i2c_func i2c_func[PVR2_I2C_FUNC_CNT];
int i2c_cx25840_hack_state;
int i2c_linked;
-diff --git a/drivers/media/video/saa7164/saa7164-encoder.c b/drivers/media/video/saa7164/saa7164-encoder.c
-index 2fd38a0..ddec3c4 100644
---- a/drivers/media/video/saa7164/saa7164-encoder.c
-+++ b/drivers/media/video/saa7164/saa7164-encoder.c
-@@ -1136,6 +1136,8 @@ struct saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port)
- }
-
- static ssize_t fops_read(struct file *file, char __user *buffer,
-+ size_t count, loff_t *pos) __size_overflow(3);
-+static ssize_t fops_read(struct file *file, char __user *buffer,
- size_t count, loff_t *pos)
- {
- struct saa7164_encoder_fh *fh = file->private_data;
-diff --git a/drivers/media/video/saa7164/saa7164-vbi.c b/drivers/media/video/saa7164/saa7164-vbi.c
-index e2e0341..b80056c 100644
---- a/drivers/media/video/saa7164/saa7164-vbi.c
-+++ b/drivers/media/video/saa7164/saa7164-vbi.c
-@@ -1081,6 +1081,8 @@ struct saa7164_user_buffer *saa7164_vbi_next_buf(struct saa7164_port *port)
- }
-
- static ssize_t fops_read(struct file *file, char __user *buffer,
-+ size_t count, loff_t *pos) __size_overflow(3);
-+static ssize_t fops_read(struct file *file, char __user *buffer,
- size_t count, loff_t *pos)
- {
- struct saa7164_vbi_fh *fh = file->private_data;
diff --git a/drivers/media/video/timblogiw.c b/drivers/media/video/timblogiw.c
-index 4ed1c7c2..8f15e13 100644
+index 02194c0..091733b 100644
--- a/drivers/media/video/timblogiw.c
+++ b/drivers/media/video/timblogiw.c
@@ -745,7 +745,7 @@ static int timblogiw_mmap(struct file *file, struct vm_area_struct *vma)
.owner = THIS_MODULE,
.open = timblogiw_open,
.release = timblogiw_close,
-diff --git a/drivers/media/video/videobuf-dma-contig.c b/drivers/media/video/videobuf-dma-contig.c
-index c969111..a7910f4 100644
---- a/drivers/media/video/videobuf-dma-contig.c
-+++ b/drivers/media/video/videobuf-dma-contig.c
-@@ -184,6 +184,7 @@ static int videobuf_dma_contig_user_get(struct videobuf_dma_contig_memory *mem,
- return ret;
- }
-
-+static struct videobuf_buffer *__videobuf_alloc_vb(size_t size) __size_overflow(1);
- static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
- {
- struct videobuf_dma_contig_memory *mem;
-diff --git a/drivers/media/video/videobuf-dma-sg.c b/drivers/media/video/videobuf-dma-sg.c
-index f300dea..5fc9c4a 100644
---- a/drivers/media/video/videobuf-dma-sg.c
-+++ b/drivers/media/video/videobuf-dma-sg.c
-@@ -419,6 +419,7 @@ static const struct vm_operations_struct videobuf_vm_ops = {
- struct videobuf_dma_sg_memory
- */
-
-+static struct videobuf_buffer *__videobuf_alloc_vb(size_t size) __size_overflow(1);
- static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
- {
- struct videobuf_dma_sg_memory *mem;
-diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c
-index df14258..12cc7a3 100644
---- a/drivers/media/video/videobuf-vmalloc.c
-+++ b/drivers/media/video/videobuf-vmalloc.c
-@@ -135,6 +135,7 @@ static const struct vm_operations_struct videobuf_vm_ops = {
- struct videobuf_dma_sg_memory
- */
-
-+static struct videobuf_buffer *__videobuf_alloc_vb(size_t size) __size_overflow(1);
- static struct videobuf_buffer *__videobuf_alloc_vb(size_t size)
- {
- struct videobuf_vmalloc_memory *mem;
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
-index a7dc467..a55c423 100644
+index a5c591f..db692a3 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -6754,8 +6754,13 @@ static int mpt_iocinfo_proc_show(struct seq_file *m, void *v)
#ifdef CONFIG_SGI_GRU_DEBUG
diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
-index 851b2f2..a4ec097 100644
+index c862cd4..0d176fe 100644
--- a/drivers/misc/sgi-xp/xp.h
+++ b/drivers/misc/sgi-xp/xp.h
-@@ -289,7 +289,7 @@ struct xpc_interface {
+@@ -288,7 +288,7 @@ struct xpc_interface {
xpc_notify_func, void *);
void (*received) (short, int, void *);
enum xp_retval (*partid_to_nasids) (short, void *);
/*
* Timer function to enforce the timelimit on the partition disengage.
diff --git a/drivers/mmc/host/sdhci-pci.c b/drivers/mmc/host/sdhci-pci.c
-index 6ebdc40..9edf5d8 100644
+index 69ef0be..f3ef91e 100644
--- a/drivers/mmc/host/sdhci-pci.c
+++ b/drivers/mmc/host/sdhci-pci.c
-@@ -631,7 +631,7 @@ static const struct sdhci_pci_fixes sdhci_via = {
+@@ -652,7 +652,7 @@ static const struct sdhci_pci_fixes sdhci_via = {
.probe = via_probe,
};
.vendor = PCI_VENDOR_ID_RICOH,
.device = PCI_DEVICE_ID_RICOH_R5C822,
diff --git a/drivers/mtd/devices/doc2000.c b/drivers/mtd/devices/doc2000.c
-index 87a431c..4959b43 100644
+index a4eb8b5..8c0628f 100644
--- a/drivers/mtd/devices/doc2000.c
+++ b/drivers/mtd/devices/doc2000.c
-@@ -764,7 +764,7 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
+@@ -753,7 +753,7 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
/* The ECC will not be calculated correctly if less than 512 is written */
/* DBB-
printk(KERN_WARNING
"ECC needs a full sector write (adr: %lx size %lx)\n",
(long) to, (long) len);
-diff --git a/drivers/mtd/devices/doc2001.c b/drivers/mtd/devices/doc2001.c
-index 9eacf67..4534b5b 100644
---- a/drivers/mtd/devices/doc2001.c
-+++ b/drivers/mtd/devices/doc2001.c
-@@ -384,7 +384,7 @@ static int doc_read (struct mtd_info *mtd, loff_t from, size_t len,
- struct Nand *mychip = &this->chips[from >> (this->chipshift)];
-
- /* Don't allow read past end of device */
-- if (from >= this->totlen)
-+ if (from >= this->totlen || !len)
- return -EINVAL;
-
- /* Don't allow a single read to cross a 512-byte block boundary */
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
-index 3984d48..28aa897 100644
+index a9e57d6..c6d8731 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -26,6 +26,7 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/nftl.h>
-diff --git a/drivers/mtd/ubi/debug.c b/drivers/mtd/ubi/debug.c
-index e2cdebf..d48183a 100644
---- a/drivers/mtd/ubi/debug.c
-+++ b/drivers/mtd/ubi/debug.c
-@@ -338,6 +338,8 @@ out:
-
- /* Write an UBI debugfs file */
- static ssize_t dfs_file_write(struct file *file, const char __user *user_buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t dfs_file_write(struct file *file, const char __user *user_buf,
- size_t count, loff_t *ppos)
- {
- unsigned long ubi_num = (unsigned long)file->private_data;
diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c
-index 071f4c8..440862e 100644
+index 6762dc4..9956862 100644
--- a/drivers/net/ethernet/atheros/atlx/atl2.c
+++ b/drivers/net/ethernet/atheros/atlx/atl2.c
-@@ -2862,7 +2862,7 @@ static void atl2_force_ps(struct atl2_hw *hw)
+@@ -2859,7 +2859,7 @@ static void atl2_force_ps(struct atl2_hw *hw)
*/
#define ATL2_PARAM(X, desc) \
MODULE_PARM_DESC(X, desc);
#else
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
-index 66da39f..5dc436d 100644
+index 61a7670..7da6e34 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
-@@ -473,7 +473,7 @@ struct bnx2x_rx_mode_obj {
+@@ -483,7 +483,7 @@ struct bnx2x_rx_mode_obj {
int (*wait_comp)(struct bnx2x *bp,
struct bnx2x_rx_mode_ramrod_params *p);
/********************** Set multicast group ***********************************/
diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h
-index aea8f72..fcebf75 100644
+index 93865f8..5448741 100644
--- a/drivers/net/ethernet/broadcom/tg3.h
+++ b/drivers/net/ethernet/broadcom/tg3.h
@@ -140,6 +140,7 @@
#define CHIPREV_ID_5750_C2 0x4202
#define CHIPREV_ID_5752_A0_HW 0x5000
#define CHIPREV_ID_5752_A0 0x6000
-diff --git a/drivers/net/ethernet/chelsio/cxgb/sge.c b/drivers/net/ethernet/chelsio/cxgb/sge.c
-index 47a8435..248e4b3 100644
---- a/drivers/net/ethernet/chelsio/cxgb/sge.c
-+++ b/drivers/net/ethernet/chelsio/cxgb/sge.c
-@@ -1052,6 +1052,8 @@ MODULE_PARM_DESC(copybreak, "Receive copy threshold");
- * be copied but there is no memory for the copy.
- */
- static inline struct sk_buff *get_packet(struct pci_dev *pdev,
-+ struct freelQ *fl, unsigned int len) __size_overflow(3);
-+static inline struct sk_buff *get_packet(struct pci_dev *pdev,
- struct freelQ *fl, unsigned int len)
- {
- struct sk_buff *skb;
diff --git a/drivers/net/ethernet/chelsio/cxgb3/l2t.h b/drivers/net/ethernet/chelsio/cxgb3/l2t.h
index c4e8643..0979484 100644
--- a/drivers/net/ethernet/chelsio/cxgb3/l2t.h
#define L2T_SKB_CB(skb) ((struct l2t_skb_cb *)(skb)->cb)
-diff --git a/drivers/net/ethernet/chelsio/cxgb3/sge.c b/drivers/net/ethernet/chelsio/cxgb3/sge.c
-index cfb60e1..94af340 100644
---- a/drivers/net/ethernet/chelsio/cxgb3/sge.c
-+++ b/drivers/net/ethernet/chelsio/cxgb3/sge.c
-@@ -611,6 +611,8 @@ static void recycle_rx_buf(struct adapter *adap, struct sge_fl *q,
- * of the SW ring.
- */
- static void *alloc_ring(struct pci_dev *pdev, size_t nelem, size_t elem_size,
-+ size_t sw_size, dma_addr_t * phys, void *metadata) __size_overflow(2,4);
-+static void *alloc_ring(struct pci_dev *pdev, size_t nelem, size_t elem_size,
- size_t sw_size, dma_addr_t * phys, void *metadata)
- {
- size_t len = nelem * elem_size;
-@@ -777,6 +779,8 @@ static inline unsigned int flits_to_desc(unsigned int n)
- * be copied but there is no memory for the copy.
- */
- static struct sk_buff *get_packet(struct adapter *adap, struct sge_fl *fl,
-+ unsigned int len, unsigned int drop_thres) __size_overflow(3);
-+static struct sk_buff *get_packet(struct adapter *adap, struct sge_fl *fl,
- unsigned int len, unsigned int drop_thres)
- {
- struct sk_buff *skb = NULL;
-diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c
-index 2dae795..73037d2 100644
---- a/drivers/net/ethernet/chelsio/cxgb4/sge.c
-+++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c
-@@ -593,6 +593,9 @@ static inline void __refill_fl(struct adapter *adap, struct sge_fl *fl)
- */
- static void *alloc_ring(struct device *dev, size_t nelem, size_t elem_size,
- size_t sw_size, dma_addr_t *phys, void *metadata,
-+ size_t stat_size, int node) __size_overflow(2,4);
-+static void *alloc_ring(struct device *dev, size_t nelem, size_t elem_size,
-+ size_t sw_size, dma_addr_t *phys, void *metadata,
- size_t stat_size, int node)
- {
- size_t len = nelem * elem_size + stat_size;
-diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c
-index 0bd585b..d954ca5 100644
---- a/drivers/net/ethernet/chelsio/cxgb4vf/sge.c
-+++ b/drivers/net/ethernet/chelsio/cxgb4vf/sge.c
-@@ -729,6 +729,9 @@ static inline void __refill_fl(struct adapter *adapter, struct sge_fl *fl)
- */
- static void *alloc_ring(struct device *dev, size_t nelem, size_t hwsize,
- size_t swsize, dma_addr_t *busaddrp, void *swringp,
-+ size_t stat_size) __size_overflow(2,4);
-+static void *alloc_ring(struct device *dev, size_t nelem, size_t hwsize,
-+ size_t swsize, dma_addr_t *busaddrp, void *swringp,
- size_t stat_size)
- {
- /*
diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
-index 4d71f5a..8004440 100644
+index 18b106c..2b38d36 100644
--- a/drivers/net/ethernet/dec/tulip/de4x5.c
+++ b/drivers/net/ethernet/dec/tulip/de4x5.c
-@@ -5392,7 +5392,7 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
+@@ -5388,7 +5388,7 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
for (i=0; i<ETH_ALEN; i++) {
tmp.addr[i] = dev->dev_addr[i];
}
break;
case DE4X5_SET_HWADDR: /* Set the hardware address */
-@@ -5432,7 +5432,7 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
+@@ -5428,7 +5428,7 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
spin_lock_irqsave(&lp->lock, flags);
memcpy(&statbuf, &lp->pktStats, ioc->len);
spin_unlock_irqrestore(&lp->lock, flags);
break;
}
diff --git a/drivers/net/ethernet/dec/tulip/eeprom.c b/drivers/net/ethernet/dec/tulip/eeprom.c
-index 14d5b61..1398636 100644
+index ed7d1dc..d426748 100644
--- a/drivers/net/ethernet/dec/tulip/eeprom.c
+++ b/drivers/net/ethernet/dec/tulip/eeprom.c
@@ -79,7 +79,7 @@ static struct eeprom_fixup eeprom_fixups[] __devinitdata = {
"21140 MII PHY",
"21142 Serial PHY",
diff --git a/drivers/net/ethernet/dec/tulip/winbond-840.c b/drivers/net/ethernet/dec/tulip/winbond-840.c
-index 52da7b2..4ddfe1c 100644
+index 2ac6fff..2d127d0 100644
--- a/drivers/net/ethernet/dec/tulip/winbond-840.c
+++ b/drivers/net/ethernet/dec/tulip/winbond-840.c
@@ -236,7 +236,7 @@ struct pci_id_info {
{ /* Sometime a Level-One switch card. */
"Winbond W89c840", CanHaveMII | HasBrokenTx | FDXOnNoMII},
{ "Winbond W89c840", CanHaveMII | HasBrokenTx},
-diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c
-index b2dc2c8..2e09edb 100644
---- a/drivers/net/ethernet/dlink/dl2k.c
-+++ b/drivers/net/ethernet/dlink/dl2k.c
-@@ -1259,55 +1259,21 @@ rio_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
- {
- int phy_addr;
- struct netdev_private *np = netdev_priv(dev);
-- struct mii_data *miidata = (struct mii_data *) &rq->ifr_ifru;
--
-- struct netdev_desc *desc;
-- int i;
-+ struct mii_ioctl_data *miidata = if_mii(rq);
-
- phy_addr = np->phy_addr;
- switch (cmd) {
-- case SIOCDEVPRIVATE:
-+ case SIOCGMIIPHY:
-+ miidata->phy_id = phy_addr;
- break;
--
-- case SIOCDEVPRIVATE + 1:
-- miidata->out_value = mii_read (dev, phy_addr, miidata->reg_num);
-+ case SIOCGMIIREG:
-+ miidata->val_out = mii_read (dev, phy_addr, miidata->reg_num);
- break;
-- case SIOCDEVPRIVATE + 2:
-- mii_write (dev, phy_addr, miidata->reg_num, miidata->in_value);
-+ case SIOCSMIIREG:
-+ if (!capable(CAP_NET_ADMIN))
-+ return -EPERM;
-+ mii_write (dev, phy_addr, miidata->reg_num, miidata->val_in);
- break;
-- case SIOCDEVPRIVATE + 3:
-- break;
-- case SIOCDEVPRIVATE + 4:
-- break;
-- case SIOCDEVPRIVATE + 5:
-- netif_stop_queue (dev);
-- break;
-- case SIOCDEVPRIVATE + 6:
-- netif_wake_queue (dev);
-- break;
-- case SIOCDEVPRIVATE + 7:
-- printk
-- ("tx_full=%x cur_tx=%lx old_tx=%lx cur_rx=%lx old_rx=%lx\n",
-- netif_queue_stopped(dev), np->cur_tx, np->old_tx, np->cur_rx,
-- np->old_rx);
-- break;
-- case SIOCDEVPRIVATE + 8:
-- printk("TX ring:\n");
-- for (i = 0; i < TX_RING_SIZE; i++) {
-- desc = &np->tx_ring[i];
-- printk
-- ("%02x:cur:%08x next:%08x status:%08x frag1:%08x frag0:%08x",
-- i,
-- (u32) (np->tx_ring_dma + i * sizeof (*desc)),
-- (u32)le64_to_cpu(desc->next_desc),
-- (u32)le64_to_cpu(desc->status),
-- (u32)(le64_to_cpu(desc->fraginfo) >> 32),
-- (u32)le64_to_cpu(desc->fraginfo));
-- printk ("\n");
-- }
-- printk ("\n");
-- break;
--
- default:
- return -EOPNOTSUPP;
- }
-diff --git a/drivers/net/ethernet/dlink/dl2k.h b/drivers/net/ethernet/dlink/dl2k.h
-index ba0adca..30c2da3 100644
---- a/drivers/net/ethernet/dlink/dl2k.h
-+++ b/drivers/net/ethernet/dlink/dl2k.h
-@@ -365,13 +365,6 @@ struct ioctl_data {
- char *data;
- };
-
--struct mii_data {
-- __u16 reserved;
-- __u16 reg_num;
-- __u16 in_value;
-- __u16 out_value;
--};
--
- /* The Rx and Tx buffer descriptors. */
- struct netdev_desc {
- __le64 next_desc;
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c
-index 28a3a9b..d96cb63 100644
+index d783f4f..97fa1b0 100644
--- a/drivers/net/ethernet/dlink/sundance.c
+++ b/drivers/net/ethernet/dlink/sundance.c
@@ -218,7 +218,7 @@ enum {
{"D-Link DFE-550FX 100Mbps Fiber-optics Adapter"},
{"D-Link DFE-580TX 4 port Server Adapter"},
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
-index e703d64..d62ecf9 100644
+index 528a886..e6a98a3 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
-@@ -402,7 +402,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val)
+@@ -403,7 +403,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val)
if (wrapped)
newacc += 65536;
void be_parse_stats(struct be_adapter *adapter)
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c
-index 47f85c3..82ab6c4 100644
+index 16b0704..d2c07d7 100644
--- a/drivers/net/ethernet/faraday/ftgmac100.c
+++ b/drivers/net/ethernet/faraday/ftgmac100.c
@@ -31,6 +31,8 @@
#include "ftgmac100.h"
diff --git a/drivers/net/ethernet/faraday/ftmac100.c b/drivers/net/ethernet/faraday/ftmac100.c
-index bb336a0..4b472da 100644
+index 829b109..4ae5f6a 100644
--- a/drivers/net/ethernet/faraday/ftmac100.c
+++ b/drivers/net/ethernet/faraday/ftmac100.c
@@ -31,6 +31,8 @@
#include "ftmac100.h"
diff --git a/drivers/net/ethernet/fealnx.c b/drivers/net/ethernet/fealnx.c
-index c82d444..0007fb4 100644
+index 1637b98..c42f87b 100644
--- a/drivers/net/ethernet/fealnx.c
+++ b/drivers/net/ethernet/fealnx.c
@@ -150,7 +150,7 @@ struct chip_info {
{ "100/10M Ethernet PCI Adapter", HAS_MII_XCVR },
{ "100/10M Ethernet PCI Adapter", HAS_CHIP_XCVR },
{ "1000/100/10M Ethernet PCI Adapter", HAS_MII_XCVR },
-diff --git a/drivers/net/ethernet/intel/e1000e/80003es2lan.c b/drivers/net/ethernet/intel/e1000e/80003es2lan.c
-index e1159e5..e18684d 100644
---- a/drivers/net/ethernet/intel/e1000e/80003es2lan.c
-+++ b/drivers/net/ethernet/intel/e1000e/80003es2lan.c
-@@ -205,7 +205,7 @@ static s32 e1000_init_mac_params_80003es2lan(struct e1000_adapter *adapter)
- {
- struct e1000_hw *hw = &adapter->hw;
- struct e1000_mac_info *mac = &hw->mac;
-- struct e1000_mac_operations *func = &mac->ops;
-+ e1000_mac_operations_no_const *func = &mac->ops;
-
- /* Set media type */
- switch (adapter->pdev->device) {
-diff --git a/drivers/net/ethernet/intel/e1000e/82571.c b/drivers/net/ethernet/intel/e1000e/82571.c
-index a3e65fd..f451444 100644
---- a/drivers/net/ethernet/intel/e1000e/82571.c
-+++ b/drivers/net/ethernet/intel/e1000e/82571.c
-@@ -239,7 +239,7 @@ static s32 e1000_init_mac_params_82571(struct e1000_adapter *adapter)
- {
- struct e1000_hw *hw = &adapter->hw;
- struct e1000_mac_info *mac = &hw->mac;
-- struct e1000_mac_operations *func = &mac->ops;
-+ e1000_mac_operations_no_const *func = &mac->ops;
- u32 swsm = 0;
- u32 swsm2 = 0;
- bool force_clear_smbi = false;
+diff --git a/drivers/net/ethernet/intel/e1000e/e1000.h b/drivers/net/ethernet/intel/e1000e/e1000.h
+index b83897f..b2d970f 100644
+--- a/drivers/net/ethernet/intel/e1000e/e1000.h
++++ b/drivers/net/ethernet/intel/e1000e/e1000.h
+@@ -181,7 +181,7 @@ struct e1000_info;
+ #define E1000_TXDCTL_DMA_BURST_ENABLE \
+ (E1000_TXDCTL_GRAN | /* set descriptor granularity */ \
+ E1000_TXDCTL_COUNT_DESC | \
+- (5 << 16) | /* wthresh must be +1 more than desired */\
++ (1 << 16) | /* wthresh must be +1 more than desired */\
+ (1 << 8) | /* hthresh */ \
+ 0x1f) /* pthresh */
+
diff --git a/drivers/net/ethernet/intel/e1000e/hw.h b/drivers/net/ethernet/intel/e1000e/hw.h
-index 2967039..ca8c40c 100644
+index f82ecf5..7d59ecb 100644
--- a/drivers/net/ethernet/intel/e1000e/hw.h
+++ b/drivers/net/ethernet/intel/e1000e/hw.h
-@@ -778,6 +778,7 @@ struct e1000_mac_operations {
- void (*write_vfta)(struct e1000_hw *, u32, u32);
+@@ -784,6 +784,7 @@ struct e1000_mac_operations {
+ void (*config_collision_dist)(struct e1000_hw *);
s32 (*read_mac_addr)(struct e1000_hw *);
};
+typedef struct e1000_mac_operations __no_const e1000_mac_operations_no_const;
/*
* When to use various PHY register access functions:
-@@ -818,6 +819,7 @@ struct e1000_phy_operations {
+@@ -824,6 +825,7 @@ struct e1000_phy_operations {
void (*power_up)(struct e1000_hw *);
void (*power_down)(struct e1000_hw *);
};
/* Function pointers for the NVM. */
struct e1000_nvm_operations {
-@@ -829,9 +831,10 @@ struct e1000_nvm_operations {
+@@ -836,9 +838,10 @@ struct e1000_nvm_operations {
s32 (*validate)(struct e1000_hw *);
s32 (*write)(struct e1000_hw *, u16, u16, u16 *);
};
u8 addr[ETH_ALEN];
u8 perm_addr[ETH_ALEN];
-@@ -872,7 +875,7 @@ struct e1000_mac_info {
+@@ -879,7 +882,7 @@ struct e1000_mac_info {
};
struct e1000_phy_info {
enum e1000_phy_type type;
-@@ -906,7 +909,7 @@ struct e1000_phy_info {
+@@ -913,7 +916,7 @@ struct e1000_phy_info {
};
struct e1000_nvm_info {
u32 timeout;
u32 usec_delay;
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
-index 9b95bef..7e254ee 100644
+index 8636e83..ab9bbc3 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_type.h
-@@ -2708,6 +2708,7 @@ struct ixgbe_eeprom_operations {
+@@ -2710,6 +2710,7 @@ struct ixgbe_eeprom_operations {
s32 (*update_checksum)(struct ixgbe_hw *);
u16 (*calc_checksum)(struct ixgbe_hw *);
};
struct ixgbe_mac_operations {
s32 (*init_hw)(struct ixgbe_hw *);
-@@ -2769,6 +2770,7 @@ struct ixgbe_mac_operations {
+@@ -2773,6 +2774,7 @@ struct ixgbe_mac_operations {
/* Manageability interface */
s32 (*set_fw_drv_ver)(struct ixgbe_hw *, u8, u8, u8, u8);
};
struct ixgbe_phy_operations {
s32 (*identify)(struct ixgbe_hw *);
-@@ -2788,9 +2790,10 @@ struct ixgbe_phy_operations {
+@@ -2792,9 +2794,10 @@ struct ixgbe_phy_operations {
s32 (*write_i2c_eeprom)(struct ixgbe_hw *, u8, u8);
s32 (*check_overtemp)(struct ixgbe_hw *);
};
enum ixgbe_eeprom_type type;
u32 semaphore_delay;
u16 word_size;
-@@ -2800,7 +2803,7 @@ struct ixgbe_eeprom_info {
+@@ -2804,7 +2807,7 @@ struct ixgbe_eeprom_info {
#define IXGBE_FLAGS_DOUBLE_RESET_REQUIRED 0x01
struct ixgbe_mac_info {
enum ixgbe_mac_type type;
u8 addr[ETH_ALEN];
u8 perm_addr[ETH_ALEN];
-@@ -2828,7 +2831,7 @@ struct ixgbe_mac_info {
+@@ -2832,7 +2835,7 @@ struct ixgbe_mac_info {
};
struct ixgbe_phy_info {
struct mdio_if_info mdio;
enum ixgbe_phy_type type;
u32 id;
-@@ -2856,6 +2859,7 @@ struct ixgbe_mbx_operations {
+@@ -2860,6 +2863,7 @@ struct ixgbe_mbx_operations {
s32 (*check_for_ack)(struct ixgbe_hw *, u16);
s32 (*check_for_rst)(struct ixgbe_hw *, u16);
};
struct ixgbe_mbx_stats {
u32 msgs_tx;
-@@ -2867,7 +2871,7 @@ struct ixgbe_mbx_stats {
+@@ -2871,7 +2875,7 @@ struct ixgbe_mbx_stats {
};
struct ixgbe_mbx_info {
u32 timeout;
u32 udelay;
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
-index 8bf22b6..7f5baaa 100644
+index 8bb05b4..074796f 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -41,6 +41,7 @@
#define VXGE_HW_VIRTUAL_PATH_HANDLE(vpath) \
((struct __vxge_hw_vpath_handle *)(vpath)->vpath_handles.next)
diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
-index bbacb37..d60887d 100644
+index ce6b44d..74f10c2 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
-@@ -695,17 +695,17 @@ struct rtl8169_private {
+@@ -708,17 +708,17 @@ struct rtl8169_private {
struct mdio_ops {
void (*write)(void __iomem *, int, int);
int (*read)(void __iomem *, int);
int (*set_speed)(struct net_device *, u8 aneg, u16 sp, u8 dpx, u32 adv);
int (*get_settings)(struct net_device *, struct ethtool_cmd *);
diff --git a/drivers/net/ethernet/sis/sis190.c b/drivers/net/ethernet/sis/sis190.c
-index 5b118cd..858b523 100644
+index a9deda8..5507c31 100644
--- a/drivers/net/ethernet/sis/sis190.c
+++ b/drivers/net/ethernet/sis/sis190.c
-@@ -1622,7 +1622,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
+@@ -1620,7 +1620,7 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,
static int __devinit sis190_get_mac_addr_from_apc(struct pci_dev *pdev,
struct net_device *dev)
{
}
/* To mask all all interrupts.*/
+diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+index 48d56da..a27e46c 100644
+--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
++++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+@@ -1584,7 +1584,7 @@ static const struct file_operations stmmac_rings_status_fops = {
+ .open = stmmac_sysfs_ring_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+- .release = seq_release,
++ .release = single_release,
+ };
+
+ static int stmmac_sysfs_dma_cap_read(struct seq_file *seq, void *v)
+@@ -1656,7 +1656,7 @@ static const struct file_operations stmmac_dma_cap_fops = {
+ .open = stmmac_sysfs_dma_cap_open,
+ .read = seq_read,
+ .llseek = seq_lseek,
+- .release = seq_release,
++ .release = single_release,
+ };
+
+ static int stmmac_init_fs(struct net_device *dev)
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
-index dec5836..6d4db7d 100644
+index c358245..8c1de63 100644
--- a/drivers/net/hyperv/hyperv_net.h
+++ b/drivers/net/hyperv/hyperv_net.h
-@@ -97,7 +97,7 @@ struct rndis_device {
+@@ -98,7 +98,7 @@ struct rndis_device {
enum rndis_device_state state;
bool link_state;
spinlock_t request_lock;
struct list_head req_list;
diff --git a/drivers/net/hyperv/rndis_filter.c b/drivers/net/hyperv/rndis_filter.c
-index 133b7fb..d58c559 100644
+index d6be64b..5d97e3b 100644
--- a/drivers/net/hyperv/rndis_filter.c
+++ b/drivers/net/hyperv/rndis_filter.c
-@@ -96,7 +96,7 @@ static struct rndis_request *get_rndis_request(struct rndis_device *dev,
+@@ -97,7 +97,7 @@ static struct rndis_request *get_rndis_request(struct rndis_device *dev,
* template
*/
set = &rndis_msg->msg.set_req;
/* Add to the request list */
spin_lock_irqsave(&dev->request_lock, flags);
-@@ -627,7 +627,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev)
+@@ -648,7 +648,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev)
/* Setup the rndis set */
halt = &request->request_msg.msg.halt_req;
/* Ignore return since this msg is optional. */
rndis_filter_send_request(dev, request);
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
-index 58dc117..f140c77 100644
+index cb8fd50..003ec38 100644
--- a/drivers/net/macvtap.c
+++ b/drivers/net/macvtap.c
-@@ -526,6 +526,8 @@ static int zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from,
+@@ -528,6 +528,8 @@ static int zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from,
}
base = (unsigned long)from->iov_base + offset1;
size = ((base & ~PAGE_MASK) + len + ~PAGE_MASK) >> PAGE_SHIFT;
if ((num_pages != size) ||
(num_pages > MAX_SKB_FRAGS - skb_shinfo(skb)->nr_frags))
diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
-index 3ed983c..a1bb418 100644
+index 21d7151..8034208 100644
--- a/drivers/net/ppp/ppp_generic.c
+++ b/drivers/net/ppp/ppp_generic.c
@@ -986,7 +986,6 @@ ppp_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
err = 0;
break;
diff --git a/drivers/net/tokenring/abyss.c b/drivers/net/tokenring/abyss.c
-index 515f122..41dd273 100644
+index b715e6b..6d2490f 100644
--- a/drivers/net/tokenring/abyss.c
+++ b/drivers/net/tokenring/abyss.c
-@@ -451,10 +451,12 @@ static struct pci_driver abyss_driver = {
+@@ -450,10 +450,12 @@ static struct pci_driver abyss_driver = {
static int __init abyss_init (void)
{
return pci_register_driver(&abyss_driver);
}
diff --git a/drivers/net/tokenring/madgemc.c b/drivers/net/tokenring/madgemc.c
-index 6153cfd..cf69c1c 100644
+index 28adcdf..ae82f35 100644
--- a/drivers/net/tokenring/madgemc.c
+++ b/drivers/net/tokenring/madgemc.c
-@@ -744,9 +744,11 @@ static struct mca_driver madgemc_driver = {
+@@ -742,9 +742,11 @@ static struct mca_driver madgemc_driver = {
static int __init madgemc_init (void)
{
return mca_register_driver (&madgemc_driver);
}
diff --git a/drivers/net/tokenring/proteon.c b/drivers/net/tokenring/proteon.c
-index 8d362e6..f91cc52 100644
+index 62d90e4..9d84237 100644
--- a/drivers/net/tokenring/proteon.c
+++ b/drivers/net/tokenring/proteon.c
-@@ -353,9 +353,11 @@ static int __init proteon_init(void)
+@@ -352,9 +352,11 @@ static int __init proteon_init(void)
struct platform_device *pdev;
int i, num = 0, err = 0;
err = platform_driver_register(&proteon_driver);
if (err)
diff --git a/drivers/net/tokenring/skisa.c b/drivers/net/tokenring/skisa.c
-index 46db5c5..37c1536 100644
+index ee11e93..c8f19c7 100644
--- a/drivers/net/tokenring/skisa.c
+++ b/drivers/net/tokenring/skisa.c
-@@ -363,9 +363,11 @@ static int __init sk_isa_init(void)
+@@ -362,9 +362,11 @@ static int __init sk_isa_init(void)
struct platform_device *pdev;
int i, num = 0, err = 0;
err = platform_driver_register(&sk_isa_driver);
if (err)
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
-index e1324b4..e1b0041 100644
+index 2d2a688..35f2372 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -71,7 +71,7 @@
hso_start_serial_device(serial_table[i], GFP_NOIO);
hso_kick_transmit(dev2ser(serial_table[i]));
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
-index efc0111..79c8f5b 100644
+index c54b7d37..af1f359 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -119,6 +119,7 @@ struct ath_ops {
struct ath_common;
struct ath_bus_ops;
-diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c
-index 8c5ce8b..abf101b 100644
---- a/drivers/net/wireless/ath/ath5k/debug.c
-+++ b/drivers/net/wireless/ath/ath5k/debug.c
-@@ -343,6 +343,9 @@ static ssize_t read_file_debug(struct file *file, char __user *user_buf,
-
- static ssize_t write_file_debug(struct file *file,
- const char __user *userbuf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t write_file_debug(struct file *file,
-+ const char __user *userbuf,
- size_t count, loff_t *ppos)
- {
- struct ath5k_hw *ah = file->private_data;
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
-index 7b6417b..ab5db98 100644
+index aa2abaf..5f5152d 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
@@ -183,8 +183,8 @@ ar9002_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
| set11nRateFlags(i->rates, 2)
| set11nRateFlags(i->rates, 3)
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_mac.c b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
-index 09b8c9d..905339e 100644
+index a66a13b..0ef399e 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_mac.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_mac.c
-@@ -35,47 +35,47 @@ ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
- (i->qcu << AR_TxQcuNum_S) | 0x17;
+@@ -39,47 +39,47 @@ ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
+ (i->qcu << AR_TxQcuNum_S) | desc_len;
checksum += val;
- ACCESS_ONCE(ads->info) = val;
}
ads->ctl20 = 0;
-@@ -84,17 +84,17 @@ ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
+@@ -89,17 +89,17 @@ ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
ctl17 = SM(i->keytype, AR_EncrType);
if (!i->is_first) {
| (i->flags & ATH9K_TXDESC_VMF ? AR_VirtMoreFrag : 0)
| SM(i->txpower, AR_XmitPower)
| (i->flags & ATH9K_TXDESC_VEOL ? AR_VEOL : 0)
-@@ -130,22 +130,22 @@ ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
+@@ -135,22 +135,22 @@ ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i)
val = (i->flags & ATH9K_TXDESC_PAPRD) >> ATH9K_TXDESC_PAPRD_S;
ctl12 |= SM(val, AR_PAPRDChainMask);
}
static u16 ar9003_calc_ptr_chksum(struct ar9003_txc *ads)
-diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
-index 68d972b..1d9205b 100644
---- a/drivers/net/wireless/ath/ath9k/debug.c
-+++ b/drivers/net/wireless/ath/ath9k/debug.c
-@@ -60,6 +60,8 @@ static ssize_t read_file_debug(struct file *file, char __user *user_buf,
- }
-
- static ssize_t write_file_debug(struct file *file, const char __user *user_buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t write_file_debug(struct file *file, const char __user *user_buf,
- size_t count, loff_t *ppos)
- {
- struct ath_softc *sc = file->private_data;
-diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_debug.c b/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
-index d3ff33c..c98bcda 100644
---- a/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
-+++ b/drivers/net/wireless/ath/ath9k/htc_drv_debug.c
-@@ -464,6 +464,8 @@ static ssize_t read_file_debug(struct file *file, char __user *user_buf,
- }
-
- static ssize_t write_file_debug(struct file *file, const char __user *user_buf,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t write_file_debug(struct file *file, const char __user *user_buf,
- size_t count, loff_t *ppos)
- {
- struct ath9k_htc_priv *priv = file->private_data;
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
-index c8261d4..8d88929 100644
+index e88f182..4e57f5d 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
-@@ -773,7 +773,7 @@ struct ath_hw_private_ops {
+@@ -614,7 +614,7 @@ struct ath_hw_private_ops {
/* ANI */
void (*ani_cache_ini_regs)(struct ath_hw *ah);
/**
* struct ath_hw_ops - callbacks used by hardware code and driver code
-@@ -803,7 +803,7 @@ struct ath_hw_ops {
+@@ -644,7 +644,7 @@ struct ath_hw_ops {
void (*antdiv_comb_conf_set)(struct ath_hw *ah,
struct ath_hw_antcomb_conf *antconf);
struct ath_nf_limits {
s16 max;
-@@ -823,7 +823,7 @@ enum ath_cal_list {
+@@ -664,7 +664,7 @@ enum ath_cal_list {
#define AH_FASTCC 0x4
struct ath_hw {
struct brcms_phy {
struct brcms_phy_pub pubpi_ro;
diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c
-index a2ec369..36fdf14 100644
+index faec404..a5277f1 100644
--- a/drivers/net/wireless/iwlegacy/3945-mac.c
+++ b/drivers/net/wireless/iwlegacy/3945-mac.c
-@@ -3646,7 +3646,9 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
+@@ -3611,7 +3611,9 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
*/
if (il3945_mod_params.disable_hw_scan) {
D_INFO("Disabling hw_scan\n");
-- il3945_hw_ops.hw_scan = NULL;
+- il3945_mac_ops.hw_scan = NULL;
+ pax_open_kernel();
-+ *(void **)&il3945_hw_ops.hw_scan = NULL;
++ *(void **)&il3945_mac_ops.hw_scan = NULL;
+ pax_close_kernel();
}
D_INFO("*** LOAD DRIVER ***\n");
-diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
-index f8fc239..8cade22 100644
---- a/drivers/net/wireless/iwlwifi/iwl-debug.h
-+++ b/drivers/net/wireless/iwlwifi/iwl-debug.h
-@@ -86,8 +86,8 @@ do { \
- } while (0)
-
- #else
--#define IWL_DEBUG(m, level, fmt, args...)
--#define IWL_DEBUG_LIMIT(m, level, fmt, args...)
-+#define IWL_DEBUG(m, level, fmt, args...) do {} while (0)
-+#define IWL_DEBUG_LIMIT(m, level, fmt, args...) do {} while (0)
- #define iwl_print_hex_dump(m, level, p, len)
- #define IWL_DEBUG_QUIET_RFKILL(p, fmt, args...) \
- do { \
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
-index 4b9e730..7603659 100644
+index b7ce6a6..5649756 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
-@@ -1677,9 +1677,11 @@ static int __init init_mac80211_hwsim(void)
+@@ -1721,9 +1721,11 @@ static int __init init_mac80211_hwsim(void)
return -EINVAL;
if (fake_hw_scan) {
spin_lock_init(&hwsim_radio_lock);
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
-index 3186aa4..b35b09f 100644
+index 35225e9..95e6bf9 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
-@@ -536,7 +536,7 @@ struct mwifiex_if_ops {
+@@ -537,7 +537,7 @@ struct mwifiex_if_ops {
void (*cleanup_mpa_buf) (struct mwifiex_adapter *);
int (*cmdrsp_complete) (struct mwifiex_adapter *, struct sk_buff *);
int (*event_complete) (struct mwifiex_adapter *, struct sk_buff *);
struct mwifiex_adapter {
u8 iface_type;
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
-index a330c69..a81540f 100644
+index d66e298..55b0a89 100644
--- a/drivers/net/wireless/rndis_wlan.c
+++ b/drivers/net/wireless/rndis_wlan.c
@@ -1278,7 +1278,7 @@ static int set_rts_threshold(struct usbnet *usbdev, u32 rts_threshold)
tmp = cpu_to_le32(rts_threshold);
diff --git a/drivers/net/wireless/wl1251/wl1251.h b/drivers/net/wireless/wl1251/wl1251.h
-index a77f1bb..c608b2b 100644
+index 9d8f581..0f6589e 100644
--- a/drivers/net/wireless/wl1251/wl1251.h
+++ b/drivers/net/wireless/wl1251/wl1251.h
@@ -266,7 +266,7 @@ struct wl1251_if_operations {
start_switch_worker();
}
-diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c
-index 84a208d..f07d177 100644
---- a/drivers/oprofile/oprofile_files.c
-+++ b/drivers/oprofile/oprofile_files.c
-@@ -36,6 +36,8 @@ static ssize_t timeout_read(struct file *file, char __user *buf,
-
-
- static ssize_t timeout_write(struct file *file, char const __user *buf,
-+ size_t count, loff_t *offset) __size_overflow(3);
-+static ssize_t timeout_write(struct file *file, char const __user *buf,
- size_t count, loff_t *offset)
- {
- unsigned long val;
-@@ -72,6 +74,7 @@ static ssize_t depth_read(struct file *file, char __user *buf, size_t count, lof
- }
-
-
-+static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) __size_overflow(3);
- static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset)
- {
- unsigned long val;
-@@ -126,12 +129,14 @@ static const struct file_operations cpu_type_fops = {
- };
-
-
-+static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset) __size_overflow(3);
- static ssize_t enable_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
- {
- return oprofilefs_ulong_to_user(oprofile_started, buf, count, offset);
- }
-
-
-+static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) __size_overflow(3);
- static ssize_t enable_write(struct file *file, char const __user *buf, size_t count, loff_t *offset)
- {
- unsigned long val;
diff --git a/drivers/oprofile/oprofile_stats.c b/drivers/oprofile/oprofile_stats.c
index 917d28e..d62d981 100644
--- a/drivers/oprofile/oprofile_stats.c
extern struct oprofile_stat_struct oprofile_stats;
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c
-index 2f0aa0f..d5246c3 100644
+index 849357c..b83c1e0 100644
--- a/drivers/oprofile/oprofilefs.c
+++ b/drivers/oprofile/oprofilefs.c
-@@ -97,6 +97,7 @@ static ssize_t ulong_read_file(struct file *file, char __user *buf, size_t count
- }
-
-
-+static ssize_t ulong_write_file(struct file *file, char const __user *buf, size_t count, loff_t *offset) __size_overflow(3);
- static ssize_t ulong_write_file(struct file *file, char const __user *buf, size_t count, loff_t *offset)
- {
- unsigned long value;
-@@ -193,7 +194,7 @@ static const struct file_operations atomic_ro_fops = {
+@@ -185,7 +185,7 @@ static const struct file_operations atomic_ro_fops = {
int oprofilefs_create_ro_atomic(struct super_block *sb, struct dentry *root,
/* initialize our int15 lock */
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
-index 2275162..95f1a92 100644
+index b500840..d7159d3 100644
--- a/drivers/pci/pcie/aspm.c
+++ b/drivers/pci/pcie/aspm.c
@@ -27,9 +27,9 @@
#define ASPM_STATE_ALL (ASPM_STATE_L0S | ASPM_STATE_L1)
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
-index 71eac9c..2de27ef 100644
+index 5e1ca3c..08082fe 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
-@@ -136,7 +136,7 @@ int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
- u32 l, sz, mask;
+@@ -215,7 +215,7 @@ int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
u16 orig_cmd;
+ struct pci_bus_region region;
- mask = type ? PCI_ROM_ADDRESS_MASK : ~0;
+ mask = type ? (u32)PCI_ROM_ADDRESS_MASK : ~0;
proc_create("devices", 0, proc_bus_pci_dir,
&proc_bus_pci_dev_operations);
proc_initialized = 1;
-diff --git a/drivers/platform/x86/asus_acpi.c b/drivers/platform/x86/asus_acpi.c
-index 6f966d6..68e18ed 100644
---- a/drivers/platform/x86/asus_acpi.c
-+++ b/drivers/platform/x86/asus_acpi.c
-@@ -887,6 +887,8 @@ static int lcd_proc_open(struct inode *inode, struct file *file)
- }
-
- static ssize_t lcd_proc_write(struct file *file, const char __user *buffer,
-+ size_t count, loff_t *pos) __size_overflow(3);
-+static ssize_t lcd_proc_write(struct file *file, const char __user *buffer,
- size_t count, loff_t *pos)
- {
- int rv, value;
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
-index ea0c607..58c4628 100644
+index d68c000..f6094ca 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -2094,7 +2094,7 @@ static int hotkey_mask_get(void)
/*
* Polling driver
-diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
-index dcdc1f4..85cee16 100644
---- a/drivers/platform/x86/toshiba_acpi.c
-+++ b/drivers/platform/x86/toshiba_acpi.c
-@@ -517,6 +517,8 @@ static int set_lcd_status(struct backlight_device *bd)
- }
-
- static ssize_t lcd_proc_write(struct file *file, const char __user *buf,
-+ size_t count, loff_t *pos) __size_overflow(3);
-+static ssize_t lcd_proc_write(struct file *file, const char __user *buf,
- size_t count, loff_t *pos)
- {
- struct toshiba_acpi_dev *dev = PDE(file->f_path.dentry->d_inode)->data;
diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c
-index b859d16..5cc6b1a 100644
+index 769d265..a3a05ca 100644
--- a/drivers/pnp/pnpbios/bioscalls.c
+++ b/drivers/pnp/pnpbios/bioscalls.c
-@@ -59,7 +59,7 @@ do { \
+@@ -58,7 +58,7 @@ do { \
set_desc_limit(&gdt[(selname) >> 3], (size) - 1); \
} while(0)
(unsigned long)__va(0x400UL), PAGE_SIZE - 0x400 - 1);
/*
-@@ -96,7 +96,10 @@ static inline u16 call_pnp_bios(u16 func, u16 arg1, u16 arg2, u16 arg3,
+@@ -95,7 +95,10 @@ static inline u16 call_pnp_bios(u16 func, u16 arg1, u16 arg2, u16 arg3,
cpu = get_cpu();
save_desc_40 = get_cpu_gdt_table(cpu)[0x40 / 8];
/* On some boxes IRQ's during PnP BIOS calls are deadly. */
spin_lock_irqsave(&pnp_bios_lock, flags);
-@@ -134,7 +137,10 @@ static inline u16 call_pnp_bios(u16 func, u16 arg1, u16 arg2, u16 arg3,
+@@ -133,7 +136,10 @@ static inline u16 call_pnp_bios(u16 func, u16 arg1, u16 arg2, u16 arg3,
:"memory");
spin_unlock_irqrestore(&pnp_bios_lock, flags);
put_cpu();
/* If we get here and this is set then the PnP BIOS faulted on us. */
-@@ -468,7 +474,7 @@ int pnp_bios_read_escd(char *data, u32 nvram_base)
+@@ -467,7 +473,7 @@ int pnp_bios_read_escd(char *data, u32 nvram_base)
return status;
}
{
int i;
-@@ -476,6 +482,8 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header)
+@@ -475,6 +481,8 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header)
pnp_bios_callpoint.offset = header->fields.pm16offset;
pnp_bios_callpoint.segment = PNP_CS16;
for_each_possible_cpu(i) {
struct desc_struct *gdt = get_cpu_gdt_table(i);
if (!gdt)
-@@ -487,4 +495,6 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header)
+@@ -486,4 +494,6 @@ void pnpbios_calls_init(union pnp_bios_install_struct *header)
set_desc_base(&gdt[GDT_ENTRY_PNPBIOS_DS],
(unsigned long)__va(header->fields.pm16dseg));
}
/* check if the resource is reserved */
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c
-index 1ed6ea0..77c0bd2 100644
+index 222ccd8..6275fa5 100644
--- a/drivers/power/bq27x00_battery.c
+++ b/drivers/power/bq27x00_battery.c
@@ -72,7 +72,7 @@
enum bq27x00_chip { BQ27000, BQ27500 };
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c
-index a838e66..a9e1665 100644
+index 4c5b053..104263e 100644
--- a/drivers/regulator/max8660.c
+++ b/drivers/regulator/max8660.c
-@@ -383,8 +383,10 @@ static int __devinit max8660_probe(struct i2c_client *client,
+@@ -385,8 +385,10 @@ static int __devinit max8660_probe(struct i2c_client *client,
max8660->shadow_regs[MAX8660_OVER1] = 5;
} else {
/* Otherwise devices can be toggled via software */
/*
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c
-index e8cfc99..072aee2 100644
+index 845aa22..99ec402 100644
--- a/drivers/regulator/mc13892-regulator.c
+++ b/drivers/regulator/mc13892-regulator.c
@@ -574,10 +574,12 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
case RTC_PIE_ON:
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
-index ffb5878..e6d785c 100644
+index 3fcf627..f334910 100644
--- a/drivers/scsi/aacraid/aacraid.h
+++ b/drivers/scsi/aacraid/aacraid.h
@@ -492,7 +492,7 @@ struct adapter_ops
/*
* Define which interrupt handler needs to be installed
diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c
-index 705e13e..91c873c 100644
+index 0d279c44..3d25a97 100644
--- a/drivers/scsi/aacraid/linit.c
+++ b/drivers/scsi/aacraid/linit.c
@@ -93,7 +93,7 @@ static DECLARE_PCI_DEVICE_TABLE(aac_pci_tbl) = {
{ 0x1028, 0x0001, 0x1028, 0x0001, 0, 0, 0 }, /* PERC 2/Si (Iguana/PERC2Si) */
{ 0x1028, 0x0002, 0x1028, 0x0002, 0, 0, 1 }, /* PERC 3/Di (Opal/PERC3Di) */
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c
-index d5ff142..49c0ebb 100644
+index ff80552..1c4120c 100644
--- a/drivers/scsi/aic94xx/aic94xx_init.c
+++ b/drivers/scsi/aic94xx/aic94xx_init.c
@@ -1012,7 +1012,7 @@ static struct sas_domain_function_template aic94xx_transport_functions = {
- .lldd_control_phy = asd_control_phy,
+ .lldd_ata_set_dmamode = asd_set_dmamode,
};
-static const struct pci_device_id aic94xx_pci_table[] __devinitdata = {
{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x412),0, 0, 1},
{PCI_DEVICE(PCI_VENDOR_ID_ADAPTEC2, 0x416),0, 0, 1},
diff --git a/drivers/scsi/bfa/bfa.h b/drivers/scsi/bfa/bfa.h
-index a796de9..1ef20e1 100644
+index 4ad7e36..d004679 100644
--- a/drivers/scsi/bfa/bfa.h
+++ b/drivers/scsi/bfa/bfa.h
@@ -196,7 +196,7 @@ struct bfa_hwif_s {
int num_fwtio_reqs;
int num_itns;
diff --git a/drivers/scsi/bfa/bfa_ioc.h b/drivers/scsi/bfa/bfa_ioc.h
-index 546d46b..642fa5b 100644
+index 1a99d4b..e85d64b 100644
--- a/drivers/scsi/bfa/bfa_ioc.h
+++ b/drivers/scsi/bfa/bfa_ioc.h
@@ -258,7 +258,7 @@ struct bfa_ioc_cbfn_s {
/*
* Queue element to wait for room in request queue. FIFO order is
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
-index 351dc0b..951dc32 100644
+index a3a056a..b9bbc2f 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -42,7 +42,7 @@
static void scsi_host_cls_release(struct device *dev)
-@@ -357,7 +357,7 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
+@@ -360,7 +360,7 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
* subtract one because we increment first then return, but we need to
* know what the next host number was before increment
*/
/* These three are default values which can be overridden */
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
-index b96962c..0c82ec2 100644
+index 500e20d..ebd3059 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
-@@ -507,7 +507,7 @@ static inline u32 next_command(struct ctlr_info *h)
+@@ -521,7 +521,7 @@ static inline u32 next_command(struct ctlr_info *h)
u32 a;
if (unlikely(!(h->transMethod & CFGTBL_Trans_Performant)))
if ((*(h->reply_pool_head) & 1) == (h->reply_pool_wraparound)) {
a = *(h->reply_pool_head); /* Next cmd in ring buffer */
-@@ -2991,7 +2991,7 @@ static void start_io(struct ctlr_info *h)
+@@ -3002,7 +3002,7 @@ static void start_io(struct ctlr_info *h)
while (!list_empty(&h->reqQ)) {
c = list_entry(h->reqQ.next, struct CommandList, list);
/* can't do anything if fifo is full */
dev_warn(&h->pdev->dev, "fifo full\n");
break;
}
-@@ -3001,7 +3001,7 @@ static void start_io(struct ctlr_info *h)
+@@ -3012,7 +3012,7 @@ static void start_io(struct ctlr_info *h)
h->Qdepth--;
/* Tell the controller execute command */
/* Put job onto the completed Q */
addQ(&h->cmpQ, c);
-@@ -3010,17 +3010,17 @@ static void start_io(struct ctlr_info *h)
+@@ -3021,17 +3021,17 @@ static void start_io(struct ctlr_info *h)
static inline unsigned long get_next_completion(struct ctlr_info *h)
{
(h->interrupts_enabled == 0);
}
-@@ -3919,7 +3919,7 @@ static int __devinit hpsa_pci_init(struct ctlr_info *h)
+@@ -3930,7 +3930,7 @@ static int __devinit hpsa_pci_init(struct ctlr_info *h)
if (prod_index < 0)
return -ENODEV;
h->product_name = products[prod_index].product_name;
if (hpsa_board_disabled(h->pdev)) {
dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
-@@ -4164,7 +4164,7 @@ static void controller_lockup_detected(struct ctlr_info *h)
+@@ -4175,7 +4175,7 @@ static void controller_lockup_detected(struct ctlr_info *h)
assert_spin_locked(&lockup_detector_lock);
remove_ctlr_from_lockup_detector_list(h);
spin_lock_irqsave(&h->lock, flags);
h->lockup_detected = readl(h->vaddr + SA5_SCRATCHPAD_OFFSET);
spin_unlock_irqrestore(&h->lock, flags);
-@@ -4344,7 +4344,7 @@ reinit_after_soft_reset:
+@@ -4355,7 +4355,7 @@ reinit_after_soft_reset:
}
/* make sure the board interrupts are off */
if (hpsa_request_irq(h, do_hpsa_intr_msi, do_hpsa_intr_intx))
goto clean2;
-@@ -4378,7 +4378,7 @@ reinit_after_soft_reset:
+@@ -4389,7 +4389,7 @@ reinit_after_soft_reset:
* fake ones to scoop up any residual completions.
*/
spin_lock_irqsave(&h->lock, flags);
spin_unlock_irqrestore(&h->lock, flags);
free_irq(h->intr[h->intr_mode], h);
rc = hpsa_request_irq(h, hpsa_msix_discard_completions,
-@@ -4397,9 +4397,9 @@ reinit_after_soft_reset:
+@@ -4408,9 +4408,9 @@ reinit_after_soft_reset:
dev_info(&h->pdev->dev, "Board READY.\n");
dev_info(&h->pdev->dev,
"Waiting for stale completions to drain.\n");
rc = controller_reset_failed(h->cfgtable);
if (rc)
-@@ -4420,7 +4420,7 @@ reinit_after_soft_reset:
+@@ -4431,7 +4431,7 @@ reinit_after_soft_reset:
}
/* Turn the interrupts on so we can service requests */
hpsa_hba_inquiry(h);
hpsa_register_scsi(h); /* hook ourselves into SCSI subsystem */
-@@ -4472,7 +4472,7 @@ static void hpsa_shutdown(struct pci_dev *pdev)
+@@ -4483,7 +4483,7 @@ static void hpsa_shutdown(struct pci_dev *pdev)
* To write all data in the battery backed cache to disks
*/
hpsa_flush_cache(h);
free_irq(h->intr[h->intr_mode], h);
#ifdef CONFIG_PCI_MSI
if (h->msix_vector)
-@@ -4636,7 +4636,7 @@ static __devinit void hpsa_enter_performant_mode(struct ctlr_info *h,
+@@ -4657,7 +4657,7 @@ static __devinit void hpsa_enter_performant_mode(struct ctlr_info *h,
return;
}
/* Change the access methods to the performant access methods */
}
diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h
-index 91edafb..a9b88ec 100644
+index 7b28d54..952f23a 100644
--- a/drivers/scsi/hpsa.h
+++ b/drivers/scsi/hpsa.h
-@@ -73,7 +73,7 @@ struct ctlr_info {
+@@ -72,7 +72,7 @@ struct ctlr_info {
unsigned int msix_vector;
unsigned int msi_vector;
int intr_mode; /* either PERF_MODE_INT or SIMPLE_MODE_INT */
typedef struct ips_ha {
uint8_t ha_id[IPS_MAX_CHANNELS+1];
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
-index 4d70d96..84d0573 100644
+index aceffad..c35c08d 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -105,12 +105,12 @@ struct fc_exch_mgr {
fc_frame_free(fp);
}
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
-index db9238f..4378ed2 100644
+index 441d88a..689ad71 100644
--- a/drivers/scsi/libsas/sas_ata.c
+++ b/drivers/scsi/libsas/sas_ata.c
-@@ -368,7 +368,7 @@ static struct ata_port_operations sas_sata_ops = {
+@@ -529,7 +529,7 @@ static struct ata_port_operations sas_sata_ops = {
.postreset = ata_std_postreset,
.error_handler = ata_std_error_handler,
.post_internal_cmd = sas_ata_post_internal,
.qc_issue = sas_ata_qc_issue,
.qc_fill_rtf = sas_ata_qc_fill_rtf,
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h
-index 825f930..ce42672 100644
+index 3a1ffdd..8eb7c71 100644
--- a/drivers/scsi/lpfc/lpfc.h
+++ b/drivers/scsi/lpfc/lpfc.h
@@ -413,7 +413,7 @@ struct lpfc_vport {
#endif
uint8_t stat_data_enabled;
uint8_t stat_data_blocked;
-@@ -821,8 +821,8 @@ struct lpfc_hba {
+@@ -826,8 +826,8 @@ struct lpfc_hba {
struct timer_list fabric_block_timer;
unsigned long bit_flags;
#define FABRIC_COMANDS_BLOCKED 0
unsigned long last_rsrc_error_time;
unsigned long last_ramp_down_time;
unsigned long last_ramp_up_time;
-@@ -852,7 +852,7 @@ struct lpfc_hba {
+@@ -863,7 +863,7 @@ struct lpfc_hba {
struct dentry *debug_slow_ring_trc;
struct lpfc_debugfs_trc *slow_ring_trc;
struct dentry *idiag_root;
struct dentry *idiag_pci_cfg;
diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c
-index 3587a3f..d45b81b 100644
+index af04b0d..8f1a97e 100644
--- a/drivers/scsi/lpfc/lpfc_debugfs.c
+++ b/drivers/scsi/lpfc/lpfc_debugfs.c
@@ -106,7 +106,7 @@ MODULE_PARM_DESC(lpfc_debugfs_mask_disc_trc,
dtp->jif = jiffies;
#endif
return;
-@@ -4040,7 +4040,7 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
+@@ -4090,7 +4090,7 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
"slow_ring buffer\n");
goto debug_failed;
}
memset(phba->slow_ring_trc, 0,
(sizeof(struct lpfc_debugfs_trc) *
lpfc_debugfs_max_slow_ring_trc));
-@@ -4086,7 +4086,7 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
+@@ -4136,7 +4136,7 @@ lpfc_debugfs_initialize(struct lpfc_vport *vport)
"buffer\n");
goto debug_failed;
}
snprintf(name, sizeof(name), "discovery_trace");
vport->debug_disc_trc =
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
-index dfea2da..8e17227 100644
+index 9598fdc..7e9f3d9 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
-@@ -10145,8 +10145,10 @@ lpfc_init(void)
- printk(LPFC_COPYRIGHT "\n");
+@@ -10266,8 +10266,10 @@ lpfc_init(void)
+ "misc_register returned with status %d", error);
if (lpfc_enable_npiv) {
- lpfc_transport_functions.vport_create = lpfc_vport_create;
lpfc_transport_template =
fc_attach_transport(&lpfc_transport_functions);
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
-index c60f5d0..751535c 100644
+index 88f3a83..686d3fa 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
-@@ -305,7 +305,7 @@ lpfc_rampdown_queue_depth(struct lpfc_hba *phba)
+@@ -311,7 +311,7 @@ lpfc_rampdown_queue_depth(struct lpfc_hba *phba)
uint32_t evt_posted;
spin_lock_irqsave(&phba->hbalock, flags);
phba->last_rsrc_error_time = jiffies;
if ((phba->last_ramp_down_time + QUEUE_RAMP_DOWN_INTERVAL) > jiffies) {
-@@ -346,7 +346,7 @@ lpfc_rampup_queue_depth(struct lpfc_vport *vport,
+@@ -352,7 +352,7 @@ lpfc_rampup_queue_depth(struct lpfc_vport *vport,
unsigned long flags;
struct lpfc_hba *phba = vport->phba;
uint32_t evt_posted;
if (vport->cfg_lun_queue_depth <= queue_depth)
return;
-@@ -390,8 +390,8 @@ lpfc_ramp_down_queue_handler(struct lpfc_hba *phba)
+@@ -396,8 +396,8 @@ lpfc_ramp_down_queue_handler(struct lpfc_hba *phba)
unsigned long num_rsrc_err, num_cmd_success;
int i;
vports = lpfc_create_vport_work_array(phba);
if (vports != NULL)
-@@ -411,8 +411,8 @@ lpfc_ramp_down_queue_handler(struct lpfc_hba *phba)
+@@ -417,8 +417,8 @@ lpfc_ramp_down_queue_handler(struct lpfc_hba *phba)
}
}
lpfc_destroy_vport_work_array(phba, vports);
}
/**
-@@ -446,8 +446,8 @@ lpfc_ramp_up_queue_handler(struct lpfc_hba *phba)
+@@ -452,8 +452,8 @@ lpfc_ramp_up_queue_handler(struct lpfc_hba *phba)
}
}
lpfc_destroy_vport_work_array(phba, vports);
return rc;
diff --git a/drivers/scsi/pmcraid.h b/drivers/scsi/pmcraid.h
-index ca496c7..9c791d5 100644
+index e1d150f..6c6df44 100644
--- a/drivers/scsi/pmcraid.h
+++ b/drivers/scsi/pmcraid.h
@@ -748,7 +748,7 @@ struct pmcraid_instance {
/* To indicate add/delete/modify during CCN */
u8 change_detected;
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
-index af1003f..be55a75 100644
+index a244303..6015eb7 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
-@@ -2247,7 +2247,7 @@ struct isp_operations {
+@@ -2264,7 +2264,7 @@ struct isp_operations {
int (*start_scsi) (srb_t *);
int (*abort_isp) (struct scsi_qla_host *);
int (*iospace_config)(struct qla_hw_data*);
/* MSI-X Support *************************************************************/
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h
-index bfe6854..ceac088 100644
+index 7f2492e..5113877 100644
--- a/drivers/scsi/qla4xxx/ql4_def.h
+++ b/drivers/scsi/qla4xxx/ql4_def.h
-@@ -261,7 +261,7 @@ struct ddb_entry {
+@@ -268,7 +268,7 @@ struct ddb_entry {
* (4000 only) */
atomic_t relogin_timer; /* Max Time to wait for
* relogin to complete */
uint32_t default_time2wait; /* Default Min time between
* relogins (+aens) */
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
-index ce6d3b7..73fac54 100644
+index ee47820..a83b1f4 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
-@@ -2178,12 +2178,12 @@ static void qla4xxx_check_relogin_flash_ddb(struct iscsi_cls_session *cls_sess)
+@@ -2551,12 +2551,12 @@ static void qla4xxx_check_relogin_flash_ddb(struct iscsi_cls_session *cls_sess)
*/
if (!iscsi_is_session_online(cls_sess)) {
/* Reset retry relogin timer */
ddb_entry->default_time2wait + 4));
set_bit(DPC_RELOGIN_DEVICE, &ha->dpc_flags);
atomic_set(&ddb_entry->retry_relogin_timer,
-@@ -3953,7 +3953,7 @@ static void qla4xxx_setup_flash_ddb_entry(struct scsi_qla_host *ha,
+@@ -4453,7 +4453,7 @@ static void qla4xxx_setup_flash_ddb_entry(struct scsi_qla_host *ha,
atomic_set(&ddb_entry->retry_relogin_timer, INVALID_ENTRY);
atomic_set(&ddb_entry->relogin_timer, 0);
ddb_entry->default_relogin_timeout =
(def_timeout > LOGIN_TOV) && (def_timeout < LOGIN_TOV * 10) ?
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
-index 2aeb2e9..46e3925 100644
+index 07322ec..91ccc23 100644
--- a/drivers/scsi/scsi.c
+++ b/drivers/scsi/scsi.c
@@ -655,7 +655,7 @@ int scsi_dispatch_cmd(struct scsi_cmnd *cmd)
/* check if the device is still usable */
if (unlikely(cmd->device->sdev_state == SDEV_DEL)) {
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
-index b2c95db..227d74e 100644
+index 4037fd5..a19fcc7 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
-@@ -1411,7 +1411,7 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)
+@@ -1415,7 +1415,7 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)
shost = sdev->host;
scsi_init_cmd_errh(cmd);
cmd->result = DID_NO_CONNECT << 16;
/*
* SCSI request completion path will do scsi_device_unbusy(),
-@@ -1437,9 +1437,9 @@ static void scsi_softirq_done(struct request *rq)
+@@ -1441,9 +1441,9 @@ static void scsi_softirq_done(struct request *rq)
INIT_LIST_HEAD(&cmd->eh_entry);
/*
* TODO: need to fixup sg_tablesize, max_segment_size,
diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
-index f59d4a0..1d89407 100644
+index 80fbe2a..efa223b 100644
--- a/drivers/scsi/scsi_transport_fc.c
+++ b/drivers/scsi/scsi_transport_fc.c
-@@ -484,7 +484,7 @@ static DECLARE_TRANSPORT_CLASS(fc_vport_class,
+@@ -498,7 +498,7 @@ static DECLARE_TRANSPORT_CLASS(fc_vport_class,
* Netlink Infrastructure
*/
/**
* fc_get_event_number - Obtain the next sequential FC event number
-@@ -497,7 +497,7 @@ static atomic_t fc_event_seq;
+@@ -511,7 +511,7 @@ static atomic_t fc_event_seq;
u32
fc_get_event_number(void)
{
}
EXPORT_SYMBOL(fc_get_event_number);
-@@ -645,7 +645,7 @@ static __init int fc_transport_init(void)
+@@ -659,7 +659,7 @@ static __init int fc_transport_init(void)
{
int error;
error = transport_class_register(&fc_host_class);
if (error)
-@@ -835,7 +835,7 @@ static int fc_str_to_dev_loss(const char *buf, unsigned long *val)
+@@ -849,7 +849,7 @@ static int fc_str_to_dev_loss(const char *buf, unsigned long *val)
char *cp;
*val = simple_strtoul(buf, &cp, 0);
/*
* Check for overflow; dev_loss_tmo is u32
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
-index e3e3c7d..ebdab62 100644
+index 1cf640e..78e9014 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -79,7 +79,7 @@ struct iscsi_internal {
static struct workqueue_struct *iscsi_eh_timer_workq;
static DEFINE_IDA(iscsi_sess_ida);
-@@ -1063,7 +1063,7 @@ int iscsi_add_session(struct iscsi_cls_session *session, unsigned int target_id)
+@@ -1064,7 +1064,7 @@ int iscsi_add_session(struct iscsi_cls_session *session, unsigned int target_id)
int err;
ihost = shost->shost_data;
if (target_id == ISCSI_MAX_TARGET) {
id = ida_simple_get(&iscsi_sess_ida, 0, 0, GFP_KERNEL);
-@@ -2680,7 +2680,7 @@ static __init int iscsi_transport_init(void)
+@@ -2940,7 +2940,7 @@ static __init int iscsi_transport_init(void)
printk(KERN_INFO "Loading iSCSI transport class v%s.\n",
ISCSI_TRANSPORT_VERSION);
umode_t mask = leaf->fops->write ? S_IRUGO | S_IWUSR : S_IRUGO;
proc_create(leaf->name, mask, sg_proc_sgp, leaf->fops);
}
-diff --git a/drivers/spi/spi-dw-pci.c b/drivers/spi/spi-dw-pci.c
-index f64250e..1ee3049 100644
---- a/drivers/spi/spi-dw-pci.c
-+++ b/drivers/spi/spi-dw-pci.c
-@@ -149,7 +149,7 @@ static int spi_resume(struct pci_dev *pdev)
- #define spi_resume NULL
- #endif
-
--static const struct pci_device_id pci_ids[] __devinitdata = {
-+static const struct pci_device_id pci_ids[] __devinitconst = {
- /* Intel MID platform SPI controller 0 */
- { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0800) },
- {},
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
-index b2ccdea..84cde75 100644
+index 3d8f662..070f1a5 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
-@@ -1024,7 +1024,7 @@ int spi_bus_unlock(struct spi_master *master)
+@@ -1361,7 +1361,7 @@ int spi_bus_unlock(struct spi_master *master)
EXPORT_SYMBOL_GPL(spi_bus_unlock);
/* portable code must never pass more than 32 bytes */
static u8 *buf;
diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c
-index 400df8c..065d4f4 100644
+index d91751f..a3a9e36 100644
--- a/drivers/staging/octeon/ethernet-rx.c
+++ b/drivers/staging/octeon/ethernet-rx.c
-@@ -420,11 +420,11 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
+@@ -421,11 +421,11 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
/* Increment RX stats for virtual ports */
if (work->ipprt >= CVMX_PIP_NUM_INPUT_PORTS) {
#ifdef CONFIG_64BIT
#endif
}
netif_receive_skb(skb);
-@@ -436,9 +436,9 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
+@@ -437,9 +437,9 @@ static int cvm_oct_napi_poll(struct napi_struct *napi, int budget)
dev->name);
*/
#ifdef CONFIG_64BIT
dev_kfree_skb_irq(skb);
}
diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c
-index 9112cd8..92f8d51 100644
+index 60cba81..71eb239 100644
--- a/drivers/staging/octeon/ethernet.c
+++ b/drivers/staging/octeon/ethernet.c
-@@ -258,11 +258,11 @@ static struct net_device_stats *cvm_oct_common_get_stats(struct net_device *dev)
+@@ -259,11 +259,11 @@ static struct net_device_stats *cvm_oct_common_get_stats(struct net_device *dev)
* since the RX tasklet also increments it.
*/
#ifdef CONFIG_64BIT
#endif
}
-diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c
-index f9dae95..ff48901 100644
---- a/drivers/staging/rtl8192e/rtllib_module.c
-+++ b/drivers/staging/rtl8192e/rtllib_module.c
-@@ -215,6 +215,8 @@ static int show_debug_level(char *page, char **start, off_t offset,
- }
-
- static int store_debug_level(struct file *file, const char __user *buffer,
-+ unsigned long count, void *data) __size_overflow(3);
-+static int store_debug_level(struct file *file, const char __user *buffer,
- unsigned long count, void *data)
- {
- char buf[] = "0x00000000";
-diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
-index e3d47bc..85f4d0d 100644
---- a/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
-+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_module.c
-@@ -250,6 +250,8 @@ static int show_debug_level(char *page, char **start, off_t offset,
- }
-
- static int store_debug_level(struct file *file, const char *buffer,
-+ unsigned long count, void *data) __size_overflow(3);
-+static int store_debug_level(struct file *file, const char *buffer,
- unsigned long count, void *data)
- {
- char buf[] = "0x00000000";
diff --git a/drivers/staging/rtl8712/rtl871x_io.h b/drivers/staging/rtl8712/rtl871x_io.h
-index 86308a0..feaa925 100644
+index d3d8727..f9327bb8 100644
--- a/drivers/staging/rtl8712/rtl871x_io.h
+++ b/drivers/staging/rtl8712/rtl871x_io.h
@@ -108,7 +108,7 @@ struct _io_ops {
ch = synth_buffer_getc();
}
diff --git a/drivers/staging/usbip/usbip_common.h b/drivers/staging/usbip/usbip_common.h
-index b8f8c48..1fc5025 100644
+index c7b888c..c94be93 100644
--- a/drivers/staging/usbip/usbip_common.h
+++ b/drivers/staging/usbip/usbip_common.h
@@ -289,7 +289,7 @@ struct usbip_device {
/*
* NOTE:
diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c
-index 2ee97e2..0420b86 100644
+index dca9bf1..80735c9 100644
--- a/drivers/staging/usbip/vhci_hcd.c
+++ b/drivers/staging/usbip/vhci_hcd.c
-@@ -527,7 +527,7 @@ static void vhci_tx_urb(struct urb *urb)
+@@ -488,7 +488,7 @@ static void vhci_tx_urb(struct urb *urb)
return;
}
if (priv->seqnum == 0xffff)
dev_info(&urb->dev->dev, "seqnum max\n");
-@@ -779,7 +779,7 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
+@@ -740,7 +740,7 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
return -ENOMEM;
}
if (unlink->seqnum == 0xffff)
pr_info("seqnum max\n");
-@@ -969,7 +969,7 @@ static int vhci_start(struct usb_hcd *hcd)
+@@ -928,7 +928,7 @@ static int vhci_start(struct usb_hcd *hcd)
vdev->rhport = rhport;
}
hcd->power_budget = 0; /* no limit */
diff --git a/drivers/staging/usbip/vhci_rx.c b/drivers/staging/usbip/vhci_rx.c
-index 3f511b4..d3dbc1e 100644
+index f5fba732..210a16c 100644
--- a/drivers/staging/usbip/vhci_rx.c
+++ b/drivers/staging/usbip/vhci_rx.c
@@ -77,7 +77,7 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev,
void tmem_register_pamops(struct tmem_pamops *m)
{
diff --git a/drivers/staging/zcache/tmem.h b/drivers/staging/zcache/tmem.h
-index ed147c4..94fc3c6 100644
+index 0d4aa82..f7832d4 100644
--- a/drivers/staging/zcache/tmem.h
+++ b/drivers/staging/zcache/tmem.h
@@ -180,6 +180,7 @@ struct tmem_pamops {
extern void tmem_register_hostops(struct tmem_hostops *m);
/* core tmem accessor functions */
-diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c
-index 97c74ee..7f6d77d 100644
---- a/drivers/target/iscsi/iscsi_target.c
-+++ b/drivers/target/iscsi/iscsi_target.c
-@@ -1361,7 +1361,7 @@ static int iscsit_handle_data_out(struct iscsi_conn *conn, unsigned char *buf)
- * outstanding_r2ts reaches zero, go ahead and send the delayed
- * TASK_ABORTED status.
- */
-- if (atomic_read(&se_cmd->t_transport_aborted) != 0) {
-+ if (atomic_read_unchecked(&se_cmd->t_transport_aborted) != 0) {
- if (hdr->flags & ISCSI_FLAG_CMD_FINAL)
- if (--cmd->outstanding_r2ts < 1) {
- iscsit_stop_dataout_timer(cmd);
diff --git a/drivers/target/target_core_tmr.c b/drivers/target/target_core_tmr.c
-index dcb0618..97e3d85 100644
+index f015839..b15dfc4 100644
--- a/drivers/target/target_core_tmr.c
+++ b/drivers/target/target_core_tmr.c
-@@ -260,7 +260,7 @@ static void core_tmr_drain_task_list(
+@@ -327,7 +327,7 @@ static void core_tmr_drain_task_list(
cmd->se_tfo->get_task_tag(cmd), cmd->pr_res_key,
cmd->t_task_list_num,
atomic_read(&cmd->t_task_cdbs_left),
- atomic_read(&cmd->t_task_cdbs_sent),
+ atomic_read_unchecked(&cmd->t_task_cdbs_sent),
- atomic_read(&cmd->t_transport_active),
- atomic_read(&cmd->t_transport_stop),
- atomic_read(&cmd->t_transport_sent));
-@@ -291,7 +291,7 @@ static void core_tmr_drain_task_list(
- pr_debug("LUN_RESET: got t_transport_active = 1 for"
- " task: %p, t_fe_count: %d dev: %p\n", task,
- fe_count, dev);
-- atomic_set(&cmd->t_transport_aborted, 1);
-+ atomic_set_unchecked(&cmd->t_transport_aborted, 1);
- spin_unlock_irqrestore(&cmd->t_state_lock, flags);
-
- core_tmr_handle_tas_abort(tmr_nacl, cmd, tas, fe_count);
-@@ -299,7 +299,7 @@ static void core_tmr_drain_task_list(
- }
- pr_debug("LUN_RESET: Got t_transport_active = 0 for task: %p,"
- " t_fe_count: %d dev: %p\n", task, fe_count, dev);
-- atomic_set(&cmd->t_transport_aborted, 1);
-+ atomic_set_unchecked(&cmd->t_transport_aborted, 1);
- spin_unlock_irqrestore(&cmd->t_state_lock, flags);
-
- core_tmr_handle_tas_abort(tmr_nacl, cmd, tas, fe_count);
+ (cmd->transport_state & CMD_T_ACTIVE) != 0,
+ (cmd->transport_state & CMD_T_STOP) != 0,
+ (cmd->transport_state & CMD_T_SENT) != 0);
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
-index cd5cd95..5249d30 100644
+index 443704f..92d3517 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
-@@ -1330,7 +1330,7 @@ struct se_device *transport_add_device_to_core_hba(
+@@ -1355,7 +1355,7 @@ struct se_device *transport_add_device_to_core_hba(
spin_lock_init(&dev->se_port_lock);
spin_lock_init(&dev->se_tmr_lock);
spin_lock_init(&dev->qf_cmd_lock);
se_dev_set_default_attribs(dev, dev_limits);
-@@ -1517,7 +1517,7 @@ static int transport_check_alloc_task_attr(struct se_cmd *cmd)
+@@ -1542,7 +1542,7 @@ static int transport_check_alloc_task_attr(struct se_cmd *cmd)
* Used to determine when ORDERED commands should go from
* Dormant to Active status.
*/
smp_mb__after_atomic_inc();
pr_debug("Allocated se_ordered_id: %u for Task Attr: 0x%02x on %s\n",
cmd->se_ordered_id, cmd->sam_task_attr,
-@@ -1862,7 +1862,7 @@ static void transport_generic_request_failure(struct se_cmd *cmd)
- " t_transport_active: %d t_transport_stop: %d"
- " t_transport_sent: %d\n", cmd->t_task_list_num,
+@@ -1956,7 +1956,7 @@ void transport_generic_request_failure(struct se_cmd *cmd)
+ " CMD_T_ACTIVE: %d CMD_T_STOP: %d CMD_T_SENT: %d\n",
+ cmd->t_task_list_num,
atomic_read(&cmd->t_task_cdbs_left),
- atomic_read(&cmd->t_task_cdbs_sent),
+ atomic_read_unchecked(&cmd->t_task_cdbs_sent),
atomic_read(&cmd->t_task_cdbs_ex_left),
- atomic_read(&cmd->t_transport_active),
- atomic_read(&cmd->t_transport_stop),
-@@ -2121,9 +2121,9 @@ check_depth:
+ (cmd->transport_state & CMD_T_ACTIVE) != 0,
+ (cmd->transport_state & CMD_T_STOP) != 0,
+@@ -2216,9 +2216,9 @@ check_depth:
cmd = task->task_se_cmd;
spin_lock_irqsave(&cmd->t_state_lock, flags);
task->task_flags |= (TF_ACTIVE | TF_SENT);
- if (atomic_read(&cmd->t_task_cdbs_sent) ==
+ if (atomic_read_unchecked(&cmd->t_task_cdbs_sent) ==
cmd->t_task_list_num)
- atomic_set(&cmd->t_transport_sent, 1);
-
-@@ -4348,7 +4348,7 @@ bool transport_wait_for_tasks(struct se_cmd *cmd)
- atomic_set(&cmd->transport_lun_stop, 0);
- }
- if (!atomic_read(&cmd->t_transport_active) ||
-- atomic_read(&cmd->t_transport_aborted)) {
-+ atomic_read_unchecked(&cmd->t_transport_aborted)) {
- spin_unlock_irqrestore(&cmd->t_state_lock, flags);
- return false;
- }
-@@ -4597,7 +4597,7 @@ int transport_check_aborted_status(struct se_cmd *cmd, int send_status)
- {
- int ret = 0;
+ cmd->transport_state |= CMD_T_SENT;
-- if (atomic_read(&cmd->t_transport_aborted) != 0) {
-+ if (atomic_read_unchecked(&cmd->t_transport_aborted) != 0) {
- if (!send_status ||
- (cmd->se_cmd_flags & SCF_SENT_DELAYED_TAS))
- return 1;
-@@ -4634,7 +4634,7 @@ void transport_send_task_abort(struct se_cmd *cmd)
- */
- if (cmd->data_direction == DMA_TO_DEVICE) {
- if (cmd->se_tfo->write_pending_status(cmd) != 0) {
-- atomic_inc(&cmd->t_transport_aborted);
-+ atomic_inc_unchecked(&cmd->t_transport_aborted);
- smp_mb__after_atomic_inc();
- }
- }
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
-index b9040be..e3f5aab 100644
+index 3436436..772237b 100644
--- a/drivers/tty/hvc/hvcs.c
+++ b/drivers/tty/hvc/hvcs.c
@@ -83,6 +83,7 @@
spin_unlock_irqrestore(&hvcsd->lock, flags);
printk(KERN_INFO "HVCS: vterm state unchanged. "
"The hvcs device node is still in use.\n");
-@@ -1145,7 +1146,7 @@ static int hvcs_open(struct tty_struct *tty, struct file *filp)
+@@ -1138,7 +1139,7 @@ static int hvcs_open(struct tty_struct *tty, struct file *filp)
if ((retval = hvcs_partner_connect(hvcsd)))
goto error_release;
hvcsd->tty = tty;
tty->driver_data = hvcsd;
-@@ -1179,7 +1180,7 @@ fast_open:
+@@ -1172,7 +1173,7 @@ fast_open:
spin_lock_irqsave(&hvcsd->lock, flags);
kref_get(&hvcsd->kref);
hvcsd->todo_mask |= HVCS_SCHED_READ;
spin_unlock_irqrestore(&hvcsd->lock, flags);
-@@ -1223,7 +1224,7 @@ static void hvcs_close(struct tty_struct *tty, struct file *filp)
+@@ -1216,7 +1217,7 @@ static void hvcs_close(struct tty_struct *tty, struct file *filp)
hvcsd = tty->driver_data;
spin_lock_irqsave(&hvcsd->lock, flags);
vio_disable_interrupts(hvcsd->vdev);
-@@ -1249,10 +1250,10 @@ static void hvcs_close(struct tty_struct *tty, struct file *filp)
+@@ -1242,10 +1243,10 @@ static void hvcs_close(struct tty_struct *tty, struct file *filp)
free_irq(irq, hvcsd);
kref_put(&hvcsd->kref, destroy_hvcs_struct);
return;
}
spin_unlock_irqrestore(&hvcsd->lock, flags);
-@@ -1268,7 +1269,7 @@ static void hvcs_hangup(struct tty_struct * tty)
+@@ -1261,7 +1262,7 @@ static void hvcs_hangup(struct tty_struct * tty)
spin_lock_irqsave(&hvcsd->lock, flags);
/* Preserve this so that we know how many kref refs to put */
/*
* Don't kref put inside the spinlock because the destruction
-@@ -1283,7 +1284,7 @@ static void hvcs_hangup(struct tty_struct * tty)
+@@ -1276,7 +1277,7 @@ static void hvcs_hangup(struct tty_struct * tty)
hvcsd->tty->driver_data = NULL;
hvcsd->tty = NULL;
/* This will drop any buffered data on the floor which is OK in a hangup
* scenario. */
-@@ -1354,7 +1355,7 @@ static int hvcs_write(struct tty_struct *tty,
+@@ -1347,7 +1348,7 @@ static int hvcs_write(struct tty_struct *tty,
* the middle of a write operation? This is a crummy place to do this
* but we want to keep it all in the spinlock.
*/
spin_unlock_irqrestore(&hvcsd->lock, flags);
return -ENODEV;
}
-@@ -1428,7 +1429,7 @@ static int hvcs_write_room(struct tty_struct *tty)
+@@ -1421,7 +1422,7 @@ static int hvcs_write_room(struct tty_struct *tty)
{
struct hvcs_struct *hvcsd = tty->driver_data;
return HVCS_BUFF_LEN - hvcsd->chars_in_buffer;
diff --git a/drivers/tty/ipwireless/tty.c b/drivers/tty/ipwireless/tty.c
-index ef92869..f4ebd88 100644
+index 4daf962..b4a2281 100644
--- a/drivers/tty/ipwireless/tty.c
+++ b/drivers/tty/ipwireless/tty.c
@@ -29,6 +29,7 @@
unsigned int control_lines;
struct mutex ipw_tty_mutex;
int tx_bytes_queued;
-@@ -127,10 +128,10 @@ static int ipw_open(struct tty_struct *linux_tty, struct file *filp)
+@@ -117,10 +118,10 @@ static int ipw_open(struct tty_struct *linux_tty, struct file *filp)
mutex_unlock(&tty->ipw_tty_mutex);
return -ENODEV;
}
tty->linux_tty = linux_tty;
linux_tty->driver_data = tty;
-@@ -146,9 +147,7 @@ static int ipw_open(struct tty_struct *linux_tty, struct file *filp)
+@@ -136,9 +137,7 @@ static int ipw_open(struct tty_struct *linux_tty, struct file *filp)
static void do_ipw_close(struct ipw_tty *tty)
{
struct tty_struct *linux_tty = tty->linux_tty;
if (linux_tty != NULL) {
-@@ -169,7 +168,7 @@ static void ipw_hangup(struct tty_struct *linux_tty)
+@@ -159,7 +158,7 @@ static void ipw_hangup(struct tty_struct *linux_tty)
return;
mutex_lock(&tty->ipw_tty_mutex);
mutex_unlock(&tty->ipw_tty_mutex);
return;
}
-@@ -198,7 +197,7 @@ void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
+@@ -188,7 +187,7 @@ void ipwireless_tty_received(struct ipw_tty *tty, unsigned char *data,
return;
}
mutex_unlock(&tty->ipw_tty_mutex);
return;
}
-@@ -240,7 +239,7 @@ static int ipw_write(struct tty_struct *linux_tty,
+@@ -230,7 +229,7 @@ static int ipw_write(struct tty_struct *linux_tty,
return -ENODEV;
mutex_lock(&tty->ipw_tty_mutex);
mutex_unlock(&tty->ipw_tty_mutex);
return -EINVAL;
}
-@@ -280,7 +279,7 @@ static int ipw_write_room(struct tty_struct *linux_tty)
+@@ -270,7 +269,7 @@ static int ipw_write_room(struct tty_struct *linux_tty)
if (!tty)
return -ENODEV;
return -EINVAL;
room = IPWIRELESS_TX_QUEUE_SIZE - tty->tx_bytes_queued;
-@@ -322,7 +321,7 @@ static int ipw_chars_in_buffer(struct tty_struct *linux_tty)
+@@ -312,7 +311,7 @@ static int ipw_chars_in_buffer(struct tty_struct *linux_tty)
if (!tty)
return 0;
return 0;
return tty->tx_bytes_queued;
-@@ -403,7 +402,7 @@ static int ipw_tiocmget(struct tty_struct *linux_tty)
+@@ -393,7 +392,7 @@ static int ipw_tiocmget(struct tty_struct *linux_tty)
if (!tty)
return -ENODEV;
return -EINVAL;
return get_control_lines(tty);
-@@ -419,7 +418,7 @@ ipw_tiocmset(struct tty_struct *linux_tty,
+@@ -409,7 +408,7 @@ ipw_tiocmset(struct tty_struct *linux_tty,
if (!tty)
return -ENODEV;
return -EINVAL;
return set_control_lines(tty, set, clear);
-@@ -433,7 +432,7 @@ static int ipw_ioctl(struct tty_struct *linux_tty,
+@@ -423,7 +422,7 @@ static int ipw_ioctl(struct tty_struct *linux_tty,
if (!tty)
return -ENODEV;
return -EINVAL;
/* FIXME: Exactly how is the tty object locked here .. */
-@@ -582,7 +581,7 @@ void ipwireless_tty_free(struct ipw_tty *tty)
+@@ -572,7 +571,7 @@ void ipwireless_tty_free(struct ipw_tty *tty)
against a parallel ioctl etc */
mutex_lock(&ttyj->ipw_tty_mutex);
}
ipwireless_disassociate_network_ttys(network,
ttyj->channel_idx);
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
-index fc7bbba..9527e93 100644
+index c43b683..0a88f1c 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -1629,7 +1629,7 @@ static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
return NULL;
}
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
-index d2256d0..97476fa 100644
+index 94b6eda..15f7cec 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
-@@ -2123,6 +2123,7 @@ void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
+@@ -2122,6 +2122,7 @@ void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
{
*ops = tty_ldisc_N_TTY;
ops->owner = NULL;
}
EXPORT_SYMBOL_GPL(n_tty_inherit_ops);
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
-index d8653ab..f8afd9d 100644
+index eeae7fa..177a743 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
-@@ -765,8 +765,10 @@ static void __init unix98_pty_init(void)
- register_sysctl_table(pty_root_table);
+@@ -707,8 +707,10 @@ static void __init unix98_pty_init(void)
+ panic("Couldn't register Unix98 pts driver");
/* Now create the /dev/ptmx special device */
+ pax_open_kernel();
/* This is only available if kgdboc is a built in for early debugging */
static int __init kgdboc_early_init(char *opt)
diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c
-index 7867b7c..b3c119d 100644
+index 05728894..b9d44c6 100644
--- a/drivers/tty/sysrq.c
+++ b/drivers/tty/sysrq.c
-@@ -862,7 +862,7 @@ EXPORT_SYMBOL(unregister_sysrq_key);
+@@ -865,7 +865,7 @@ EXPORT_SYMBOL(unregister_sysrq_key);
static ssize_t write_sysrq_trigger(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)
{
if (get_user(c, buf))
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
-index e41b9bb..84002fb 100644
+index d939bd7..33d92cd 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
-@@ -3291,7 +3291,7 @@ EXPORT_SYMBOL_GPL(get_current_tty);
+@@ -3278,7 +3278,7 @@ EXPORT_SYMBOL_GPL(get_current_tty);
void tty_default_fops(struct file_operations *fops)
{
spin_unlock_irqrestore(&tty_ldisc_lock, flags);
}
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c
-index a605549..6bd3c96 100644
+index 3b0c4e3..f98a992 100644
--- a/drivers/tty/vt/keyboard.c
+++ b/drivers/tty/vt/keyboard.c
-@@ -657,6 +657,16 @@ static void k_spec(struct vc_data *vc, unsigned char value, char up_flag)
+@@ -663,6 +663,16 @@ static void k_spec(struct vc_data *vc, unsigned char value, char up_flag)
kbd->kbdmode == VC_OFF) &&
value != KVAL(K_SAK))
return; /* SAK is allowed even in raw mode */
fn_handler[value](vc);
}
-diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c
-index 65447c5..0526f0a 100644
---- a/drivers/tty/vt/vt_ioctl.c
-+++ b/drivers/tty/vt/vt_ioctl.c
-@@ -207,9 +207,6 @@ do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, struct kbd_str
+@@ -1812,9 +1822,6 @@ int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm,
if (copy_from_user(&tmp, user_kbe, sizeof(struct kbentry)))
return -EFAULT;
-
switch (cmd) {
case KDGKBENT:
- key_map = key_maps[s];
-@@ -221,6 +218,9 @@ do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm, struct kbd_str
- val = (i ? K_HOLE : K_NOSUCHMAP);
+ /* Ensure another thread doesn't free it under us */
+@@ -1829,6 +1836,9 @@ int vt_do_kdsk_ioctl(int cmd, struct kbentry __user *user_kbe, int perm,
+ spin_unlock_irqrestore(&kbd_event_lock, flags);
return put_user(val, &user_kbe->kb_value);
case KDSKBENT:
+ if (!capable(CAP_SYS_TTY_CONFIG))
if (!perm)
return -EPERM;
if (!i && v == K_NOSUCHMAP) {
-@@ -322,9 +322,6 @@ do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm)
+@@ -1919,9 +1929,6 @@ int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm)
int i, j, k;
int ret;
kbs = kmalloc(sizeof(*kbs), GFP_KERNEL);
if (!kbs) {
ret = -ENOMEM;
-@@ -358,6 +355,9 @@ do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm)
+@@ -1955,6 +1962,9 @@ int vt_do_kdgkb_ioctl(int cmd, struct kbsentry __user *user_kdgkb, int perm)
kfree(kbs);
return ((p && *p) ? -EOVERFLOW : 0);
case KDSKBSENT:
/*
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
-index c14c42b..f955cc2 100644
+index 51e4c1e..9d87e2a 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
-@@ -629,7 +629,7 @@ static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m)
+@@ -632,7 +632,7 @@ static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m)
return 0;
}
+4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+4 4 4 4 4 4
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
-index a40c05e..785c583 100644
+index a159b63..4ab532d 100644
--- a/drivers/video/udlfb.c
+++ b/drivers/video/udlfb.c
-@@ -619,11 +619,11 @@ int dlfb_handle_damage(struct dlfb_data *dev, int x, int y,
+@@ -620,11 +620,11 @@ int dlfb_handle_damage(struct dlfb_data *dev, int x, int y,
dlfb_urb_completion(urb);
error:
>> 10)), /* Kcycles */
&dev->cpu_kcycles_used);
-@@ -744,11 +744,11 @@ static void dlfb_dpy_deferred_io(struct fb_info *info,
+@@ -745,11 +745,11 @@ static void dlfb_dpy_deferred_io(struct fb_info *info,
dlfb_urb_completion(urb);
error:
>> 10)), /* Kcycles */
&dev->cpu_kcycles_used);
}
-@@ -1368,7 +1368,7 @@ static ssize_t metrics_bytes_rendered_show(struct device *fbdev,
+@@ -1373,7 +1373,7 @@ static ssize_t metrics_bytes_rendered_show(struct device *fbdev,
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
return snprintf(buf, PAGE_SIZE, "%u\n",
}
static ssize_t metrics_bytes_identical_show(struct device *fbdev,
-@@ -1376,7 +1376,7 @@ static ssize_t metrics_bytes_identical_show(struct device *fbdev,
+@@ -1381,7 +1381,7 @@ static ssize_t metrics_bytes_identical_show(struct device *fbdev,
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
return snprintf(buf, PAGE_SIZE, "%u\n",
}
static ssize_t metrics_bytes_sent_show(struct device *fbdev,
-@@ -1384,7 +1384,7 @@ static ssize_t metrics_bytes_sent_show(struct device *fbdev,
+@@ -1389,7 +1389,7 @@ static ssize_t metrics_bytes_sent_show(struct device *fbdev,
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
return snprintf(buf, PAGE_SIZE, "%u\n",
}
static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
-@@ -1392,7 +1392,7 @@ static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
+@@ -1397,7 +1397,7 @@ static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
return snprintf(buf, PAGE_SIZE, "%u\n",
}
static ssize_t edid_show(
-@@ -1449,10 +1449,10 @@ static ssize_t metrics_reset_store(struct device *fbdev,
+@@ -1457,10 +1457,10 @@ static ssize_t metrics_reset_store(struct device *fbdev,
struct fb_info *fb_info = dev_get_drvdata(fbdev);
struct dlfb_data *dev = fb_info->par;
return count;
}
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
-index 8408543..d6f20f1 100644
+index b0e2a42..e2df3ad 100644
--- a/drivers/video/uvesafb.c
+++ b/drivers/video/uvesafb.c
@@ -19,6 +19,7 @@
#include <video/edid.h>
#include <video/uvesafb.h>
#ifdef CONFIG_X86
-@@ -73,7 +74,7 @@ static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *ns
- struct uvesafb_task *utask;
- struct uvesafb_ktask *task;
-
-- if (!cap_raised(current_cap(), CAP_SYS_ADMIN))
-+ if (!capable(CAP_SYS_ADMIN))
- return;
-
- if (msg->seq >= UVESAFB_TASKS_MAX)
-@@ -121,7 +122,7 @@ static int uvesafb_helper_start(void)
- NULL,
- };
-
-- return call_usermodehelper(v86d_path, argv, envp, 1);
-+ return call_usermodehelper(v86d_path, argv, envp, UMH_WAIT_PROC);
- }
-
- /*
@@ -569,10 +570,32 @@ static int __devinit uvesafb_vbe_getpmi(struct uvesafb_ktask *task,
if ((task->t.regs.eax & 0xffff) != 0x4f || task->t.regs.es < 0xc000) {
par->pmi_setpal = par->ypan = 0;
}
#else
/* The protected mode interface is not available on non-x86. */
-@@ -1828,6 +1852,11 @@ out:
+@@ -1836,6 +1860,11 @@ out:
if (par->vbe_modes)
kfree(par->vbe_modes);
framebuffer_release(info);
return err;
}
-@@ -1854,6 +1883,12 @@ static int uvesafb_remove(struct platform_device *dev)
+@@ -1862,6 +1891,12 @@ static int uvesafb_remove(struct platform_device *dev)
kfree(par->vbe_state_orig);
if (par->vbe_state_saved)
kfree(par->vbe_state_saved);
A.out (Assembler.OUTput) is a set of formats for libraries and
executables used in the earliest versions of UNIX. Linux used
diff --git a/fs/aio.c b/fs/aio.c
-index b9d64d8..86cb1d5 100644
+index e7f2fad..15ad8a4 100644
--- a/fs/aio.c
+++ b/fs/aio.c
-@@ -119,7 +119,7 @@ static int aio_setup_ring(struct kioctx *ctx)
+@@ -118,7 +118,7 @@ static int aio_setup_ring(struct kioctx *ctx)
size += sizeof(struct io_event) * nr_events;
nr_pages = (size + PAGE_SIZE-1) >> PAGE_SHIFT;
return -EINVAL;
nr_events = (PAGE_SIZE * nr_pages - sizeof(struct aio_ring)) / sizeof(struct io_event);
-@@ -1461,22 +1461,27 @@ static ssize_t aio_fsync(struct kiocb *iocb)
+@@ -1440,18 +1440,19 @@ static ssize_t aio_fsync(struct kiocb *iocb)
static ssize_t aio_setup_vectored_rw(int type, struct kiocb *kiocb, bool compat)
{
ssize_t ret;
&kiocb->ki_iovec, 1);
if (ret < 0)
goto out;
+@@ -1460,6 +1461,10 @@ static ssize_t aio_setup_vectored_rw(int type, struct kiocb *kiocb, bool compat)
+ if (ret < 0)
+ goto out;
+ if (kiocb->ki_iovec == &iovstack) {
+ kiocb->ki_inline_vec = iovstack;
kiocb->ki_cur_seg = 0;
/* ki_nbytes/left now reflect bytes instead of segs */
diff --git a/fs/attr.c b/fs/attr.c
-index 95053ad..2cc93ca 100644
+index d94d1b6..f9bccd6 100644
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -99,6 +99,7 @@ int inode_newsize_ok(const struct inode *inode, loff_t offset)
goto out_sig;
if (offset > inode->i_sb->s_maxbytes)
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
-index f624cd0..3d9a559 100644
+index da8876d..9f3e6d8 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -61,7 +61,7 @@ static int autofs4_write(struct autofs_sb_info *sbi,
sigpipe = sigismember(¤t->pending.signal, SIGPIPE);
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
-index 6e6d536..457113a 100644
+index e18da23..affc30e 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -502,7 +502,7 @@ static void befs_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
kfree(link);
}
diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
-index 1ff9405..f1e376a 100644
+index d146e18..12d1bd1 100644
--- a/fs/binfmt_aout.c
+++ b/fs/binfmt_aout.c
@@ -16,6 +16,7 @@
#include <linux/stat.h>
#include <linux/fcntl.h>
#include <linux/ptrace.h>
-@@ -86,6 +87,8 @@ static int aout_core_dump(struct coredump_params *cprm)
+@@ -83,6 +84,8 @@ static int aout_core_dump(struct coredump_params *cprm)
#endif
# define START_STACK(u) ((void __user *)u.start_stack)
fs = get_fs();
set_fs(KERNEL_DS);
has_dumped = 1;
-@@ -97,10 +100,12 @@ static int aout_core_dump(struct coredump_params *cprm)
+@@ -94,10 +97,12 @@ static int aout_core_dump(struct coredump_params *cprm)
/* If the size of the dump file exceeds the rlimit, then see what would happen
if we wrote the stack, but not the data area. */
if ((dump.u_ssize + 1) * PAGE_SIZE > cprm->limit)
dump.u_ssize = 0;
-@@ -234,6 +239,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+@@ -231,6 +236,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
rlim = rlimit(RLIMIT_DATA);
if (rlim >= RLIM_INFINITY)
rlim = ~0;
if (ex.a_data + ex.a_bss > rlim)
return -ENOMEM;
-@@ -269,6 +276,27 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+@@ -265,6 +272,27 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+
install_exec_creds(bprm);
- current->flags &= ~PF_FORKNOEXEC;
+#if defined(CONFIG_PAX_NOEXEC) || defined(CONFIG_PAX_ASLR)
+ current->mm->pax_flags = 0UL;
if (N_MAGIC(ex) == OMAGIC) {
unsigned long text_addr, map_size;
loff_t pos;
-@@ -341,7 +369,7 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+@@ -330,7 +358,7 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+ }
- down_write(¤t->mm->mmap_sem);
- error = do_mmap(bprm->file, N_DATADDR(ex), ex.a_data,
+ error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data,
- PROT_READ | PROT_WRITE | PROT_EXEC,
+ PROT_READ | PROT_WRITE,
MAP_FIXED | MAP_PRIVATE | MAP_DENYWRITE | MAP_EXECUTABLE,
fd_offset + ex.a_text);
- up_write(¤t->mm->mmap_sem);
+ if (error != N_DATADDR(ex)) {
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
-index 07d096c..25762af 100644
+index 16f7354..185d8dc 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -32,6 +32,7 @@
#include <asm/uaccess.h>
#include <asm/param.h>
#include <asm/page.h>
-@@ -51,6 +52,10 @@ static int elf_core_dump(struct coredump_params *cprm);
+@@ -52,6 +53,10 @@ static int elf_core_dump(struct coredump_params *cprm);
#define elf_core_dump NULL
#endif
#if ELF_EXEC_PAGESIZE > PAGE_SIZE
#define ELF_MIN_ALIGN ELF_EXEC_PAGESIZE
#else
-@@ -70,6 +75,11 @@ static struct linux_binfmt elf_format = {
+@@ -71,6 +76,11 @@ static struct linux_binfmt elf_format = {
.load_binary = load_elf_binary,
.load_shlib = load_elf_library,
.core_dump = elf_core_dump,
.min_coredump = ELF_EXEC_PAGESIZE,
};
-@@ -77,6 +87,8 @@ static struct linux_binfmt elf_format = {
+@@ -78,6 +88,8 @@ static struct linux_binfmt elf_format = {
static int set_brk(unsigned long start, unsigned long end)
{
start = ELF_PAGEALIGN(start);
end = ELF_PAGEALIGN(end);
if (end > start) {
-@@ -87,7 +99,7 @@ static int set_brk(unsigned long start, unsigned long end)
+@@ -86,7 +98,7 @@ static int set_brk(unsigned long start, unsigned long end)
if (BAD_ADDR(addr))
return addr;
}
return 0;
}
-@@ -148,12 +160,13 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
+@@ -147,12 +159,13 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
elf_addr_t __user *u_rand_bytes;
const char *k_platform = ELF_PLATFORM;
const char *k_base_platform = ELF_BASE_PLATFORM;
/*
* In some cases (e.g. Hyper-Threading), we want to avoid L1
-@@ -195,8 +208,12 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
+@@ -194,8 +207,12 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
* Generate 16 random bytes for userspace PRNG seeding.
*/
get_random_bytes(k_rand_bytes, sizeof(k_rand_bytes));
if (__copy_to_user(u_rand_bytes, k_rand_bytes, sizeof(k_rand_bytes)))
return -EFAULT;
-@@ -308,9 +325,11 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
+@@ -307,9 +324,11 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec,
return -EFAULT;
current->mm->env_end = p;
return -EFAULT;
return 0;
}
-@@ -381,10 +400,10 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
+@@ -380,10 +399,10 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
{
struct elf_phdr *elf_phdata;
struct elf_phdr *eppnt;
unsigned long total_size;
int retval, i, size;
-@@ -430,6 +449,11 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
+@@ -429,6 +448,11 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
goto out_close;
}
eppnt = elf_phdata;
for (i = 0; i < interp_elf_ex->e_phnum; i++, eppnt++) {
if (eppnt->p_type == PT_LOAD) {
-@@ -473,8 +497,8 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
+@@ -472,8 +496,8 @@ static unsigned long load_elf_interp(struct elfhdr *interp_elf_ex,
k = load_addr + eppnt->p_vaddr;
if (BAD_ADDR(k) ||
eppnt->p_filesz > eppnt->p_memsz ||
error = -ENOMEM;
goto out_close;
}
-@@ -528,6 +552,351 @@ out:
+@@ -525,6 +549,351 @@ out:
return error;
}
/*
* These are the functions used to load ELF style executables and shared
* libraries. There is no binary dependent code anywhere else.
-@@ -544,6 +913,11 @@ static unsigned long randomize_stack_top(unsigned long stack_top)
+@@ -541,6 +910,11 @@ static unsigned long randomize_stack_top(unsigned long stack_top)
{
unsigned int random_variable = 0;
if ((current->flags & PF_RANDOMIZE) &&
!(current->personality & ADDR_NO_RANDOMIZE)) {
random_variable = get_random_int() & STACK_RND_MASK;
-@@ -562,7 +936,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -559,7 +933,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
unsigned long load_addr = 0, load_bias = 0;
int load_addr_set = 0;
char * elf_interpreter = NULL;
struct elf_phdr *elf_ppnt, *elf_phdata;
unsigned long elf_bss, elf_brk;
int retval, i;
-@@ -572,11 +946,11 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -569,11 +943,11 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
unsigned long start_code, end_code, start_data, end_data;
unsigned long reloc_func_desc __maybe_unused = 0;
int executable_stack = EXSTACK_DEFAULT;
loc = kmalloc(sizeof(*loc), GFP_KERNEL);
if (!loc) {
-@@ -713,11 +1087,81 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -709,11 +1083,81 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+ goto out_free_dentry;
/* OK, This is the point of no return */
- current->flags &= ~PF_FORKNOEXEC;
- current->mm->def_flags = def_flags;
+
+#if defined(CONFIG_PAX_NOEXEC) || defined(CONFIG_PAX_ASLR)
if (elf_read_implies_exec(loc->elf_ex, executable_stack))
current->personality |= READ_IMPLIES_EXEC;
-@@ -808,6 +1252,20 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -804,6 +1248,20 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
#else
load_bias = ELF_PAGESTART(ELF_ET_DYN_BASE - vaddr);
#endif
}
error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt,
-@@ -840,9 +1298,9 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -836,9 +1294,9 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
* allowed task size. Note that p_filesz must always be
* <= p_memsz so it is only necessary to check p_memsz.
*/
/* set_brk can never work. Avoid overflows. */
send_sig(SIGKILL, current, 0);
retval = -EINVAL;
-@@ -881,11 +1339,40 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -877,11 +1335,40 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
goto out_free_dentry;
}
if (likely(elf_bss != elf_brk) && unlikely(padzero(elf_bss))) {
if (elf_interpreter) {
unsigned long uninitialized_var(interp_map_addr);
-@@ -1098,7 +1585,7 @@ out:
+@@ -1109,7 +1596,7 @@ static bool always_dump_vma(struct vm_area_struct *vma)
* Decide what to dump of a segment, part, all or none.
*/
static unsigned long vma_dump_size(struct vm_area_struct *vma,
{
#define FILTER(type) (mm_flags & (1UL << MMF_DUMP_##type))
-@@ -1132,7 +1619,7 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,
+@@ -1146,7 +1633,7 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,
if (vma->vm_file == NULL)
return 0;
goto whole;
/*
-@@ -1354,9 +1841,9 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
+@@ -1368,9 +1855,9 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
{
elf_addr_t *auxv = (elf_addr_t *) mm->saved_auxv;
int i = 0;
fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv);
}
-@@ -1862,14 +2349,14 @@ static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
+@@ -1892,14 +2379,14 @@ static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
}
static size_t elf_core_vma_data_size(struct vm_area_struct *gate_vma,
return size;
}
-@@ -1963,7 +2450,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -1993,7 +2480,7 @@ static int elf_core_dump(struct coredump_params *cprm)
dataoff = offset = roundup(offset, ELF_EXEC_PAGESIZE);
offset += elf_core_extra_data_size();
e_shoff = offset;
-@@ -1977,10 +2464,12 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2007,10 +2494,12 @@ static int elf_core_dump(struct coredump_params *cprm)
offset = dataoff;
size += sizeof(*elf);
if (size > cprm->limit
|| !dump_write(cprm->file, phdr4note, sizeof(*phdr4note)))
goto end_coredump;
-@@ -1994,7 +2483,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2024,7 +2513,7 @@ static int elf_core_dump(struct coredump_params *cprm)
phdr.p_offset = offset;
phdr.p_vaddr = vma->vm_start;
phdr.p_paddr = 0;
phdr.p_memsz = vma->vm_end - vma->vm_start;
offset += phdr.p_filesz;
phdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0;
-@@ -2005,6 +2494,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2035,6 +2524,7 @@ static int elf_core_dump(struct coredump_params *cprm)
phdr.p_align = ELF_EXEC_PAGESIZE;
size += sizeof(phdr);
if (size > cprm->limit
|| !dump_write(cprm->file, &phdr, sizeof(phdr)))
goto end_coredump;
-@@ -2029,7 +2519,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2059,7 +2549,7 @@ static int elf_core_dump(struct coredump_params *cprm)
unsigned long addr;
unsigned long end;
for (addr = vma->vm_start; addr < end; addr += PAGE_SIZE) {
struct page *page;
-@@ -2038,6 +2528,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2068,6 +2558,7 @@ static int elf_core_dump(struct coredump_params *cprm)
page = get_dump_page(addr);
if (page) {
void *kaddr = kmap(page);
stop = ((size += PAGE_SIZE) > cprm->limit) ||
!dump_write(cprm->file, kaddr,
PAGE_SIZE);
-@@ -2055,6 +2546,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2085,6 +2576,7 @@ static int elf_core_dump(struct coredump_params *cprm)
if (e_phnum == PN_XNUM) {
size += sizeof(*shdr4extnum);
if (size > cprm->limit
|| !dump_write(cprm->file, shdr4extnum,
sizeof(*shdr4extnum)))
-@@ -2075,6 +2567,97 @@ out:
+@@ -2105,6 +2597,97 @@ out:
#endif /* CONFIG_ELF_CORE */
+
static int __init init_elf_binfmt(void)
{
- return register_binfmt(&elf_format);
+ register_binfmt(&elf_format);
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
-index 1bffbe0..c8c283e 100644
+index 6b2daf9..a70dccb 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
-@@ -567,7 +567,9 @@ static int load_flat_file(struct linux_binprm * bprm,
+@@ -562,7 +562,9 @@ static int load_flat_file(struct linux_binprm * bprm,
realdatastart = (unsigned long) -ENOMEM;
printk("Unable to allocate RAM for process data, errno %d\n",
(int)-realdatastart);
ret = realdatastart;
goto err;
}
-@@ -591,8 +593,10 @@ static int load_flat_file(struct linux_binprm * bprm,
+@@ -586,8 +588,10 @@ static int load_flat_file(struct linux_binprm * bprm,
}
if (IS_ERR_VALUE(result)) {
printk("Unable to read data+bss, errno %d\n", (int)-result);
ret = result;
goto err;
}
-@@ -661,8 +665,10 @@ static int load_flat_file(struct linux_binprm * bprm,
+@@ -654,8 +658,10 @@ static int load_flat_file(struct linux_binprm * bprm,
}
if (IS_ERR_VALUE(result)) {
printk("Unable to read code+data+bss, errno %d\n",(int)-result);
goto err;
}
diff --git a/fs/bio.c b/fs/bio.c
-index b980ecd..74800bf 100644
+index 84da885..2149cd9 100644
--- a/fs/bio.c
+++ b/fs/bio.c
-@@ -833,7 +833,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q,
+@@ -838,7 +838,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q,
/*
* Overflow, abort
*/
return ERR_PTR(-EINVAL);
nr_pages += end - start;
-@@ -1229,7 +1229,7 @@ static void bio_copy_kern_endio(struct bio *bio, int err)
+@@ -1234,7 +1234,7 @@ static void bio_copy_kern_endio(struct bio *bio, int err)
const int read = bio_data_dir(bio) == READ;
struct bio_map_data *bmd = bio->bi_private;
int i;
__bio_for_each_segment(bvec, bio, i, 0) {
char *addr = page_address(bvec->bv_page);
diff --git a/fs/block_dev.c b/fs/block_dev.c
-index 5e9f198..6bf9b1c 100644
+index ba11c30..623d736 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
-@@ -703,7 +703,7 @@ static bool bd_may_claim(struct block_device *bdev, struct block_device *whole,
+@@ -704,7 +704,7 @@ static bool bd_may_claim(struct block_device *bdev, struct block_device *whole,
else if (bdev->bd_contains == bdev)
return true; /* is a whole device which isn't held */
else if (whole->bd_holder != NULL)
return false; /* is a partition of a held device */
diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c
-index d986824..af1befd 100644
+index c053e90..e5f1afc 100644
--- a/fs/btrfs/check-integrity.c
+++ b/fs/btrfs/check-integrity.c
-@@ -157,7 +157,7 @@ struct btrfsic_block {
+@@ -156,7 +156,7 @@ struct btrfsic_block {
union {
bio_end_io_t *bio;
bh_end_io_t *bh;
u64 flush_gen; /* only valid if !never_written */
};
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
-index 0639a55..7d9e07f 100644
+index 4106264..8157ede 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
-@@ -488,9 +488,12 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans,
+@@ -513,9 +513,12 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans,
free_extent_buffer(buf);
add_root_to_dirty_list(root);
} else {
WARN_ON(trans->transid != btrfs_header_generation(parent));
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
-index 892b347..b3db246 100644
+index 0df0d1f..4bdcbfe 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
-@@ -6930,7 +6930,7 @@ fail:
+@@ -7074,7 +7074,7 @@ fail:
return -ENOMEM;
}
struct dentry *dentry, struct kstat *stat)
{
struct inode *inode = dentry->d_inode;
-@@ -6944,6 +6944,14 @@ static int btrfs_getattr(struct vfsmount *mnt,
+@@ -7088,6 +7088,14 @@ static int btrfs_getattr(struct vfsmount *mnt,
return 0;
}
* If a file is moved, it will inherit the cow and compression flags of the new
* directory.
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
-index 1b36f19..5ac7360 100644
+index 14f8e1f..ab8d81f 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
-@@ -2783,9 +2783,12 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
+@@ -2882,9 +2882,12 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
for (i = 0; i < num_types; i++) {
struct btrfs_space_info *tmp;
info = NULL;
rcu_read_lock();
list_for_each_entry_rcu(tmp, &root->fs_info->space_info,
-@@ -2807,15 +2810,12 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
+@@ -2906,15 +2909,12 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
memcpy(dest, &space, sizeof(space));
dest++;
space_args.total_spaces++;
if (copy_to_user(user_dest, dest_orig, alloc_size))
diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
-index 8c1aae2..1e46446 100644
+index 646ee21..f020f87 100644
--- a/fs/btrfs/relocation.c
+++ b/fs/btrfs/relocation.c
-@@ -1244,7 +1244,7 @@ static int __update_reloc_root(struct btrfs_root *root, int del)
+@@ -1268,7 +1268,7 @@ static int __update_reloc_root(struct btrfs_root *root, int del)
}
spin_unlock(&rc->reloc_root_tree.lock);
#else
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
-index a0358c2..d6137f2 100644
+index 7f0771d..87d4f36 100644
--- a/fs/cachefiles/namei.c
+++ b/fs/cachefiles/namei.c
@@ -318,7 +318,7 @@ try_again:
return ceph_lookup_open(dir, dentry, nd, mode, 1);
}
-diff --git a/fs/cifs/asn1.c b/fs/cifs/asn1.c
-index cfd1ce3..6b13a74 100644
---- a/fs/cifs/asn1.c
-+++ b/fs/cifs/asn1.c
-@@ -416,6 +416,9 @@ asn1_subid_decode(struct asn1_ctx *ctx, unsigned long *subid)
-
- static int
- asn1_oid_decode(struct asn1_ctx *ctx,
-+ unsigned char *eoc, unsigned long **oid, unsigned int *len) __size_overflow(2);
-+static int
-+asn1_oid_decode(struct asn1_ctx *ctx,
- unsigned char *eoc, unsigned long **oid, unsigned int *len)
- {
- unsigned long subid;
diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c
-index 24b3dfc..3cd5454 100644
+index 2704646..c581c91 100644
--- a/fs/cifs/cifs_debug.c
+++ b/fs/cifs/cifs_debug.c
@@ -265,8 +265,8 @@ static ssize_t cifs_stats_proc_write(struct file *file,
}
}
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
-index 6ee1cb4..8443157 100644
+index 541ef81..a78deb8 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
-@@ -989,7 +989,7 @@ cifs_init_request_bufs(void)
+@@ -985,7 +985,7 @@ cifs_init_request_bufs(void)
cifs_req_cachep = kmem_cache_create("cifs_request",
CIFSMaxBufSize +
MAX_CIFS_HDR_SIZE, 0,
if (cifs_req_cachep == NULL)
return -ENOMEM;
-@@ -1016,7 +1016,7 @@ cifs_init_request_bufs(void)
+@@ -1012,7 +1012,7 @@ cifs_init_request_bufs(void)
efficient to alloc 1 per page off the slab compared to 17K (5page)
alloc of large cifs buffers even when page debugging is on */
cifs_sm_req_cachep = kmem_cache_create("cifs_small_rq",
NULL);
if (cifs_sm_req_cachep == NULL) {
mempool_destroy(cifs_req_poolp);
-@@ -1101,8 +1101,8 @@ init_cifs(void)
+@@ -1097,8 +1097,8 @@ init_cifs(void)
atomic_set(&bufAllocCount, 0);
atomic_set(&smBufAllocCount, 0);
#ifdef CONFIG_CIFS_STATS2
atomic_set(&midCount, 0);
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
-index d47d20a..77e8b33 100644
+index 73fea28..b996b84 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
-@@ -388,28 +388,28 @@ struct cifs_tcon {
+@@ -439,28 +439,28 @@ struct cifs_tcon {
__u16 Flags; /* optional support bits */
enum statusEnum tidStatus;
#ifdef CONFIG_CIFS_STATS
#ifdef CONFIG_CIFS_STATS2
unsigned long long time_writes;
unsigned long long time_reads;
-@@ -624,7 +624,7 @@ convert_delimiter(char *path, char delim)
+@@ -677,7 +677,7 @@ convert_delimiter(char *path, char delim)
}
#ifdef CONFIG_CIFS_STATS
static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon,
unsigned int bytes)
-@@ -983,8 +983,8 @@ GLOBAL_EXTERN atomic_t tconInfoReconnectCount;
+@@ -1036,8 +1036,8 @@ GLOBAL_EXTERN atomic_t tconInfoReconnectCount;
/* Various Debug counters */
GLOBAL_EXTERN atomic_t bufAllocCount; /* current number allocated */
#ifdef CONFIG_CIFS_STATS2
kfree(p);
}
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
-index 703ef5c..2a44ed5 100644
+index c29d1aa..58018da 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -156,7 +156,7 @@ cifs_buf_get(void)
return hit;
diff --git a/fs/compat.c b/fs/compat.c
-index 07880ba..3fb2862 100644
+index f2944ac..62845d2 100644
--- a/fs/compat.c
+++ b/fs/compat.c
-@@ -491,7 +491,7 @@ compat_sys_io_setup(unsigned nr_reqs, u32 __user *ctx32p)
+@@ -490,7 +490,7 @@ compat_sys_io_setup(unsigned nr_reqs, u32 __user *ctx32p)
set_fs(KERNEL_DS);
/* The __user pointer cast is valid because of the set_fs() */
set_fs(oldfs);
/* truncating is ok because it's a user address */
if (!ret)
-@@ -549,7 +549,7 @@ ssize_t compat_rw_copy_check_uvector(int type,
+@@ -548,7 +548,7 @@ ssize_t compat_rw_copy_check_uvector(int type,
goto out;
ret = -EINVAL;
goto out;
if (nr_segs > fast_segs) {
ret = -ENOMEM;
-@@ -832,6 +832,7 @@ struct compat_old_linux_dirent {
+@@ -831,6 +831,7 @@ struct compat_old_linux_dirent {
struct compat_readdir_callback {
struct compat_old_linux_dirent __user *dirent;
int result;
};
-@@ -849,6 +850,10 @@ static int compat_fillonedir(void *__buf, const char *name, int namlen,
+@@ -848,6 +849,10 @@ static int compat_fillonedir(void *__buf, const char *name, int namlen,
buf->result = -EOVERFLOW;
return -EOVERFLOW;
}
buf->result++;
dirent = buf->dirent;
if (!access_ok(VERIFY_WRITE, dirent,
-@@ -881,6 +886,7 @@ asmlinkage long compat_sys_old_readdir(unsigned int fd,
+@@ -880,6 +885,7 @@ asmlinkage long compat_sys_old_readdir(unsigned int fd,
buf.result = 0;
buf.dirent = dirent;
error = vfs_readdir(file, compat_fillonedir, &buf);
if (buf.result)
-@@ -901,6 +907,7 @@ struct compat_linux_dirent {
+@@ -900,6 +906,7 @@ struct compat_linux_dirent {
struct compat_getdents_callback {
struct compat_linux_dirent __user *current_dir;
struct compat_linux_dirent __user *previous;
int count;
int error;
};
-@@ -922,6 +929,10 @@ static int compat_filldir(void *__buf, const char *name, int namlen,
+@@ -921,6 +928,10 @@ static int compat_filldir(void *__buf, const char *name, int namlen,
buf->error = -EOVERFLOW;
return -EOVERFLOW;
}
dirent = buf->previous;
if (dirent) {
if (__put_user(offset, &dirent->d_off))
-@@ -969,6 +980,7 @@ asmlinkage long compat_sys_getdents(unsigned int fd,
+@@ -968,6 +979,7 @@ asmlinkage long compat_sys_getdents(unsigned int fd,
buf.previous = NULL;
buf.count = count;
buf.error = 0;
error = vfs_readdir(file, compat_filldir, &buf);
if (error >= 0)
-@@ -990,6 +1002,7 @@ out:
+@@ -989,6 +1001,7 @@ out:
struct compat_getdents_callback64 {
struct linux_dirent64 __user *current_dir;
struct linux_dirent64 __user *previous;
int count;
int error;
};
-@@ -1006,6 +1019,10 @@ static int compat_filldir64(void * __buf, const char * name, int namlen, loff_t
+@@ -1005,6 +1018,10 @@ static int compat_filldir64(void * __buf, const char * name, int namlen, loff_t
buf->error = -EINVAL; /* only used if we fail.. */
if (reclen > buf->count)
return -EINVAL;
dirent = buf->previous;
if (dirent) {
-@@ -1057,13 +1074,14 @@ asmlinkage long compat_sys_getdents64(unsigned int fd,
+@@ -1056,13 +1073,14 @@ asmlinkage long compat_sys_getdents64(unsigned int fd,
buf.previous = NULL;
buf.count = count;
buf.error = 0;
/*
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
-index a26bea1..ae23e72 100644
+index debdfe0..75d31d4 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
-@@ -211,6 +211,8 @@ static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd,
+@@ -210,6 +210,8 @@ static int do_video_set_spu_palette(unsigned int fd, unsigned int cmd,
err = get_user(palp, &up->palette);
err |= get_user(length, &up->length);
up_native = compat_alloc_user_space(sizeof(struct video_spu_palette));
err = put_user(compat_ptr(palp), &up_native->palette);
-@@ -622,7 +624,7 @@ static int serial_struct_ioctl(unsigned fd, unsigned cmd,
+@@ -621,7 +623,7 @@ static int serial_struct_ioctl(unsigned fd, unsigned cmd,
return -EFAULT;
if (__get_user(udata, &ss32->iomem_base))
return -EFAULT;
if (__get_user(ss.iomem_reg_shift, &ss32->iomem_reg_shift) ||
__get_user(ss.port_high, &ss32->port_high))
return -EFAULT;
-@@ -797,7 +799,7 @@ static int compat_ioctl_preallocate(struct file *file,
+@@ -796,7 +798,7 @@ static int compat_ioctl_preallocate(struct file *file,
copy_in_user(&p->l_len, &p32->l_len, sizeof(s64)) ||
copy_in_user(&p->l_sysid, &p32->l_sysid, sizeof(s32)) ||
copy_in_user(&p->l_pid, &p32->l_pid, sizeof(u32)) ||
return -EFAULT;
return ioctl_preallocate(file, p);
-@@ -1611,8 +1613,8 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
+@@ -1610,8 +1612,8 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
static int __init init_sys32_ioctl_cmp(const void *p, const void *q)
{
unsigned int a, b;
return 1;
if (a < b)
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
-index 5ddd7eb..c18bf04 100644
+index 7e6c52d..94bc756 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
-@@ -1575,7 +1575,8 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
+@@ -1564,7 +1564,8 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
}
for (p=q->next; p!= &parent_sd->s_children; p=p->next) {
struct configfs_dirent *next;
int len;
struct inode *inode = NULL;
-@@ -1585,7 +1586,12 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
+@@ -1574,7 +1575,12 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
continue;
name = configfs_get_name(next);
/*
* We'll have a dentry and an inode for
-diff --git a/fs/configfs/file.c b/fs/configfs/file.c
-index 2b6cb23..d76e879 100644
---- a/fs/configfs/file.c
-+++ b/fs/configfs/file.c
-@@ -135,6 +135,8 @@ out:
- */
-
- static int
-+fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count) __size_overflow(3);
-+static int
- fill_write_buffer(struct configfs_buffer * buffer, const char __user * buf, size_t count)
- {
- int error;
diff --git a/fs/dcache.c b/fs/dcache.c
-index 2576d14..0cec38d 100644
+index b80531c..8ca7e2d 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
-@@ -105,10 +105,10 @@ static unsigned int d_hash_shift __read_mostly;
- static struct hlist_bl_head *dentry_hashtable __read_mostly;
-
- static inline struct hlist_bl_head *d_hash(const struct dentry *parent,
-- unsigned long hash)
-+ unsigned int hash)
- {
-- hash += ((unsigned long) parent ^ GOLDEN_RATIO_PRIME) / L1_CACHE_BYTES;
-- hash = hash ^ ((hash ^ GOLDEN_RATIO_PRIME) >> D_HASHBITS);
-+ hash += (unsigned long) parent / L1_CACHE_BYTES;
-+ hash = hash + (hash >> D_HASHBITS);
- return dentry_hashtable + (hash & D_HASHMASK);
- }
-
-@@ -3067,7 +3067,7 @@ void __init vfs_caches_init(unsigned long mempages)
+@@ -3084,7 +3084,7 @@ void __init vfs_caches_init(unsigned long mempages)
mempages -= reserve;
names_cachep = kmem_cache_create("names_cache", PATH_MAX, 0,
dcache_init();
inode_init();
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
-index 956d5dd..e755e04 100644
+index b80bc84..0d46d1a 100644
--- a/fs/debugfs/inode.c
+++ b/fs/debugfs/inode.c
-@@ -261,7 +261,11 @@ EXPORT_SYMBOL_GPL(debugfs_create_file);
+@@ -408,7 +408,11 @@ EXPORT_SYMBOL_GPL(debugfs_create_file);
struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
{
return debugfs_create_file(name,
return rc;
}
diff --git a/fs/exec.c b/fs/exec.c
-index ae42277..32c9035 100644
+index b1fd202..582240d 100644
--- a/fs/exec.c
+++ b/fs/exec.c
-@@ -55,6 +55,13 @@
+@@ -55,6 +55,15 @@
#include <linux/pipe_fs_i.h>
#include <linux/oom.h>
#include <linux/compat.h>
+#include <linux/kallsyms.h>
+#include <linux/kdebug.h>
+#endif
++
++#include <trace/events/fs.h>
#include <asm/uaccess.h>
#include <asm/mmu_context.h>
-@@ -63,6 +70,15 @@
- #include <trace/events/task.h>
- #include "internal.h"
+@@ -66,6 +75,18 @@
-+#ifndef CONFIG_PAX_HAVE_ACL_FLAGS
-+void __weak pax_set_initial_flags(struct linux_binprm *bprm) {}
+ #include <trace/events/sched.h>
+
++#ifdef CONFIG_PAX_HAVE_ACL_FLAGS
++void __weak pax_set_initial_flags(struct linux_binprm *bprm)
++{
++ WARN_ONCE(1, "PAX: PAX_HAVE_ACL_FLAGS was enabled without providing the pax_set_initial_flags callback, this is probably not what you wanted.\n");
++}
+#endif
+
+#ifdef CONFIG_PAX_HOOK_ACL_FLAGS
int core_uses_pid;
char core_pattern[CORENAME_MAX_SIZE] = "core";
unsigned int core_pipe_limit;
-@@ -72,7 +88,7 @@ struct core_name {
+@@ -75,7 +96,7 @@ struct core_name {
char *corename;
int used, size;
};
/* The maximal length of core_pattern is also specified in sysctl.c */
-@@ -190,18 +206,10 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
+@@ -191,18 +212,10 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
int write)
{
struct page *page;
return NULL;
if (write) {
-@@ -217,6 +225,17 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
+@@ -218,6 +231,17 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
if (size <= ARG_MAX)
return page;
/*
* Limit to 1/4-th the stack size for the argv+env strings.
* This ensures that:
-@@ -276,6 +295,11 @@ static int __bprm_mm_init(struct linux_binprm *bprm)
+@@ -277,6 +301,11 @@ static int __bprm_mm_init(struct linux_binprm *bprm)
vma->vm_end = STACK_TOP_MAX;
vma->vm_start = vma->vm_end - PAGE_SIZE;
vma->vm_flags = VM_STACK_FLAGS | VM_STACK_INCOMPLETE_SETUP;
vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
INIT_LIST_HEAD(&vma->anon_vma_chain);
-@@ -290,6 +314,12 @@ static int __bprm_mm_init(struct linux_binprm *bprm)
+@@ -291,6 +320,12 @@ static int __bprm_mm_init(struct linux_binprm *bprm)
mm->stack_vm = mm->total_vm = 1;
up_write(&mm->mmap_sem);
bprm->p = vma->vm_end - sizeof(void *);
return 0;
err:
up_write(&mm->mmap_sem);
-@@ -398,19 +428,7 @@ err:
+@@ -399,19 +434,7 @@ err:
return err;
}
{
const char __user *native;
-@@ -419,14 +437,14 @@ static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)
+@@ -420,14 +443,14 @@ static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)
compat_uptr_t compat;
if (get_user(compat, argv.ptr.compat + nr))
return native;
}
-@@ -445,7 +463,7 @@ static int count(struct user_arg_ptr argv, int max)
+@@ -446,7 +469,7 @@ static int count(struct user_arg_ptr argv, int max)
if (!p)
break;
return -EFAULT;
if (i++ >= max)
-@@ -479,7 +497,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
+@@ -480,7 +503,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
ret = -EFAULT;
str = get_user_arg_ptr(argv, argc);
goto out;
len = strnlen_user(str, MAX_ARG_STRLEN);
-@@ -561,7 +579,7 @@ int copy_strings_kernel(int argc, const char *const *__argv,
+@@ -562,7 +585,7 @@ int copy_strings_kernel(int argc, const char *const *__argv,
int r;
mm_segment_t oldfs = get_fs();
struct user_arg_ptr argv = {
};
set_fs(KERNEL_DS);
-@@ -596,7 +614,8 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
+@@ -597,7 +620,8 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
unsigned long new_end = old_end - shift;
struct mmu_gather tlb;
/*
* ensure there are no vmas between where we want to go
-@@ -605,6 +624,10 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
+@@ -606,6 +630,10 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
if (vma != find_vma(mm, new_start))
return -EFAULT;
/*
* cover the whole range: [new_start, old_end)
*/
-@@ -685,10 +708,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -686,10 +714,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
stack_top = arch_align_stack(stack_top);
stack_top = PAGE_ALIGN(stack_top);
stack_shift = vma->vm_end - stack_top;
bprm->p -= stack_shift;
-@@ -700,8 +719,28 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -701,8 +725,28 @@ int setup_arg_pages(struct linux_binprm *bprm,
bprm->exec -= stack_shift;
down_write(&mm->mmap_sem);
/*
* Adjust stack execute permissions; explicitly enable for
* EXSTACK_ENABLE_X, disable for EXSTACK_DISABLE_X and leave alone
-@@ -720,13 +759,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -721,13 +765,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
goto out_unlock;
BUG_ON(prev != vma);
/* mprotect_fixup is overkill to remove the temporary stack flags */
vma->vm_flags &= ~VM_STACK_INCOMPLETE_SETUP;
-@@ -807,7 +839,7 @@ int kernel_read(struct file *file, loff_t offset,
+@@ -785,6 +822,8 @@ struct file *open_exec(const char *name)
+
+ fsnotify_open(file);
+
++ trace_open_exec(name);
++
+ err = deny_write_access(file);
+ if (err)
+ goto exit;
+@@ -808,7 +847,7 @@ int kernel_read(struct file *file, loff_t offset,
old_fs = get_fs();
set_fs(get_ds());
/* The cast to a user pointer is valid due to the set_fs() */
set_fs(old_fs);
return result;
}
-@@ -1255,7 +1287,7 @@ static int check_unsafe_exec(struct linux_binprm *bprm)
+@@ -1254,7 +1293,7 @@ static int check_unsafe_exec(struct linux_binprm *bprm)
}
rcu_read_unlock();
bprm->unsafe |= LSM_UNSAFE_SHARE;
} else {
res = -EAGAIN;
-@@ -1450,6 +1482,28 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
+@@ -1451,6 +1490,28 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
EXPORT_SYMBOL(search_binary_handler);
/*
* sys_execve() executes a new program.
*/
-@@ -1458,6 +1512,11 @@ static int do_execve_common(const char *filename,
+@@ -1459,6 +1520,11 @@ static int do_execve_common(const char *filename,
struct user_arg_ptr envp,
struct pt_regs *regs)
{
struct linux_binprm *bprm;
struct file *file;
struct files_struct *displaced;
-@@ -1465,6 +1524,8 @@ static int do_execve_common(const char *filename,
+@@ -1466,6 +1532,8 @@ static int do_execve_common(const char *filename,
int retval;
const struct cred *cred = current_cred();
/*
* We move the actual failure in case of RLIMIT_NPROC excess from
* set*uid() to execve() because too many poorly written programs
-@@ -1505,12 +1566,27 @@ static int do_execve_common(const char *filename,
+@@ -1506,12 +1574,27 @@ static int do_execve_common(const char *filename,
if (IS_ERR(file))
goto out_unmark;
retval = bprm_mm_init(bprm);
if (retval)
goto out_file;
-@@ -1527,24 +1603,65 @@ static int do_execve_common(const char *filename,
+@@ -1528,24 +1611,65 @@ static int do_execve_common(const char *filename,
if (retval < 0)
goto out;
current->fs->in_exec = 0;
current->in_execve = 0;
acct_update_integrals(current);
-@@ -1553,6 +1670,14 @@ static int do_execve_common(const char *filename,
+@@ -1554,6 +1678,14 @@ static int do_execve_common(const char *filename,
put_files_struct(displaced);
return retval;
out:
if (bprm->mm) {
acct_arg_size(bprm, 0);
-@@ -1626,7 +1751,7 @@ static int expand_corename(struct core_name *cn)
+@@ -1627,7 +1759,7 @@ static int expand_corename(struct core_name *cn)
{
char *old_corename = cn->corename;
cn->corename = krealloc(old_corename, cn->size, GFP_KERNEL);
if (!cn->corename) {
-@@ -1723,7 +1848,7 @@ static int format_corename(struct core_name *cn, long signr)
+@@ -1724,7 +1856,7 @@ static int format_corename(struct core_name *cn, long signr)
int pid_in_pattern = 0;
int err = 0;
cn->corename = kmalloc(cn->size, GFP_KERNEL);
cn->used = 0;
-@@ -1820,6 +1945,228 @@ out:
+@@ -1821,6 +1953,228 @@ out:
return ispipe;
}
static int zap_process(struct task_struct *start, int exit_code)
{
struct task_struct *t;
-@@ -2017,17 +2364,17 @@ static void wait_for_dump_helpers(struct file *file)
+@@ -2018,17 +2372,17 @@ static void wait_for_dump_helpers(struct file *file)
pipe = file->f_path.dentry->d_inode->i_pipe;
pipe_lock(pipe);
pipe_unlock(pipe);
}
-@@ -2088,7 +2435,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
+@@ -2089,7 +2443,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
int retval = 0;
int flag = 0;
int ispipe;
struct coredump_params cprm = {
.signr = signr,
.regs = regs,
-@@ -2103,6 +2450,9 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
+@@ -2104,6 +2458,9 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
audit_core_dumps(signr);
binfmt = mm->binfmt;
if (!binfmt || !binfmt->core_dump)
goto fail;
-@@ -2170,7 +2520,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
+@@ -2171,7 +2528,7 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
}
cprm.limit = RLIM_INFINITY;
if (core_pipe_limit && (core_pipe_limit < dump_count)) {
printk(KERN_WARNING "Pid %d(%s) over core_pipe_limit\n",
task_tgid_vnr(current), current->comm);
-@@ -2197,6 +2547,8 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
+@@ -2198,6 +2555,8 @@ void do_coredump(long signr, int exit_code, struct pt_regs *regs)
} else {
struct inode *inode;
if (cprm.limit < binfmt->min_coredump)
goto fail_unlock;
-@@ -2240,7 +2592,7 @@ close_fail:
+@@ -2241,7 +2600,7 @@ close_fail:
filp_close(cprm.file, NULL);
fail_dropcount:
if (ispipe)
fail_unlock:
kfree(cn.corename);
fail_corename:
-@@ -2259,7 +2611,7 @@ fail:
+@@ -2260,7 +2619,7 @@ fail:
*/
int dump_write(struct file *file, const void *addr, int nr)
{
(sbi->s_resgid == 0 || !in_group_p (sbi->s_resgid))) {
return 0;
diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c
-index a203892..4e64db5 100644
+index baac1b1..1499b62 100644
--- a/fs/ext3/balloc.c
+++ b/fs/ext3/balloc.c
-@@ -1446,9 +1446,10 @@ static int ext3_has_free_blocks(struct ext3_sb_info *sbi, int use_reservation)
+@@ -1438,9 +1438,10 @@ static int ext3_has_free_blocks(struct ext3_sb_info *sbi, int use_reservation)
free_blocks = percpu_counter_read_positive(&sbi->s_freeblocks_counter);
root_blocks = le32_to_cpu(sbi->s_es->s_r_blocks_count);
}
return 1;
diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
-index f9e2cd8..bfdc476 100644
+index 8da837b..ed3835b 100644
--- a/fs/ext4/balloc.c
+++ b/fs/ext4/balloc.c
-@@ -438,8 +438,8 @@ static int ext4_has_free_clusters(struct ext4_sb_info *sbi,
+@@ -463,8 +463,8 @@ static int ext4_has_free_clusters(struct ext4_sb_info *sbi,
/* Hm, nope. Are (enough) root reserved clusters available? */
if (sbi->s_resuid == current_fsuid() ||
((sbi->s_resgid != 0) && in_group_p(sbi->s_resgid)) ||
if (free_clusters >= (nclusters + dirty_clusters))
return 1;
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
-index 9983ba8..2a5272c 100644
+index 0e01e90..ae2bd5e 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
-@@ -1217,19 +1217,19 @@ struct ext4_sb_info {
+@@ -1225,19 +1225,19 @@ struct ext4_sb_info {
unsigned long s_mb_last_start;
/* stats for buddy allocator */
/* locality groups */
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
-index cb990b2..4820141 100644
+index 6b0a57e..1955a44 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
-@@ -1794,7 +1794,7 @@ void ext4_mb_simple_scan_group(struct ext4_allocation_context *ac,
+@@ -1747,7 +1747,7 @@ void ext4_mb_simple_scan_group(struct ext4_allocation_context *ac,
BUG_ON(ac->ac_b_ex.fe_len != ac->ac_g_ex.fe_len);
if (EXT4_SB(sb)->s_mb_stats)
break;
}
-@@ -2088,7 +2088,7 @@ repeat:
+@@ -2041,7 +2041,7 @@ repeat:
ac->ac_status = AC_STATUS_CONTINUE;
ac->ac_flags |= EXT4_MB_HINT_FIRST;
cr = 3;
goto repeat;
}
}
-@@ -2592,25 +2592,25 @@ int ext4_mb_release(struct super_block *sb)
+@@ -2545,25 +2545,25 @@ int ext4_mb_release(struct super_block *sb)
if (sbi->s_mb_stats) {
ext4_msg(sb, KERN_INFO,
"mballoc: %u blocks %u reqs (%u success)",
}
free_percpu(sbi->s_locality_groups);
-@@ -3096,16 +3096,16 @@ static void ext4_mb_collect_stats(struct ext4_allocation_context *ac)
+@@ -3045,16 +3045,16 @@ static void ext4_mb_collect_stats(struct ext4_allocation_context *ac)
struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb);
if (sbi->s_mb_stats && ac->ac_g_ex.fe_len > 1) {
}
if (ac->ac_op == EXT4_MB_HISTORY_ALLOC)
-@@ -3509,7 +3509,7 @@ ext4_mb_new_inode_pa(struct ext4_allocation_context *ac)
+@@ -3458,7 +3458,7 @@ ext4_mb_new_inode_pa(struct ext4_allocation_context *ac)
trace_ext4_mb_new_inode_pa(ac, pa);
ext4_mb_use_inode_pa(ac, pa);
ei = EXT4_I(ac->ac_inode);
grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group);
-@@ -3569,7 +3569,7 @@ ext4_mb_new_group_pa(struct ext4_allocation_context *ac)
+@@ -3518,7 +3518,7 @@ ext4_mb_new_group_pa(struct ext4_allocation_context *ac)
trace_ext4_mb_new_group_pa(ac, pa);
ext4_mb_use_group_pa(ac, pa);
grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group);
lg = ac->ac_lg;
-@@ -3658,7 +3658,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
+@@ -3607,7 +3607,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
* from the bitmap and continue.
*/
}
return err;
}
-@@ -3676,7 +3676,7 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b,
+@@ -3625,7 +3625,7 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b,
ext4_get_group_no_and_offset(sb, pa->pa_pstart, &group, &bit);
BUG_ON(group != e4b->bd_group && pa->pa_len != 0);
mb_free_blocks(pa->pa_inode, e4b, bit, pa->pa_len);
return 0;
diff --git a/fs/fcntl.c b/fs/fcntl.c
-index 22764c7..86372c9 100644
+index 75e7c1f..1eb3e4d 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -224,6 +224,11 @@ int __f_setown(struct file *filp, struct pid *pid, enum pid_type type,
err_nocleanup:
diff --git a/fs/file.c b/fs/file.c
-index 4c6992d..104cdea 100644
+index ba3f605..fade102 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -15,6 +15,7 @@
#include <linux/fdtable.h>
#include <linux/bitops.h>
#include <linux/interrupt.h>
-@@ -254,6 +255,7 @@ int expand_files(struct files_struct *files, int nr)
+@@ -255,6 +256,7 @@ int expand_files(struct files_struct *files, int nr)
* N.B. For clone tasks sharing a files structure, this test
* will limit the total number of files that can be opened.
*/
if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) {
diff --git a/fs/fs_struct.c b/fs/fs_struct.c
-index 78b519c..a8b4979 100644
+index e159e68..e7d2a6f 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -4,6 +4,7 @@
static inline void path_get_longterm(struct path *path)
@@ -31,6 +32,7 @@ void set_fs_root(struct fs_struct *fs, struct path *path)
+ write_seqcount_begin(&fs->seq);
old_root = fs->root;
fs->root = *path;
- path_get_longterm(path);
+ gr_set_chroot_entries(current, path);
write_seqcount_end(&fs->seq);
spin_unlock(&fs->lock);
if (old_root.dentry)
-@@ -74,6 +76,7 @@ void chroot_fs_refs(struct path *old_root, struct path *new_root)
- && fs->root.mnt == old_root->mnt) {
- path_get_longterm(new_root);
- fs->root = *new_root;
-+ gr_set_chroot_entries(p, new_root);
- count++;
- }
- if (fs->pwd.dentry == old_root->dentry
-@@ -109,7 +112,8 @@ void exit_fs(struct task_struct *tsk)
+@@ -65,6 +67,17 @@ static inline int replace_path(struct path *p, const struct path *old, const str
+ return 1;
+ }
+
++static inline int replace_root_path(struct task_struct *task, struct path *p, const struct path *old, struct path *new)
++{
++ if (likely(p->dentry != old->dentry || p->mnt != old->mnt))
++ return 0;
++ *p = *new;
++
++ gr_set_chroot_entries(task, new);
++
++ return 1;
++}
++
+ void chroot_fs_refs(struct path *old_root, struct path *new_root)
+ {
+ struct task_struct *g, *p;
+@@ -79,7 +92,7 @@ void chroot_fs_refs(struct path *old_root, struct path *new_root)
+ int hits = 0;
+ spin_lock(&fs->lock);
+ write_seqcount_begin(&fs->seq);
+- hits += replace_path(&fs->root, old_root, new_root);
++ hits += replace_root_path(p, &fs->root, old_root, new_root);
+ hits += replace_path(&fs->pwd, old_root, new_root);
+ write_seqcount_end(&fs->seq);
+ while (hits--) {
+@@ -111,7 +124,8 @@ void exit_fs(struct task_struct *tsk)
+ task_lock(tsk);
spin_lock(&fs->lock);
- write_seqcount_begin(&fs->seq);
tsk->fs = NULL;
- kill = !--fs->users;
+ gr_clear_chroot_entries(tsk);
+ kill = !atomic_dec_return(&fs->users);
- write_seqcount_end(&fs->seq);
spin_unlock(&fs->lock);
task_unlock(tsk);
-@@ -123,7 +127,7 @@ struct fs_struct *copy_fs_struct(struct fs_struct *old)
+ if (kill)
+@@ -124,7 +138,7 @@ struct fs_struct *copy_fs_struct(struct fs_struct *old)
struct fs_struct *fs = kmem_cache_alloc(fs_cachep, GFP_KERNEL);
/* We don't need to lock fs - think why ;-) */
if (fs) {
fs->in_exec = 0;
spin_lock_init(&fs->lock);
seqcount_init(&fs->seq);
-@@ -132,6 +136,9 @@ struct fs_struct *copy_fs_struct(struct fs_struct *old)
+@@ -133,6 +147,9 @@ struct fs_struct *copy_fs_struct(struct fs_struct *old)
spin_lock(&old->lock);
fs->root = old->root;
path_get_longterm(&fs->root);
fs->pwd = old->pwd;
path_get_longterm(&fs->pwd);
spin_unlock(&old->lock);
-@@ -150,8 +157,9 @@ int unshare_fs_struct(void)
+@@ -151,8 +168,9 @@ int unshare_fs_struct(void)
task_lock(current);
spin_lock(&fs->lock);
spin_unlock(&fs->lock);
task_unlock(current);
-@@ -164,13 +172,13 @@ EXPORT_SYMBOL_GPL(unshare_fs_struct);
+@@ -165,13 +183,13 @@ EXPORT_SYMBOL_GPL(unshare_fs_struct);
int current_umask(void)
{
.lock = __SPIN_LOCK_UNLOCKED(init_fs.lock),
.seq = SEQCNT_ZERO,
.umask = 0022,
-@@ -186,12 +194,13 @@ void daemonize_fs_struct(void)
+@@ -187,12 +205,13 @@ void daemonize_fs_struct(void)
task_lock(current);
spin_lock(&init_fs.lock);
cuse_class = class_create(THIS_MODULE, "cuse");
if (IS_ERR(cuse_class))
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
-index 5f3368a..8306426 100644
+index 7df2b5e..5804aa7 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -1242,7 +1242,7 @@ static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
if (!ret)
ret = -EPIPE;
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
-index 2066328..f5add3b 100644
+index bc43832..0cfe5a6 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
-@@ -1175,7 +1175,7 @@ static char *read_link(struct dentry *dentry)
+@@ -1181,7 +1181,7 @@ static char *read_link(struct dentry *dentry)
return link;
}
if (!IS_ERR(link))
free_page((unsigned long) link);
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
-index 5698746..6086012 100644
+index a9ba244..d9df391 100644
--- a/fs/gfs2/inode.c
+++ b/fs/gfs2/inode.c
-@@ -1487,7 +1487,7 @@ out:
+@@ -1496,7 +1496,7 @@ out:
static void gfs2_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
{
kfree(s);
}
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
-index c60267e..193d9e4 100644
+index 001ef01..f7d5f07 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
-@@ -902,7 +902,7 @@ static struct file_system_type hugetlbfs_fs_type = {
+@@ -920,7 +920,7 @@ static struct file_system_type hugetlbfs_fs_type = {
.kill_sb = kill_litter_super,
};
static int can_do_hugetlb_shm(void)
{
diff --git a/fs/inode.c b/fs/inode.c
-index 83ab215..8842101 100644
+index 9f4f5fe..6214688 100644
--- a/fs/inode.c
+++ b/fs/inode.c
-@@ -870,8 +870,8 @@ unsigned int get_next_ino(void)
+@@ -860,8 +860,8 @@ unsigned int get_next_ino(void)
#ifdef CONFIG_SMP
if (unlikely((res & (LAST_INO_BATCH-1)) == 0)) {
res = next - LAST_INO_BATCH;
}
diff --git a/fs/jffs2/erase.c b/fs/jffs2/erase.c
-index eafb8d3..f423d37 100644
+index 4a6cf28..d3a29d3 100644
--- a/fs/jffs2/erase.c
+++ b/fs/jffs2/erase.c
-@@ -438,7 +438,8 @@ static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseb
+@@ -452,7 +452,8 @@ static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseb
struct jffs2_unknown_node marker = {
.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK),
.nodetype = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER),
jffs2_prealloc_raw_node_refs(c, jeb, 1);
diff --git a/fs/jffs2/wbuf.c b/fs/jffs2/wbuf.c
-index 30e8f47..21f600c 100644
+index 74d9be1..d5dd140 100644
--- a/fs/jffs2/wbuf.c
+++ b/fs/jffs2/wbuf.c
-@@ -1012,7 +1012,8 @@ static const struct jffs2_unknown_node oob_cleanmarker =
+@@ -1022,7 +1022,8 @@ static const struct jffs2_unknown_node oob_cleanmarker =
{
.magic = constant_cpu_to_je16(JFFS2_MAGIC_BITMASK),
.nodetype = constant_cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER),
/*
diff --git a/fs/jfs/super.c b/fs/jfs/super.c
-index 682bca6..86b8e6e 100644
+index 4a82950..bcaa0cb 100644
--- a/fs/jfs/super.c
+++ b/fs/jfs/super.c
@@ -801,7 +801,7 @@ static int __init init_jfs_fs(void)
if (jfs_inode_cachep == NULL)
return -ENOMEM;
diff --git a/fs/libfs.c b/fs/libfs.c
-index 5b2dbb3..7442d54 100644
+index 18d08f5..fe3dc64 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -165,6 +165,9 @@ int dcache_readdir(struct file * filp, void * dirent, filldir_t filldir)
lock_flocks();
diff --git a/fs/namei.c b/fs/namei.c
-index 46ea9cc..c7cf3a3 100644
+index c427919..e37fd3f 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -278,16 +278,32 @@ int generic_permission(struct inode *inode, int mask)
error = 0;
if (s)
error = __vfs_follow_link(nd, s);
-@@ -1650,6 +1666,21 @@ static int path_lookupat(int dfd, const char *name,
+@@ -1753,6 +1769,21 @@ static int path_lookupat(int dfd, const char *name,
if (!err)
err = complete_walk(nd);
if (!err && nd->flags & LOOKUP_DIRECTORY) {
if (!nd->inode->i_op->lookup) {
path_put(&nd->path);
-@@ -1677,6 +1708,15 @@ static int do_path_lookup(int dfd, const char *name,
+@@ -1780,6 +1811,15 @@ static int do_path_lookup(int dfd, const char *name,
retval = path_lookupat(dfd, name, flags | LOOKUP_REVAL, nd);
if (likely(!retval)) {
if (unlikely(!audit_dummy_context())) {
if (nd->path.dentry && nd->inode)
audit_inode(name, nd->path.dentry);
-@@ -2071,6 +2111,13 @@ static int may_open(struct path *path, int acc_mode, int flag)
+@@ -2126,6 +2166,13 @@ static int may_open(struct path *path, int acc_mode, int flag)
if (flag & O_NOATIME && !inode_owner_or_capable(inode))
return -EPERM;
return 0;
}
-@@ -2132,6 +2179,16 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
+@@ -2187,6 +2234,16 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
error = complete_walk(nd);
if (error)
return ERR_PTR(error);
audit_inode(pathname, nd->path.dentry);
if (open_flag & O_CREAT) {
error = -EISDIR;
-@@ -2142,6 +2199,16 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
+@@ -2197,6 +2254,16 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
error = complete_walk(nd);
if (error)
return ERR_PTR(error);
audit_inode(pathname, dir);
goto ok;
}
-@@ -2163,6 +2230,16 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
+@@ -2218,6 +2285,16 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
error = complete_walk(nd);
if (error)
return ERR_PTR(error);
error = -ENOTDIR;
if (nd->flags & LOOKUP_DIRECTORY) {
-@@ -2203,6 +2280,12 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
+@@ -2258,6 +2335,12 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
/* Negative dentry, just create the file */
if (!dentry->d_inode) {
umode_t mode = op->mode;
if (!IS_POSIXACL(dir->d_inode))
mode &= ~current_umask();
/*
-@@ -2226,6 +2309,8 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
+@@ -2281,6 +2364,8 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
error = vfs_create(dir->d_inode, dentry, mode, nd);
if (error)
goto exit_mutex_unlock;
mutex_unlock(&dir->d_inode->i_mutex);
dput(nd->path.dentry);
nd->path.dentry = dentry;
-@@ -2235,6 +2320,19 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
+@@ -2290,6 +2375,19 @@ static struct file *do_last(struct nameidata *nd, struct path *path,
/*
* It already exists.
*/
mutex_unlock(&dir->d_inode->i_mutex);
audit_inode(pathname, path->dentry);
-@@ -2447,6 +2545,11 @@ struct dentry *kern_path_create(int dfd, const char *pathname, struct path *path
+@@ -2502,6 +2600,11 @@ struct dentry *kern_path_create(int dfd, const char *pathname, struct path *path
*path = nd.path;
return dentry;
eexist:
dput(dentry);
dentry = ERR_PTR(-EEXIST);
fail:
-@@ -2469,6 +2572,20 @@ struct dentry *user_path_create(int dfd, const char __user *pathname, struct pat
+@@ -2524,6 +2627,20 @@ struct dentry *user_path_create(int dfd, const char __user *pathname, struct pat
}
EXPORT_SYMBOL(user_path_create);
int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
{
int error = may_create(dir, dentry);
-@@ -2536,6 +2653,17 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
+@@ -2591,6 +2708,17 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
error = mnt_want_write(path.mnt);
if (error)
goto out_dput;
error = security_path_mknod(&path, dentry, mode, dev);
if (error)
goto out_drop_write;
-@@ -2553,6 +2681,9 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
+@@ -2608,6 +2736,9 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
}
out_drop_write:
mnt_drop_write(path.mnt);
out_dput:
dput(dentry);
mutex_unlock(&path.dentry->d_inode->i_mutex);
-@@ -2602,12 +2733,21 @@ SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode)
+@@ -2661,12 +2792,21 @@ SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode)
error = mnt_want_write(path.mnt);
if (error)
goto out_dput;
out_dput:
dput(dentry);
mutex_unlock(&path.dentry->d_inode->i_mutex);
-@@ -2687,6 +2827,8 @@ static long do_rmdir(int dfd, const char __user *pathname)
+@@ -2746,6 +2886,8 @@ static long do_rmdir(int dfd, const char __user *pathname)
char * name;
struct dentry *dentry;
struct nameidata nd;
error = user_path_parent(dfd, pathname, &nd, &name);
if (error)
-@@ -2715,6 +2857,15 @@ static long do_rmdir(int dfd, const char __user *pathname)
+@@ -2774,6 +2916,15 @@ static long do_rmdir(int dfd, const char __user *pathname)
error = -ENOENT;
goto exit3;
}
error = mnt_want_write(nd.path.mnt);
if (error)
goto exit3;
-@@ -2722,6 +2873,8 @@ static long do_rmdir(int dfd, const char __user *pathname)
+@@ -2781,6 +2932,8 @@ static long do_rmdir(int dfd, const char __user *pathname)
if (error)
goto exit4;
error = vfs_rmdir(nd.path.dentry->d_inode, dentry);
exit4:
mnt_drop_write(nd.path.mnt);
exit3:
-@@ -2784,6 +2937,8 @@ static long do_unlinkat(int dfd, const char __user *pathname)
+@@ -2843,6 +2996,8 @@ static long do_unlinkat(int dfd, const char __user *pathname)
struct dentry *dentry;
struct nameidata nd;
struct inode *inode = NULL;
error = user_path_parent(dfd, pathname, &nd, &name);
if (error)
-@@ -2806,6 +2961,16 @@ static long do_unlinkat(int dfd, const char __user *pathname)
+@@ -2865,6 +3020,16 @@ static long do_unlinkat(int dfd, const char __user *pathname)
if (!inode)
goto slashes;
ihold(inode);
error = mnt_want_write(nd.path.mnt);
if (error)
goto exit2;
-@@ -2813,6 +2978,8 @@ static long do_unlinkat(int dfd, const char __user *pathname)
+@@ -2872,6 +3037,8 @@ static long do_unlinkat(int dfd, const char __user *pathname)
if (error)
goto exit3;
error = vfs_unlink(nd.path.dentry->d_inode, dentry);
exit3:
mnt_drop_write(nd.path.mnt);
exit2:
-@@ -2888,10 +3055,18 @@ SYSCALL_DEFINE3(symlinkat, const char __user *, oldname,
+@@ -2947,10 +3114,18 @@ SYSCALL_DEFINE3(symlinkat, const char __user *, oldname,
error = mnt_want_write(path.mnt);
if (error)
goto out_dput;
out_drop_write:
mnt_drop_write(path.mnt);
out_dput:
-@@ -2963,6 +3138,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
+@@ -3025,6 +3200,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
{
struct dentry *new_dentry;
struct path old_path, new_path;
int how = 0;
int error;
-@@ -2986,7 +3162,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
+@@ -3048,7 +3224,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
if (error)
return error;
error = PTR_ERR(new_dentry);
if (IS_ERR(new_dentry))
goto out;
-@@ -2997,13 +3173,30 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
+@@ -3059,13 +3235,30 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
error = mnt_want_write(new_path.mnt);
if (error)
goto out_dput;
dput(new_dentry);
mutex_unlock(&new_path.dentry->d_inode->i_mutex);
path_put(&new_path);
-@@ -3231,6 +3424,12 @@ SYSCALL_DEFINE4(renameat, int, olddfd, const char __user *, oldname,
+@@ -3299,6 +3492,12 @@ SYSCALL_DEFINE4(renameat, int, olddfd, const char __user *, oldname,
if (new_dentry == trap)
goto exit5;
error = mnt_want_write(oldnd.path.mnt);
if (error)
goto exit5;
-@@ -3240,6 +3439,9 @@ SYSCALL_DEFINE4(renameat, int, olddfd, const char __user *, oldname,
+@@ -3308,6 +3507,9 @@ SYSCALL_DEFINE4(renameat, int, olddfd, const char __user *, oldname,
goto exit6;
error = vfs_rename(old_dir->d_inode, old_dentry,
new_dir->d_inode, new_dentry);
exit6:
mnt_drop_write(oldnd.path.mnt);
exit5:
-@@ -3265,6 +3467,8 @@ SYSCALL_DEFINE2(rename, const char __user *, oldname, const char __user *, newna
+@@ -3333,6 +3535,8 @@ SYSCALL_DEFINE2(rename, const char __user *, oldname, const char __user *, newna
int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen, const char *link)
{
int len;
len = PTR_ERR(link);
-@@ -3274,7 +3478,14 @@ int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen, const c
+@@ -3342,7 +3546,14 @@ int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen, const c
len = strlen(link);
if (len > (unsigned) buflen)
len = buflen;
out:
return len;
diff --git a/fs/namespace.c b/fs/namespace.c
-index e608199..9609cb9 100644
+index 4e46539..b28253c 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
-@@ -1155,6 +1155,9 @@ static int do_umount(struct mount *mnt, int flags)
+@@ -1156,6 +1156,9 @@ static int do_umount(struct mount *mnt, int flags)
if (!(sb->s_flags & MS_RDONLY))
retval = do_remount_sb(sb, MS_RDONLY, NULL, 0);
up_write(&sb->s_umount);
return retval;
}
-@@ -1174,6 +1177,9 @@ static int do_umount(struct mount *mnt, int flags)
+@@ -1175,6 +1178,9 @@ static int do_umount(struct mount *mnt, int flags)
br_write_unlock(vfsmount_lock);
up_write(&namespace_sem);
release_mounts(&umount_list);
return retval;
}
-@@ -2175,6 +2181,16 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
+@@ -2176,6 +2182,16 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
MS_NOATIME | MS_NODIRATIME | MS_RELATIME| MS_KERNMOUNT |
MS_STRICTATIME);
if (flags & MS_REMOUNT)
retval = do_remount(&path, flags & ~MS_REMOUNT, mnt_flags,
data_page);
-@@ -2189,6 +2205,9 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
+@@ -2190,6 +2206,9 @@ long do_mount(char *dev_name, char *dir_name, char *type_page,
dev_name, data_page);
dput_out:
path_put(&path);
return retval;
}
-@@ -2470,6 +2489,11 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root,
+@@ -2471,6 +2490,11 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root,
if (error)
goto out2;
get_fs_root(current->fs, &root);
error = lock_mount(&old);
if (error)
-diff --git a/fs/ncpfs/ncplib_kernel.h b/fs/ncpfs/ncplib_kernel.h
-index 32c0658..b1c2045e 100644
---- a/fs/ncpfs/ncplib_kernel.h
-+++ b/fs/ncpfs/ncplib_kernel.h
-@@ -130,7 +130,7 @@ static inline int ncp_is_nfs_extras(struct ncp_server* server, unsigned int voln
- int ncp__io2vol(struct ncp_server *, unsigned char *, unsigned int *,
- const unsigned char *, unsigned int, int);
- int ncp__vol2io(struct ncp_server *, unsigned char *, unsigned int *,
-- const unsigned char *, unsigned int, int);
-+ const unsigned char *, unsigned int, int) __size_overflow(5);
-
- #define NCP_ESC ':'
- #define NCP_IO_TABLE(sb) (NCP_SBP(sb)->nls_io)
-@@ -146,7 +146,7 @@ int ncp__vol2io(struct ncp_server *, unsigned char *, unsigned int *,
- int ncp__io2vol(unsigned char *, unsigned int *,
- const unsigned char *, unsigned int, int);
- int ncp__vol2io(unsigned char *, unsigned int *,
-- const unsigned char *, unsigned int, int);
-+ const unsigned char *, unsigned int, int) __size_overflow(5);
-
- #define NCP_IO_TABLE(sb) NULL
- #define ncp_tolower(t, c) tolower(c)
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
-index f649fba..236bf92 100644
+index e8bbfa5..864f936 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
-@@ -151,7 +151,7 @@ static void nfs_zap_caches_locked(struct inode *inode)
+@@ -152,7 +152,7 @@ static void nfs_zap_caches_locked(struct inode *inode)
nfsi->attrtimeo = NFS_MINATTRTIMEO(inode);
nfsi->attrtimeo_timestamp = jiffies;
if (S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode))
nfsi->cache_validity |= NFS_INO_INVALID_ATTR|NFS_INO_INVALID_DATA|NFS_INO_INVALID_ACCESS|NFS_INO_INVALID_ACL|NFS_INO_REVAL_PAGECACHE;
else
-@@ -1003,16 +1003,16 @@ static int nfs_size_need_update(const struct inode *inode, const struct nfs_fatt
+@@ -1005,16 +1005,16 @@ static int nfs_size_need_update(const struct inode *inode, const struct nfs_fatt
return nfs_size_to_loff_t(fattr->size) > i_size_read(inode);
}
void nfs_fattr_init(struct nfs_fattr *fattr)
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
-index b96fe94..a4dbece 100644
+index 5686661..80a9a3a 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
-@@ -925,7 +925,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
+@@ -933,7 +933,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
} else {
oldfs = get_fs();
set_fs(KERNEL_DS);
set_fs(oldfs);
}
-@@ -1029,7 +1029,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
+@@ -1037,7 +1037,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
/* Write the data. */
oldfs = get_fs(); set_fs(KERNEL_DS);
set_fs(oldfs);
if (host_err < 0)
goto out_nfserr;
-@@ -1564,7 +1564,7 @@ nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp)
+@@ -1573,7 +1573,7 @@ nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp)
*/
oldfs = get_fs(); set_fs(KERNEL_DS);
-- host_err = inode->i_op->readlink(dentry, buf, *lenp);
-+ host_err = inode->i_op->readlink(dentry, (char __force_user *)buf, *lenp);
+- host_err = inode->i_op->readlink(path.dentry, buf, *lenp);
++ host_err = inode->i_op->readlink(path.dentry, (char __force_user *)buf, *lenp);
set_fs(oldfs);
if (host_err < 0)
goto out_kill_access_response;
diff --git a/fs/notify/notification.c b/fs/notify/notification.c
-index ee18815..7aa5d01 100644
+index c887b13..0fdf472 100644
--- a/fs/notify/notification.c
+++ b/fs/notify/notification.c
@@ -57,7 +57,7 @@ static struct kmem_cache *fsnotify_event_holder_cachep;
"inode 0x%lx or driver bug.", vdir->i_ino);
goto err_out;
diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c
-index c587e2d..3641eaa 100644
+index 8639169..76697aa 100644
--- a/fs/ntfs/file.c
+++ b/fs/ntfs/file.c
@@ -2229,6 +2229,6 @@ const struct inode_operations ntfs_file_inode_ops = {
}
}
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
-index 604e12c..8426483 100644
+index 68f4541..89cfe6a 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -301,11 +301,11 @@ static int ocfs2_osb_dump(struct ocfs2_super *osb, char *buf, int len)
out += snprintf(buf + out, len - out,
"%10s => State: %u Descriptor: %llu Size: %u bits "
-@@ -2117,11 +2117,11 @@ static int ocfs2_initialize_super(struct super_block *sb,
+@@ -2116,11 +2116,11 @@ static int ocfs2_initialize_super(struct super_block *sb,
spin_lock_init(&osb->osb_xattr_lock);
ocfs2_init_steal_slots(osb);
kfree(link);
}
diff --git a/fs/open.c b/fs/open.c
-index 77becc0..aad7bd9 100644
+index 5720854..ccfe124 100644
--- a/fs/open.c
+++ b/fs/open.c
-@@ -112,6 +112,10 @@ static long do_sys_truncate(const char __user *pathname, loff_t length)
+@@ -31,6 +31,8 @@
+ #include <linux/ima.h>
+ #include <linux/dnotify.h>
+
++#define CREATE_TRACE_POINTS
++#include <trace/events/fs.h>
+ #include "internal.h"
+
+ int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
+@@ -112,6 +114,10 @@ static long do_sys_truncate(const char __user *pathname, loff_t length)
error = locks_verify_truncate(inode, NULL, length);
if (!error)
error = security_path_truncate(&path);
if (!error)
error = do_truncate(path.dentry, length, 0, NULL);
-@@ -358,6 +362,9 @@ SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
+@@ -358,6 +364,9 @@ SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
if (__mnt_is_readonly(path.mnt))
res = -EROFS;
out_path_release:
path_put(&path);
out:
-@@ -384,6 +391,8 @@ SYSCALL_DEFINE1(chdir, const char __user *, filename)
+@@ -384,6 +393,8 @@ SYSCALL_DEFINE1(chdir, const char __user *, filename)
if (error)
goto dput_and_out;
set_fs_pwd(current->fs, &path);
dput_and_out:
-@@ -410,6 +419,13 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
+@@ -410,6 +421,13 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
goto out_putf;
error = inode_permission(inode, MAY_EXEC | MAY_CHDIR);
if (!error)
set_fs_pwd(current->fs, &file->f_path);
out_putf:
-@@ -438,7 +454,13 @@ SYSCALL_DEFINE1(chroot, const char __user *, filename)
+@@ -438,7 +456,13 @@ SYSCALL_DEFINE1(chroot, const char __user *, filename)
if (error)
goto dput_and_out;
error = 0;
dput_and_out:
path_put(&path);
-@@ -456,6 +478,16 @@ static int chmod_common(struct path *path, umode_t mode)
+@@ -456,6 +480,16 @@ static int chmod_common(struct path *path, umode_t mode)
if (error)
return error;
mutex_lock(&inode->i_mutex);
error = security_path_chmod(path, mode);
if (error)
goto out_unlock;
-@@ -506,6 +538,9 @@ static int chown_common(struct path *path, uid_t user, gid_t group)
+@@ -506,6 +540,9 @@ static int chown_common(struct path *path, uid_t user, gid_t group)
int error;
struct iattr newattrs;
newattrs.ia_valid = ATTR_CTIME;
if (user != (uid_t) -1) {
newattrs.ia_valid |= ATTR_UID;
+@@ -987,6 +1024,7 @@ long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
+ } else {
+ fsnotify_open(f);
+ fd_install(fd, f);
++ trace_do_sys_open(tmp, flags, mode);
+ }
+ }
+ putname(tmp);
diff --git a/fs/pipe.c b/fs/pipe.c
-index 82e651b..8a68573 100644
+index fec5e4a..f4210f9 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
-@@ -437,9 +437,9 @@ redo:
+@@ -438,9 +438,9 @@ redo:
}
if (bufs) /* More to do? */
continue;
/* syscall merging: Usually we must not sleep
* if O_NONBLOCK is set, or if we got some data.
* But if a writer sleeps in kernel space, then
-@@ -503,7 +503,7 @@ pipe_write(struct kiocb *iocb, const struct iovec *_iov,
+@@ -504,7 +504,7 @@ pipe_write(struct kiocb *iocb, const struct iovec *_iov,
mutex_lock(&inode->i_mutex);
pipe = inode->i_pipe;
send_sig(SIGPIPE, current, 0);
ret = -EPIPE;
goto out;
-@@ -552,7 +552,7 @@ redo1:
+@@ -553,7 +553,7 @@ redo1:
for (;;) {
int bufs;
send_sig(SIGPIPE, current, 0);
if (!ret)
ret = -EPIPE;
-@@ -643,9 +643,9 @@ redo2:
+@@ -644,9 +644,9 @@ redo2:
kill_fasync(&pipe->fasync_readers, SIGIO, POLL_IN);
do_wakeup = 0;
}
}
out:
mutex_unlock(&inode->i_mutex);
-@@ -712,7 +712,7 @@ pipe_poll(struct file *filp, poll_table *wait)
+@@ -713,7 +713,7 @@ pipe_poll(struct file *filp, poll_table *wait)
mask = 0;
if (filp->f_mode & FMODE_READ) {
mask = (nrbufs > 0) ? POLLIN | POLLRDNORM : 0;
mask |= POLLHUP;
}
-@@ -722,7 +722,7 @@ pipe_poll(struct file *filp, poll_table *wait)
+@@ -723,7 +723,7 @@ pipe_poll(struct file *filp, poll_table *wait)
* Most Unices do not set POLLERR for FIFOs but on Linux they
* behave exactly like pipes for poll().
*/
mask |= POLLERR;
}
-@@ -736,10 +736,10 @@ pipe_release(struct inode *inode, int decr, int decw)
+@@ -737,10 +737,10 @@ pipe_release(struct inode *inode, int decr, int decw)
mutex_lock(&inode->i_mutex);
pipe = inode->i_pipe;
free_pipe_info(inode);
} else {
wake_up_interruptible_sync_poll(&pipe->wait, POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM | POLLERR | POLLHUP);
-@@ -829,7 +829,7 @@ pipe_read_open(struct inode *inode, struct file *filp)
+@@ -830,7 +830,7 @@ pipe_read_open(struct inode *inode, struct file *filp)
if (inode->i_pipe) {
ret = 0;
}
mutex_unlock(&inode->i_mutex);
-@@ -846,7 +846,7 @@ pipe_write_open(struct inode *inode, struct file *filp)
+@@ -847,7 +847,7 @@ pipe_write_open(struct inode *inode, struct file *filp)
if (inode->i_pipe) {
ret = 0;
}
mutex_unlock(&inode->i_mutex);
-@@ -864,9 +864,9 @@ pipe_rdwr_open(struct inode *inode, struct file *filp)
+@@ -865,9 +865,9 @@ pipe_rdwr_open(struct inode *inode, struct file *filp)
if (inode->i_pipe) {
ret = 0;
if (filp->f_mode & FMODE_READ)
}
mutex_unlock(&inode->i_mutex);
-@@ -958,7 +958,7 @@ void free_pipe_info(struct inode *inode)
+@@ -959,7 +959,7 @@ void free_pipe_info(struct inode *inode)
inode->i_pipe = NULL;
}
/*
* pipefs_dname() is called from d_path().
-@@ -988,7 +988,8 @@ static struct inode * get_pipe_inode(void)
+@@ -989,7 +989,8 @@ static struct inode * get_pipe_inode(void)
goto fail_iput;
inode->i_pipe = pipe;
help
Various /proc files exist to monitor process memory utilization:
diff --git a/fs/proc/array.c b/fs/proc/array.c
-index c602b8d..a7de642 100644
+index f9bd395..acb7847 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -60,6 +60,7 @@
/* scale priority and nice values from timeslices to -20..20 */
/* to make it look like a "normal" Unix priority/nice value */
priority = task_prio(task);
-@@ -489,9 +540,15 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
- vsize,
- mm ? get_mm_rss(mm) : 0,
- rsslim,
+@@ -485,9 +536,15 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
+ seq_put_decimal_ull(m, ' ', vsize);
+ seq_put_decimal_ll(m, ' ', mm ? get_mm_rss(mm) : 0);
+ seq_put_decimal_ull(m, ' ', rsslim);
++#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
++ seq_put_decimal_ull(m, ' ', PAX_RAND_FLAGS(mm) ? 1 : (mm ? (permitted ? mm->start_code : 1) : 0));
++ seq_put_decimal_ull(m, ' ', PAX_RAND_FLAGS(mm) ? 1 : (mm ? (permitted ? mm->end_code : 1) : 0));
++ seq_put_decimal_ull(m, ' ', PAX_RAND_FLAGS(mm) ? 0 : ((permitted && mm) ? mm->start_stack : 0));
++#else
+ seq_put_decimal_ull(m, ' ', mm ? (permitted ? mm->start_code : 1) : 0);
+ seq_put_decimal_ull(m, ' ', mm ? (permitted ? mm->end_code : 1) : 0);
+ seq_put_decimal_ull(m, ' ', (permitted && mm) ? mm->start_stack : 0);
++#endif
+ seq_put_decimal_ull(m, ' ', esp);
+ seq_put_decimal_ull(m, ' ', eip);
+ /* The signal information here is obsolete.
+@@ -508,9 +565,15 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
+ seq_put_decimal_ull(m, ' ', delayacct_blkio_ticks(task));
+ seq_put_decimal_ull(m, ' ', cputime_to_clock_t(gtime));
+ seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cgtime));
+#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
-+ PAX_RAND_FLAGS(mm) ? 1 : (mm ? (permitted ? mm->start_code : 1) : 0),
-+ PAX_RAND_FLAGS(mm) ? 1 : (mm ? (permitted ? mm->end_code : 1) : 0),
-+ PAX_RAND_FLAGS(mm) ? 0 : ((permitted && mm) ? mm->start_stack : 0),
++ seq_put_decimal_ull(m, ' ', PAX_RAND_FLAGS(mm) ? 0 : ((mm && permitted) ? mm->start_data : 0));
++ seq_put_decimal_ull(m, ' ', PAX_RAND_FLAGS(mm) ? 0 : ((mm && permitted) ? mm->end_data : 0));
++ seq_put_decimal_ull(m, ' ', PAX_RAND_FLAGS(mm) ? 0 : ((mm && permitted) ? mm->start_brk : 0));
+#else
- mm ? (permitted ? mm->start_code : 1) : 0,
- mm ? (permitted ? mm->end_code : 1) : 0,
- (permitted && mm) ? mm->start_stack : 0,
-+#endif
- esp,
- eip,
- /* The signal information here is obsolete.
-@@ -536,8 +593,15 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
+ seq_put_decimal_ull(m, ' ', (mm && permitted) ? mm->start_data : 0);
+ seq_put_decimal_ull(m, ' ', (mm && permitted) ? mm->end_data : 0);
+ seq_put_decimal_ull(m, ' ', (mm && permitted) ? mm->start_brk : 0);
++#endif
+ seq_putc(m, '\n');
+ if (mm)
+ mmput(mm);
+@@ -533,8 +596,15 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task)
{
unsigned long size = 0, resident = 0, shared = 0, text = 0, data = 0;
if (mm) {
size = task_statm(mm, &shared, &text, &data, &resident);
mmput(mm);
-@@ -547,3 +611,18 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
+@@ -556,3 +626,18 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
return 0;
}
+}
+#endif
diff --git a/fs/proc/base.c b/fs/proc/base.c
-index d4548dd..d101f84 100644
+index 9fc77b4..04761b8 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -109,6 +109,14 @@ struct pid_entry {
ret = -ENOMEM;
page = (char *)__get_free_page(GFP_TEMPORARY);
if (!page)
-@@ -1434,7 +1511,7 @@ static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd)
+@@ -1433,7 +1510,7 @@ static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd)
path_put(&nd->path);
/* Are we allowed to snoop on the tasks file descriptors? */
goto out;
error = PROC_I(inode)->op.proc_get_link(dentry, &nd->path);
-@@ -1473,8 +1550,18 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b
+@@ -1472,8 +1549,18 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b
struct path path;
/* Are we allowed to snoop on the tasks file descriptors? */
error = PROC_I(inode)->op.proc_get_link(dentry, &path);
if (error)
-@@ -1539,7 +1626,11 @@ struct inode *proc_pid_make_inode(struct super_block * sb, struct task_struct *t
+@@ -1538,7 +1625,11 @@ struct inode *proc_pid_make_inode(struct super_block * sb, struct task_struct *t
rcu_read_lock();
cred = __task_cred(task);
inode->i_uid = cred->euid;
rcu_read_unlock();
}
security_task_to_inode(task, inode);
-@@ -1575,10 +1666,19 @@ int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
+@@ -1574,10 +1665,19 @@ int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
return -ENOENT;
}
if ((inode->i_mode == (S_IFDIR|S_IRUGO|S_IXUGO)) ||
}
}
rcu_read_unlock();
-@@ -1616,11 +1716,20 @@ int pid_revalidate(struct dentry *dentry, struct nameidata *nd)
+@@ -1615,11 +1715,20 @@ int pid_revalidate(struct dentry *dentry, struct nameidata *nd)
if (task) {
if ((inode->i_mode == (S_IFDIR|S_IRUGO|S_IXUGO)) ||
rcu_read_unlock();
} else {
inode->i_uid = 0;
-@@ -1738,7 +1847,8 @@ static int proc_fd_info(struct inode *inode, struct path *path, char *info)
+@@ -1737,7 +1846,8 @@ static int proc_fd_info(struct inode *inode, struct path *path, char *info)
int fd = proc_fd(inode);
if (task) {
put_task_struct(task);
}
if (files) {
-@@ -2355,11 +2465,21 @@ static const struct file_operations proc_map_files_operations = {
+@@ -2338,11 +2448,21 @@ static const struct file_operations proc_map_files_operations = {
*/
static int proc_fd_permission(struct inode *inode, int mask)
{
return rv;
}
-@@ -2469,6 +2589,9 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
+@@ -2452,6 +2572,9 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
if (!task)
goto out_no_task;
/*
* Yes, it does not scale. And it should not. Don't add
* new entries into /proc/<tgid>/ without very good reasons.
-@@ -2513,6 +2636,9 @@ static int proc_pident_readdir(struct file *filp,
+@@ -2496,6 +2619,9 @@ static int proc_pident_readdir(struct file *filp,
if (!task)
goto out_no_task;
ret = 0;
i = filp->f_pos;
switch (i) {
-@@ -2783,7 +2909,7 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd)
+@@ -2766,7 +2892,7 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd)
static void proc_self_put_link(struct dentry *dentry, struct nameidata *nd,
void *cookie)
{
if (!IS_ERR(s))
__putname(s);
}
-@@ -2984,7 +3110,7 @@ static const struct pid_entry tgid_base_stuff[] = {
+@@ -2967,7 +3093,7 @@ static const struct pid_entry tgid_base_stuff[] = {
REG("autogroup", S_IRUGO|S_IWUSR, proc_pid_sched_autogroup_operations),
#endif
REG("comm", S_IRUGO|S_IWUSR, proc_pid_set_comm_operations),
INF("syscall", S_IRUGO, proc_pid_syscall),
#endif
INF("cmdline", S_IRUGO, proc_pid_cmdline),
-@@ -3009,10 +3135,10 @@ static const struct pid_entry tgid_base_stuff[] = {
+@@ -2992,10 +3118,10 @@ static const struct pid_entry tgid_base_stuff[] = {
#ifdef CONFIG_SECURITY
DIR("attr", S_IRUGO|S_IXUGO, proc_attr_dir_inode_operations, proc_attr_dir_operations),
#endif
ONE("stack", S_IRUGO, proc_pid_stack),
#endif
#ifdef CONFIG_SCHEDSTATS
-@@ -3046,6 +3172,9 @@ static const struct pid_entry tgid_base_stuff[] = {
+@@ -3029,6 +3155,9 @@ static const struct pid_entry tgid_base_stuff[] = {
#ifdef CONFIG_HARDWALL
INF("hardwall", S_IRUGO, proc_pid_hardwall),
#endif
};
static int proc_tgid_base_readdir(struct file * filp,
-@@ -3172,7 +3301,14 @@ static struct dentry *proc_pid_instantiate(struct inode *dir,
+@@ -3155,7 +3284,14 @@ static struct dentry *proc_pid_instantiate(struct inode *dir,
if (!inode)
goto out;
inode->i_op = &proc_tgid_base_inode_operations;
inode->i_fop = &proc_tgid_base_operations;
inode->i_flags|=S_IMMUTABLE;
-@@ -3214,7 +3350,11 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct
+@@ -3197,7 +3333,11 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct
if (!task)
goto out;
put_task_struct(task);
out:
return result;
-@@ -3277,6 +3417,8 @@ static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldi
+@@ -3260,6 +3400,8 @@ static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldi
static int fake_filldir(void *buf, const char *name, int namelen,
loff_t offset, u64 ino, unsigned d_type)
{
return 0;
}
-@@ -3343,7 +3485,7 @@ static const struct pid_entry tid_base_stuff[] = {
+@@ -3326,7 +3468,7 @@ static const struct pid_entry tid_base_stuff[] = {
REG("sched", S_IRUGO|S_IWUSR, proc_pid_sched_operations),
#endif
REG("comm", S_IRUGO|S_IWUSR, proc_pid_set_comm_operations),
INF("syscall", S_IRUGO, proc_pid_syscall),
#endif
INF("cmdline", S_IRUGO, proc_pid_cmdline),
-@@ -3367,10 +3509,10 @@ static const struct pid_entry tid_base_stuff[] = {
+@@ -3350,10 +3492,10 @@ static const struct pid_entry tid_base_stuff[] = {
#ifdef CONFIG_SECURITY
DIR("attr", S_IRUGO|S_IXUGO, proc_attr_dir_inode_operations, proc_attr_dir_operations),
#endif
}
module_init(proc_devices_init);
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
-index 84fd323..f698a32 100644
+index 205c922..2ee4c57 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
-@@ -21,12 +21,18 @@
+@@ -21,11 +21,17 @@
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/mount.h>
+#include <linux/grsecurity.h>
- #include <asm/system.h>
#include <asm/uaccess.h>
#include "internal.h"
static void proc_evict_inode(struct inode *inode)
{
struct proc_dir_entry *de;
-@@ -52,6 +58,13 @@ static void proc_evict_inode(struct inode *inode)
+@@ -51,6 +57,13 @@ static void proc_evict_inode(struct inode *inode)
ns_ops = PROC_I(inode)->ns_ops;
if (ns_ops && ns_ops->put)
ns_ops->put(PROC_I(inode)->ns);
}
static struct kmem_cache * proc_inode_cachep;
-@@ -457,7 +470,11 @@ struct inode *proc_get_inode(struct super_block *sb, struct proc_dir_entry *de)
+@@ -456,7 +469,11 @@ struct inode *proc_get_inode(struct super_block *sb, struct proc_dir_entry *de)
if (de->mode) {
inode->i_mode = de->mode;
inode->i_uid = de->uid;
if (de->size)
inode->i_size = de->size;
diff --git a/fs/proc/internal.h b/fs/proc/internal.h
-index 2925775..4f08fae 100644
+index 5f79bb8..eeccee4 100644
--- a/fs/proc/internal.h
+++ b/fs/proc/internal.h
-@@ -51,6 +51,9 @@ extern int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
+@@ -54,6 +54,9 @@ extern int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task);
extern int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
struct pid *pid, struct task_struct *task);
+#endif
extern loff_t mem_lseek(struct file *file, loff_t offset, int orig);
- extern const struct file_operations proc_maps_operations;
+ extern const struct file_operations proc_pid_maps_operations;
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c
-index d245cb2..f4e8498 100644
+index 86c67ee..cdca321 100644
--- a/fs/proc/kcore.c
+++ b/fs/proc/kcore.c
-@@ -478,9 +478,10 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
+@@ -480,9 +480,10 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
* the addresses in the elf_phdr on our list.
*/
start = kc_offset_to_vaddr(*fpos - elf_buflen);
while (buflen) {
struct kcore_list *m;
-@@ -509,20 +510,23 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
+@@ -511,20 +512,23 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
kfree(elf_buf);
} else {
if (kern_addr_valid(start)) {
- n = copy_to_user(buffer, (char *)start, tsz);
- /*
-- * We cannot distingush between fault on source
+- * We cannot distinguish between fault on source
- * and fault on destination. When this happens
- * we clear too and hope it will trigger the
- * EFAULT again.
} else {
if (clear_user(buffer, tsz))
return -EFAULT;
-@@ -542,6 +546,9 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
+@@ -544,6 +548,9 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
static int open_kcore(struct inode *inode, struct file *filp)
{
rcu_read_lock();
task = pid_task(proc_pid(dir), PIDTYPE_PID);
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
-index 53c3bce..10ad159 100644
+index 21d836f..bebf3ee 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
-@@ -9,11 +9,13 @@
- #include <linux/namei.h>
+@@ -12,11 +12,15 @@
+ #include <linux/module.h>
#include "internal.h"
-+extern __u32 gr_handle_sysctl(const struct ctl_table *table, const int op);
++extern int gr_handle_chroot_sysctl(const int op);
++extern int gr_handle_sysctl_mod(const char *dirname, const char *name,
++ const int op);
+
static const struct dentry_operations proc_sys_dentry_operations;
static const struct file_operations proc_sys_file_operations;
void proc_sys_poll_notify(struct ctl_table_poll *poll)
{
-@@ -131,8 +133,14 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
+@@ -470,8 +474,14 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
err = NULL;
d_set_d_op(dentry, &proc_sys_dentry_operations);
+
d_add(dentry, inode);
-+ if (gr_handle_sysctl(p, MAY_EXEC))
++ if (!gr_acl_handle_hidden_file(dentry, nd->path.mnt))
+ err = ERR_PTR(-ENOENT);
+
out:
sysctl_head_finish(head);
return err;
-@@ -163,6 +171,12 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
+@@ -483,18 +493,20 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
+ struct inode *inode = filp->f_path.dentry->d_inode;
+ struct ctl_table_header *head = grab_header(inode);
+ struct ctl_table *table = PROC_I(inode)->sysctl_entry;
++ int op = write ? MAY_WRITE : MAY_READ;
+ ssize_t error;
+ size_t res;
+
+ if (IS_ERR(head))
+ return PTR_ERR(head);
+
++
+ /*
+ * At this point we know that the sysctl was not unregistered
+ * and won't be until we finish.
+ */
+ error = -EPERM;
+- if (sysctl_perm(head->root, table, write ? MAY_WRITE : MAY_READ))
++ if (sysctl_perm(head->root, table, op))
+ goto out;
+
+ /* if that can happen at all, it should be -EINVAL, not -EISDIR */
+@@ -502,6 +514,22 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
if (!table->proc_handler)
goto out;
+#ifdef CONFIG_GRKERNSEC
+ error = -EPERM;
++ if (gr_handle_chroot_sysctl(op))
++ goto out;
++ dget(filp->f_path.dentry);
++ if (gr_handle_sysctl_mod(filp->f_path.dentry->d_parent->d_name.name, table->procname, op)) {
++ dput(filp->f_path.dentry);
++ goto out;
++ }
++ dput(filp->f_path.dentry);
++ if (!gr_acl_handle_open(filp->f_path.dentry, filp->f_path.mnt, op))
++ goto out;
+ if (write && !capable(CAP_SYS_ADMIN))
+ goto out;
+#endif
/* careful: calling conventions are nasty here */
res = count;
error = table->proc_handler(table, write, buf, &res, ppos);
-@@ -260,6 +274,9 @@ static int proc_sys_fill_cache(struct file *filp, void *dirent,
+@@ -599,6 +627,9 @@ static int proc_sys_fill_cache(struct file *filp, void *dirent,
return -ENOMEM;
} else {
d_set_d_op(child, &proc_sys_dentry_operations);
d_add(child, inode);
}
} else {
-@@ -288,6 +305,9 @@ static int scan(struct ctl_table_header *head, ctl_table *table,
- if (*pos < file->f_pos)
- continue;
+@@ -642,6 +673,9 @@ static int scan(struct ctl_table_header *head, ctl_table *table,
+ if ((*pos)++ < file->f_pos)
+ return 0;
-+ if (gr_handle_sysctl(table, 0))
-+ continue;
++ if (!gr_acl_handle_hidden_file(file->f_path.dentry, file->f_path.mnt))
++ return 0;
+
- res = proc_sys_fill_cache(file, dirent, filldir, head, table);
- if (res)
- return res;
-@@ -413,6 +433,9 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
+ if (unlikely(S_ISLNK(table->mode)))
+ res = proc_sys_link_fill_cache(file, dirent, filldir, head, table);
+ else
+@@ -759,6 +793,9 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
if (IS_ERR(head))
return PTR_ERR(head);
-+ if (table && gr_handle_sysctl(table, MAY_EXEC))
++ if (table && !gr_acl_handle_hidden_file(dentry, mnt))
+ return -ENOENT;
+
generic_fillattr(inode, stat);
if (table)
stat->mode = (stat->mode & S_IFMT) | table->mode;
-@@ -435,13 +458,13 @@ static const struct file_operations proc_sys_dir_file_operations = {
+@@ -781,13 +818,13 @@ static const struct file_operations proc_sys_dir_file_operations = {
.llseek = generic_file_llseek,
};
.permission = proc_sys_permission,
.setattr = proc_sys_setattr,
diff --git a/fs/proc/root.c b/fs/proc/root.c
-index 46a15d8..335631a 100644
+index eed44bf..abeb499 100644
--- a/fs/proc/root.c
+++ b/fs/proc/root.c
-@@ -187,7 +187,15 @@ void __init proc_root_init(void)
+@@ -188,7 +188,15 @@ void __init proc_root_init(void)
#ifdef CONFIG_PROC_DEVICETREE
proc_device_tree_init();
#endif
}
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
-index 3efa725..23c925b 100644
+index 7faaf2a..096c28b 100644
--- a/fs/proc/task_mmu.c
+++ b/fs/proc/task_mmu.c
-@@ -11,6 +11,7 @@
+@@ -11,12 +11,19 @@
#include <linux/rmap.h>
#include <linux/swap.h>
#include <linux/swapops.h>
#include <asm/elf.h>
#include <asm/uaccess.h>
-@@ -52,8 +53,13 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
+ #include <asm/tlbflush.h>
+ #include "internal.h"
+
++#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
++#define PAX_RAND_FLAGS(_mm) (_mm != NULL && _mm != current->mm && \
++ (_mm->pax_flags & MF_PAX_RANDMMAP || \
++ _mm->pax_flags & MF_PAX_SEGMEXEC))
++#endif
++
+ void task_mem(struct seq_file *m, struct mm_struct *mm)
+ {
+ unsigned long data, text, lib, swap;
+@@ -52,8 +59,13 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
"VmExe:\t%8lu kB\n"
"VmLib:\t%8lu kB\n"
"VmPTE:\t%8lu kB\n"
(total_vm - mm->reserved_vm) << (PAGE_SHIFT-10),
mm->locked_vm << (PAGE_SHIFT-10),
mm->pinned_vm << (PAGE_SHIFT-10),
-@@ -62,7 +68,13 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
+@@ -62,7 +74,19 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
data << (PAGE_SHIFT-10),
mm->stack_vm << (PAGE_SHIFT-10), text, lib,
(PTRS_PER_PTE*sizeof(pte_t)*mm->nr_ptes) >> 10,
+ swap << (PAGE_SHIFT-10)
+
+#ifdef CONFIG_ARCH_TRACK_EXEC_LIMIT
-+ , mm->context.user_cs_base, mm->context.user_cs_limit
++#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
++ , PAX_RAND_FLAGS(mm) ? 0 : mm->context.user_cs_base
++ , PAX_RAND_FLAGS(mm) ? 0 : mm->context.user_cs_limit
++#else
++ , mm->context.user_cs_base
++ , mm->context.user_cs_limit
++#endif
+#endif
+
+ );
}
unsigned long task_vsize(struct mm_struct *mm)
-@@ -209,6 +221,12 @@ static int do_maps_open(struct inode *inode, struct file *file,
- return ret;
- }
-
-+#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
-+#define PAX_RAND_FLAGS(_mm) (_mm != NULL && _mm != current->mm && \
-+ (_mm->pax_flags & MF_PAX_RANDMMAP || \
-+ _mm->pax_flags & MF_PAX_SEGMEXEC))
-+#endif
-+
- static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
- {
- struct mm_struct *mm = vma->vm_mm;
-@@ -227,13 +245,13 @@ static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
+@@ -231,13 +255,13 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
pgoff = ((loff_t)vma->vm_pgoff) << PAGE_SHIFT;
}
seq_printf(m, "%08lx-%08lx %c%c%c%c %08llx %02x:%02x %lu %n",
start,
-@@ -242,7 +260,11 @@ static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
+@@ -246,7 +270,11 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
flags & VM_WRITE ? 'w' : '-',
flags & VM_EXEC ? 'x' : '-',
flags & VM_MAYSHARE ? 's' : 'p',
MAJOR(dev), MINOR(dev), ino, &len);
/*
-@@ -251,7 +273,7 @@ static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
+@@ -255,7 +283,7 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
*/
if (file) {
pad_len_spaces(m, len);
- seq_path(m, &file->f_path, "\n");
+ seq_path(m, &file->f_path, "\n\\");
- } else {
- const char *name = arch_vma_name(vma);
- if (!name) {
-@@ -259,8 +281,9 @@ static void show_map_vma(struct seq_file *m, struct vm_area_struct *vma)
- if (vma->vm_start <= mm->brk &&
- vma->vm_end >= mm->start_brk) {
- name = "[heap]";
-- } else if (vma->vm_start <= mm->start_stack &&
-- vma->vm_end >= mm->start_stack) {
-+ } else if ((vma->vm_flags & (VM_GROWSDOWN | VM_GROWSUP)) ||
-+ (vma->vm_start <= mm->start_stack &&
-+ vma->vm_end >= mm->start_stack)) {
- name = "[stack]";
- }
+ goto done;
+ }
+
+@@ -281,8 +309,9 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
+ * Thread stack in /proc/PID/task/TID/maps or
+ * the main process stack.
+ */
+- if (!is_pid || (vma->vm_start <= mm->start_stack &&
+- vma->vm_end >= mm->start_stack)) {
++ if (!is_pid || (vma->vm_flags & (VM_GROWSDOWN | VM_GROWSUP)) ||
++ (vma->vm_start <= mm->start_stack &&
++ vma->vm_end >= mm->start_stack)) {
+ name = "[stack]";
} else {
-@@ -281,6 +304,13 @@ static int show_map(struct seq_file *m, void *v)
+ /* Thread stack in /proc/PID/maps */
+@@ -306,6 +335,13 @@ static int show_map(struct seq_file *m, void *v, int is_pid)
struct proc_maps_private *priv = m->private;
struct task_struct *task = priv->task;
+ }
+#endif
+
- show_map_vma(m, vma);
+ show_map_vma(m, vma, is_pid);
if (m->count < m->size) /* vma is copied successfully */
-@@ -437,12 +467,23 @@ static int show_smap(struct seq_file *m, void *v)
+@@ -482,12 +518,23 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
.private = &mss,
};
+#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
+ }
+#endif
- show_map_vma(m, vma);
+ show_map_vma(m, vma, is_pid);
seq_printf(m,
-@@ -460,7 +501,11 @@ static int show_smap(struct seq_file *m, void *v)
+@@ -505,7 +552,11 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
"KernelPageSize: %8lu kB\n"
"MMUPageSize: %8lu kB\n"
"Locked: %8lu kB\n",
mss.resident >> 10,
(unsigned long)(mss.pss >> (10 + PSS_SHIFT)),
mss.shared_clean >> 10,
-@@ -1024,6 +1069,13 @@ static int show_numa_map(struct seq_file *m, void *v)
+@@ -1138,6 +1189,13 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
int n;
char buffer[50];
if (!mm)
return 0;
-@@ -1041,11 +1093,15 @@ static int show_numa_map(struct seq_file *m, void *v)
+@@ -1155,11 +1213,15 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
mpol_to_str(buffer, sizeof(buffer), pol, 0);
mpol_cond_put(pol);
+ seq_path(m, &file->f_path, "\n\t\\= ");
} else if (vma->vm_start <= mm->brk && vma->vm_end >= mm->start_brk) {
seq_printf(m, " heap");
- } else if (vma->vm_start <= mm->start_stack &&
+ } else {
diff --git a/fs/proc/task_nommu.c b/fs/proc/task_nommu.c
-index 980de54..2a4db5f 100644
+index 74fe164..899e77b 100644
--- a/fs/proc/task_nommu.c
+++ b/fs/proc/task_nommu.c
@@ -51,7 +51,7 @@ void task_mem(struct seq_file *m, struct mm_struct *mm)
sbytes += kobjsize(current->fs);
else
bytes += kobjsize(current->fs);
-@@ -166,7 +166,7 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma)
+@@ -168,7 +168,7 @@ static int nommu_vma_show(struct seq_file *m, struct vm_area_struct *vma,
if (file) {
pad_len_spaces(m, len);
- seq_path(m, &file->f_path, "");
+ seq_path(m, &file->f_path, "\n\\");
} else if (mm) {
- if (vma->vm_start <= mm->start_stack &&
- vma->vm_end >= mm->start_stack) {
+ pid_t tid = vm_is_stack(priv->task, vma, is_pid);
+
diff --git a/fs/quota/netlink.c b/fs/quota/netlink.c
index d67908b..d13f6a6 100644
--- a/fs/quota/netlink.c
if (!msg_head) {
printk(KERN_ERR
diff --git a/fs/readdir.c b/fs/readdir.c
-index 356f715..c918d38 100644
+index cc0a822..43cb195 100644
--- a/fs/readdir.c
+++ b/fs/readdir.c
@@ -17,6 +17,7 @@
error = -EFAULT;
else
diff --git a/fs/reiserfs/do_balan.c b/fs/reiserfs/do_balan.c
-index 60c0804..d814f98 100644
+index 2b7882b..1c5ef48 100644
--- a/fs/reiserfs/do_balan.c
+++ b/fs/reiserfs/do_balan.c
@@ -2051,7 +2051,7 @@ void do_balance(struct tree_balance *tb, /* tree_balance structure */
/* balance leaf returns 0 except if combining L R and S into
diff --git a/fs/reiserfs/procfs.c b/fs/reiserfs/procfs.c
-index 7a99811..a7c96c4 100644
+index 2c1ade6..8c59d8d 100644
--- a/fs/reiserfs/procfs.c
+++ b/fs/reiserfs/procfs.c
-@@ -113,7 +113,7 @@ static int show_super(struct seq_file *m, struct super_block *sb)
+@@ -112,7 +112,7 @@ static int show_super(struct seq_file *m, struct super_block *sb)
"SMALL_TAILS " : "NO_TAILS ",
replay_only(sb) ? "REPLAY_ONLY " : "",
convert_reiserfs(sb) ? "CONV " : "",
SF(s_disk_reads), SF(s_disk_writes), SF(s_fix_nodes),
SF(s_do_balance), SF(s_unneeded_left_neighbor),
SF(s_good_search_by_key_reada), SF(s_bmaps),
+diff --git a/fs/reiserfs/reiserfs.h b/fs/reiserfs/reiserfs.h
+index a59d271..e12d1cf 100644
+--- a/fs/reiserfs/reiserfs.h
++++ b/fs/reiserfs/reiserfs.h
+@@ -453,7 +453,7 @@ struct reiserfs_sb_info {
+ /* Comment? -Hans */
+ wait_queue_head_t s_wait;
+ /* To be obsoleted soon by per buffer seals.. -Hans */
+- atomic_t s_generation_counter; // increased by one every time the
++ atomic_unchecked_t s_generation_counter; // increased by one every time the
+ // tree gets re-balanced
+ unsigned long s_properties; /* File system properties. Currently holds
+ on-disk FS format */
+@@ -1973,7 +1973,7 @@ static inline loff_t max_reiserfs_offset(struct inode *inode)
+ #define REISERFS_USER_MEM 1 /* reiserfs user memory mode */
+
+ #define fs_generation(s) (REISERFS_SB(s)->s_generation_counter)
+-#define get_generation(s) atomic_read (&fs_generation(s))
++#define get_generation(s) atomic_read_unchecked (&fs_generation(s))
+ #define FILESYSTEM_CHANGED_TB(tb) (get_generation((tb)->tb_sb) != (tb)->fs_gen)
+ #define __fs_changed(gen,s) (gen != get_generation (s))
+ #define fs_changed(gen,s) \
diff --git a/fs/select.c b/fs/select.c
-index e782258..3b4b44c 100644
+index 17d33d0..da0bf5c 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -20,6 +20,7 @@
- #include <linux/module.h>
+ #include <linux/export.h>
#include <linux/slab.h>
#include <linux/poll.h>
+#include <linux/security.h>
#include <linux/personality.h> /* for STICKY_TIMEOUTS */
#include <linux/file.h>
#include <linux/fdtable.h>
-@@ -837,6 +838,7 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
+@@ -833,6 +834,7 @@ int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds,
struct poll_list *walk = head;
unsigned long todo = nfds;
return -EINVAL;
diff --git a/fs/seq_file.c b/fs/seq_file.c
-index 4023d6b..ab46c6a 100644
+index 0cbd049..cab1127 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -9,6 +9,7 @@
- #include <linux/module.h>
+ #include <linux/export.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
+#include <linux/sched.h>
#include <asm/uaccess.h>
#include <asm/page.h>
-@@ -40,6 +41,9 @@ int seq_open(struct file *file, const struct seq_operations *op)
+@@ -56,6 +57,9 @@ int seq_open(struct file *file, const struct seq_operations *op)
memset(p, 0, sizeof(*p));
mutex_init(&p->lock);
p->op = op;
/*
* Wrappers around seq_open(e.g. swaps_open) need to be
-@@ -549,7 +553,7 @@ static void single_stop(struct seq_file *p, void *v)
+@@ -567,7 +571,7 @@ static void single_stop(struct seq_file *p, void *v)
int single_open(struct file *file, int (*show)(struct seq_file *, void *),
void *data)
{
if (op) {
diff --git a/fs/splice.c b/fs/splice.c
-index 96d7b28..fd465ac 100644
+index f847684..156619e 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -194,7 +194,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
vec[i].iov_len = this_len;
spd.pages[i] = page;
spd.nr_pages++;
-@@ -848,10 +848,10 @@ EXPORT_SYMBOL(splice_from_pipe_feed);
+@@ -845,10 +845,10 @@ EXPORT_SYMBOL(splice_from_pipe_feed);
int splice_from_pipe_next(struct pipe_inode_info *pipe, struct splice_desc *sd)
{
while (!pipe->nrbufs) {
return 0;
if (sd->flags & SPLICE_F_NONBLOCK)
-@@ -1184,7 +1184,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
+@@ -1181,7 +1181,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
* out of the pipe right after the splice_to_pipe(). So set
* PIPE_READERS appropriately.
*/
current->splice_pipe = pipe;
}
-@@ -1736,9 +1736,9 @@ static int ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
+@@ -1733,9 +1733,9 @@ static int ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
ret = -ERESTARTSYS;
break;
}
if (flags & SPLICE_F_NONBLOCK) {
ret = -EAGAIN;
break;
-@@ -1770,7 +1770,7 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
+@@ -1767,7 +1767,7 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
pipe_lock(pipe);
while (pipe->nrbufs >= pipe->buffers) {
send_sig(SIGPIPE, current, 0);
ret = -EPIPE;
break;
-@@ -1783,9 +1783,9 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
+@@ -1780,9 +1780,9 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
ret = -ERESTARTSYS;
break;
}
}
pipe_unlock(pipe);
-@@ -1821,14 +1821,14 @@ retry:
+@@ -1818,14 +1818,14 @@ retry:
pipe_double_lock(ipipe, opipe);
do {
break;
/*
-@@ -1925,7 +1925,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
+@@ -1922,7 +1922,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
pipe_double_lock(ipipe, opipe);
do {
send_sig(SIGPIPE, current, 0);
if (!ret)
ret = -EPIPE;
-@@ -1970,7 +1970,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
+@@ -1967,7 +1967,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
* return EAGAIN if we have the potential of some data in the
* future, otherwise just return 0
*/
ret = -EAGAIN;
pipe_unlock(ipipe);
-diff --git a/fs/sysfs/bin.c b/fs/sysfs/bin.c
-index a475983..9c6a1f0 100644
---- a/fs/sysfs/bin.c
-+++ b/fs/sysfs/bin.c
-@@ -67,6 +67,8 @@ fill_read(struct file *file, char *buffer, loff_t off, size_t count)
- }
-
- static ssize_t
-+read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off) __size_overflow(3);
-+static ssize_t
- read(struct file *file, char __user *userbuf, size_t bytes, loff_t *off)
- {
- struct bin_buffer *bb = file->private_data;
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
-index 7fdf6a7..e6cd8ad 100644
+index 35a36d3..23424b2 100644
--- a/fs/sysfs/dir.c
+++ b/fs/sysfs/dir.c
-@@ -642,6 +642,18 @@ static int create_dir(struct kobject *kobj, struct sysfs_dirent *parent_sd,
+@@ -657,6 +657,18 @@ static int create_dir(struct kobject *kobj, struct sysfs_dirent *parent_sd,
struct sysfs_dirent *sd;
int rc;
if (!IS_ERR(page))
free_page((unsigned long)page);
}
-diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
-index f922cba..062fb02 100644
---- a/fs/ubifs/debug.c
-+++ b/fs/ubifs/debug.c
-@@ -2819,6 +2819,7 @@ static ssize_t dfs_file_read(struct file *file, char __user *u, size_t count,
- * debugfs file. Returns %0 or %1 in case of success and a negative error code
- * in case of failure.
- */
-+static int interpret_user_input(const char __user *u, size_t count) __size_overflow(2);
- static int interpret_user_input(const char __user *u, size_t count)
- {
- size_t buf_size;
-@@ -2837,6 +2838,8 @@ static int interpret_user_input(const char __user *u, size_t count)
- }
-
- static ssize_t dfs_file_write(struct file *file, const char __user *u,
-+ size_t count, loff_t *ppos) __size_overflow(3);
-+static ssize_t dfs_file_write(struct file *file, const char __user *u,
- size_t count, loff_t *ppos)
- {
- struct ubifs_info *c = file->private_data;
diff --git a/fs/udf/misc.c b/fs/udf/misc.c
index c175b4d..8f36a16 100644
--- a/fs/udf/misc.c
error = notify_change(path->dentry, &newattrs);
mutex_unlock(&inode->i_mutex);
diff --git a/fs/xattr.c b/fs/xattr.c
-index 82f4337..236473c 100644
+index 3c8c1cc..a83c398 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
-@@ -315,7 +315,7 @@ EXPORT_SYMBOL_GPL(vfs_removexattr);
+@@ -316,7 +316,7 @@ EXPORT_SYMBOL_GPL(vfs_removexattr);
* Extended attribute SET operations
*/
static long
size_t size, int flags)
{
int error;
-@@ -339,7 +339,13 @@ setxattr(struct dentry *d, const char __user *name, const void __user *value,
- return PTR_ERR(kvalue);
+@@ -349,7 +349,12 @@ setxattr(struct dentry *d, const char __user *name, const void __user *value,
+ }
}
- error = vfs_setxattr(d, kname, kvalue, size, flags);
+ }
+
+ error = vfs_setxattr(path->dentry, kname, kvalue, size, flags);
-+out:
- kfree(kvalue);
- return error;
- }
-@@ -356,7 +362,7 @@ SYSCALL_DEFINE5(setxattr, const char __user *, pathname,
+ out:
+ if (vvalue)
+ vfree(vvalue);
+@@ -370,7 +375,7 @@ SYSCALL_DEFINE5(setxattr, const char __user *, pathname,
return error;
error = mnt_want_write(path.mnt);
if (!error) {
mnt_drop_write(path.mnt);
}
path_put(&path);
-@@ -375,7 +381,7 @@ SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname,
+@@ -389,7 +394,7 @@ SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname,
return error;
error = mnt_want_write(path.mnt);
if (!error) {
mnt_drop_write(path.mnt);
}
path_put(&path);
-@@ -386,17 +392,15 @@ SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
+@@ -400,17 +405,15 @@ SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
const void __user *,value, size_t, size, int, flags)
{
struct file *f;
}
fput(f);
diff --git a/fs/xattr_acl.c b/fs/xattr_acl.c
-index 8d5a506..7f62712 100644
+index 69d06b0..c0996e5 100644
--- a/fs/xattr_acl.c
+++ b/fs/xattr_acl.c
@@ -17,8 +17,8 @@
struct posix_acl *acl;
struct posix_acl_entry *acl_e;
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
-index 188ef2f..adcf864 100644
+index 85e7e32..5344e52 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -190,7 +190,7 @@ xfs_bmap_validate_ret(
*offset = off & 0x7fffffff;
return 0;
diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
-index 76f3ca5..f57f712 100644
+index 91f8ff5..0ce68f9 100644
--- a/fs/xfs/xfs_ioctl.c
+++ b/fs/xfs/xfs_ioctl.c
@@ -128,7 +128,7 @@ xfs_find_handle(
goto out_put;
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
-index ab30253..4d86958 100644
+index 3011b87..1ab03e9 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
-@@ -447,7 +447,7 @@ xfs_vn_put_link(
+@@ -397,7 +397,7 @@ xfs_vn_put_link(
struct nameidata *nd,
void *p)
{
+endif
diff --git a/grsecurity/gracl.c b/grsecurity/gracl.c
new file mode 100644
-index 0000000..a6d83f0
+index 0000000..00b6c54
--- /dev/null
+++ b/grsecurity/gracl.c
-@@ -0,0 +1,4193 @@
+@@ -0,0 +1,4012 @@
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/sched.h>
+ char *res;
+ struct path path;
+ struct path root;
-+ struct task_struct *reaper = &init_task;
++ struct task_struct *reaper = init_pid_ns.child_reaper;
+
+ path.dentry = (struct dentry *)dentry;
+ path.mnt = (struct vfsmount *)vfsmnt;
+static int
+init_variables(const struct gr_arg *arg)
+{
-+ struct task_struct *reaper = &init_task;
++ struct task_struct *reaper = init_pid_ns.child_reaper;
+ unsigned int stacksize;
+
+ subj_map_set.s_size = arg->role_db.num_subjects;
+}
+
+static void
-+gr_log_learn_sysctl(const char *path, const __u32 mode)
-+{
-+ struct task_struct *task = current;
-+ const struct cred *cred = current_cred();
-+
-+ security_learn(GR_LEARN_AUDIT_MSG, task->role->rolename, task->role->roletype,
-+ cred->uid, cred->gid, task->exec_file ? gr_to_filename1(task->exec_file->f_path.dentry,
-+ task->exec_file->f_path.mnt) : task->acl->filename, task->acl->filename,
-+ 1UL, 1UL, path, (unsigned long) mode, &task->signal->saved_ip);
-+
-+ return;
-+}
-+
-+static void
+gr_log_learn_id_change(const char type, const unsigned int real,
+ const unsigned int effective, const unsigned int fs)
+{
+}
+#endif
+
-+#ifdef CONFIG_SYSCTL
-+/* Eric Biederman likes breaking userland ABI and every inode-based security
-+ system to save 35kb of memory */
-+
-+/* we modify the passed in filename, but adjust it back before returning */
-+static struct acl_object_label *gr_lookup_by_name(char *name, unsigned int len)
-+{
-+ struct name_entry *nmatch;
-+ char *p, *lastp = NULL;
-+ struct acl_object_label *obj = NULL, *tmp;
-+ struct acl_subject_label *tmpsubj;
-+ char c = '\0';
-+
-+ read_lock(&gr_inode_lock);
-+
-+ p = name + len - 1;
-+ do {
-+ nmatch = lookup_name_entry(name);
-+ if (lastp != NULL)
-+ *lastp = c;
-+
-+ if (nmatch == NULL)
-+ goto next_component;
-+ tmpsubj = current->acl;
-+ do {
-+ obj = lookup_acl_obj_label(nmatch->inode, nmatch->device, tmpsubj);
-+ if (obj != NULL) {
-+ tmp = obj->globbed;
-+ while (tmp) {
-+ if (!glob_match(tmp->filename, name)) {
-+ obj = tmp;
-+ goto found_obj;
-+ }
-+ tmp = tmp->next;
-+ }
-+ goto found_obj;
-+ }
-+ } while ((tmpsubj = tmpsubj->parent_subject));
-+next_component:
-+ /* end case */
-+ if (p == name)
-+ break;
-+
-+ while (*p != '/')
-+ p--;
-+ if (p == name)
-+ lastp = p + 1;
-+ else {
-+ lastp = p;
-+ p--;
-+ }
-+ c = *lastp;
-+ *lastp = '\0';
-+ } while (1);
-+found_obj:
-+ read_unlock(&gr_inode_lock);
-+ /* obj returned will always be non-null */
-+ return obj;
-+}
-+
-+/* returns 0 when allowing, non-zero on error
-+ op of 0 is used for readdir, so we don't log the names of hidden files
-+*/
-+__u32
-+gr_handle_sysctl(const struct ctl_table *table, const int op)
-+{
-+ struct ctl_table *tmp;
-+ const char *proc_sys = "/proc/sys";
-+ char *path;
-+ struct acl_object_label *obj;
-+ unsigned short len = 0, pos = 0, depth = 0, i;
-+ __u32 err = 0;
-+ __u32 mode = 0;
-+
-+ if (unlikely(!(gr_status & GR_READY)))
-+ return 0;
-+
-+ /* for now, ignore operations on non-sysctl entries if it's not a
-+ readdir*/
-+ if (table->child != NULL && op != 0)
-+ return 0;
-+
-+ mode |= GR_FIND;
-+ /* it's only a read if it's an entry, read on dirs is for readdir */
-+ if (op & MAY_READ)
-+ mode |= GR_READ;
-+ if (op & MAY_WRITE)
-+ mode |= GR_WRITE;
-+
-+ preempt_disable();
-+
-+ path = per_cpu_ptr(gr_shared_page[0], smp_processor_id());
-+
-+ /* it's only a read/write if it's an actual entry, not a dir
-+ (which are opened for readdir)
-+ */
-+
-+ /* convert the requested sysctl entry into a pathname */
-+
-+ for (tmp = (struct ctl_table *)table; tmp != NULL; tmp = tmp->parent) {
-+ len += strlen(tmp->procname);
-+ len++;
-+ depth++;
-+ }
-+
-+ if ((len + depth + strlen(proc_sys) + 1) > PAGE_SIZE) {
-+ /* deny */
-+ goto out;
-+ }
-+
-+ memset(path, 0, PAGE_SIZE);
-+
-+ memcpy(path, proc_sys, strlen(proc_sys));
-+
-+ pos += strlen(proc_sys);
-+
-+ for (; depth > 0; depth--) {
-+ path[pos] = '/';
-+ pos++;
-+ for (i = 1, tmp = (struct ctl_table *)table; tmp != NULL; tmp = tmp->parent) {
-+ if (depth == i) {
-+ memcpy(path + pos, tmp->procname,
-+ strlen(tmp->procname));
-+ pos += strlen(tmp->procname);
-+ }
-+ i++;
-+ }
-+ }
-+
-+ obj = gr_lookup_by_name(path, pos);
-+ err = obj->mode & (mode | to_gr_audit(mode) | GR_SUPPRESS);
-+
-+ if (unlikely((current->acl->mode & (GR_LEARN | GR_INHERITLEARN)) &&
-+ ((err & mode) != mode))) {
-+ __u32 new_mode = mode;
-+
-+ new_mode &= ~(GR_AUDITS | GR_SUPPRESS);
-+
-+ err = 0;
-+ gr_log_learn_sysctl(path, new_mode);
-+ } else if (!(err & GR_FIND) && !(err & GR_SUPPRESS) && op != 0) {
-+ gr_log_hidden_sysctl(GR_DONT_AUDIT, GR_HIDDEN_ACL_MSG, path);
-+ err = -ENOENT;
-+ } else if (!(err & GR_FIND)) {
-+ err = -ENOENT;
-+ } else if (((err & mode) & ~GR_FIND) != (mode & ~GR_FIND) && !(err & GR_SUPPRESS)) {
-+ gr_log_str4(GR_DONT_AUDIT, GR_SYSCTL_ACL_MSG, "denied",
-+ path, (mode & GR_READ) ? " reading" : "",
-+ (mode & GR_WRITE) ? " writing" : "");
-+ err = -EACCES;
-+ } else if ((err & mode) != mode) {
-+ err = -EACCES;
-+ } else if ((((err & mode) & ~GR_FIND) == (mode & ~GR_FIND)) && (err & GR_AUDITS)) {
-+ gr_log_str4(GR_DO_AUDIT, GR_SYSCTL_ACL_MSG, "successful",
-+ path, (mode & GR_READ) ? " reading" : "",
-+ (mode & GR_WRITE) ? " writing" : "");
-+ err = 0;
-+ } else
-+ err = 0;
-+
-+ out:
-+ preempt_enable();
-+
-+ return err;
-+}
-+#endif
-+
+int
+gr_handle_proc_ptrace(struct task_struct *task)
+{
+}
diff --git a/grsecurity/grsec_sysctl.c b/grsecurity/grsec_sysctl.c
new file mode 100644
-index 0000000..a1aedd7
+index 0000000..8316f6f
--- /dev/null
+++ b/grsecurity/grsec_sysctl.c
-@@ -0,0 +1,451 @@
+@@ -0,0 +1,453 @@
+#include <linux/kernel.h>
+#include <linux/sched.h>
+#include <linux/sysctl.h>
+gr_handle_sysctl_mod(const char *dirname, const char *name, const int op)
+{
+#ifdef CONFIG_GRKERNSEC_SYSCTL
++ if (dirname == NULL || name == NULL)
++ return 0;
+ if (!strcmp(dirname, "grsecurity") && grsec_lock && (op & MAY_WRITE)) {
+ gr_log_str(GR_DONT_AUDIT, GR_SYSCTL_MSG, name);
+ return -EACCES;
+ return retval;
+}
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
-index 6cd5b64..f620d2d 100644
+index f1c8ca6..b5c1cc7 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -107,7 +107,7 @@ struct acpi_device_ops {
* The "pud_xxx()" functions here are trivial for a folded two-level
* setup: the pmd is never bad, and a pmd always exists (as it's folded
diff --git a/include/asm-generic/pgtable-nopud.h b/include/asm-generic/pgtable-nopud.h
-index 810431d..ccc3638 100644
+index 810431d..0ec4804f 100644
--- a/include/asm-generic/pgtable-nopud.h
+++ b/include/asm-generic/pgtable-nopud.h
@@ -1,10 +1,15 @@
/*
* The "pgd_xxx()" functions here are trivial for a folded two-level
* setup: the pud is never bad, and a pud always exists (as it's folded
+@@ -29,6 +29,7 @@ static inline void pgd_clear(pgd_t *pgd) { }
+ #define pud_ERROR(pud) (pgd_ERROR((pud).pgd))
+
+ #define pgd_populate(mm, pgd, pud) do { } while (0)
++#define pgd_populate_kernel(mm, pgd, pud) do { } while (0)
+ /*
+ * (puds are folded into pgds so this doesn't get actually called,
+ * but the define is needed for a generic inline function.)
diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h
-index a03c098..7e5b223 100644
+index 125c54e..e95c18e 100644
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
-@@ -502,6 +502,14 @@ static inline int pmd_trans_unstable(pmd_t *pmd)
+@@ -446,6 +446,18 @@ static inline int pmd_write(pmd_t pmd)
+ #endif /* __HAVE_ARCH_PMD_WRITE */
+ #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
+
++#ifndef __HAVE_ARCH_READ_PMD_ATOMIC
++static inline pmd_t read_pmd_atomic(pmd_t *pmdp)
++{
++ /*
++ * Depend on compiler for an atomic pmd read. NOTE: this is
++ * only going to work, if the pmdval_t isn't larger than
++ * an unsigned long.
++ */
++ return *pmdp;
++}
++#endif /* __HAVE_ARCH_READ_PMD_ATOMIC */
++
+ /*
+ * This function is meant to be used by sites walking pagetables with
+ * the mmap_sem hold in read mode to protect against MADV_DONTNEED and
+@@ -459,11 +471,17 @@ static inline int pmd_write(pmd_t pmd)
+ * undefined so behaving like if the pmd was none is safe (because it
+ * can return none anyway). The compiler level barrier() is critically
+ * important to compute the two checks atomically on the same pmdval.
++ *
++ * For 32bit kernels with a 64bit large pmd_t this automatically takes
++ * care of reading the pmd atomically to avoid SMP race conditions
++ * against pmd_populate() when the mmap_sem is hold for reading by the
++ * caller (a special atomic read not done by "gcc" as in the generic
++ * version above, is also needed when THP is disabled because the page
++ * fault can populate the pmd from under us).
+ */
+ static inline int pmd_none_or_trans_huge_or_clear_bad(pmd_t *pmd)
+ {
+- /* depend on compiler for an atomic pmd read */
+- pmd_t pmdval = *pmd;
++ pmd_t pmdval = read_pmd_atomic(pmd);
+ /*
+ * The barrier will stabilize the pmdval in a register or on
+ * the stack so that it will stop changing under the code.
+@@ -503,6 +521,14 @@ static inline int pmd_trans_unstable(pmd_t *pmd)
#endif
}
#endif /* CONFIG_MMU */
#endif /* !__ASSEMBLY__ */
-diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess.h
-index 9788568..510dece 100644
---- a/include/asm-generic/uaccess.h
-+++ b/include/asm-generic/uaccess.h
-@@ -76,6 +76,8 @@ extern unsigned long search_exception_table(unsigned long);
- */
- #ifndef __copy_from_user
- static inline __must_check long __copy_from_user(void *to,
-+ const void __user * from, unsigned long n) __size_overflow(3);
-+static inline __must_check long __copy_from_user(void *to,
- const void __user * from, unsigned long n)
- {
- if (__builtin_constant_p(n)) {
-@@ -106,6 +108,8 @@ static inline __must_check long __copy_from_user(void *to,
-
- #ifndef __copy_to_user
- static inline __must_check long __copy_to_user(void __user *to,
-+ const void *from, unsigned long n) __size_overflow(3);
-+static inline __must_check long __copy_to_user(void __user *to,
- const void *from, unsigned long n)
- {
- if (__builtin_constant_p(n)) {
-@@ -224,6 +228,7 @@ extern int __put_user_bad(void) __attribute__((noreturn));
- -EFAULT; \
- })
-
-+static inline int __get_user_fn(size_t size, const void __user *ptr, void *x) __size_overflow(1);
- static inline int __get_user_fn(size_t size, const void __user *ptr, void *x)
- {
- size = __copy_from_user(x, ptr, size);
-@@ -240,6 +245,7 @@ extern int __get_user_bad(void) __attribute__((noreturn));
- #define __copy_to_user_inatomic __copy_to_user
- #endif
-
-+static inline long copy_from_user(void *to, const void __user * from, unsigned long n) __size_overflow(3);
- static inline long copy_from_user(void *to,
- const void __user * from, unsigned long n)
- {
-@@ -250,6 +256,7 @@ static inline long copy_from_user(void *to,
- return n;
- }
-
-+static inline long copy_to_user(void __user *to, const void *from, unsigned long n) __size_overflow(3);
- static inline long copy_to_user(void __user *to,
- const void *from, unsigned long n)
- {
-@@ -314,6 +321,8 @@ static inline long strlen_user(const char __user *src)
- */
- #ifndef __clear_user
- static inline __must_check unsigned long
-+__clear_user(void __user *to, unsigned long n) __size_overflow(2);
-+static inline __must_check unsigned long
- __clear_user(void __user *to, unsigned long n)
- {
- memset((void __force *)to, 0, n);
-@@ -322,6 +331,8 @@ __clear_user(void __user *to, unsigned long n)
- #endif
-
- static inline __must_check unsigned long
-+clear_user(void __user *to, unsigned long n) __size_overflow(2);
-+static inline __must_check unsigned long
- clear_user(void __user *to, unsigned long n)
- {
- might_sleep();
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
-index b5e2e4c..6a5373e 100644
+index 8aeadf6..f1dc019 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
-@@ -217,6 +217,7 @@
+@@ -218,6 +218,7 @@
.rodata : AT(ADDR(.rodata) - LOAD_OFFSET) { \
VMLINUX_SYMBOL(__start_rodata) = .; \
*(.rodata) *(.rodata.*) \
*(__vermagic) /* Kernel version magic */ \
. = ALIGN(8); \
VMLINUX_SYMBOL(__start___tracepoints_ptrs) = .; \
-@@ -722,17 +723,18 @@
+@@ -716,17 +717,18 @@
* section in the linker script will go there too. @phdr should have
* a leading colon.
*
/**
* PERCPU_SECTION - define output section for percpu area, simple version
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
-index 92f0981..d44a37c 100644
+index dd73104..fde86bd 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -72,6 +72,7 @@
#include "drm.h"
#include <linux/idr.h>
-@@ -1038,7 +1039,7 @@ struct drm_device {
+@@ -1074,7 +1075,7 @@ struct drm_device {
/** \name Usage Counters */
/*@{ */
atomic_t ioctl_count; /**< Outstanding IOCTLs pending */
atomic_t vma_count; /**< Outstanding vma areas open */
int buf_use; /**< Buffers in use -- cannot alloc */
-@@ -1049,7 +1050,7 @@ struct drm_device {
+@@ -1085,7 +1086,7 @@ struct drm_device {
/*@{ */
unsigned long counters;
enum drm_stat_type types[15];
struct drm_connector_helper_funcs {
int (*get_modes)(struct drm_connector *connector);
diff --git a/include/drm/ttm/ttm_memory.h b/include/drm/ttm/ttm_memory.h
-index 26c1f78..6722682 100644
+index d6d1da4..fdd1ac5 100644
--- a/include/drm/ttm/ttm_memory.h
+++ b/include/drm/ttm/ttm_memory.h
-@@ -47,7 +47,7 @@
+@@ -48,7 +48,7 @@
struct ttm_mem_shrink {
int (*do_shrink) (struct ttm_mem_shrink *);
#define N_MAGIC(exec) ((exec).a_info & 0xffff)
#endif
diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h
-index f4ff882..84b53a6 100644
+index 06fd4bb..1caec0d 100644
--- a/include/linux/atmdev.h
+++ b/include/linux/atmdev.h
@@ -237,7 +237,7 @@ struct compat_atm_iobuf {
#undef __HANDLE_ITEM
};
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
-index 0092102..8a801b4 100644
+index 366422b..1fa7f84 100644
--- a/include/linux/binfmts.h
+++ b/include/linux/binfmts.h
@@ -89,6 +89,7 @@ struct linux_binfmt {
};
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
-index 606cf33..b72c577 100644
+index 4d4ac24..2c3ccce 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
-@@ -1379,7 +1379,7 @@ struct block_device_operations {
+@@ -1376,7 +1376,7 @@ struct block_device_operations {
/* this callback is with swap_lock and sometimes page table lock held */
void (*swap_slot_free_notify) (struct block_device *, unsigned long);
struct module *owner;
/* audit system wants to get cap info from files as well */
extern int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data *cpu_caps);
diff --git a/include/linux/cleancache.h b/include/linux/cleancache.h
-index 04ffb2e..6799180 100644
+index 42e55de..1cd0e66 100644
--- a/include/linux/cleancache.h
+++ b/include/linux/cleancache.h
@@ -31,7 +31,7 @@ struct cleancache_ops {
- void (*flush_page)(int, struct cleancache_filekey, pgoff_t);
- void (*flush_inode)(int, struct cleancache_filekey);
- void (*flush_fs)(int);
+ void (*invalidate_page)(int, struct cleancache_filekey, pgoff_t);
+ void (*invalidate_inode)(int, struct cleancache_filekey);
+ void (*invalidate_fs)(int);
-};
+} __no_const;
extern struct cleancache_ops
cleancache_register_ops(struct cleancache_ops *ops);
diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h
-index 2f40791..567b215 100644
+index 2f40791..a62d196 100644
--- a/include/linux/compiler-gcc4.h
+++ b/include/linux/compiler-gcc4.h
-@@ -32,6 +32,15 @@
+@@ -32,6 +32,16 @@
#define __linktime_error(message) __attribute__((__error__(message)))
#if __GNUC_MINOR__ >= 5
+#ifdef SIZE_OVERFLOW_PLUGIN
+#define __size_overflow(...) __attribute__((size_overflow(__VA_ARGS__)))
+#endif
++
/*
* Mark a position in code as unreachable. This can be used to
* suppress control flow warnings after asm blocks that transfer
-@@ -47,6 +56,11 @@
+@@ -47,6 +57,11 @@
#define __noclone __attribute__((__noclone__))
#endif
#if __GNUC_MINOR__ > 0
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
-index 4a24354..ecaff7a 100644
+index 923d093..726c17f 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -5,31 +5,62 @@
#endif
#ifdef __KERNEL__
-@@ -264,6 +297,17 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
+@@ -264,6 +297,18 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
# define __attribute_const__ /* unimplemented */
#endif
+#ifndef __size_overflow
+# define __size_overflow(...)
+#endif
++
/*
* Tell gcc if a function is cold. The compiler will assume any path
* directly leading to the call is unlikely.
-@@ -273,6 +317,22 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
+@@ -273,6 +318,22 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
#define __cold
#endif
/* Simple shorthand for a section definition */
#ifndef __section
# define __section(S) __attribute__ ((__section__(#S)))
-@@ -308,6 +368,7 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
+@@ -308,6 +369,7 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
* use is to mediate communication between process-level code and irq/NMI
* handlers, all running on the same CPU.
*/
+#define ACCESS_ONCE_RW(x) (*(volatile typeof(x) *)&(x))
#endif /* __LINUX_COMPILER_H */
-diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h
-index e9eaec5..bfeb9bb 100644
---- a/include/linux/cpuset.h
-+++ b/include/linux/cpuset.h
-@@ -118,7 +118,7 @@ static inline void put_mems_allowed(void)
- * nodemask.
- */
- smp_mb();
-- --ACCESS_ONCE(current->mems_allowed_change_disable);
-+ --ACCESS_ONCE_RW(current->mems_allowed_change_disable);
- }
-
- static inline void set_mems_allowed(nodemask_t nodemask)
-diff --git a/include/linux/crash_dump.h b/include/linux/crash_dump.h
-index b936763..48685ee 100644
---- a/include/linux/crash_dump.h
-+++ b/include/linux/crash_dump.h
-@@ -14,7 +14,7 @@ extern unsigned long long elfcorehdr_addr;
- extern unsigned long long elfcorehdr_size;
-
- extern ssize_t copy_oldmem_page(unsigned long, char *, size_t,
-- unsigned long, int);
-+ unsigned long, int) __size_overflow(3);
-
- /* Architecture code defines this if there are other possible ELF
- * machine types, e.g. on bi-arch capable hardware. */
diff --git a/include/linux/cred.h b/include/linux/cred.h
index adadf71..6af5560 100644
--- a/include/linux/cred.h
/**
diff --git a/include/linux/crypto.h b/include/linux/crypto.h
-index 8a94217..15d49e3 100644
+index b92eadf..b4ecdc1 100644
--- a/include/linux/crypto.h
+++ b/include/linux/crypto.h
-@@ -365,7 +365,7 @@ struct cipher_tfm {
+@@ -373,7 +373,7 @@ struct cipher_tfm {
const u8 *key, unsigned int keylen);
void (*cit_encrypt_one)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
void (*cit_decrypt_one)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
struct hash_tfm {
int (*init)(struct hash_desc *desc);
-@@ -386,13 +386,13 @@ struct compress_tfm {
+@@ -394,13 +394,13 @@ struct compress_tfm {
int (*cot_decompress)(struct crypto_tfm *tfm,
const u8 *src, unsigned int slen,
u8 *dst, unsigned int *dlen);
#define large_malloc(a) vmalloc(a)
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
-index e13117c..e9fc938 100644
+index dfc099e..e583e66 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
-@@ -46,7 +46,7 @@ struct dma_map_ops {
+@@ -51,7 +51,7 @@ struct dma_map_ops {
u64 (*get_required_mask)(struct device *dev);
#endif
int is_phys;
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
diff --git a/include/linux/efi.h b/include/linux/efi.h
-index 7cce0ea..c2085e4 100644
+index ec45ccd..9923c32 100644
--- a/include/linux/efi.h
+++ b/include/linux/efi.h
-@@ -591,7 +591,7 @@ struct efivar_operations {
+@@ -635,7 +635,7 @@ struct efivar_operations {
efi_get_variable_t *get_variable;
efi_get_next_variable_t *get_next_variable;
efi_set_variable_t *set_variable;
struct sock_filter insns[0];
};
diff --git a/include/linux/firewire.h b/include/linux/firewire.h
-index 84ccf8e..2e9b14c 100644
+index cdc9b71..ce69fb5 100644
--- a/include/linux/firewire.h
+++ b/include/linux/firewire.h
-@@ -428,7 +428,7 @@ struct fw_iso_context {
+@@ -413,7 +413,7 @@ struct fw_iso_context {
union {
fw_iso_callback_t sc;
fw_iso_mc_callback_t mc;
};
diff --git a/include/linux/fs.h b/include/linux/fs.h
-index f4b6e06..d6ba573 100644
+index 25c40b9..1bfd4f4 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
-@@ -1628,7 +1628,8 @@ struct file_operations {
+@@ -1634,7 +1634,8 @@ struct file_operations {
int (*setlease)(struct file *, long, struct file_lock **);
long (*fallocate)(struct file *file, int mode, loff_t offset,
loff_t len);
op->release = release;
INIT_LIST_HEAD(&op->pend_link);
diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h
-index 2a53f10..0187fdf 100644
+index a6dfe69..569586df 100644
--- a/include/linux/fsnotify.h
+++ b/include/linux/fsnotify.h
-@@ -314,7 +314,7 @@ static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)
+@@ -315,7 +315,7 @@ static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)
*/
static inline const unsigned char *fsnotify_oldname_init(const unsigned char *name)
{
/*
* A group is a "thing" that wants to receive notification about filesystem
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
-index c3da42d..c70e0df 100644
+index 176a939..1462211 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -97,7 +97,7 @@ struct trace_event_functions {
struct trace_event {
struct hlist_node node;
-@@ -254,7 +254,7 @@ extern int trace_define_field(struct ftrace_event_call *call, const char *type,
+@@ -263,7 +263,7 @@ extern int trace_define_field(struct ftrace_event_call *call, const char *type,
extern int trace_add_event_call(struct ftrace_event_call *call);
extern void trace_remove_event_call(struct ftrace_event_call *call);
int trace_set_clr_event(const char *system, const char *event, int set);
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
-index e61d319..0da8505 100644
+index 017a7fb..33a8507 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -185,7 +185,7 @@ struct gendisk {
struct blk_integrity *integrity;
diff --git a/include/linux/gracl.h b/include/linux/gracl.h
new file mode 100644
-index 0000000..8a130b6
+index 0000000..c938b1f
--- /dev/null
+++ b/include/linux/gracl.h
@@ -0,0 +1,319 @@
+
+/* Major status information */
+
-+#define GR_VERSION "grsecurity 2.9"
-+#define GRSECURITY_VERSION 0x2900
++#define GR_VERSION "grsecurity 2.9.1"
++#define GRSECURITY_VERSION 0x2901
+
+enum {
+ GR_SHUTDOWN = 0,
#define PM_HINT_FULLON 1<<5
#define PM_HINT_NORMAL 1<<1
diff --git a/include/linux/highmem.h b/include/linux/highmem.h
-index 3a93f73..b19d0b3 100644
+index d3999b4..1304cb4 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
-@@ -185,6 +185,18 @@ static inline void clear_highpage(struct page *page)
- kunmap_atomic(kaddr, KM_USER0);
+@@ -221,6 +221,18 @@ static inline void clear_highpage(struct page *page)
+ kunmap_atomic(kaddr);
}
+static inline void sanitize_highpage(struct page *page)
+ unsigned long flags;
+
+ local_irq_save(flags);
-+ kaddr = kmap_atomic(page, KM_CLEARPAGE);
++ kaddr = kmap_atomic(page);
+ clear_page(kaddr);
-+ kunmap_atomic(kaddr, KM_CLEARPAGE);
++ kunmap_atomic(kaddr);
+ local_irq_restore(flags);
+}
+
unsigned start1, unsigned end1,
unsigned start2, unsigned end2)
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
-index 8e25a91..551b161 100644
+index 195d8b3..e20cfab 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
-@@ -364,6 +364,7 @@ struct i2c_algorithm {
+@@ -365,6 +365,7 @@ struct i2c_algorithm {
/* To determine what the adapter supports */
u32 (*functionality) (struct i2c_adapter *);
};
/*
* i2c_adapter is the structure used to identify a physical i2c bus along
diff --git a/include/linux/i2o.h b/include/linux/i2o.h
-index a6deef4..c56a7f2 100644
+index d23c3c2..eb63c81 100644
--- a/include/linux/i2o.h
+++ b/include/linux/i2o.h
-@@ -564,7 +564,7 @@ struct i2o_controller {
+@@ -565,7 +565,7 @@ struct i2o_controller {
struct i2o_device *exec; /* Executive */
#if BITS_PER_LONG == 64
spinlock_t context_list_lock; /* lock for context_list */
void cleanup_module(void) __attribute__((alias(#exitfn)));
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
-index 9c66b1a..a3fdded 100644
+index e4baff5..83bb175 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
-@@ -127,6 +127,12 @@ extern struct cred init_cred;
+@@ -134,6 +134,12 @@ extern struct cred init_cred;
#define INIT_TASK_COMM "swapper"
/*
* INIT_TASK is used to set up the first task table, touch at
* your own risk!. Base=0, limit=0x1fffff (=2MB)
-@@ -165,6 +171,7 @@ extern struct cred init_cred;
+@@ -172,6 +178,7 @@ extern struct cred init_cred;
RCU_INIT_POINTER(.cred, &init_cred), \
.comm = INIT_TASK_COMM, \
.thread = INIT_THREAD, \
enum {
SR_DMAR_FECTL_REG,
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
-index a64b00e..464d8bc 100644
+index 2aea5d2..0b82f0c 100644
--- a/include/linux/interrupt.h
+++ b/include/linux/interrupt.h
-@@ -441,7 +441,7 @@ enum
+@@ -439,7 +439,7 @@ enum
/* map softirq index to softirq name. update 'softirq_to_name' in
* kernel/softirq.c when adding a new softirq.
*/
/* softirq mask and active fields moved to irq_cpustat_t in
* asm/hardirq.h to get better cache usage. KAO
-@@ -449,12 +449,12 @@ extern char *softirq_to_name[NR_SOFTIRQS];
+@@ -447,12 +447,12 @@ extern char *softirq_to_name[NR_SOFTIRQS];
struct softirq_action
{
-extern void open_softirq(int nr, void (*action)(struct softirq_action *));
+extern void open_softirq(int nr, void (*action)(void));
extern void softirq_init(void);
- static inline void __raise_softirq_irqoff(unsigned int nr)
- {
+ extern void __raise_softirq_irqoff(unsigned int nr);
+
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
index 3875719..4cd454c 100644
--- a/include/linux/kallsyms.h
extern struct kgdb_arch arch_kgdb_ops;
diff --git a/include/linux/kmod.h b/include/linux/kmod.h
-index 0fb48ef..1b680b2 100644
+index dd99c32..da06047 100644
--- a/include/linux/kmod.h
+++ b/include/linux/kmod.h
@@ -34,6 +34,8 @@ extern char modprobe_path[]; /* for sysctl */
if (atomic_sub_and_test((int) count, &kref->refcount)) {
release(kref);
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
-index 4c4e83d..5f16617 100644
+index 72cbf08..dd0201d 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
-@@ -326,7 +326,7 @@ void kvm_vcpu_uninit(struct kvm_vcpu *vcpu);
+@@ -322,7 +322,7 @@ void kvm_vcpu_uninit(struct kvm_vcpu *vcpu);
void vcpu_load(struct kvm_vcpu *vcpu);
void vcpu_put(struct kvm_vcpu *vcpu);
struct module *module);
void kvm_exit(void);
-@@ -416,20 +416,20 @@ void kvm_get_pfn(pfn_t pfn);
- int kvm_read_guest_page(struct kvm *kvm, gfn_t gfn, void *data, int offset,
- int len);
- int kvm_read_guest_atomic(struct kvm *kvm, gpa_t gpa, void *data,
-- unsigned long len);
--int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len);
-+ unsigned long len) __size_overflow(4);
-+int kvm_read_guest(struct kvm *kvm, gpa_t gpa, void *data, unsigned long len) __size_overflow(2,4);
- int kvm_read_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
-- void *data, unsigned long len);
-+ void *data, unsigned long len) __size_overflow(4);
- int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data,
- int offset, int len);
- int kvm_write_guest(struct kvm *kvm, gpa_t gpa, const void *data,
-- unsigned long len);
-+ unsigned long len) __size_overflow(2,4);
- int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
-- void *data, unsigned long len);
-+ void *data, unsigned long len) __size_overflow(4);
- int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
- gpa_t gpa);
- int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len);
--int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len);
-+int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len) __size_overflow(2,3);
- struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn);
- int kvm_is_visible_gfn(struct kvm *kvm, gfn_t gfn);
- unsigned long kvm_host_page_size(struct kvm *kvm, gfn_t gfn);
-@@ -485,7 +485,7 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,
+@@ -486,7 +486,7 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,
struct kvm_guest_debug *dbg);
int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run);
void kvm_arch_exit(void);
int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu);
-@@ -727,7 +727,7 @@ int kvm_setup_default_irq_routing(struct kvm *kvm);
- int kvm_set_irq_routing(struct kvm *kvm,
- const struct kvm_irq_routing_entry *entries,
- unsigned nr,
-- unsigned flags);
-+ unsigned flags) __size_overflow(3);
- void kvm_free_irq_routing(struct kvm *kvm);
-
- #else
diff --git a/include/linux/libata.h b/include/linux/libata.h
-index cafc09a..d7e7829 100644
+index 6e887c7..4539601 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
-@@ -909,7 +909,7 @@ struct ata_port_operations {
+@@ -910,7 +910,7 @@ struct ata_port_operations {
* fields must be pointers.
*/
const struct ata_port_operations *inherits;
/*
* Kernel text modification mutex, used for code patching. Users of this lock
diff --git a/include/linux/mfd/abx500.h b/include/linux/mfd/abx500.h
-index 9970337..9444122 100644
+index ee96cd5..7823c3a 100644
--- a/include/linux/mfd/abx500.h
+++ b/include/linux/mfd/abx500.h
-@@ -188,6 +188,7 @@ struct abx500_ops {
+@@ -455,6 +455,7 @@ struct abx500_ops {
int (*event_registers_startup_state_get) (struct device *, u8 *);
int (*startup_irq_enabled) (struct device *, unsigned int);
};
int abx500_register_ops(struct device *core_dev, struct abx500_ops *ops);
void abx500_remove_ops(struct device *dev);
+diff --git a/include/linux/mfd/abx500/ux500_chargalg.h b/include/linux/mfd/abx500/ux500_chargalg.h
+index 9b07725..3d55001 100644
+--- a/include/linux/mfd/abx500/ux500_chargalg.h
++++ b/include/linux/mfd/abx500/ux500_chargalg.h
+@@ -19,7 +19,7 @@ struct ux500_charger_ops {
+ int (*enable) (struct ux500_charger *, int, int, int);
+ int (*kick_wd) (struct ux500_charger *);
+ int (*update_curr) (struct ux500_charger *, int);
+-};
++} __no_const;
+
+ /**
+ * struct ux500_charger - power supply ux500 charger sub class
diff --git a/include/linux/mm.h b/include/linux/mm.h
-index 17b27cd..baea141 100644
+index 74aa71b..4ae97ba 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
-@@ -115,7 +115,14 @@ extern unsigned int kobjsize(const void *objp);
+@@ -116,7 +116,14 @@ extern unsigned int kobjsize(const void *objp);
#define VM_CAN_NONLINEAR 0x08000000 /* Has ->fault & does nonlinear pages */
#define VM_MIXEDMAP 0x10000000 /* Can contain "struct page" and pure PFN pages */
#define VM_PFN_AT_MMAP 0x40000000 /* PFNMAP vma that is fully mapped at mmap time */
#define VM_MERGEABLE 0x80000000 /* KSM may merge identical pages */
-@@ -1012,34 +1019,6 @@ int set_page_dirty(struct page *page);
+@@ -1013,34 +1020,6 @@ int set_page_dirty(struct page *page);
int set_page_dirty_lock(struct page *page);
int clear_page_dirty_for_io(struct page *page);
- !vma_growsup(vma->vm_next, addr);
-}
-
- extern unsigned long move_page_tables(struct vm_area_struct *vma,
- unsigned long old_addr, struct vm_area_struct *new_vma,
- unsigned long new_addr, unsigned long len);
-@@ -1134,6 +1113,15 @@ static inline void sync_mm_rss(struct task_struct *task, struct mm_struct *mm)
+ extern pid_t
+ vm_is_stack(struct task_struct *task, struct vm_area_struct *vma, int in_group);
+
+@@ -1139,6 +1118,15 @@ static inline void sync_mm_rss(struct mm_struct *mm)
}
#endif
int vma_wants_writenotify(struct vm_area_struct *vma);
extern pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr,
-@@ -1152,8 +1140,15 @@ static inline int __pud_alloc(struct mm_struct *mm, pgd_t *pgd,
+@@ -1157,8 +1145,15 @@ static inline int __pud_alloc(struct mm_struct *mm, pgd_t *pgd,
{
return 0;
}
#endif
#ifdef __PAGETABLE_PMD_FOLDED
-@@ -1162,8 +1157,15 @@ static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud,
+@@ -1167,8 +1162,15 @@ static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud,
{
return 0;
}
#endif
int __pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma,
-@@ -1181,11 +1183,23 @@ static inline pud_t *pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long a
+@@ -1186,11 +1188,23 @@ static inline pud_t *pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long a
NULL: pud_offset(pgd, address);
}
#endif /* CONFIG_MMU && !__ARCH_HAS_4LEVEL_HACK */
#if USE_SPLIT_PTLOCKS
-@@ -1409,6 +1423,7 @@ out:
- }
-
+@@ -1400,6 +1414,7 @@ extern unsigned long do_mmap(struct file *, unsigned long,
+ unsigned long, unsigned long,
+ unsigned long, unsigned long);
extern int do_munmap(struct mm_struct *, unsigned long, size_t);
+extern int __do_munmap(struct mm_struct *, unsigned long, size_t);
- extern unsigned long do_brk(unsigned long, unsigned long);
-
-@@ -1466,6 +1481,10 @@ extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long add
+ /* These take the mm semaphore themselves */
+ extern unsigned long vm_brk(unsigned long, unsigned long);
+@@ -1462,6 +1477,10 @@ extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long add
extern struct vm_area_struct * find_vma_prev(struct mm_struct * mm, unsigned long addr,
struct vm_area_struct **pprev);
/* Look up the first VMA which intersects the interval start_addr..end_addr-1,
NULL if none. Assume start_addr < end_addr. */
static inline struct vm_area_struct * find_vma_intersection(struct mm_struct * mm, unsigned long start_addr, unsigned long end_addr)
-@@ -1494,15 +1513,6 @@ static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm,
+@@ -1490,15 +1509,6 @@ static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm,
return vma;
}
struct vm_area_struct *find_extend_vma(struct mm_struct *, unsigned long addr);
int remap_pfn_range(struct vm_area_struct *, unsigned long addr,
unsigned long pfn, unsigned long size, pgprot_t);
-@@ -1606,7 +1616,7 @@ extern int unpoison_memory(unsigned long pfn);
+@@ -1602,7 +1612,7 @@ extern int unpoison_memory(unsigned long pfn);
extern int sysctl_memory_failure_early_kill;
extern int sysctl_memory_failure_recovery;
extern void shake_page(struct page *p, int access);
extern int soft_offline_page(struct page *page, int flags);
extern void dump_page(struct page *page);
-@@ -1637,5 +1647,11 @@ static inline unsigned int debug_guardpage_minorder(void) { return 0; }
+@@ -1633,5 +1643,11 @@ static inline unsigned int debug_guardpage_minorder(void) { return 0; }
static inline bool page_is_guard(struct page *page) { return false; }
#endif /* CONFIG_DEBUG_PAGEALLOC */
#define pmdp_clear_flush_notify(__vma, __address, __pmdp) \
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
-index 650ba2f..af0a58c 100644
+index dff7115..0e001c8 100644
--- a/include/linux/mmzone.h
+++ b/include/linux/mmzone.h
-@@ -379,7 +379,7 @@ struct zone {
+@@ -380,7 +380,7 @@ struct zone {
unsigned long flags; /* zone flags, see below */
/* Zone statistics */
/*
* The target ratio of ACTIVE_ANON to INACTIVE_ANON pages on
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
-index 83ac071..2656e0e 100644
+index 501da4c..ba79bb4 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -12,7 +12,7 @@
struct hid_device_id {
__u16 bus;
diff --git a/include/linux/module.h b/include/linux/module.h
-index 4598bf0..e069d7f 100644
+index fbcafe2..e5d9587 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -17,6 +17,7 @@
#include <linux/percpu.h>
#include <asm/module.h>
-@@ -275,19 +276,16 @@ struct module
+@@ -273,19 +274,16 @@ struct module
int (*init)(void);
/* If this is non-NULL, vfree after init() returns */
/* Arch-specific module values */
struct mod_arch_specific arch;
-@@ -343,6 +341,10 @@ struct module
+@@ -341,6 +339,10 @@ struct module
#ifdef CONFIG_EVENT_TRACING
struct ftrace_event_call **trace_events;
unsigned int num_trace_events;
#endif
#ifdef CONFIG_FTRACE_MCOUNT_RECORD
unsigned int num_ftrace_callsites;
-@@ -390,16 +392,46 @@ bool is_module_address(unsigned long addr);
+@@ -388,16 +390,46 @@ bool is_module_address(unsigned long addr);
bool is_module_percpu_address(unsigned long addr);
bool is_module_text_address(unsigned long addr);
or 0. */
int apply_relocate(Elf_Shdr *sechdrs,
diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
-index c47f4d6..23f9bdb 100644
+index 944bc18..042d291 100644
--- a/include/linux/moduleparam.h
+++ b/include/linux/moduleparam.h
-@@ -260,7 +260,7 @@ static inline void __kernel_param_unlock(void)
+@@ -286,7 +286,7 @@ static inline void __kernel_param_unlock(void)
* @len is usually just sizeof(string).
*/
#define module_param_string(name, string, len, perm) \
= { len, string }; \
__module_param_call(MODULE_PARAM_PREFIX, name, \
¶m_ops_string, \
-@@ -396,7 +396,7 @@ extern int param_set_bint(const char *val, const struct kernel_param *kp);
+@@ -424,7 +424,7 @@ extern int param_set_bint(const char *val, const struct kernel_param *kp);
*/
#define module_param_array_named(name, array, type, nump, perm) \
param_check_##type(name, &(array)[0]); \
return nd->saved_names[nd->depth];
}
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
-index 7e472b7..212d381 100644
+index 33900a5..2072000 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
-@@ -1002,6 +1002,7 @@ struct net_device_ops {
+@@ -1003,6 +1003,7 @@ struct net_device_ops {
int (*ndo_neigh_construct)(struct neighbour *n);
void (*ndo_neigh_destroy)(struct neighbour *n);
};
/*
* The DEVICE structure.
-@@ -1063,7 +1064,7 @@ struct net_device {
+@@ -1064,7 +1065,7 @@ struct net_device {
int iflink;
struct net_device_stats stats;
extern void *prom_early_alloc(unsigned long size);
diff --git a/include/linux/oprofile.h b/include/linux/oprofile.h
-index a4c5624..2dabfb7 100644
+index a4c5624..79d6d88 100644
--- a/include/linux/oprofile.h
+++ b/include/linux/oprofile.h
@@ -139,9 +139,9 @@ int oprofilefs_create_ulong(struct super_block * sb, struct dentry * root,
/** create a directory */
struct dentry * oprofilefs_mkdir(struct super_block * sb, struct dentry * root,
-@@ -163,7 +163,7 @@ ssize_t oprofilefs_ulong_to_user(unsigned long val, char __user * buf, size_t co
- * Read an ASCII string for a number from a userspace buffer and fill *val on success.
- * Returns 0 on success, < 0 on error.
- */
--int oprofilefs_ulong_from_user(unsigned long * val, char const __user * buf, size_t count);
-+int oprofilefs_ulong_from_user(unsigned long * val, char const __user * buf, size_t count) __size_overflow(3);
-
- /** lock for read/write safety */
- extern raw_spinlock_t oprofilefs_lock;
-diff --git a/include/linux/padata.h b/include/linux/padata.h
-index 4633b2f..988bc08 100644
---- a/include/linux/padata.h
-+++ b/include/linux/padata.h
-@@ -129,7 +129,7 @@ struct parallel_data {
- struct padata_instance *pinst;
- struct padata_parallel_queue __percpu *pqueue;
- struct padata_serial_queue __percpu *squeue;
-- atomic_t seq_nr;
-+ atomic_unchecked_t seq_nr;
- atomic_t reorder_objects;
- atomic_t refcnt;
- unsigned int max_seq_nr;
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
-index abb2776..d8b8e15 100644
+index ddbb6a9..be1680e 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
-@@ -750,8 +750,8 @@ struct perf_event {
+@@ -879,8 +879,8 @@ struct perf_event {
enum perf_event_active_state state;
unsigned int attach_state;
/*
* These are the total time in nanoseconds that the event
-@@ -802,8 +802,8 @@ struct perf_event {
+@@ -931,8 +931,8 @@ struct perf_event {
* These accumulate total time (in nanoseconds) that children
* events have been enabled and running, respectively.
*/
/*
diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h
-index 0072a53..c5dcca5 100644
+index e1ac1ce..0675fed 100644
--- a/include/linux/pipe_fs_i.h
+++ b/include/linux/pipe_fs_i.h
-@@ -47,9 +47,9 @@ struct pipe_buffer {
+@@ -45,9 +45,9 @@ struct pipe_buffer {
struct pipe_inode_info {
wait_queue_head_t wait;
unsigned int nrbufs, curbuf, buffers;
/********** include/linux/timer.h **********/
/*
diff --git a/include/linux/preempt.h b/include/linux/preempt.h
-index 58969b2..ead129b 100644
+index 5a710b9..0b0dab9 100644
--- a/include/linux/preempt.h
+++ b/include/linux/preempt.h
-@@ -123,7 +123,7 @@ struct preempt_ops {
+@@ -126,7 +126,7 @@ struct preempt_ops {
void (*sched_in)(struct preempt_notifier *notifier, int cpu);
void (*sched_out)(struct preempt_notifier *notifier,
struct task_struct *next);
/**
* preempt_notifier - key for installing preemption notifiers
+diff --git a/include/linux/printk.h b/include/linux/printk.h
+index 0525927..a5388b6 100644
+--- a/include/linux/printk.h
++++ b/include/linux/printk.h
+@@ -94,6 +94,8 @@ void early_printk(const char *fmt, ...);
+ extern int printk_needs_cpu(int cpu);
+ extern void printk_tick(void);
+
++extern int kptr_restrict;
++
+ #ifdef CONFIG_PRINTK
+ asmlinkage __printf(1, 0)
+ int vprintk(const char *fmt, va_list args);
+@@ -117,7 +119,6 @@ extern bool printk_timed_ratelimit(unsigned long *caller_jiffies,
+
+ extern int printk_delay_msec;
+ extern int dmesg_restrict;
+-extern int kptr_restrict;
+
+ void log_buf_kexec_setup(void);
+ void __init setup_log_buf(int early);
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 85c5073..51fac8b 100644
--- a/include/linux/proc_fs.h
struct ctl_table_header;
struct ctl_table;
-diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
-index c2f1f6a..6fdb196 100644
---- a/include/linux/ptrace.h
-+++ b/include/linux/ptrace.h
-@@ -199,9 +199,10 @@ static inline void ptrace_event(int event, unsigned long message)
- if (unlikely(ptrace_event_enabled(current, event))) {
- current->ptrace_message = message;
- ptrace_notify((event << 8) | SIGTRAP);
-- } else if (event == PTRACE_EVENT_EXEC && unlikely(current->ptrace)) {
-+ } else if (event == PTRACE_EVENT_EXEC) {
- /* legacy EXEC report via SIGTRAP */
-- send_sig(SIGTRAP, current, 0);
-+ if ((current->ptrace & (PT_PTRACED|PT_SEIZED)) == PT_PTRACED)
-+ send_sig(SIGTRAP, current, 0);
- }
- }
-
diff --git a/include/linux/random.h b/include/linux/random.h
index 8f74538..02a1012 100644
--- a/include/linux/random.h
#include <asm/emergency-restart.h>
#endif
-diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h
-index 2213ddc..650212a 100644
---- a/include/linux/reiserfs_fs.h
-+++ b/include/linux/reiserfs_fs.h
-@@ -1406,7 +1406,7 @@ static inline loff_t max_reiserfs_offset(struct inode *inode)
- #define REISERFS_USER_MEM 1 /* reiserfs user memory mode */
-
- #define fs_generation(s) (REISERFS_SB(s)->s_generation_counter)
--#define get_generation(s) atomic_read (&fs_generation(s))
-+#define get_generation(s) atomic_read_unchecked (&fs_generation(s))
- #define FILESYSTEM_CHANGED_TB(tb) (get_generation((tb)->tb_sb) != (tb)->fs_gen)
- #define __fs_changed(gen,s) (gen != get_generation (s))
- #define fs_changed(gen,s) \
-diff --git a/include/linux/reiserfs_fs_sb.h b/include/linux/reiserfs_fs_sb.h
-index 8c9e85c..1698e9a 100644
---- a/include/linux/reiserfs_fs_sb.h
-+++ b/include/linux/reiserfs_fs_sb.h
-@@ -386,7 +386,7 @@ struct reiserfs_sb_info {
- /* Comment? -Hans */
- wait_queue_head_t s_wait;
- /* To be obsoleted soon by per buffer seals.. -Hans */
-- atomic_t s_generation_counter; // increased by one every time the
-+ atomic_unchecked_t s_generation_counter; // increased by one every time the
- // tree gets re-balanced
- unsigned long s_properties; /* File system properties. Currently holds
- on-disk FS format */
diff --git a/include/linux/relay.h b/include/linux/relay.h
-index a822fd7..62b70f6 100644
+index 91cacc3..b55ff74 100644
--- a/include/linux/relay.h
+++ b/include/linux/relay.h
-@@ -159,7 +159,7 @@ struct rchan_callbacks
+@@ -160,7 +160,7 @@ struct rchan_callbacks
* The callback should return 0 if successful, negative if not.
*/
int (*remove_buf_file)(struct dentry *dentry);
/*
* CONFIG_RELAY kernel API, kernel/relay.c
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
-index c6c6084..5bf1212 100644
+index 6fdf027..ff72610 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -147,6 +147,7 @@ struct rfkill_ops {
#define RIO_RESOURCE_MEM 0x00000100
#define RIO_RESOURCE_DOORBELL 0x00000200
diff --git a/include/linux/rmap.h b/include/linux/rmap.h
-index 1cdd62a..e399f0d 100644
+index fd07c45..4676b8e 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -119,9 +119,9 @@ static inline void anon_vma_unlock(struct anon_vma *anon_vma)
void anon_vma_moveto_tail(struct vm_area_struct *);
-int anon_vma_fork(struct vm_area_struct *, struct vm_area_struct *);
+int anon_vma_fork(struct vm_area_struct *, const struct vm_area_struct *);
- void __anon_vma_link(struct vm_area_struct *);
static inline void anon_vma_merge(struct vm_area_struct *vma,
+ struct vm_area_struct *next)
diff --git a/include/linux/sched.h b/include/linux/sched.h
-index 0657368..765f70f 100644
+index 81a173c..85ccd8f 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
-@@ -101,6 +101,7 @@ struct bio_list;
+@@ -100,6 +100,7 @@ struct bio_list;
struct fs_struct;
struct perf_event_context;
struct blk_plug;
extern void arch_pick_mmap_layout(struct mm_struct *mm);
extern unsigned long
arch_get_unmapped_area(struct file *, unsigned long, unsigned long,
-@@ -631,6 +635,17 @@ struct signal_struct {
+@@ -643,6 +647,17 @@ struct signal_struct {
#ifdef CONFIG_TASKSTATS
struct taskstats *stats;
#endif
#ifdef CONFIG_AUDIT
unsigned audit_tty;
struct tty_audit_buf *tty_audit_buf;
-@@ -714,6 +729,11 @@ struct user_struct {
+@@ -726,6 +741,11 @@ struct user_struct {
struct key *session_keyring; /* UID's default session keyring */
#endif
/* Hash table maintenance information */
struct hlist_node uidhash_node;
uid_t uid;
-@@ -1354,8 +1374,8 @@ struct task_struct {
+@@ -1386,8 +1406,8 @@ struct task_struct {
struct list_head thread_group;
struct completion *vfork_done; /* for vfork() */
cputime_t utime, stime, utimescaled, stimescaled;
cputime_t gtime;
-@@ -1371,13 +1391,6 @@ struct task_struct {
+@@ -1403,13 +1423,6 @@ struct task_struct {
struct task_cputime cputime_expires;
struct list_head cpu_timers[3];
char comm[TASK_COMM_LEN]; /* executable name excluding path
- access with [gs]et_task_comm (which lock
it with task_lock())
-@@ -1394,8 +1407,16 @@ struct task_struct {
+@@ -1426,8 +1439,16 @@ struct task_struct {
#endif
/* CPU-specific state of this task */
struct thread_struct thread;
/* open file information */
struct files_struct *files;
/* namespaces */
-@@ -1442,6 +1463,11 @@ struct task_struct {
+@@ -1469,6 +1490,11 @@ struct task_struct {
struct rt_mutex_waiter *pi_blocked_on;
#endif
#ifdef CONFIG_DEBUG_MUTEXES
/* mutex deadlock detection */
struct mutex_waiter *blocked_on;
-@@ -1558,6 +1584,27 @@ struct task_struct {
+@@ -1585,6 +1611,27 @@ struct task_struct {
unsigned long default_timer_slack_ns;
struct list_head *scm_work_list;
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
/* Index of current stored address in ret_stack */
int curr_ret_stack;
-@@ -1592,6 +1639,51 @@ struct task_struct {
+@@ -1619,6 +1666,51 @@ struct task_struct {
#endif
};
/* Future-safe accessor for struct task_struct's cpus_allowed. */
#define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
-@@ -2104,7 +2196,9 @@ void yield(void);
+@@ -2138,7 +2230,9 @@ void yield(void);
extern struct exec_domain default_exec_domain;
union thread_union {
unsigned long stack[THREAD_SIZE/sizeof(long)];
};
-@@ -2137,6 +2231,7 @@ extern struct pid_namespace init_pid_ns;
+@@ -2171,6 +2265,7 @@ extern struct pid_namespace init_pid_ns;
*/
extern struct task_struct *find_task_by_vpid(pid_t nr);
extern struct task_struct *find_task_by_pid_ns(pid_t nr,
struct pid_namespace *ns);
-@@ -2280,7 +2375,7 @@ extern void __cleanup_sighand(struct sighand_struct *);
+@@ -2314,7 +2409,7 @@ extern void __cleanup_sighand(struct sighand_struct *);
extern void exit_itimers(struct signal_struct *);
extern void flush_itimer_signals(void);
extern void daemonize(const char *, ...);
extern int allow_signal(int);
-@@ -2478,13 +2573,17 @@ static inline unsigned long *end_of_stack(struct task_struct *p)
+@@ -2515,13 +2610,17 @@ static inline unsigned long *end_of_stack(struct task_struct *p)
#endif
#define VIDEO_TYPE_MDA 0x10 /* Monochrome Text Display */
diff --git a/include/linux/security.h b/include/linux/security.h
-index 83c18e8..2d98860 100644
+index 673afbb..2b7454b 100644
--- a/include/linux/security.h
+++ b/include/linux/security.h
-@@ -37,6 +37,7 @@
- #include <linux/xfrm.h>
+@@ -26,6 +26,7 @@
+ #include <linux/capability.h>
#include <linux/slab.h>
- #include <linux/xattr.h>
+ #include <linux/err.h>
+#include <linux/grsecurity.h>
- #include <net/flow.h>
- /* Maximum number of letters for an LSM name string */
+ struct linux_binprm;
+ struct cred;
diff --git a/include/linux/seq_file.h b/include/linux/seq_file.h
-index 44f1514..2bbf6c1 100644
+index fc61854..d7c490b 100644
--- a/include/linux/seq_file.h
+++ b/include/linux/seq_file.h
-@@ -24,6 +24,9 @@ struct seq_file {
+@@ -25,6 +25,9 @@ struct seq_file {
struct mutex lock;
const struct seq_operations *op;
int poll_event;
void *private;
};
-@@ -33,6 +36,7 @@ struct seq_operations {
+@@ -34,6 +37,7 @@ struct seq_operations {
void * (*next) (struct seq_file *m, void *v, loff_t *pos);
int (*show) (struct seq_file *m, void *v);
};
/* shm_mode upper byte flags */
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
-index 42854ce..3b7d3c8 100644
+index c168907..c7756db 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
-@@ -655,7 +655,7 @@ static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb)
+@@ -666,7 +666,7 @@ static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb)
*/
static inline int skb_queue_empty(const struct sk_buff_head *list)
{
}
/**
-@@ -668,7 +668,7 @@ static inline int skb_queue_empty(const struct sk_buff_head *list)
+@@ -679,7 +679,7 @@ static inline int skb_queue_empty(const struct sk_buff_head *list)
static inline bool skb_queue_is_last(const struct sk_buff_head *list,
const struct sk_buff *skb)
{
}
/**
-@@ -681,7 +681,7 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,
+@@ -692,7 +692,7 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,
static inline bool skb_queue_is_first(const struct sk_buff_head *list,
const struct sk_buff *skb)
{
}
/**
-@@ -1558,7 +1558,7 @@ static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len)
+@@ -1587,7 +1587,7 @@ static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len)
* NET_IP_ALIGN(2) + ethernet_header(14) + IP_header(20/40) + ports(8)
*/
#ifndef NET_SKB_PAD
extern int ___pskb_trim(struct sk_buff *skb, unsigned int len);
diff --git a/include/linux/slab.h b/include/linux/slab.h
-index 573c809..07e1f43 100644
+index a595dce..c403597 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -11,12 +11,20 @@
/*
* struct kmem_cache related prototypes
-@@ -156,11 +167,12 @@ unsigned int kmem_cache_size(struct kmem_cache *);
- /*
- * Common kmalloc functions provided by all allocators
- */
--void * __must_check __krealloc(const void *, size_t, gfp_t);
--void * __must_check krealloc(const void *, size_t, gfp_t);
-+void * __must_check __krealloc(const void *, size_t, gfp_t) __size_overflow(2);
-+void * __must_check krealloc(const void *, size_t, gfp_t) __size_overflow(2);
+@@ -161,6 +172,7 @@ void * __must_check krealloc(const void *, size_t, gfp_t);
void kfree(const void *);
void kzfree(const void *);
size_t ksize(const void *);
/*
* Allocator specific definitions. These are mainly used to establish optimized
-@@ -287,7 +299,7 @@ static inline void *kmem_cache_alloc_node(struct kmem_cache *cachep,
+@@ -240,6 +252,7 @@ size_t ksize(const void *);
+ * for general use, and so are not documented here. For a full list of
+ * potential flags, always refer to linux/gfp.h.
+ */
++static void *kmalloc_array(size_t n, size_t size, gfp_t flags) __size_overflow(1, 2);
+ static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags)
+ {
+ if (size != 0 && n > ULONG_MAX / size)
+@@ -298,7 +311,7 @@ static inline void *kmem_cache_alloc_node(struct kmem_cache *cachep,
*/
#if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_SLUB) || \
(defined(CONFIG_SLAB) && defined(CONFIG_TRACING))
#define kmalloc_track_caller(size, flags) \
__kmalloc_track_caller(size, flags, _RET_IP_)
#else
-@@ -306,7 +318,7 @@ extern void *__kmalloc_track_caller(size_t, gfp_t, unsigned long);
+@@ -317,7 +330,7 @@ extern void *__kmalloc_track_caller(size_t, gfp_t, unsigned long);
*/
#if defined(CONFIG_DEBUG_SLAB) || defined(CONFIG_SLUB) || \
(defined(CONFIG_SLAB) && defined(CONFIG_TRACING))
__kmalloc_node_track_caller(size, flags, node, \
_RET_IP_)
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h
-index fbd1117..c0bd874 100644
+index fbd1117..d4d8ef8 100644
--- a/include/linux/slab_def.h
+++ b/include/linux/slab_def.h
@@ -66,10 +66,10 @@ struct kmem_cache {
#ifdef CONFIG_TRACING
extern void *kmem_cache_alloc_trace(size_t size,
-@@ -125,6 +125,7 @@ static inline size_t slab_buffer_size(struct kmem_cache *cachep)
- }
- #endif
-
-+static __always_inline void *kmalloc(size_t size, gfp_t flags) __size_overflow(1);
- static __always_inline void *kmalloc(size_t size, gfp_t flags)
- {
- struct kmem_cache *cachep;
-@@ -160,7 +161,7 @@ found:
+@@ -160,7 +160,7 @@ found:
}
#ifdef CONFIG_NUMA
extern void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
#ifdef CONFIG_TRACING
-@@ -179,6 +180,7 @@ kmem_cache_alloc_node_trace(size_t size,
- }
- #endif
-
-+static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node) __size_overflow(1);
- static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
- {
- struct kmem_cache *cachep;
diff --git a/include/linux/slob_def.h b/include/linux/slob_def.h
-index 0ec00b3..65e7e0e 100644
+index 0ec00b3..39cb7fc 100644
--- a/include/linux/slob_def.h
+++ b/include/linux/slob_def.h
-@@ -9,8 +9,9 @@ static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep,
+@@ -9,7 +9,7 @@ static __always_inline void *kmem_cache_alloc(struct kmem_cache *cachep,
return kmem_cache_alloc_node(cachep, flags, -1);
}
-void *__kmalloc_node(size_t size, gfp_t flags, int node);
+void *__kmalloc_node(size_t size, gfp_t flags, int node) __size_overflow(1);
-+static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node) __size_overflow(1);
static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
{
- return __kmalloc_node(size, flags, node);
-@@ -24,11 +25,13 @@ static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
- * kmalloc is the normal method of allocating memory
- * in the kernel.
- */
-+static __always_inline void *kmalloc(size_t size, gfp_t flags) __size_overflow(1);
- static __always_inline void *kmalloc(size_t size, gfp_t flags)
- {
+@@ -29,6 +29,7 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags)
return __kmalloc_node(size, flags, -1);
}
{
return kmalloc(size, flags);
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
-index a32bcfd..d26bd6e 100644
+index c2f8c8b..be9e036 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
-@@ -89,7 +89,7 @@ struct kmem_cache {
+@@ -92,7 +92,7 @@ struct kmem_cache {
struct kmem_cache_order_objects max;
struct kmem_cache_order_objects min;
gfp_t allocflags; /* gfp flags to use on each alloc */
void (*ctor)(void *);
int inuse; /* Offset to metadata */
int align; /* Alignment */
-@@ -204,6 +204,7 @@ static __always_inline int kmalloc_index(size_t size)
- * This ought to end up with a global pointer to the right cache
- * in kmalloc_caches.
+@@ -153,6 +153,7 @@ extern struct kmem_cache *kmalloc_caches[SLUB_PAGE_SHIFT];
+ * Sorry that the following has to be that ugly but some versions of GCC
+ * have trouble with constant propagation and loops.
*/
-+static __always_inline struct kmem_cache *kmalloc_slab(size_t size) __size_overflow(1);
- static __always_inline struct kmem_cache *kmalloc_slab(size_t size)
++static __always_inline int kmalloc_index(size_t size) __size_overflow(1);
+ static __always_inline int kmalloc_index(size_t size)
{
- int index = kmalloc_index(size);
-@@ -215,9 +216,11 @@ static __always_inline struct kmem_cache *kmalloc_slab(size_t size)
+ if (!size)
+@@ -218,7 +219,7 @@ static __always_inline struct kmem_cache *kmalloc_slab(size_t size)
}
void *kmem_cache_alloc(struct kmem_cache *, gfp_t);
+void *__kmalloc(size_t size, gfp_t flags) __alloc_size(1) __size_overflow(1);
static __always_inline void *
-+kmalloc_order(size_t size, gfp_t flags, unsigned int order) __size_overflow(1);
-+static __always_inline void *
kmalloc_order(size_t size, gfp_t flags, unsigned int order)
- {
- void *ret = (void *) __get_free_pages(flags | __GFP_COMP, order);
-@@ -256,12 +259,14 @@ kmalloc_order_trace(size_t size, gfp_t flags, unsigned int order)
+@@ -259,6 +260,7 @@ kmalloc_order_trace(size_t size, gfp_t flags, unsigned int order)
}
#endif
static __always_inline void *kmalloc_large(size_t size, gfp_t flags)
{
unsigned int order = get_order(size);
- return kmalloc_order_trace(size, flags, order);
- }
-
-+static __always_inline void *kmalloc(size_t size, gfp_t flags) __size_overflow(1);
- static __always_inline void *kmalloc(size_t size, gfp_t flags)
- {
- if (__builtin_constant_p(size)) {
-@@ -281,7 +286,7 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags)
+@@ -284,7 +286,7 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags)
}
#ifdef CONFIG_NUMA
void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
#ifdef CONFIG_TRACING
-@@ -298,6 +303,7 @@ kmem_cache_alloc_node_trace(struct kmem_cache *s,
- }
- #endif
-
-+static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node) __size_overflow(1);
- static __always_inline void *kmalloc_node(size_t size, gfp_t flags, int node)
- {
- if (__builtin_constant_p(size) &&
diff --git a/include/linux/sonet.h b/include/linux/sonet.h
index de8832d..0147b46 100644
--- a/include/linux/sonet.h
__SONET_ITEMS
#undef __HANDLE_ITEM
};
-diff --git a/include/linux/stddef.h b/include/linux/stddef.h
-index 6a40c76..1747b67 100644
---- a/include/linux/stddef.h
-+++ b/include/linux/stddef.h
-@@ -3,14 +3,10 @@
-
- #include <linux/compiler.h>
-
-+#ifdef __KERNEL__
-+
- #undef NULL
--#if defined(__cplusplus)
--#define NULL 0
--#else
- #define NULL ((void *)0)
--#endif
--
--#ifdef __KERNEL__
-
- enum {
- false = 0,
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
-index 2c5993a..b0e79f0 100644
+index 523547e..2cb7140 100644
--- a/include/linux/sunrpc/clnt.h
+++ b/include/linux/sunrpc/clnt.h
-@@ -172,9 +172,9 @@ static inline unsigned short rpc_get_port(const struct sockaddr *sap)
+@@ -174,9 +174,9 @@ static inline unsigned short rpc_get_port(const struct sockaddr *sap)
{
switch (sap->sa_family) {
case AF_INET:
}
return 0;
}
-@@ -207,7 +207,7 @@ static inline bool __rpc_cmp_addr4(const struct sockaddr *sap1,
+@@ -209,7 +209,7 @@ static inline bool __rpc_cmp_addr4(const struct sockaddr *sap1,
static inline bool __rpc_copy_addr4(struct sockaddr *dst,
const struct sockaddr *src)
{
struct sockaddr_in *dsin = (struct sockaddr_in *) dst;
dsin->sin_family = ssin->sin_family;
-@@ -310,7 +310,7 @@ static inline u32 rpc_get_scope_id(const struct sockaddr *sa)
+@@ -312,7 +312,7 @@ static inline u32 rpc_get_scope_id(const struct sockaddr *sa)
if (sa->sa_family != AF_INET6)
return 0;
#endif /* __KERNEL__ */
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h
-index e775689..9e206d9 100644
+index dc0c3cc..8503fb6 100644
--- a/include/linux/sunrpc/sched.h
+++ b/include/linux/sunrpc/sched.h
-@@ -105,6 +105,7 @@ struct rpc_call_ops {
- void (*rpc_call_done)(struct rpc_task *, void *);
+@@ -106,6 +106,7 @@ struct rpc_call_ops {
+ void (*rpc_count_stats)(struct rpc_task *, void *);
void (*rpc_release)(void *);
};
+typedef struct rpc_call_ops __no_const rpc_call_ops_no_const;
struct rpc_task_setup {
struct rpc_task *task;
diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h
-index c14fe86..393245e 100644
+index 0b8e3e6..33e0a01 100644
--- a/include/linux/sunrpc/svc_rdma.h
+++ b/include/linux/sunrpc/svc_rdma.h
@@ -53,15 +53,15 @@ extern unsigned int svcrdma_ord;
#define RPCRDMA_VERSION 1
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
-index bb9127d..34ab358 100644
+index c34b4c8..a65b67d 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -155,7 +155,11 @@ enum
/* CTL_VM names: */
enum
-@@ -968,6 +972,8 @@ typedef int proc_handler (struct ctl_table *ctl, int write,
+@@ -948,6 +952,8 @@ typedef int proc_handler (struct ctl_table *ctl, int write,
extern int proc_dostring(struct ctl_table *, int,
void __user *, size_t *, loff_t *);
extern int proc_dointvec(struct ctl_table *, int,
void __user *, size_t *, loff_t *);
extern int proc_dointvec_minmax(struct ctl_table *, int,
-diff --git a/include/linux/tracehook.h b/include/linux/tracehook.h
-index a71a292..51bd91d 100644
---- a/include/linux/tracehook.h
-+++ b/include/linux/tracehook.h
-@@ -54,12 +54,12 @@ struct linux_binprm;
- /*
- * ptrace report for syscall entry and exit looks identical.
- */
--static inline void ptrace_report_syscall(struct pt_regs *regs)
-+static inline int ptrace_report_syscall(struct pt_regs *regs)
- {
- int ptrace = current->ptrace;
-
- if (!(ptrace & PT_PTRACED))
-- return;
-+ return 0;
-
- ptrace_notify(SIGTRAP | ((ptrace & PT_TRACESYSGOOD) ? 0x80 : 0));
-
-@@ -72,6 +72,8 @@ static inline void ptrace_report_syscall(struct pt_regs *regs)
- send_sig(current->exit_code, current, 1);
- current->exit_code = 0;
- }
-+
-+ return fatal_signal_pending(current);
- }
-
- /**
-@@ -96,8 +98,7 @@ static inline void ptrace_report_syscall(struct pt_regs *regs)
- static inline __must_check int tracehook_report_syscall_entry(
- struct pt_regs *regs)
- {
-- ptrace_report_syscall(regs);
-- return 0;
-+ return ptrace_report_syscall(regs);
- }
-
- /**
diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h
index ff7dc08..893e1bd 100644
--- a/include/linux/tty_ldisc.h
struct tty_ldisc {
diff --git a/include/linux/types.h b/include/linux/types.h
-index e5fa503..df6e8a4 100644
+index 7f480db..175c256 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
-@@ -214,10 +214,26 @@ typedef struct {
+@@ -220,10 +220,26 @@ typedef struct {
int counter;
} atomic_t;
struct list_head {
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h
-index 5ca0951..53a2fff 100644
+index 5ca0951..ab496a5 100644
--- a/include/linux/uaccess.h
+++ b/include/linux/uaccess.h
@@ -76,11 +76,11 @@ static inline unsigned long __copy_from_user_nocache(void *to,
ret; \
})
-@@ -105,7 +105,7 @@ extern long __probe_kernel_read(void *dst, const void *src, size_t size);
- * Safely write to address @dst from the buffer at @src. If a kernel fault
- * happens, handle that and return -EFAULT.
- */
--extern long notrace probe_kernel_write(void *dst, const void *src, size_t size);
-+extern long notrace probe_kernel_write(void *dst, const void *src, size_t size) __size_overflow(3);
- extern long notrace __probe_kernel_write(void *dst, const void *src, size_t size);
-
- #endif /* __LINUX_UACCESS_H__ */
diff --git a/include/linux/unaligned/access_ok.h b/include/linux/unaligned/access_ok.h
index 99c1b4d..bb94261 100644
--- a/include/linux/unaligned/access_ok.h
static inline void put_unaligned_le16(u16 val, void *p)
diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h
-index 0d3f988..000f101 100644
+index 547e59c..db6ad19 100644
--- a/include/linux/usb/renesas_usbhs.h
+++ b/include/linux/usb/renesas_usbhs.h
@@ -39,7 +39,7 @@ enum {
+ MODULE_GRSEC
diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h
-index dcdfc2b..cce598d 100644
+index dcdfc2b..ec79ab5 100644
--- a/include/linux/vmalloc.h
+++ b/include/linux/vmalloc.h
@@ -14,6 +14,11 @@ struct vm_area_struct; /* vma defining user mapping in mm_types.h */
/* bits [20..32] reserved for arch specific ioremap internals */
/*
-@@ -51,18 +56,18 @@ static inline void vmalloc_init(void)
- }
- #endif
-
--extern void *vmalloc(unsigned long size);
--extern void *vzalloc(unsigned long size);
--extern void *vmalloc_user(unsigned long size);
--extern void *vmalloc_node(unsigned long size, int node);
--extern void *vzalloc_node(unsigned long size, int node);
--extern void *vmalloc_exec(unsigned long size);
--extern void *vmalloc_32(unsigned long size);
--extern void *vmalloc_32_user(unsigned long size);
--extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
-+extern void *vmalloc(unsigned long size) __size_overflow(1);
-+extern void *vzalloc(unsigned long size) __size_overflow(1);
-+extern void *vmalloc_user(unsigned long size) __size_overflow(1);
-+extern void *vmalloc_node(unsigned long size, int node) __size_overflow(1);
-+extern void *vzalloc_node(unsigned long size, int node) __size_overflow(1);
-+extern void *vmalloc_exec(unsigned long size) __size_overflow(1);
-+extern void *vmalloc_32(unsigned long size) __size_overflow(1);
-+extern void *vmalloc_32_user(unsigned long size) __size_overflow(1);
-+extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) __size_overflow(1);
+@@ -62,7 +67,7 @@ extern void *vmalloc_32_user(unsigned long size);
+ extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
extern void *__vmalloc_node_range(unsigned long size, unsigned long align,
unsigned long start, unsigned long end, gfp_t gfp_mask,
- pgprot_t prot, int node, void *caller);
const struct v4l2_ioctl_ops *core_ops;
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
-index c7c40f1..4f01585 100644
+index 96d2221..2292f89 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -56,7 +56,7 @@ int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority local);
ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);
ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
unsigned int (*poll) (struct file *, struct poll_table_struct *);
-@@ -68,6 +68,7 @@ struct v4l2_file_operations {
+@@ -71,6 +71,7 @@ struct v4l2_file_operations {
int (*open) (struct file *);
int (*release) (struct file *);
};
/*
* Newer version of video_device, handled by videodev2.c
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
-index 3f5d60f..44210ed 100644
+index 3cb939c..f23c6bb 100644
--- a/include/media/v4l2-ioctl.h
+++ b/include/media/v4l2-ioctl.h
-@@ -278,7 +278,7 @@ struct v4l2_ioctl_ops {
+@@ -281,7 +281,7 @@ struct v4l2_ioctl_ops {
long (*vidioc_default) (struct file *file, void *fh,
bool valid_prio, int cmd, void *arg);
};
/* v4l debugging and diagnostics */
diff --git a/include/net/caif/caif_hsi.h b/include/net/caif/caif_hsi.h
-index 8d55251..dfe5b0a 100644
+index 6db8ecf..8c23861 100644
--- a/include/net/caif/caif_hsi.h
+++ b/include/net/caif/caif_hsi.h
@@ -98,7 +98,7 @@ struct cfhsi_drv {
fib_info_update_nh_saddr((net), &FIB_RES_NH(res)))
#define FIB_RES_GW(res) (FIB_RES_NH(res).nh_gw)
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h
-index ebe517f..1bd286b 100644
+index 72522f0..6f03a2b 100644
--- a/include/net/ip_vs.h
+++ b/include/net/ip_vs.h
-@@ -509,7 +509,7 @@ struct ip_vs_conn {
+@@ -510,7 +510,7 @@ struct ip_vs_conn {
struct ip_vs_conn *control; /* Master control connection */
atomic_t n_control; /* Number of controlled ones */
struct ip_vs_dest *dest; /* real server */
/* packet transmitter for different forwarding methods. If it
mangles the packet, it must return NF_DROP or better NF_STOLEN,
-@@ -647,7 +647,7 @@ struct ip_vs_dest {
+@@ -648,7 +648,7 @@ struct ip_vs_dest {
__be16 port; /* port number of the server */
union nf_inet_addr addr; /* IP address of the server */
volatile unsigned flags; /* dest status flags */
/* Protect concurent access to :
* o self->open_count
diff --git a/include/net/iucv/af_iucv.h b/include/net/iucv/af_iucv.h
-index 0954ec9..7413562 100644
+index cc7c197..9f2da2a 100644
--- a/include/net/iucv/af_iucv.h
+++ b/include/net/iucv/af_iucv.h
-@@ -138,7 +138,7 @@ struct iucv_sock {
+@@ -141,7 +141,7 @@ struct iucv_sock {
struct iucv_sock_list {
struct hlist_head head;
rwlock_t lock;
struct pneigh_entry {
struct pneigh_entry *next;
diff --git a/include/net/netlink.h b/include/net/netlink.h
-index cb1f350..3279d2c 100644
+index f394fe5..fd073f9 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
-@@ -569,7 +569,7 @@ static inline void *nlmsg_get_pos(struct sk_buff *skb)
+@@ -534,7 +534,7 @@ static inline void *nlmsg_get_pos(struct sk_buff *skb)
static inline void nlmsg_trim(struct sk_buff *skb, const void *mark)
{
if (mark)
#ifdef CONFIG_IP_MROUTE
#ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
-index d368561..96aaa17 100644
+index a2ef814..31a8e3f 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -318,9 +318,9 @@ do { \
#define SCTP_DISABLE_DEBUG
#define SCTP_ASSERT(expr, str, func)
diff --git a/include/net/sock.h b/include/net/sock.h
-index 91c1c8b..15ae923 100644
+index 5a0a58a..2e3d4d0 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
-@@ -299,7 +299,7 @@ struct sock {
+@@ -302,7 +302,7 @@ struct sock {
#ifdef CONFIG_RPS
__u32 sk_rxhash;
#endif
int sk_rcvbuf;
struct sk_filter __rcu *sk_filter;
-@@ -1660,7 +1660,7 @@ static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags)
+@@ -1691,7 +1691,7 @@ static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags)
}
static inline int skb_do_copy_data_nocache(struct sock *sk, struct sk_buff *skb,
{
if (skb->ip_summed == CHECKSUM_NONE) {
diff --git a/include/net/tcp.h b/include/net/tcp.h
-index 2d80c29..aa07caf 100644
+index f75a04d..702cf06 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
-@@ -1426,7 +1426,7 @@ struct tcp_seq_afinfo {
+@@ -1425,7 +1425,7 @@ struct tcp_seq_afinfo {
char *name;
sa_family_t family;
const struct file_operations *seq_fops;
struct tcp_iter_state {
diff --git a/include/net/udp.h b/include/net/udp.h
-index e39592f..fef9680 100644
+index 5d606d9..e879f7b 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
-@@ -243,7 +243,7 @@ struct udp_seq_afinfo {
+@@ -244,7 +244,7 @@ struct udp_seq_afinfo {
sa_family_t family;
struct udp_table *udp_table;
const struct file_operations *seq_fops;
struct udp_iter_state {
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
-index 89174e2..1f82598 100644
+index 96239e7..c85b032 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -505,7 +505,7 @@ struct xfrm_policy {
/**
* iw_create_cm_id - Create an IW CM identifier.
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
-index 6a3922f..0b73022 100644
+index 8f9dfba..610ab6c 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
-@@ -748,6 +748,7 @@ struct libfc_function_template {
+@@ -756,6 +756,7 @@ struct libfc_function_template {
*/
void (*disc_stop_final) (struct fc_lport *);
};
/**
* struct fc_disc - Discovery context
-@@ -851,7 +852,7 @@ struct fc_lport {
+@@ -861,7 +862,7 @@ struct fc_lport {
struct fc_vport *vport;
/* Operational Information */
u8 qfull;
enum fc_lport_state state;
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
-index 77273f2..dd4031f 100644
+index 6efb2e1..cdad57f 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
-@@ -161,9 +161,9 @@ struct scsi_device {
+@@ -162,9 +162,9 @@ struct scsi_device {
unsigned int max_device_blocked; /* what device_blocked counts down from */
#define SCSI_DEFAULT_DEVICE_BLOCKED 3
struct device sdev_gendev,
sdev_dev;
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
-index 2a65167..91e01f8 100644
+index 719faf1..d1154d4 100644
--- a/include/scsi/scsi_transport_fc.h
+++ b/include/scsi/scsi_transport_fc.h
-@@ -711,7 +711,7 @@ struct fc_function_template {
+@@ -739,7 +739,7 @@ struct fc_function_template {
unsigned long show_host_system_hostname:1;
unsigned long disable_target_scan:1;
struct snd_info_entry_ops {
int (*open)(struct snd_info_entry *entry,
diff --git a/include/sound/pcm.h b/include/sound/pcm.h
-index 0cf91b2..b70cae4 100644
+index 0d11128..814178e 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -81,6 +81,7 @@ struct snd_pcm_ops {
/*
* CSP private data
diff --git a/include/sound/soc.h b/include/sound/soc.h
-index 0992dff..bb366fe 100644
+index 2ebf787..0276839 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
-@@ -682,7 +682,7 @@ struct snd_soc_platform_driver {
+@@ -711,7 +711,7 @@ struct snd_soc_platform_driver {
/* platform IO - used for platform DAPM */
unsigned int (*read)(struct snd_soc_platform *, unsigned int);
int (*write)(struct snd_soc_platform *, unsigned int, unsigned int);
struct snd_soc_platform {
const char *name;
-@@ -852,7 +852,7 @@ struct snd_soc_pcm_runtime {
+@@ -887,7 +887,7 @@ struct snd_soc_pcm_runtime {
struct snd_soc_dai_link *dai_link;
struct mutex pcm_mutex;
enum snd_soc_pcm_subclass pcm_subclass;
unsigned int complete:1;
unsigned int dev_registered:1;
diff --git a/include/sound/ymfpci.h b/include/sound/ymfpci.h
-index 444cd6b..3327cc5 100644
+index 4119966..1a4671c 100644
--- a/include/sound/ymfpci.h
+++ b/include/sound/ymfpci.h
@@ -358,7 +358,7 @@ struct snd_ymfpci {
const struct firmware *dsp_microcode;
const struct firmware *controller_microcode;
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
-index fe73eb8..56388b1 100644
+index aaccc5f..092d568 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
-@@ -443,7 +443,7 @@ struct t10_reservation_ops {
+@@ -447,7 +447,7 @@ struct t10_reservation_ops {
int (*t10_seq_non_holder)(struct se_cmd *, unsigned char *, u32);
int (*t10_pr_register)(struct se_cmd *);
int (*t10_pr_clear)(struct se_cmd *);
struct t10_reservation {
/* Reservation effects all target ports */
-@@ -561,8 +561,8 @@ struct se_cmd {
+@@ -576,7 +576,7 @@ struct se_cmd {
atomic_t t_se_count;
atomic_t t_task_cdbs_left;
atomic_t t_task_cdbs_ex_left;
- atomic_t t_task_cdbs_sent;
-- atomic_t t_transport_aborted;
+ atomic_unchecked_t t_task_cdbs_sent;
-+ atomic_unchecked_t t_transport_aborted;
- atomic_t t_transport_active;
- atomic_t t_transport_complete;
- atomic_t t_transport_queue_active;
-@@ -799,7 +799,7 @@ struct se_device {
+ unsigned int transport_state;
+ #define CMD_T_ABORTED (1 << 0)
+ #define CMD_T_ACTIVE (1 << 1)
+@@ -802,7 +802,7 @@ struct se_device {
spinlock_t stats_lock;
/* Active commands on this virtual SE device */
atomic_t simple_cmds;
atomic_t execute_tasks;
atomic_t dev_ordered_sync;
atomic_t dev_qf_count;
+diff --git a/include/trace/events/fs.h b/include/trace/events/fs.h
+new file mode 100644
+index 0000000..2efe49d
+--- /dev/null
++++ b/include/trace/events/fs.h
+@@ -0,0 +1,53 @@
++#undef TRACE_SYSTEM
++#define TRACE_SYSTEM fs
++
++#if !defined(_TRACE_FS_H) || defined(TRACE_HEADER_MULTI_READ)
++#define _TRACE_FS_H
++
++#include <linux/fs.h>
++#include <linux/tracepoint.h>
++
++TRACE_EVENT(do_sys_open,
++
++ TP_PROTO(char *filename, int flags, int mode),
++
++ TP_ARGS(filename, flags, mode),
++
++ TP_STRUCT__entry(
++ __string( filename, filename )
++ __field( int, flags )
++ __field( int, mode )
++ ),
++
++ TP_fast_assign(
++ __assign_str(filename, filename);
++ __entry->flags = flags;
++ __entry->mode = mode;
++ ),
++
++ TP_printk("\"%s\" %x %o",
++ __get_str(filename), __entry->flags, __entry->mode)
++);
++
++TRACE_EVENT(open_exec,
++
++ TP_PROTO(const char *filename),
++
++ TP_ARGS(filename),
++
++ TP_STRUCT__entry(
++ __string( filename, filename )
++ ),
++
++ TP_fast_assign(
++ __assign_str(filename, filename);
++ ),
++
++ TP_printk("\"%s\"",
++ __get_str(filename))
++);
++
++#endif /* _TRACE_FS_H */
++
++/* This part must be outside protection */
++#include <trace/define_trace.h>
diff --git a/include/trace/events/irq.h b/include/trace/events/irq.h
index 1c09820..7f5ec79 100644
--- a/include/trace/events/irq.h
TP_ARGS(irq, action, ret),
diff --git a/include/video/udlfb.h b/include/video/udlfb.h
-index c41f308..6918de3 100644
+index f9466fa..f4e2b81 100644
--- a/include/video/udlfb.h
+++ b/include/video/udlfb.h
-@@ -52,10 +52,10 @@ struct dlfb_data {
+@@ -53,10 +53,10 @@ struct dlfb_data {
u32 pseudo_palette[256];
int blank_mode; /*one of FB_BLANK_ */
/* blit-only rendering path metrics, exposed through sysfs */
void *pmi_pal;
u8 *vbe_state_orig; /*
diff --git a/init/Kconfig b/init/Kconfig
-index 3f42cd6..613f41d 100644
+index 6cfd71d..73cb68d 100644
--- a/init/Kconfig
+++ b/init/Kconfig
-@@ -799,6 +799,7 @@ endif # CGROUPS
+@@ -790,6 +790,7 @@ endif # CGROUPS
config CHECKPOINT_RESTORE
bool "Checkpoint/restore support" if EXPERT
default n
help
Enables additional kernel features in a sake of checkpoint/restore.
-@@ -1249,7 +1250,7 @@ config SLUB_DEBUG
+@@ -1240,7 +1241,7 @@ config SLUB_DEBUG
config COMPAT_BRK
bool "Disable heap randomization"
Randomizing heap placement makes heap exploits harder, but it
also breaks ancient binaries (including anything libc5 based).
diff --git a/init/do_mounts.c b/init/do_mounts.c
-index 2974c8b..0b863ae 100644
+index 42b0707..c06eef4 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -326,11 +326,11 @@ static void __init get_fs_names(char *page)
if (!S_ISBLK(stat.st_mode))
return 0;
diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
-index 3098a38..253064e 100644
+index 9047330..de0d1fb 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
-@@ -44,13 +44,13 @@ static void __init handle_initrd(void)
+@@ -43,13 +43,13 @@ static void __init handle_initrd(void)
create_dev("/dev/root.old", Root_RAM0);
/* mount initrd on rootfs' /root */
mount_block_root("/dev/root.old", root_mountflags & ~MS_RDONLY);
/*
* In case that a resume from disk is carried out by linuxrc or one of
-@@ -67,15 +67,15 @@ static void __init handle_initrd(void)
+@@ -66,15 +66,15 @@ static void __init handle_initrd(void)
/* move initrd to rootfs' /old */
sys_fchdir(old_fd);
return;
}
-@@ -83,17 +83,17 @@ static void __init handle_initrd(void)
+@@ -82,17 +82,17 @@ static void __init handle_initrd(void)
mount_root();
printk(KERN_NOTICE "Trying to move old root to /initrd ... ");
printk(KERN_NOTICE "Trying to free ramdisk memory ... ");
if (fd < 0) {
error = fd;
-@@ -116,11 +116,11 @@ int __init initrd_load(void)
+@@ -115,11 +115,11 @@ int __init initrd_load(void)
* mounted in the normal path.
*/
if (rd_load_image("/initrd.image") && ROOT_DEV != Root_RAM0) {
next_state = Reset;
return 0;
diff --git a/init/main.c b/init/main.c
-index ff49a6d..5fa0429 100644
+index b08c5f7..09f865e 100644
--- a/init/main.c
+++ b/init/main.c
-@@ -96,6 +96,8 @@ static inline void mark_rodata_ro(void) { }
+@@ -95,6 +95,8 @@ static inline void mark_rodata_ro(void) { }
extern void tc_init(void);
#endif
/*
* Debug helper: via this flag we know that we are in 'early bootup code'
* where only the boot processor is running with IRQ disabled. This means
-@@ -149,6 +151,49 @@ static int __init set_reset_devices(char *str)
+@@ -148,6 +150,49 @@ static int __init set_reset_devices(char *str)
__setup("reset_devices", set_reset_devices);
static const char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
const char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
static const char *panic_later, *panic_param;
-@@ -675,6 +720,7 @@ int __init_or_module do_one_initcall(initcall_t fn)
+@@ -674,6 +719,7 @@ int __init_or_module do_one_initcall(initcall_t fn)
{
int count = preempt_count();
int ret;
if (initcall_debug)
ret = do_one_initcall_debug(fn);
-@@ -687,15 +733,15 @@ int __init_or_module do_one_initcall(initcall_t fn)
+@@ -686,15 +732,15 @@ int __init_or_module do_one_initcall(initcall_t fn)
sprintf(msgbuf, "error code %d ", ret);
if (preempt_count() != count) {
}
return ret;
-@@ -814,7 +860,7 @@ static int __init kernel_init(void * unused)
+@@ -865,7 +911,7 @@ static int __init kernel_init(void * unused)
do_basic_setup();
/* Open the /dev/console on the rootfs, this should never fail */
printk(KERN_WARNING "Warning: unable to open an initial console.\n");
(void) sys_dup(0);
-@@ -827,11 +873,13 @@ static int __init kernel_init(void * unused)
+@@ -878,11 +924,13 @@ static int __init kernel_init(void * unused)
if (!ramdisk_execute_command)
ramdisk_execute_command = "/init";
* Ok, we have completed the initial bootup, and
* we're essentially up and running. Get rid of the
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
-index 86ee272..773d937 100644
+index 28bd64d..c66b72a 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -156,6 +156,7 @@ static struct inode *mqueue_get_inode(struct super_block *sb,
sem_params.flg = semflg;
sem_params.u.nsems = nsems;
diff --git a/ipc/shm.c b/ipc/shm.c
-index b76be5b..859e750 100644
+index 406c5b2..bc66d67 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -69,6 +69,14 @@ static void shm_destroy (struct ipc_namespace *ns, struct shmid_kernel *shp);
current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim;
set_fs(fs);
diff --git a/kernel/audit.c b/kernel/audit.c
-index bb0eb5b..cf2a03a 100644
+index 1c7f2c6..9ba5359 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -115,7 +115,7 @@ u32 audit_sig_sid = 0;
* nsown_capable - Check superior capability to one's own user_ns
* @cap: The capability in question
diff --git a/kernel/compat.c b/kernel/compat.c
-index f346ced..aa2b1f4 100644
+index d2c67aa..a629b2e 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -13,6 +13,7 @@
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/signal.h>
-@@ -168,7 +169,7 @@ static long compat_nanosleep_restart(struct restart_block *restart)
+@@ -220,7 +221,7 @@ static long compat_nanosleep_restart(struct restart_block *restart)
mm_segment_t oldfs;
long ret;
oldfs = get_fs();
set_fs(KERNEL_DS);
ret = hrtimer_nanosleep_restart(restart);
-@@ -200,7 +201,7 @@ asmlinkage long compat_sys_nanosleep(struct compat_timespec __user *rqtp,
+@@ -252,7 +253,7 @@ asmlinkage long compat_sys_nanosleep(struct compat_timespec __user *rqtp,
oldfs = get_fs();
set_fs(KERNEL_DS);
ret = hrtimer_nanosleep(&tu,
HRTIMER_MODE_REL, CLOCK_MONOTONIC);
set_fs(oldfs);
-@@ -309,7 +310,7 @@ asmlinkage long compat_sys_sigpending(compat_old_sigset_t __user *set)
+@@ -361,7 +362,7 @@ asmlinkage long compat_sys_sigpending(compat_old_sigset_t __user *set)
mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (ret == 0)
ret = put_user(s, set);
-@@ -332,8 +333,8 @@ asmlinkage long compat_sys_sigprocmask(int how, compat_old_sigset_t __user *set,
- old_fs = get_fs();
- set_fs(KERNEL_DS);
- ret = sys_sigprocmask(how,
-- set ? (old_sigset_t __user *) &s : NULL,
-- oset ? (old_sigset_t __user *) &s : NULL);
-+ set ? (old_sigset_t __force_user *) &s : NULL,
-+ oset ? (old_sigset_t __force_user *) &s : NULL);
- set_fs(old_fs);
- if (ret == 0)
- if (oset)
-@@ -370,7 +371,7 @@ asmlinkage long compat_sys_old_getrlimit(unsigned int resource,
+@@ -451,7 +452,7 @@ asmlinkage long compat_sys_old_getrlimit(unsigned int resource,
mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (!ret) {
-@@ -442,7 +443,7 @@ asmlinkage long compat_sys_getrusage(int who, struct compat_rusage __user *ru)
+@@ -523,7 +524,7 @@ asmlinkage long compat_sys_getrusage(int who, struct compat_rusage __user *ru)
mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (ret)
-@@ -469,8 +470,8 @@ compat_sys_wait4(compat_pid_t pid, compat_uint_t __user *stat_addr, int options,
+@@ -550,8 +551,8 @@ compat_sys_wait4(compat_pid_t pid, compat_uint_t __user *stat_addr, int options,
set_fs (KERNEL_DS);
ret = sys_wait4(pid,
(stat_addr ?
set_fs (old_fs);
if (ret > 0) {
-@@ -495,8 +496,8 @@ asmlinkage long compat_sys_waitid(int which, compat_pid_t pid,
+@@ -576,8 +577,8 @@ asmlinkage long compat_sys_waitid(int which, compat_pid_t pid,
memset(&info, 0, sizeof(info));
set_fs(KERNEL_DS);
set_fs(old_fs);
if ((ret < 0) || (info.si_signo == 0))
-@@ -626,8 +627,8 @@ long compat_sys_timer_settime(timer_t timer_id, int flags,
+@@ -707,8 +708,8 @@ long compat_sys_timer_settime(timer_t timer_id, int flags,
oldfs = get_fs();
set_fs(KERNEL_DS);
err = sys_timer_settime(timer_id, flags,
set_fs(oldfs);
if (!err && old && put_compat_itimerspec(old, &oldts))
return -EFAULT;
-@@ -644,7 +645,7 @@ long compat_sys_timer_gettime(timer_t timer_id,
+@@ -725,7 +726,7 @@ long compat_sys_timer_gettime(timer_t timer_id,
oldfs = get_fs();
set_fs(KERNEL_DS);
err = sys_timer_gettime(timer_id,
set_fs(oldfs);
if (!err && put_compat_itimerspec(setting, &ts))
return -EFAULT;
-@@ -663,7 +664,7 @@ long compat_sys_clock_settime(clockid_t which_clock,
+@@ -744,7 +745,7 @@ long compat_sys_clock_settime(clockid_t which_clock,
oldfs = get_fs();
set_fs(KERNEL_DS);
err = sys_clock_settime(which_clock,
set_fs(oldfs);
return err;
}
-@@ -678,7 +679,7 @@ long compat_sys_clock_gettime(clockid_t which_clock,
+@@ -759,7 +760,7 @@ long compat_sys_clock_gettime(clockid_t which_clock,
oldfs = get_fs();
set_fs(KERNEL_DS);
err = sys_clock_gettime(which_clock,
set_fs(oldfs);
if (!err && put_compat_timespec(&ts, tp))
return -EFAULT;
-@@ -698,7 +699,7 @@ long compat_sys_clock_adjtime(clockid_t which_clock,
+@@ -779,7 +780,7 @@ long compat_sys_clock_adjtime(clockid_t which_clock,
oldfs = get_fs();
set_fs(KERNEL_DS);
set_fs(oldfs);
err = compat_put_timex(utp, &txc);
-@@ -718,7 +719,7 @@ long compat_sys_clock_getres(clockid_t which_clock,
+@@ -799,7 +800,7 @@ long compat_sys_clock_getres(clockid_t which_clock,
oldfs = get_fs();
set_fs(KERNEL_DS);
err = sys_clock_getres(which_clock,
set_fs(oldfs);
if (!err && tp && put_compat_timespec(&ts, tp))
return -EFAULT;
-@@ -730,9 +731,9 @@ static long compat_clock_nanosleep_restart(struct restart_block *restart)
+@@ -811,9 +812,9 @@ static long compat_clock_nanosleep_restart(struct restart_block *restart)
long err;
mm_segment_t oldfs;
struct timespec tu;
oldfs = get_fs();
set_fs(KERNEL_DS);
err = clock_nanosleep_restart(restart);
-@@ -764,8 +765,8 @@ long compat_sys_clock_nanosleep(clockid_t which_clock, int flags,
+@@ -845,8 +846,8 @@ long compat_sys_clock_nanosleep(clockid_t which_clock, int flags,
oldfs = get_fs();
set_fs(KERNEL_DS);
err = sys_clock_nanosleep(which_clock, flags,
return -ENOMEM;
diff --git a/kernel/cred.c b/kernel/cred.c
-index 48c6fd3..8398912 100644
+index e70683d..27761b6 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
-@@ -204,6 +204,15 @@ void exit_creds(struct task_struct *tsk)
+@@ -205,6 +205,15 @@ void exit_creds(struct task_struct *tsk)
validate_creds(cred);
put_cred(cred);
}
}
/**
-@@ -472,7 +481,7 @@ error_put:
+@@ -473,7 +482,7 @@ error_put:
* Always returns 0 thus allowing this function to be tail-called at the end
* of, say, sys_setgid().
*/
{
struct task_struct *task = current;
const struct cred *old = task->real_cred;
-@@ -491,6 +500,8 @@ int commit_creds(struct cred *new)
+@@ -492,6 +501,8 @@ int commit_creds(struct cred *new)
get_cred(new); /* we will require a ref for the subj creds too */
/* dumpability changes */
if (old->euid != new->euid ||
old->egid != new->egid ||
-@@ -540,6 +551,101 @@ int commit_creds(struct cred *new)
+@@ -541,6 +552,101 @@ int commit_creds(struct cred *new)
put_cred(old);
return 0;
}
/**
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
-index 7fda904..59f620c 100644
+index 0557f24..1a00d9a 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
-@@ -119,7 +119,7 @@ static DEFINE_RAW_SPINLOCK(dbg_slave_lock);
+@@ -122,7 +122,7 @@ static DEFINE_RAW_SPINLOCK(dbg_slave_lock);
*/
static atomic_t masters_in_kgdb;
static atomic_t slaves_in_kgdb;
atomic_t kgdb_setting_breakpoint;
struct task_struct *kgdb_usethread;
-@@ -129,7 +129,7 @@ int kgdb_single_step;
+@@ -132,7 +132,7 @@ int kgdb_single_step;
static pid_t kgdb_sstep_pid;
/* to keep track of the CPU which is doing the single stepping*/
/*
* If you are debugging a problem where roundup (the collection of
-@@ -537,7 +537,7 @@ return_normal:
+@@ -540,7 +540,7 @@ return_normal:
* kernel will only try for the value of sstep_tries before
* giving up and continuing on.
*/
(kgdb_info[cpu].task &&
kgdb_info[cpu].task->pid != kgdb_sstep_pid) && --sstep_tries) {
atomic_set(&kgdb_active, -1);
-@@ -631,8 +631,8 @@ cpu_master_loop:
+@@ -634,8 +634,8 @@ cpu_master_loop:
}
kgdb_restore:
if (kgdb_info[sstep_cpu].task)
kgdb_sstep_pid = kgdb_info[sstep_cpu].task->pid;
else
-@@ -829,18 +829,18 @@ static void kgdb_unregister_callbacks(void)
+@@ -861,18 +861,18 @@ static void kgdb_unregister_callbacks(void)
static void kgdb_tasklet_bpt(unsigned long ing)
{
kgdb_breakpoint();
}
EXPORT_SYMBOL_GPL(kgdb_schedule_breakpoint);
diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c
-index e2ae734..08a4c5c 100644
+index 67b847d..93834dd 100644
--- a/kernel/debug/kdb/kdb_main.c
+++ b/kernel/debug/kdb/kdb_main.c
-@@ -1980,7 +1980,7 @@ static int kdb_lsmod(int argc, const char **argv)
+@@ -1983,7 +1983,7 @@ static int kdb_lsmod(int argc, const char **argv)
list_for_each_entry(mod, kdb_modules, list) {
kdb_printf("%-20s%8u 0x%p ", mod->name,
#ifdef CONFIG_MODULE_UNLOAD
kdb_printf("%4ld ", module_refcount(mod));
#endif
-@@ -1990,7 +1990,7 @@ static int kdb_lsmod(int argc, const char **argv)
+@@ -1993,7 +1993,7 @@ static int kdb_lsmod(int argc, const char **argv)
kdb_printf(" (Loading)");
else
kdb_printf(" (Live)");
#ifdef CONFIG_MODULE_UNLOAD
{
diff --git a/kernel/events/core.c b/kernel/events/core.c
-index 1b5c081..c375f83 100644
+index fd126f8..70b755b 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
-@@ -173,7 +173,7 @@ int perf_proc_update_handler(struct ctl_table *table, int write,
+@@ -181,7 +181,7 @@ int perf_proc_update_handler(struct ctl_table *table, int write,
return 0;
}
static void cpu_ctx_sched_out(struct perf_cpu_context *cpuctx,
enum event_type_t event_type);
-@@ -2581,7 +2581,7 @@ static void __perf_event_read(void *info)
+@@ -2659,7 +2659,7 @@ static void __perf_event_read(void *info)
static inline u64 perf_event_count(struct perf_event *event)
{
}
static u64 perf_event_read(struct perf_event *event)
-@@ -2897,9 +2897,9 @@ u64 perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running)
+@@ -2983,9 +2983,9 @@ u64 perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running)
mutex_lock(&event->child_mutex);
total += perf_event_read(event);
*enabled += event->total_time_enabled +
list_for_each_entry(child, &event->child_list, child_list) {
total += perf_event_read(child);
-@@ -3306,10 +3306,10 @@ void perf_event_update_userpage(struct perf_event *event)
+@@ -3393,10 +3393,10 @@ void perf_event_update_userpage(struct perf_event *event)
userpg->offset -= local64_read(&event->hw.prev_count);
userpg->time_enabled = enabled +
- atomic64_read(&event->child_total_time_running);
+ atomic64_read_unchecked(&event->child_total_time_running);
- barrier();
- ++userpg->lock;
-@@ -3738,11 +3738,11 @@ static void perf_output_read_one(struct perf_output_handle *handle,
+ arch_perf_update_userpage(userpg, now);
+
+@@ -3829,11 +3829,11 @@ static void perf_output_read_one(struct perf_output_handle *handle,
values[n++] = perf_event_count(event);
if (read_format & PERF_FORMAT_TOTAL_TIME_ENABLED) {
values[n++] = enabled +
}
if (read_format & PERF_FORMAT_ID)
values[n++] = primary_event_id(event);
-@@ -4393,12 +4393,12 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event)
+@@ -4511,12 +4511,12 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event)
* need to add enough zero bytes after the string to handle
* the 64bit alignment we do later.
*/
if (IS_ERR(name)) {
name = strncpy(tmp, "//toolong", sizeof(tmp));
goto got_name;
-@@ -5765,7 +5765,7 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu,
+@@ -5929,7 +5929,7 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu,
event->parent = parent_event;
event->ns = get_pid_ns(current->nsproxy->pid_ns);
event->state = PERF_EVENT_STATE_INACTIVE;
-@@ -6287,10 +6287,10 @@ static void sync_child_event(struct perf_event *child_event,
+@@ -6491,10 +6491,10 @@ static void sync_child_event(struct perf_event *child_event,
/*
* Add back the child's count to the parent's count:
*/
/*
diff --git a/kernel/exit.c b/kernel/exit.c
-index 46c8b14..d868958 100644
+index d8bd3b42..26bd8dc 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
-@@ -58,6 +58,10 @@
+@@ -59,6 +59,10 @@
#include <asm/pgtable.h>
#include <asm/mmu_context.h>
static void exit_mm(struct task_struct * tsk);
static void __unhash_process(struct task_struct *p, bool group_dead)
-@@ -169,6 +173,10 @@ void release_task(struct task_struct * p)
+@@ -170,6 +174,10 @@ void release_task(struct task_struct * p)
struct task_struct *leader;
int zap_leader;
repeat:
/* don't need to get the RCU readlock here - the process is dead and
* can't be modifying its own credentials. But shut RCU-lockdep up */
rcu_read_lock();
-@@ -381,7 +389,7 @@ int allow_signal(int sig)
+@@ -382,7 +390,7 @@ int allow_signal(int sig)
* know it'll be handled, so that they don't get converted to
* SIGKILL or just silently dropped.
*/
recalc_sigpending();
spin_unlock_irq(¤t->sighand->siglock);
return 0;
-@@ -417,6 +425,17 @@ void daemonize(const char *name, ...)
+@@ -418,6 +426,17 @@ void daemonize(const char *name, ...)
vsnprintf(current->comm, sizeof(current->comm), name, args);
va_end(args);
/*
* If we were started as result of loading a module, close all of the
* user space pages. We don't need them, and if we didn't close them
-@@ -873,6 +892,8 @@ void do_exit(long code)
+@@ -900,6 +919,8 @@ void do_exit(long code)
struct task_struct *tsk = current;
int group_dead;
profile_task_exit(tsk);
WARN_ON(blk_needs_flush_plug(tsk));
-@@ -889,7 +910,6 @@ void do_exit(long code)
+@@ -916,7 +937,6 @@ void do_exit(long code)
* mm_release()->clear_child_tid() from writing to a user-controlled
* kernel address.
*/
ptrace_event(PTRACE_EVENT_EXIT, code);
-@@ -950,6 +970,9 @@ void do_exit(long code)
+@@ -977,6 +997,9 @@ void do_exit(long code)
tsk->exit_code = code;
taskstats_exit(tsk, group_dead);
exit_mm(tsk);
if (group_dead)
-@@ -1066,7 +1089,7 @@ SYSCALL_DEFINE1(exit, int, error_code)
+@@ -1093,7 +1116,7 @@ SYSCALL_DEFINE1(exit, int, error_code)
* Take down every thread in the group. This is called by fatal signals
* as well as by sys_exit_group (below).
*/
{
struct signal_struct *sig = current->signal;
diff --git a/kernel/fork.c b/kernel/fork.c
-index 26a7a67..a1053f9 100644
+index 8163333..efb4692 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
-@@ -284,7 +284,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
+@@ -286,7 +286,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
*stackend = STACK_END_MAGIC; /* for overflow detection */
#ifdef CONFIG_CC_STACKPROTECTOR
#endif
/*
-@@ -308,13 +308,77 @@ out:
+@@ -310,13 +310,78 @@ out:
}
#ifdef CONFIG_MMU
-+static struct vm_area_struct *dup_vma(struct mm_struct *mm, struct vm_area_struct *mpnt)
++static struct vm_area_struct *dup_vma(struct mm_struct *mm, struct mm_struct *oldmm, struct vm_area_struct *mpnt)
+{
+ struct vm_area_struct *tmp;
+ unsigned long charge;
+
+ charge = 0;
+ if (mpnt->vm_flags & VM_ACCOUNT) {
-+ unsigned int len = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
-+ if (security_vm_enough_memory(len))
++ unsigned long len;
++ len = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
++ if (security_vm_enough_memory_mm(oldmm, len)) /* sic */
+ goto fail_nomem;
+ charge = len;
+ }
down_write(&oldmm->mmap_sem);
flush_cache_dup_mm(oldmm);
-@@ -326,8 +390,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -328,8 +393,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
mm->locked_vm = 0;
mm->mmap = NULL;
mm->mmap_cache = NULL;
mm->map_count = 0;
cpumask_clear(mm_cpumask(mm));
mm->mm_rb = RB_ROOT;
-@@ -343,8 +407,6 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -345,8 +410,6 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
prev = NULL;
for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) {
if (mpnt->vm_flags & VM_DONTCOPY) {
long pages = vma_pages(mpnt);
mm->total_vm -= pages;
-@@ -352,53 +414,11 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -354,54 +417,11 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
-pages);
continue;
}
- charge = 0;
- if (mpnt->vm_flags & VM_ACCOUNT) {
-- unsigned int len = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
-- if (security_vm_enough_memory(len))
+- unsigned long len;
+- len = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
+- if (security_vm_enough_memory_mm(oldmm, len)) /* sic */
- goto fail_nomem;
- charge = len;
-+ tmp = dup_vma(mm, mpnt);
++ tmp = dup_vma(mm, oldmm, mpnt);
+ if (!tmp) {
+ retval = -ENOMEM;
+ goto out;
/*
* Link in the new vma and copy the page table entries.
-@@ -421,6 +441,31 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -424,6 +444,31 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
if (retval)
goto out;
}
/* a new mm has just been created */
arch_dup_mmap(oldmm, mm);
retval = 0;
-@@ -429,14 +474,6 @@ out:
+@@ -432,14 +477,6 @@ out:
flush_tlb_mm(oldmm);
up_write(&oldmm->mmap_sem);
return retval;
}
static inline int mm_alloc_pgd(struct mm_struct *mm)
-@@ -658,8 +695,8 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
+@@ -676,8 +713,8 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
return ERR_PTR(err);
mm = get_task_mm(task);
mmput(mm);
mm = ERR_PTR(-EACCES);
}
-@@ -881,13 +918,14 @@ static int copy_fs(unsigned long clone_flags, struct task_struct *tsk)
+@@ -899,13 +936,14 @@ static int copy_fs(unsigned long clone_flags, struct task_struct *tsk)
spin_unlock(&fs->lock);
return -EAGAIN;
}
return 0;
}
-@@ -1151,6 +1189,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
+@@ -1172,6 +1210,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled);
#endif
retval = -EAGAIN;
if (atomic_read(&p->real_cred->user->processes) >=
task_rlimit(p, RLIMIT_NPROC)) {
if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RESOURCE) &&
-@@ -1306,6 +1347,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
+@@ -1328,6 +1369,8 @@ static struct task_struct *copy_process(unsigned long clone_flags,
if (clone_flags & CLONE_THREAD)
p->tgid = current->tgid;
p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL;
/*
* Clear TID on mm_release()?
-@@ -1472,6 +1515,8 @@ bad_fork_cleanup_count:
+@@ -1502,6 +1545,8 @@ bad_fork_cleanup_count:
bad_fork_free:
free_task(p);
fork_out:
return ERR_PTR(retval);
}
-@@ -1572,6 +1617,8 @@ long do_fork(unsigned long clone_flags,
+@@ -1602,6 +1647,8 @@ long do_fork(unsigned long clone_flags,
if (clone_flags & CLONE_PARENT_SETTID)
put_user(nr, parent_tidptr);
if (clone_flags & CLONE_VFORK) {
p->vfork_done = &vfork;
init_completion(&vfork);
-@@ -1670,7 +1717,7 @@ static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp)
+@@ -1700,7 +1747,7 @@ static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp)
return 0;
/* don't need lock here; in the worst case we'll do useless copy */
return 0;
*new_fsp = copy_fs_struct(fs);
-@@ -1759,7 +1806,8 @@ SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
+@@ -1789,7 +1836,8 @@ SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
fs = current->fs;
spin_lock(&fs->lock);
current->fs = new_fs;
else
new_fs = fs;
diff --git a/kernel/futex.c b/kernel/futex.c
-index 866c9d5..5c5f828 100644
+index e2b0fb9..db818ac 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -54,6 +54,7 @@
/*
* The futex address must be "naturally" aligned.
*/
-@@ -2721,6 +2727,7 @@ static int __init futex_init(void)
+@@ -2711,6 +2717,7 @@ static int __init futex_init(void)
{
u32 curval;
int i;
/*
* This will fail and we want it. Some arch implementations do
-@@ -2732,8 +2739,11 @@ static int __init futex_init(void)
+@@ -2722,8 +2729,11 @@ static int __init futex_init(void)
* implementation, the non-functional ones will return
* -ENOSYS.
*/
hrtimer_peek_ahead_timers();
}
diff --git a/kernel/jump_label.c b/kernel/jump_label.c
-index 01d3b70..9e4d098 100644
+index 4304919..408c4c0 100644
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
-@@ -55,7 +55,9 @@ jump_label_sort_entries(struct jump_entry *start, struct jump_entry *stop)
+@@ -13,6 +13,7 @@
+ #include <linux/sort.h>
+ #include <linux/err.h>
+ #include <linux/static_key.h>
++#include <linux/mm.h>
+
+ #ifdef HAVE_JUMP_LABEL
+
+@@ -50,7 +51,9 @@ jump_label_sort_entries(struct jump_entry *start, struct jump_entry *stop)
size = (((unsigned long)stop - (unsigned long)start)
/ sizeof(struct jump_entry));
+ pax_close_kernel();
}
- static void jump_label_update(struct jump_label_key *key, int enable);
-@@ -340,10 +342,12 @@ static void jump_label_invalidate_module_init(struct module *mod)
+ static void jump_label_update(struct static_key *key, int enable);
+@@ -356,10 +359,12 @@ static void jump_label_invalidate_module_init(struct module *mod)
struct jump_entry *iter_stop = iter_start + mod->num_jump_entries;
struct jump_entry *iter;
return -ENOMEM;
reset_iter(iter, 0);
diff --git a/kernel/kexec.c b/kernel/kexec.c
-index 7b08867..3bac516 100644
+index 4e2e472..cd0c7ae 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
-@@ -1047,7 +1047,8 @@ asmlinkage long compat_sys_kexec_load(unsigned long entry,
+@@ -1046,7 +1046,8 @@ asmlinkage long compat_sys_kexec_load(unsigned long entry,
unsigned long flags)
{
struct compat_kexec_segment in;
/* Don't allow clients that don't understand the native
diff --git a/kernel/kmod.c b/kernel/kmod.c
-index a3a46cb..f2e42f8 100644
+index 05698a7..a4c1e3a 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
-@@ -75,13 +75,12 @@ char modprobe_path[KMOD_PATH_LEN] = "/sbin/modprobe";
+@@ -66,7 +66,7 @@ static void free_modprobe_argv(struct subprocess_info *info)
+ kfree(info->argv);
+ }
+
+-static int call_modprobe(char *module_name, int wait)
++static int call_modprobe(char *module_name, char *module_param, int wait)
+ {
+ static char *envp[] = {
+ "HOME=/",
+@@ -75,7 +75,7 @@ static int call_modprobe(char *module_name, int wait)
+ NULL
+ };
+
+- char **argv = kmalloc(sizeof(char *[5]), GFP_KERNEL);
++ char **argv = kmalloc(sizeof(char *[6]), GFP_KERNEL);
+ if (!argv)
+ goto out;
+
+@@ -87,7 +87,8 @@ static int call_modprobe(char *module_name, int wait)
+ argv[1] = "-q";
+ argv[2] = "--";
+ argv[3] = module_name; /* check free_modprobe_argv() */
+- argv[4] = NULL;
++ argv[4] = module_param;
++ argv[5] = NULL;
+
+ return call_usermodehelper_fns(modprobe_path, argv, envp,
+ wait | UMH_KILLABLE, NULL, free_modprobe_argv, NULL);
+@@ -112,9 +113,8 @@ out:
* If module auto-loading support is disabled then this function
* becomes a no-operation.
*/
char module_name[MODULE_NAME_LEN];
unsigned int max_modprobes;
int ret;
-- char *argv[] = { modprobe_path, "-q", "--", module_name, NULL };
-+ char *argv[] = { modprobe_path, "-q", "--", module_name, module_param, NULL };
- static char *envp[] = { "HOME=/",
- "TERM=linux",
- "PATH=/sbin:/usr/sbin:/bin:/usr/bin",
-@@ -90,9 +89,7 @@ int __request_module(bool wait, const char *fmt, ...)
+@@ -122,9 +122,7 @@ int __request_module(bool wait, const char *fmt, ...)
#define MAX_KMOD_CONCURRENT 50 /* Completely arbitrary value - KAO */
static int kmod_loop_msg;
if (ret >= MODULE_NAME_LEN)
return -ENAMETOOLONG;
-@@ -100,6 +97,20 @@ int __request_module(bool wait, const char *fmt, ...)
+@@ -132,6 +130,20 @@ int __request_module(bool wait, const char *fmt, ...)
if (ret)
return ret;
/* If modprobe needs a service that is in a module, we get a recursive
* loop. Limit the number of running kmod threads to max_threads/2 or
* MAX_KMOD_CONCURRENT, whichever is the smaller. A cleaner method
-@@ -135,6 +146,47 @@ int __request_module(bool wait, const char *fmt, ...)
+@@ -160,11 +172,52 @@ int __request_module(bool wait, const char *fmt, ...)
+
+ trace_module_request(module_name, wait, _RET_IP_);
+
+- ret = call_modprobe(module_name, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC);
++ ret = call_modprobe(module_name, module_param, wait ? UMH_WAIT_PROC : UMH_WAIT_EXEC);
+
atomic_dec(&kmod_concurrent);
return ret;
}
EXPORT_SYMBOL(__request_module);
#endif /* CONFIG_MODULES */
-@@ -224,7 +276,7 @@ static int wait_for_helper(void *data)
+@@ -267,7 +320,7 @@ static int wait_for_helper(void *data)
*
* Thus the __user pointer cast is valid here.
*/
uevent_helper[count] = '\0';
if (count && uevent_helper[count-1] == '\n')
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
-index 8889f7d..95319b7 100644
+index ea9ee45..67ebc8f 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -590,6 +590,10 @@ static int static_obj(void *obj)
if (!name) {
diff --git a/kernel/module.c b/kernel/module.c
-index 3d56b6f..2a22bd0 100644
+index 78ac6ec..e87db0e 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -58,6 +58,7 @@
#define CREATE_TRACE_POINTS
#include <trace/events/module.h>
-@@ -113,7 +114,8 @@ static BLOCKING_NOTIFIER_HEAD(module_notify_list);
+@@ -114,7 +115,8 @@ static BLOCKING_NOTIFIER_HEAD(module_notify_list);
/* Bounds of module allocation, for speeding __module_address.
* Protected by module_mutex. */
int register_module_notifier(struct notifier_block * nb)
{
-@@ -277,7 +279,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
+@@ -278,7 +280,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
return true;
list_for_each_entry_rcu(mod, &modules, list) {
{ mod->syms, mod->syms + mod->num_syms, mod->crcs,
NOT_GPL_ONLY, false },
{ mod->gpl_syms, mod->gpl_syms + mod->num_gpl_syms,
-@@ -299,7 +301,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
+@@ -300,7 +302,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
#endif
};
return true;
}
return false;
-@@ -431,7 +433,7 @@ static inline void __percpu *mod_percpu(struct module *mod)
+@@ -432,7 +434,7 @@ static inline void __percpu *mod_percpu(struct module *mod)
static int percpu_modalloc(struct module *mod,
unsigned long size, unsigned long align)
{
printk(KERN_WARNING "%s: per-cpu alignment %li > %li\n",
mod->name, align, PAGE_SIZE);
align = PAGE_SIZE;
-@@ -1001,7 +1003,7 @@ struct module_attribute module_uevent =
+@@ -1032,7 +1034,7 @@ struct module_attribute module_uevent =
static ssize_t show_coresize(struct module_attribute *mattr,
struct module_kobject *mk, char *buffer)
{
}
static struct module_attribute modinfo_coresize =
-@@ -1010,7 +1012,7 @@ static struct module_attribute modinfo_coresize =
+@@ -1041,7 +1043,7 @@ static struct module_attribute modinfo_coresize =
static ssize_t show_initsize(struct module_attribute *mattr,
struct module_kobject *mk, char *buffer)
{
}
static struct module_attribute modinfo_initsize =
-@@ -1224,7 +1226,7 @@ resolve_symbol_wait(struct module *mod,
+@@ -1255,7 +1257,7 @@ resolve_symbol_wait(struct module *mod,
*/
#ifdef CONFIG_SYSFS
static inline bool sect_empty(const Elf_Shdr *sect)
{
return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0;
-@@ -1690,21 +1692,21 @@ static void set_section_ro_nx(void *base,
+@@ -1721,21 +1723,21 @@ static void set_section_ro_nx(void *base,
static void unset_module_core_ro_nx(struct module *mod)
{
set_memory_rw);
}
-@@ -1715,14 +1717,14 @@ void set_all_modules_text_rw(void)
+@@ -1746,14 +1748,14 @@ void set_all_modules_text_rw(void)
mutex_lock(&module_mutex);
list_for_each_entry_rcu(mod, &modules, list) {
set_memory_rw);
}
}
-@@ -1736,14 +1738,14 @@ void set_all_modules_text_ro(void)
+@@ -1767,14 +1769,14 @@ void set_all_modules_text_ro(void)
mutex_lock(&module_mutex);
list_for_each_entry_rcu(mod, &modules, list) {
set_memory_ro);
}
}
-@@ -1789,16 +1791,19 @@ static void free_module(struct module *mod)
+@@ -1820,16 +1822,19 @@ static void free_module(struct module *mod)
/* This may be NULL, but that's OK */
unset_module_init_ro_nx(mod);
#ifdef CONFIG_MPU
update_protections(current->mm);
-@@ -1867,10 +1872,31 @@ static int simplify_symbols(struct module *mod, const struct load_info *info)
- unsigned int i;
+@@ -1899,9 +1904,31 @@ static int simplify_symbols(struct module *mod, const struct load_info *info)
int ret = 0;
const struct kernel_symbol *ksym;
+
+#ifdef CONFIG_GRKERNSEC_MODHARDEN
+ int is_fs_load = 0;
+ int register_filesystem_found = 0;
+ is_fs_load = 1;
+ }
+#endif
-
++
for (i = 1; i < symsec->sh_size / sizeof(Elf_Sym); i++) {
const char *name = info->strtab + sym[i].st_name;
switch (sym[i].st_shndx) {
case SHN_COMMON:
/* We compiled with -fno-common. These are not
-@@ -1891,7 +1917,9 @@ static int simplify_symbols(struct module *mod, const struct load_info *info)
+@@ -1922,7 +1949,9 @@ static int simplify_symbols(struct module *mod, const struct load_info *info)
ksym = resolve_symbol_wait(mod, info, name);
/* Ok if resolved. */
if (ksym && !IS_ERR(ksym)) {
break;
}
-@@ -1910,11 +1938,20 @@ static int simplify_symbols(struct module *mod, const struct load_info *info)
+@@ -1941,11 +1970,20 @@ static int simplify_symbols(struct module *mod, const struct load_info *info)
secbase = (unsigned long)mod_percpu(mod);
else
secbase = info->sechdrs[sym[i].st_shndx].sh_addr;
return ret;
}
-@@ -2018,22 +2055,12 @@ static void layout_sections(struct module *mod, struct load_info *info)
+@@ -2049,22 +2087,12 @@ static void layout_sections(struct module *mod, struct load_info *info)
|| s->sh_entsize != ~0UL
|| strstarts(sname, ".init"))
continue;
}
pr_debug("Init section allocation order:\n");
-@@ -2047,23 +2074,13 @@ static void layout_sections(struct module *mod, struct load_info *info)
+@@ -2078,23 +2106,13 @@ static void layout_sections(struct module *mod, struct load_info *info)
|| s->sh_entsize != ~0UL
|| !strstarts(sname, ".init"))
continue;
}
}
-@@ -2235,7 +2252,7 @@ static void layout_symtab(struct module *mod, struct load_info *info)
+@@ -2266,7 +2284,7 @@ static void layout_symtab(struct module *mod, struct load_info *info)
/* Put symbol section at end of init part of module. */
symsect->sh_flags |= SHF_ALLOC;
info->index.sym) | INIT_OFFSET_MASK;
pr_debug("\t%s\n", info->secstrings + symsect->sh_name);
-@@ -2250,13 +2267,13 @@ static void layout_symtab(struct module *mod, struct load_info *info)
+@@ -2281,13 +2299,13 @@ static void layout_symtab(struct module *mod, struct load_info *info)
}
/* Append room for core symbols at end of core part. */
info->index.str) | INIT_OFFSET_MASK;
pr_debug("\t%s\n", info->secstrings + strsect->sh_name);
}
-@@ -2274,12 +2291,14 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
+@@ -2305,12 +2323,14 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
/* Make sure we get permanent strtab: don't use info->strtab. */
mod->strtab = (void *)info->sechdrs[info->index.str].sh_addr;
src = mod->symtab;
*dst = *src;
*s++ = 0;
-@@ -2292,6 +2311,8 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
+@@ -2323,6 +2343,8 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
s += strlcpy(s, &mod->strtab[src->st_name], KSYM_NAME_LEN) + 1;
}
mod->core_num_syms = ndst;
}
#else
static inline void layout_symtab(struct module *mod, struct load_info *info)
-@@ -2325,17 +2346,33 @@ void * __weak module_alloc(unsigned long size)
+@@ -2356,17 +2378,33 @@ void * __weak module_alloc(unsigned long size)
return size == 0 ? NULL : vmalloc_exec(size);
}
mutex_unlock(&module_mutex);
}
return ret;
-@@ -2512,8 +2549,14 @@ static struct module *setup_load_info(struct load_info *info)
+@@ -2543,8 +2581,14 @@ static struct module *setup_load_info(struct load_info *info)
static int check_modinfo(struct module *mod, struct load_info *info)
{
const char *modmagic = get_modinfo(info, "vermagic");
/* This is allowed: modprobe --force will invalidate it. */
if (!modmagic) {
err = try_to_force_load(mod, "bad vermagic");
-@@ -2536,7 +2579,7 @@ static int check_modinfo(struct module *mod, struct load_info *info)
+@@ -2567,7 +2611,7 @@ static int check_modinfo(struct module *mod, struct load_info *info)
}
/* Set up license info based on the info section */
return 0;
}
-@@ -2630,7 +2673,7 @@ static int move_module(struct module *mod, struct load_info *info)
+@@ -2661,7 +2705,7 @@ static int move_module(struct module *mod, struct load_info *info)
void *ptr;
/* Do the allocs. */
/*
* The pointer to this block is stored in the module structure
* which is inside the block. Just mark it as not being a
-@@ -2640,23 +2683,50 @@ static int move_module(struct module *mod, struct load_info *info)
+@@ -2671,23 +2715,50 @@ static int move_module(struct module *mod, struct load_info *info)
if (!ptr)
return -ENOMEM;
/* Transfer each section which specifies SHF_ALLOC */
pr_debug("final section addresses:\n");
-@@ -2667,16 +2737,45 @@ static int move_module(struct module *mod, struct load_info *info)
+@@ -2698,16 +2769,45 @@ static int move_module(struct module *mod, struct load_info *info)
if (!(shdr->sh_flags & SHF_ALLOC))
continue;
pr_debug("\t0x%lx %s\n",
(long)shdr->sh_addr, info->secstrings + shdr->sh_name);
}
-@@ -2727,12 +2826,12 @@ static void flush_module_icache(const struct module *mod)
+@@ -2758,12 +2858,12 @@ static void flush_module_icache(const struct module *mod)
* Do it before processing of module parameters, so the module
* can provide parameter accessor functions of its own.
*/
set_fs(old_fs);
}
-@@ -2802,8 +2901,10 @@ out:
+@@ -2833,8 +2933,10 @@ out:
static void module_deallocate(struct module *mod, struct load_info *info)
{
percpu_modfree(mod);
}
int __weak module_finalize(const Elf_Ehdr *hdr,
-@@ -2867,9 +2968,38 @@ static struct module *load_module(void __user *umod,
+@@ -2898,9 +3000,38 @@ static struct module *load_module(void __user *umod,
if (err)
goto free_unload;
/* Fix up syms, so that st_value is a pointer to location. */
err = simplify_symbols(mod, &info);
if (err < 0)
-@@ -2885,13 +3015,6 @@ static struct module *load_module(void __user *umod,
+@@ -2916,13 +3047,6 @@ static struct module *load_module(void __user *umod,
flush_module_icache(mod);
/* Mark state as coming so strong_try_module_get() ignores us. */
mod->state = MODULE_STATE_COMING;
-@@ -2948,11 +3071,10 @@ static struct module *load_module(void __user *umod,
+@@ -2980,11 +3104,10 @@ static struct module *load_module(void __user *umod,
unlock:
mutex_unlock(&module_mutex);
synchronize_sched();
free_unload:
module_unload_free(mod);
free_module:
-@@ -2993,16 +3115,16 @@ SYSCALL_DEFINE3(init_module, void __user *, umod,
+@@ -3025,16 +3148,16 @@ SYSCALL_DEFINE3(init_module, void __user *, umod,
MODULE_STATE_COMING, mod);
/* Set RO and NX regions for core */
do_mod_ctors(mod);
/* Start the module */
-@@ -3048,11 +3170,12 @@ SYSCALL_DEFINE3(init_module, void __user *, umod,
+@@ -3080,11 +3203,12 @@ SYSCALL_DEFINE3(init_module, void __user *, umod,
mod->strtab = mod->core_strtab;
#endif
unset_module_init_ro_nx(mod);
mutex_unlock(&module_mutex);
return 0;
-@@ -3083,10 +3206,16 @@ static const char *get_ksymbol(struct module *mod,
+@@ -3115,10 +3239,16 @@ static const char *get_ksymbol(struct module *mod,
unsigned long nextval;
/* At worse, next value is at end of module */
/* Scan for closest preceding symbol, and next symbol. (ELF
starts real symbols at 1). */
-@@ -3321,7 +3450,7 @@ static int m_show(struct seq_file *m, void *p)
+@@ -3353,7 +3483,7 @@ static int m_show(struct seq_file *m, void *p)
char buf[8];
seq_printf(m, "%s %u",
print_unload_info(m, mod);
/* Informative for users. */
-@@ -3330,7 +3459,7 @@ static int m_show(struct seq_file *m, void *p)
+@@ -3362,7 +3492,7 @@ static int m_show(struct seq_file *m, void *p)
mod->state == MODULE_STATE_COMING ? "Loading":
"Live");
/* Used by oprofile and other similar tools. */
/* Taints info */
if (mod->taints)
-@@ -3366,7 +3495,17 @@ static const struct file_operations proc_modules_operations = {
+@@ -3398,7 +3528,17 @@ static const struct file_operations proc_modules_operations = {
static int __init proc_modules_init(void)
{
return 0;
}
module_init(proc_modules_init);
-@@ -3425,12 +3564,12 @@ struct module *__module_address(unsigned long addr)
+@@ -3457,12 +3597,12 @@ struct module *__module_address(unsigned long addr)
{
struct module *mod;
return mod;
return NULL;
}
-@@ -3464,11 +3603,20 @@ bool is_module_text_address(unsigned long addr)
+@@ -3496,11 +3636,20 @@ bool is_module_text_address(unsigned long addr)
*/
struct module *__module_text_address(unsigned long addr)
{
extern void debug_mutex_init(struct mutex *lock, const char *name,
struct lock_class_key *key);
diff --git a/kernel/mutex.c b/kernel/mutex.c
-index 89096dd..f91ebc5 100644
+index a307cc9..27fd2e9 100644
--- a/kernel/mutex.c
+++ b/kernel/mutex.c
@@ -198,7 +198,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
mutex_release(&lock->dep_map, 1, ip);
spin_unlock_mutex(&lock->wait_lock, flags);
-@@ -249,7 +248,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
+@@ -247,7 +246,7 @@ __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass,
done:
lock_acquired(&lock->dep_map, ip);
/* got the lock - rejoice! */
mutex_set_owner(lock);
/* set it to 0 if there are no waiters left: */
-diff --git a/kernel/padata.c b/kernel/padata.c
-index b452599..5d68f4e 100644
---- a/kernel/padata.c
-+++ b/kernel/padata.c
-@@ -132,10 +132,10 @@ int padata_do_parallel(struct padata_instance *pinst,
- padata->pd = pd;
- padata->cb_cpu = cb_cpu;
-
-- if (unlikely(atomic_read(&pd->seq_nr) == pd->max_seq_nr))
-- atomic_set(&pd->seq_nr, -1);
-+ if (unlikely(atomic_read_unchecked(&pd->seq_nr) == pd->max_seq_nr))
-+ atomic_set_unchecked(&pd->seq_nr, -1);
-
-- padata->seq_nr = atomic_inc_return(&pd->seq_nr);
-+ padata->seq_nr = atomic_inc_return_unchecked(&pd->seq_nr);
-
- target_cpu = padata_cpu_hash(padata);
- queue = per_cpu_ptr(pd->pqueue, target_cpu);
-@@ -444,7 +444,7 @@ static struct parallel_data *padata_alloc_pd(struct padata_instance *pinst,
- padata_init_pqueues(pd);
- padata_init_squeues(pd);
- setup_timer(&pd->timer, padata_reorder_timer, (unsigned long)pd);
-- atomic_set(&pd->seq_nr, -1);
-+ atomic_set_unchecked(&pd->seq_nr, -1);
- atomic_set(&pd->reorder_objects, 0);
- atomic_set(&pd->refcnt, 0);
- pd->pinst = pinst;
diff --git a/kernel/panic.c b/kernel/panic.c
index 8ed89a1..e83856a 100644
--- a/kernel/panic.c
register_sysrq_key('o', &sysrq_poweroff_op);
return 0;
diff --git a/kernel/power/process.c b/kernel/power/process.c
-index 7aac07a..2d3c6dc 100644
+index 19db29f..33b52b6 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -33,6 +33,7 @@ static int try_to_freeze_tasks(bool user_only)
read_lock(&tasklist_lock);
do_each_thread(g, p) {
if (p == current || !freeze_task(p))
-@@ -60,9 +63,13 @@ static int try_to_freeze_tasks(bool user_only)
- * try_to_stop() after schedule() in ptrace/signal
- * stop sees TIF_FREEZE.
+@@ -58,9 +61,13 @@ static int try_to_freeze_tasks(bool user_only)
+ * guaranteed that TASK_STOPPED/TRACED -> TASK_RUNNING
+ * transition can't race with task state testing here.
*/
- if (!task_is_stopped_or_traced(p) &&
- !freezer_should_skip(p))
} while_each_thread(g, p);
read_unlock(&tasklist_lock);
-@@ -71,7 +78,7 @@ static int try_to_freeze_tasks(bool user_only)
+@@ -69,7 +76,7 @@ static int try_to_freeze_tasks(bool user_only)
todo += wq_busy;
}
if (pm_wakeup_pending()) {
diff --git a/kernel/printk.c b/kernel/printk.c
-index 32690a0..cd7c798 100644
+index b663c2c..1d6ba7a 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
-@@ -313,6 +313,11 @@ static int check_syslog_permissions(int type, bool from_file)
+@@ -316,6 +316,11 @@ static int check_syslog_permissions(int type, bool from_file)
if (from_file && type != SYSLOG_ACTION_OPEN)
return 0;
}
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
-index 00ab2ca..d237f61 100644
+index ee8d49b..bd3d790 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
-@@ -285,7 +285,7 @@ static int ptrace_attach(struct task_struct *task, long request,
- task->ptrace = PT_PTRACED;
+@@ -280,7 +280,7 @@ static int ptrace_attach(struct task_struct *task, long request,
+
if (seize)
- task->ptrace |= PT_SEIZED;
+ flags |= PT_SEIZED;
- if (ns_capable(task_user_ns(task), CAP_SYS_PTRACE))
+ if (ns_capable_nolog(task_user_ns(task), CAP_SYS_PTRACE))
- task->ptrace |= PT_PTRACE_CAP;
+ flags |= PT_PTRACE_CAP;
+ task->ptrace = flags;
- __ptrace_link(task, current);
-@@ -491,7 +491,7 @@ int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst
+@@ -487,7 +487,7 @@ int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst
break;
return -EIO;
}
return -EFAULT;
copied += retval;
src += retval;
-@@ -688,7 +688,7 @@ int ptrace_request(struct task_struct *child, long request,
+@@ -672,7 +672,7 @@ int ptrace_request(struct task_struct *child, long request,
bool seized = child->ptrace & PT_SEIZED;
int ret = -EIO;
siginfo_t siginfo, *si;
unsigned long __user *datalp = datavp;
unsigned long flags;
-@@ -890,14 +890,21 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, unsigned long, addr,
+@@ -874,14 +874,21 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, unsigned long, addr,
goto out;
}
+ }
+
if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) {
- ret = ptrace_attach(child, request, data);
+ ret = ptrace_attach(child, request, addr, data);
/*
* Some architectures need to do book-keeping after
* a ptrace attach.
goto out_put_task_struct;
}
-@@ -923,7 +930,7 @@ int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr,
+@@ -907,7 +914,7 @@ int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr,
copied = access_process_vm(tsk, addr, &tmp, sizeof(tmp), 0);
if (copied != sizeof(tmp))
return -EIO;
}
int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr,
-@@ -1033,14 +1040,21 @@ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
+@@ -1017,14 +1024,21 @@ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
goto out;
}
+ }
+
if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) {
- ret = ptrace_attach(child, request, data);
+ ret = ptrace_attach(child, request, addr, data);
/*
* Some architectures need to do book-keeping after
* a ptrace attach.
}
diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c
-index 977296d..c4744dc 100644
+index 37a5444..eec170a 100644
--- a/kernel/rcutiny.c
+++ b/kernel/rcutiny.c
@@ -46,7 +46,7 @@
static void __call_rcu(struct rcu_head *head,
void (*func)(struct rcu_head *rcu),
struct rcu_ctrlblk *rcp);
-@@ -297,7 +297,7 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp)
+@@ -307,7 +307,7 @@ static void __rcu_process_callbacks(struct rcu_ctrlblk *rcp)
rcu_is_callbacks_kthread()));
}
__rcu_process_callbacks(&rcu_sched_ctrlblk);
__rcu_process_callbacks(&rcu_bh_ctrlblk);
diff --git a/kernel/rcutiny_plugin.h b/kernel/rcutiny_plugin.h
-index 9cb1ae4..aac7d3e 100644
+index 22ecea0..3789898 100644
--- a/kernel/rcutiny_plugin.h
+++ b/kernel/rcutiny_plugin.h
-@@ -920,7 +920,7 @@ static int rcu_kthread(void *arg)
+@@ -955,7 +955,7 @@ static int rcu_kthread(void *arg)
have_rcu_kthread_work = morework;
local_irq_restore(flags);
if (work)
}
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
-index a58ac28..196a3d8 100644
+index a89b381..efdcad8 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
-@@ -148,12 +148,12 @@ static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) =
+@@ -158,12 +158,12 @@ static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) =
{ 0 };
static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_batch) =
{ 0 };
static long n_rcu_torture_boost_ktrerror;
static long n_rcu_torture_boost_rterror;
static long n_rcu_torture_boost_failure;
-@@ -243,11 +243,11 @@ rcu_torture_alloc(void)
+@@ -253,11 +253,11 @@ rcu_torture_alloc(void)
spin_lock_bh(&rcu_torture_lock);
if (list_empty(&rcu_torture_freelist)) {
p = rcu_torture_freelist.next;
list_del_init(p);
spin_unlock_bh(&rcu_torture_lock);
-@@ -260,7 +260,7 @@ rcu_torture_alloc(void)
+@@ -270,7 +270,7 @@ rcu_torture_alloc(void)
static void
rcu_torture_free(struct rcu_torture *p)
{
spin_lock_bh(&rcu_torture_lock);
list_add_tail(&p->rtort_free, &rcu_torture_freelist);
spin_unlock_bh(&rcu_torture_lock);
-@@ -380,7 +380,7 @@ rcu_torture_cb(struct rcu_head *p)
+@@ -390,7 +390,7 @@ rcu_torture_cb(struct rcu_head *p)
i = rp->rtort_pipe_count;
if (i > RCU_TORTURE_PIPE_LEN)
i = RCU_TORTURE_PIPE_LEN;
if (++rp->rtort_pipe_count >= RCU_TORTURE_PIPE_LEN) {
rp->rtort_mbtest = 0;
rcu_torture_free(rp);
-@@ -427,7 +427,7 @@ static void rcu_sync_torture_deferred_free(struct rcu_torture *p)
+@@ -437,7 +437,7 @@ static void rcu_sync_torture_deferred_free(struct rcu_torture *p)
i = rp->rtort_pipe_count;
if (i > RCU_TORTURE_PIPE_LEN)
i = RCU_TORTURE_PIPE_LEN;
if (++rp->rtort_pipe_count >= RCU_TORTURE_PIPE_LEN) {
rp->rtort_mbtest = 0;
list_del(&rp->rtort_free);
-@@ -916,7 +916,7 @@ rcu_torture_writer(void *arg)
+@@ -926,7 +926,7 @@ rcu_torture_writer(void *arg)
i = old_rp->rtort_pipe_count;
if (i > RCU_TORTURE_PIPE_LEN)
i = RCU_TORTURE_PIPE_LEN;
old_rp->rtort_pipe_count++;
cur_ops->deferred_free(old_rp);
}
-@@ -997,7 +997,7 @@ static void rcu_torture_timer(unsigned long unused)
- return;
+@@ -1007,7 +1007,7 @@ static void rcu_torture_timer(unsigned long unused)
}
+ do_trace_rcu_torture_read(cur_ops->name, &p->rtort_rcu);
if (p->rtort_mbtest == 0)
- atomic_inc(&n_rcu_torture_mberror);
+ atomic_inc_unchecked(&n_rcu_torture_mberror);
spin_lock(&rand_lock);
cur_ops->read_delay(&rand);
n_rcu_torture_timers++;
-@@ -1061,7 +1061,7 @@ rcu_torture_reader(void *arg)
- continue;
+@@ -1071,7 +1071,7 @@ rcu_torture_reader(void *arg)
}
+ do_trace_rcu_torture_read(cur_ops->name, &p->rtort_rcu);
if (p->rtort_mbtest == 0)
- atomic_inc(&n_rcu_torture_mberror);
+ atomic_inc_unchecked(&n_rcu_torture_mberror);
cur_ops->read_delay(&rand);
preempt_disable();
pipe_count = p->rtort_pipe_count;
-@@ -1123,10 +1123,10 @@ rcu_torture_printk(char *page)
+@@ -1133,10 +1133,10 @@ rcu_torture_printk(char *page)
rcu_torture_current,
rcu_torture_current_version,
list_empty(&rcu_torture_freelist),
n_rcu_torture_boost_ktrerror,
n_rcu_torture_boost_rterror,
n_rcu_torture_boost_failure,
-@@ -1136,7 +1136,7 @@ rcu_torture_printk(char *page)
+@@ -1146,7 +1146,7 @@ rcu_torture_printk(char *page)
n_online_attempts,
n_offline_successes,
n_offline_attempts);
n_rcu_torture_boost_ktrerror != 0 ||
n_rcu_torture_boost_rterror != 0 ||
n_rcu_torture_boost_failure != 0)
-@@ -1144,7 +1144,7 @@ rcu_torture_printk(char *page)
+@@ -1154,7 +1154,7 @@ rcu_torture_printk(char *page)
cnt += sprintf(&page[cnt], "\n%s%s ", torture_type, TORTURE_FLAG);
if (i > 1) {
cnt += sprintf(&page[cnt], "!!! ");
WARN_ON_ONCE(1);
}
cnt += sprintf(&page[cnt], "Reader Pipe: ");
-@@ -1158,7 +1158,7 @@ rcu_torture_printk(char *page)
+@@ -1168,7 +1168,7 @@ rcu_torture_printk(char *page)
cnt += sprintf(&page[cnt], "Free-Block Circulation: ");
for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) {
cnt += sprintf(&page[cnt], " %d",
}
cnt += sprintf(&page[cnt], "\n");
if (cur_ops->stats)
-@@ -1600,7 +1600,7 @@ rcu_torture_cleanup(void)
+@@ -1676,7 +1676,7 @@ rcu_torture_cleanup(void)
if (cur_ops->cleanup)
cur_ops->cleanup();
- if (atomic_read(&n_rcu_torture_error))
+ if (atomic_read_unchecked(&n_rcu_torture_error))
rcu_torture_print_module_parms(cur_ops, "End of test: FAILURE");
- else
- rcu_torture_print_module_parms(cur_ops, "End of test: SUCCESS");
-@@ -1664,17 +1664,17 @@ rcu_torture_init(void)
+ else if (n_online_successes != n_online_attempts ||
+ n_offline_successes != n_offline_attempts)
+@@ -1744,17 +1744,17 @@ rcu_torture_init(void)
rcu_torture_current = NULL;
rcu_torture_current_version = 0;
for (i = 0; i < RCU_TORTURE_PIPE_LEN + 1; i++) {
per_cpu(rcu_torture_count, cpu)[i] = 0;
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
-index 6c4a672..70f3202 100644
+index d0c5baf..109b2e7 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
-@@ -363,9 +363,9 @@ static void rcu_idle_enter_common(struct rcu_dynticks *rdtp, long long oldval)
+@@ -357,9 +357,9 @@ static void rcu_idle_enter_common(struct rcu_dynticks *rdtp, long long oldval)
rcu_prepare_for_idle(smp_processor_id());
/* CPUs seeing atomic_inc() must see prior RCU read-side crit sects */
smp_mb__before_atomic_inc(); /* See above. */
smp_mb__after_atomic_inc(); /* Force ordering with next sojourn. */
- WARN_ON_ONCE(atomic_read(&rdtp->dynticks) & 0x1);
+ WARN_ON_ONCE(atomic_read_unchecked(&rdtp->dynticks) & 0x1);
- }
- /**
-@@ -438,10 +438,10 @@ void rcu_irq_exit(void)
+ /*
+ * The idle task is not permitted to enter the idle loop while
+@@ -448,10 +448,10 @@ void rcu_irq_exit(void)
static void rcu_idle_exit_common(struct rcu_dynticks *rdtp, long long oldval)
{
smp_mb__before_atomic_inc(); /* Force ordering w/previous sojourn. */
rcu_cleanup_after_idle(smp_processor_id());
trace_rcu_dyntick("End", oldval, rdtp->dynticks_nesting);
if (!is_idle_task(current)) {
-@@ -531,14 +531,14 @@ void rcu_nmi_enter(void)
+@@ -545,14 +545,14 @@ void rcu_nmi_enter(void)
struct rcu_dynticks *rdtp = &__get_cpu_var(rcu_dynticks);
if (rdtp->dynticks_nmi_nesting == 0 &&
}
/**
-@@ -557,9 +557,9 @@ void rcu_nmi_exit(void)
+@@ -571,9 +571,9 @@ void rcu_nmi_exit(void)
return;
/* CPUs seeing atomic_inc() must see prior RCU read-side crit sects */
smp_mb__before_atomic_inc(); /* See above. */
}
#ifdef CONFIG_PROVE_RCU
-@@ -575,7 +575,7 @@ int rcu_is_cpu_idle(void)
+@@ -589,7 +589,7 @@ int rcu_is_cpu_idle(void)
int ret;
preempt_disable();
preempt_enable();
return ret;
}
-@@ -604,7 +604,7 @@ int rcu_is_cpu_rrupt_from_idle(void)
+@@ -659,7 +659,7 @@ int rcu_is_cpu_rrupt_from_idle(void)
*/
static int dyntick_save_progress_counter(struct rcu_data *rdp)
{
return (rdp->dynticks_snap & 0x1) == 0;
}
-@@ -619,7 +619,7 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
+@@ -674,7 +674,7 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
unsigned int curr;
unsigned int snap;
snap = (unsigned int)rdp->dynticks_snap;
/*
-@@ -1667,7 +1667,7 @@ __rcu_process_callbacks(struct rcu_state *rsp, struct rcu_data *rdp)
+@@ -704,10 +704,10 @@ static int jiffies_till_stall_check(void)
+ * for CONFIG_RCU_CPU_STALL_TIMEOUT.
+ */
+ if (till_stall_check < 3) {
+- ACCESS_ONCE(rcu_cpu_stall_timeout) = 3;
++ ACCESS_ONCE_RW(rcu_cpu_stall_timeout) = 3;
+ till_stall_check = 3;
+ } else if (till_stall_check > 300) {
+- ACCESS_ONCE(rcu_cpu_stall_timeout) = 300;
++ ACCESS_ONCE_RW(rcu_cpu_stall_timeout) = 300;
+ till_stall_check = 300;
+ }
+ return till_stall_check * HZ + RCU_STALL_DELAY_DELTA;
+@@ -1766,7 +1766,7 @@ __rcu_process_callbacks(struct rcu_state *rsp, struct rcu_data *rdp)
/*
* Do RCU core processing for the current CPU.
*/
{
trace_rcu_utilization("Start RCU core");
__rcu_process_callbacks(&rcu_sched_state,
-@@ -2030,7 +2030,7 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
- rdp->qlen = 0;
- rdp->dynticks = &per_cpu(rcu_dynticks, cpu);
- WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != DYNTICK_TASK_NESTING);
-- WARN_ON_ONCE(atomic_read(&rdp->dynticks->dynticks) != 1);
-+ WARN_ON_ONCE(atomic_read_unchecked(&rdp->dynticks->dynticks) != 1);
- rdp->cpu = cpu;
- rdp->rsp = rsp;
- raw_spin_unlock_irqrestore(&rnp->lock, flags);
-@@ -2058,8 +2058,8 @@ rcu_init_percpu_data(int cpu, struct rcu_state *rsp, int preemptible)
- rdp->n_force_qs_snap = rsp->n_force_qs;
- rdp->blimit = blimit;
- rdp->dynticks->dynticks_nesting = DYNTICK_TASK_NESTING;
-- atomic_set(&rdp->dynticks->dynticks,
-- (atomic_read(&rdp->dynticks->dynticks) & ~0x1) + 1);
-+ atomic_set_unchecked(&rdp->dynticks->dynticks,
-+ (atomic_read_unchecked(&rdp->dynticks->dynticks) & ~0x1) + 1);
- rcu_prepare_for_idle_init(cpu);
- raw_spin_unlock(&rnp->lock); /* irqs remain disabled. */
-
-diff --git a/kernel/rcutree.h b/kernel/rcutree.h
-index fddff92..2c08359 100644
---- a/kernel/rcutree.h
-+++ b/kernel/rcutree.h
-@@ -87,7 +87,7 @@ struct rcu_dynticks {
- long long dynticks_nesting; /* Track irq/process nesting level. */
- /* Process level is worth LLONG_MAX/2. */
- int dynticks_nmi_nesting; /* Track NMI nesting level. */
-- atomic_t dynticks; /* Even value for idle, else odd. */
-+ atomic_unchecked_t dynticks;/* Even value for idle, else odd. */
- };
-
- /* RCU's kthread states for tracing. */
-diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
-index 8bb35d7..6ea0a463 100644
---- a/kernel/rcutree_plugin.h
-+++ b/kernel/rcutree_plugin.h
-@@ -850,7 +850,7 @@ void synchronize_rcu_expedited(void)
-
- /* Clean up and exit. */
- smp_mb(); /* ensure expedited GP seen before counter increment. */
-- ACCESS_ONCE(sync_rcu_preempt_exp_count)++;
-+ ACCESS_ONCE_RW(sync_rcu_preempt_exp_count)++;
- unlock_mb_ret:
- mutex_unlock(&sync_rcu_preempt_exp_mutex);
- mb_ret:
-@@ -1833,8 +1833,8 @@ EXPORT_SYMBOL_GPL(synchronize_sched_expedited);
-
- #else /* #ifndef CONFIG_SMP */
+@@ -1949,8 +1949,8 @@ void synchronize_rcu_bh(void)
+ }
+ EXPORT_SYMBOL_GPL(synchronize_rcu_bh);
-static atomic_t sync_sched_expedited_started = ATOMIC_INIT(0);
-static atomic_t sync_sched_expedited_done = ATOMIC_INIT(0);
static int synchronize_sched_expedited_cpu_stop(void *data)
{
-@@ -1889,7 +1889,7 @@ void synchronize_sched_expedited(void)
+@@ -2011,7 +2011,7 @@ void synchronize_sched_expedited(void)
int firstsnap, s, snap, trycount = 0;
/* Note that atomic_inc_return() implies full memory barrier. */
- firstsnap = snap = atomic_inc_return(&sync_sched_expedited_started);
+ firstsnap = snap = atomic_inc_return_unchecked(&sync_sched_expedited_started);
get_online_cpus();
+ WARN_ON_ONCE(cpu_is_offline(raw_smp_processor_id()));
- /*
-@@ -1910,7 +1910,7 @@ void synchronize_sched_expedited(void)
+@@ -2033,7 +2033,7 @@ void synchronize_sched_expedited(void)
}
/* Check to see if someone else did our work for us. */
if (UINT_CMP_GE((unsigned)s, (unsigned)firstsnap)) {
smp_mb(); /* ensure test happens before caller kfree */
return;
-@@ -1925,7 +1925,7 @@ void synchronize_sched_expedited(void)
+@@ -2048,7 +2048,7 @@ void synchronize_sched_expedited(void)
* grace period works for us.
*/
get_online_cpus();
smp_mb(); /* ensure read is before try_stop_cpus(). */
}
-@@ -1936,12 +1936,12 @@ void synchronize_sched_expedited(void)
+@@ -2059,12 +2059,12 @@ void synchronize_sched_expedited(void)
* than we did beat us to the punch.
*/
do {
put_online_cpus();
}
+@@ -2262,7 +2262,7 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
+ rdp->qlen = 0;
+ rdp->dynticks = &per_cpu(rcu_dynticks, cpu);
+ WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != DYNTICK_TASK_EXIT_IDLE);
+- WARN_ON_ONCE(atomic_read(&rdp->dynticks->dynticks) != 1);
++ WARN_ON_ONCE(atomic_read_unchecked(&rdp->dynticks->dynticks) != 1);
+ rdp->cpu = cpu;
+ rdp->rsp = rsp;
+ raw_spin_unlock_irqrestore(&rnp->lock, flags);
+@@ -2290,8 +2290,8 @@ rcu_init_percpu_data(int cpu, struct rcu_state *rsp, int preemptible)
+ rdp->n_force_qs_snap = rsp->n_force_qs;
+ rdp->blimit = blimit;
+ rdp->dynticks->dynticks_nesting = DYNTICK_TASK_EXIT_IDLE;
+- atomic_set(&rdp->dynticks->dynticks,
+- (atomic_read(&rdp->dynticks->dynticks) & ~0x1) + 1);
++ atomic_set_unchecked(&rdp->dynticks->dynticks,
++ (atomic_read_unchecked(&rdp->dynticks->dynticks) & ~0x1) + 1);
+ rcu_prepare_for_idle_init(cpu);
+ raw_spin_unlock(&rnp->lock); /* irqs remain disabled. */
+
+diff --git a/kernel/rcutree.h b/kernel/rcutree.h
+index cdd1be0..5b2efb4 100644
+--- a/kernel/rcutree.h
++++ b/kernel/rcutree.h
+@@ -87,7 +87,7 @@ struct rcu_dynticks {
+ long long dynticks_nesting; /* Track irq/process nesting level. */
+ /* Process level is worth LLONG_MAX/2. */
+ int dynticks_nmi_nesting; /* Track NMI nesting level. */
+- atomic_t dynticks; /* Even value for idle, else odd. */
++ atomic_unchecked_t dynticks;/* Even value for idle, else odd. */
+ };
+
+ /* RCU's kthread states for tracing. */
+diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
+index c023464..7f57225 100644
+--- a/kernel/rcutree_plugin.h
++++ b/kernel/rcutree_plugin.h
+@@ -909,7 +909,7 @@ void synchronize_rcu_expedited(void)
+
+ /* Clean up and exit. */
+ smp_mb(); /* ensure expedited GP seen before counter increment. */
+- ACCESS_ONCE(sync_rcu_preempt_exp_count)++;
++ ACCESS_ONCE_RW(sync_rcu_preempt_exp_count)++;
+ unlock_mb_ret:
+ mutex_unlock(&sync_rcu_preempt_exp_mutex);
+ mb_ret:
diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c
-index 654cfe6..c0b28e2 100644
+index ed459ed..a03c3fa 100644
--- a/kernel/rcutree_trace.c
+++ b/kernel/rcutree_trace.c
@@ -68,7 +68,7 @@ static void print_one_rcu_data(struct seq_file *m, struct rcu_data *rdp)
rdp->dynticks->dynticks_nmi_nesting,
rdp->dynticks_fqs);
diff --git a/kernel/resource.c b/kernel/resource.c
-index 7640b3a..5879283 100644
+index 7e8ea66..1efd11f 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -141,8 +141,18 @@ static const struct file_operations proc_iomem_operations = {
default:
diff --git a/kernel/sched/auto_group.c b/kernel/sched/auto_group.c
-index e8a1f83..363d17d 100644
+index 0984a21..939f183 100644
--- a/kernel/sched/auto_group.c
+++ b/kernel/sched/auto_group.c
@@ -11,7 +11,7 @@
#ifdef CONFIG_RT_GROUP_SCHED
/*
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
-index 478a04c..e16339a 100644
+index 2000e06..79cf3d8 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
-@@ -3851,6 +3851,8 @@ int can_nice(const struct task_struct *p, const int nice)
+@@ -3907,6 +3907,8 @@ int can_nice(const struct task_struct *p, const int nice)
/* convert nice value [19,-20] to rlimit style value [1,40] */
int nice_rlim = 20 - nice;
return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) ||
capable(CAP_SYS_NICE));
}
-@@ -3884,7 +3886,8 @@ SYSCALL_DEFINE1(nice, int, increment)
+@@ -3940,7 +3942,8 @@ SYSCALL_DEFINE1(nice, int, increment)
if (nice > 19)
nice = 19;
return -EPERM;
retval = security_task_setnice(current, nice);
-@@ -4041,6 +4044,7 @@ recheck:
+@@ -4097,6 +4100,7 @@ recheck:
unsigned long rlim_rtprio =
task_rlimit(p, RLIMIT_RTPRIO);
if (policy != p->policy && !rlim_rtprio)
return -EPERM;
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
-index aca16b8..8e3acc4 100644
+index e955364..eacd2a4 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
-@@ -5147,7 +5147,7 @@ static void nohz_idle_balance(int this_cpu, enum cpu_idle_type idle) { }
+@@ -5107,7 +5107,7 @@ static void nohz_idle_balance(int this_cpu, enum cpu_idle_type idle) { }
* run_rebalance_domains is triggered when needed from the scheduler tick.
* Also triggered for nohz idle balancing (with nohz_balancing_kick set).
*/
int this_cpu = smp_processor_id();
struct rq *this_rq = cpu_rq(this_cpu);
diff --git a/kernel/signal.c b/kernel/signal.c
-index b09cf3b..b291c66 100644
+index 17afcaf..4500b05 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
-@@ -46,12 +46,12 @@ static struct kmem_cache *sigqueue_cachep;
+@@ -47,12 +47,12 @@ static struct kmem_cache *sigqueue_cachep;
int print_fatal_signals __read_mostly;
/* Is it explicitly or implicitly ignored? */
return handler == SIG_IGN ||
@@ -61,7 +61,7 @@ static int sig_handler_ignored(void __user *handler, int sig)
- static int sig_task_ignored(struct task_struct *t, int sig,
- int from_ancestor_ns)
+
+ static int sig_task_ignored(struct task_struct *t, int sig, bool force)
{
- void __user *handler;
+ __sighandler_t handler;
return security_task_kill(t, info, sig, 0);
}
-@@ -1197,7 +1207,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
+@@ -1204,7 +1214,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
return send_signal(sig, info, p, 1);
}
specific_send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
{
return send_signal(sig, info, t, 0);
-@@ -1234,6 +1244,7 @@ force_sig_info(int sig, struct siginfo *info, struct task_struct *t)
+@@ -1241,6 +1251,7 @@ force_sig_info(int sig, struct siginfo *info, struct task_struct *t)
unsigned long int flags;
int ret, blocked, ignored;
struct k_sigaction *action;
spin_lock_irqsave(&t->sighand->siglock, flags);
action = &t->sighand->action[sig-1];
-@@ -1248,9 +1259,18 @@ force_sig_info(int sig, struct siginfo *info, struct task_struct *t)
+@@ -1255,9 +1266,18 @@ force_sig_info(int sig, struct siginfo *info, struct task_struct *t)
}
if (action->sa.sa_handler == SIG_DFL)
t->signal->flags &= ~SIGNAL_UNKILLABLE;
return ret;
}
-@@ -1317,8 +1337,11 @@ int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
+@@ -1324,8 +1344,11 @@ int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
ret = check_kill_permission(sig, info, p);
rcu_read_unlock();
return ret;
}
-@@ -2829,7 +2852,15 @@ do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info)
+@@ -2840,7 +2863,15 @@ do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info)
int error = -ESRCH;
rcu_read_lock();
error = check_kill_permission(sig, info, p);
/*
diff --git a/kernel/smp.c b/kernel/smp.c
-index db197d6..17aef0b 100644
+index 2f8b10e..a41bc14 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -580,22 +580,22 @@ int smp_call_function(smp_call_func_t func, void *info, int wait)
raw_spin_unlock_irq(&call_function.lock);
}
diff --git a/kernel/softirq.c b/kernel/softirq.c
-index 4eb3a0f..6f1fa81 100644
+index 671f959..91c51cb 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -56,7 +56,7 @@ static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp
trace_softirq_exit(vec_nr);
if (unlikely(prev_count != preempt_count())) {
printk(KERN_ERR "huh, entered softirq %u %s %p"
-@@ -385,9 +385,11 @@ void raise_softirq(unsigned int nr)
- local_irq_restore(flags);
+@@ -381,9 +381,11 @@ void __raise_softirq_irqoff(unsigned int nr)
+ or_softirq_pending(1UL << nr);
}
-void open_softirq(int nr, void (*action)(struct softirq_action *))
}
/*
-@@ -441,7 +443,7 @@ void __tasklet_hi_schedule_first(struct tasklet_struct *t)
+@@ -437,7 +439,7 @@ void __tasklet_hi_schedule_first(struct tasklet_struct *t)
EXPORT_SYMBOL(__tasklet_hi_schedule_first);
{
struct tasklet_struct *list;
-@@ -476,7 +478,7 @@ static void tasklet_action(struct softirq_action *a)
+@@ -472,7 +474,7 @@ static void tasklet_action(struct softirq_action *a)
}
}
struct tasklet_struct *list;
diff --git a/kernel/sys.c b/kernel/sys.c
-index 888d227..f04b318 100644
+index e7006eb..8fb7c51 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -158,6 +158,12 @@ static int set_one_prio(struct task_struct *p, int niceval, int error)
no_nice = security_task_setnice(p, niceval);
if (no_nice) {
error = no_nice;
-@@ -572,6 +578,9 @@ SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid)
+@@ -581,6 +587,9 @@ SYSCALL_DEFINE2(setregid, gid_t, rgid, gid_t, egid)
goto error;
}
if (rgid != (gid_t) -1 ||
(egid != (gid_t) -1 && egid != old->gid))
new->sgid = new->egid;
-@@ -601,6 +610,10 @@ SYSCALL_DEFINE1(setgid, gid_t, gid)
+@@ -610,6 +619,10 @@ SYSCALL_DEFINE1(setgid, gid_t, gid)
old = current_cred();
retval = -EPERM;
if (nsown_capable(CAP_SETGID))
new->gid = new->egid = new->sgid = new->fsgid = gid;
else if (gid == old->gid || gid == old->sgid)
-@@ -618,7 +631,7 @@ error:
+@@ -627,7 +640,7 @@ error:
/*
* change the user struct in a credentials set to match the new UID
*/
{
struct user_struct *new_user;
-@@ -688,6 +701,9 @@ SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid)
+@@ -697,6 +710,9 @@ SYSCALL_DEFINE2(setreuid, uid_t, ruid, uid_t, euid)
goto error;
}
if (new->uid != old->uid) {
retval = set_user(new);
if (retval < 0)
-@@ -732,6 +748,12 @@ SYSCALL_DEFINE1(setuid, uid_t, uid)
+@@ -741,6 +757,12 @@ SYSCALL_DEFINE1(setuid, uid_t, uid)
old = current_cred();
retval = -EPERM;
if (nsown_capable(CAP_SETUID)) {
new->suid = new->uid = uid;
if (uid != old->uid) {
-@@ -786,6 +808,9 @@ SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid)
+@@ -795,6 +817,9 @@ SYSCALL_DEFINE3(setresuid, uid_t, ruid, uid_t, euid, uid_t, suid)
goto error;
}
if (ruid != (uid_t) -1) {
new->uid = ruid;
if (ruid != old->uid) {
-@@ -850,6 +875,9 @@ SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid)
+@@ -859,6 +884,9 @@ SYSCALL_DEFINE3(setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid)
goto error;
}
if (rgid != (gid_t) -1)
new->gid = rgid;
if (egid != (gid_t) -1)
-@@ -896,6 +924,9 @@ SYSCALL_DEFINE1(setfsuid, uid_t, uid)
+@@ -905,6 +933,9 @@ SYSCALL_DEFINE1(setfsuid, uid_t, uid)
old = current_cred();
old_fsuid = old->fsuid;
if (uid == old->uid || uid == old->euid ||
uid == old->suid || uid == old->fsuid ||
nsown_capable(CAP_SETUID)) {
-@@ -906,6 +937,7 @@ SYSCALL_DEFINE1(setfsuid, uid_t, uid)
+@@ -915,6 +946,7 @@ SYSCALL_DEFINE1(setfsuid, uid_t, uid)
}
}
abort_creds(new);
return old_fsuid;
-@@ -932,12 +964,16 @@ SYSCALL_DEFINE1(setfsgid, gid_t, gid)
+@@ -941,12 +973,16 @@ SYSCALL_DEFINE1(setfsgid, gid_t, gid)
if (gid == old->gid || gid == old->egid ||
gid == old->sgid || gid == old->fsgid ||
nsown_capable(CAP_SETGID)) {
abort_creds(new);
return old_fsgid;
-@@ -1189,7 +1225,10 @@ static int override_release(char __user *release, int len)
+@@ -1198,7 +1234,10 @@ static int override_release(char __user *release, int len)
}
v = ((LINUX_VERSION_CODE >> 8) & 0xff) + 40;
snprintf(buf, len, "2.6.%u%s", v, rest);
}
return ret;
}
-@@ -1243,19 +1282,19 @@ SYSCALL_DEFINE1(olduname, struct oldold_utsname __user *, name)
+@@ -1252,19 +1291,19 @@ SYSCALL_DEFINE1(olduname, struct oldold_utsname __user *, name)
return -EFAULT;
down_read(&uts_sem);
__OLD_UTS_LEN);
error |= __put_user(0, name->machine + __OLD_UTS_LEN);
up_read(&uts_sem);
-@@ -1838,7 +1877,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
+@@ -1847,7 +1886,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
error = get_dumpable(me->mm);
break;
case PR_SET_DUMPABLE:
break;
}
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
-index f03a6ef..5fcc8af 100644
+index 4ab1187..0b75ced 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
-@@ -86,6 +86,13 @@
+@@ -91,7 +91,6 @@
#if defined(CONFIG_SYSCTL)
-+#include <linux/grsecurity.h>
-+#include <linux/grinternal.h>
-+
-+extern __u32 gr_handle_sysctl(const ctl_table *table, const int op);
-+extern int gr_handle_sysctl_mod(const char *dirname, const char *name,
-+ const int op);
-+extern int gr_handle_chroot_sysctl(const int op);
-
+-
/* External variables not in a header file. */
extern int sysctl_overcommit_memory;
-@@ -191,6 +198,7 @@ static int sysrq_sysctl_handler(ctl_table *table, int write,
- }
+ extern int sysctl_overcommit_ratio;
+@@ -169,10 +168,8 @@ static int proc_taint(struct ctl_table *table, int write,
+ void __user *buffer, size_t *lenp, loff_t *ppos);
+ #endif
+
+-#ifdef CONFIG_PRINTK
+ static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
+ void __user *buffer, size_t *lenp, loff_t *ppos);
+-#endif
+
+ #ifdef CONFIG_MAGIC_SYSRQ
+ /* Note: sysrq code uses it's own private copy */
+@@ -196,6 +193,8 @@ static int sysrq_sysctl_handler(ctl_table *table, int write,
#endif
-+extern struct ctl_table grsecurity_table[];
- static struct ctl_table root_table[];
- static struct ctl_table_root sysctl_table_root;
-@@ -220,6 +228,20 @@ extern struct ctl_table epoll_table[];
++extern struct ctl_table grsecurity_table[];
++
+ static struct ctl_table kern_table[];
+ static struct ctl_table vm_table[];
+ static struct ctl_table fs_table[];
+@@ -210,6 +209,20 @@ extern struct ctl_table epoll_table[];
int sysctl_legacy_va_layout;
#endif
+
/* The default sysctl tables: */
- static struct ctl_table root_table[] = {
-@@ -266,6 +288,22 @@ static int max_extfrag_threshold = 1000;
+ static struct ctl_table sysctl_base_table[] = {
+@@ -256,6 +269,22 @@ static int max_extfrag_threshold = 1000;
#endif
static struct ctl_table kern_table[] = {
{
.procname = "sched_child_runs_first",
.data = &sysctl_sched_child_runs_first,
-@@ -550,7 +588,7 @@ static struct ctl_table kern_table[] = {
+@@ -540,7 +569,7 @@ static struct ctl_table kern_table[] = {
.data = &modprobe_path,
.maxlen = KMOD_PATH_LEN,
.mode = 0644,
},
{
.procname = "modules_disabled",
-@@ -717,16 +755,20 @@ static struct ctl_table kern_table[] = {
+@@ -707,16 +736,20 @@ static struct ctl_table kern_table[] = {
.extra1 = &zero,
.extra2 = &one,
},
{
.procname = "ngroups_max",
.data = &ngroups_max,
-@@ -1225,6 +1267,13 @@ static struct ctl_table vm_table[] = {
+@@ -1215,6 +1248,13 @@ static struct ctl_table vm_table[] = {
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
},
#else
{
.procname = "nr_trim_pages",
-@@ -1729,6 +1778,17 @@ static int test_perm(int mode, int op)
- int sysctl_perm(struct ctl_table_root *root, struct ctl_table *table, int op)
- {
- int mode;
-+ int error;
-+
-+ if (table->parent != NULL && table->parent->procname != NULL &&
-+ table->procname != NULL &&
-+ gr_handle_sysctl_mod(table->parent->procname, table->procname, op))
-+ return -EACCES;
-+ if (gr_handle_chroot_sysctl(op))
-+ return -EACCES;
-+ error = gr_handle_sysctl(table, op);
-+ if (error)
-+ return error;
-
- if (root->permissions)
- mode = root->permissions(root, current->nsproxy, table);
-@@ -2133,6 +2193,16 @@ int proc_dostring(struct ctl_table *table, int write,
+@@ -1645,6 +1685,16 @@ int proc_dostring(struct ctl_table *table, int write,
buffer, lenp, ppos);
}
static size_t proc_skip_spaces(char **buf)
{
size_t ret;
-@@ -2238,6 +2308,8 @@ static int proc_put_long(void __user **buf, size_t *size, unsigned long val,
+@@ -1750,6 +1800,8 @@ static int proc_put_long(void __user **buf, size_t *size, unsigned long val,
len = strlen(tmp);
if (len > *size)
len = *size;
if (copy_to_user(*buf, tmp, len))
return -EFAULT;
*size -= len;
-@@ -2554,8 +2626,11 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int
+@@ -1942,7 +1994,6 @@ static int proc_taint(struct ctl_table *table, int write,
+ return err;
+ }
+
+-#ifdef CONFIG_PRINTK
+ static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
+ void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+@@ -1951,7 +2002,6 @@ static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
+
+ return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
+ }
+-#endif
+
+ struct do_proc_dointvec_minmax_conv_param {
+ int *min;
+@@ -2066,8 +2116,11 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int
*i = val;
} else {
val = convdiv * (*i) / convmul;
err = proc_put_long(&buffer, &left, val, false);
if (err)
break;
-@@ -2950,6 +3025,12 @@ int proc_dostring(struct ctl_table *table, int write,
+@@ -2459,6 +2512,12 @@ int proc_dostring(struct ctl_table *table, int write,
return -ENOSYS;
}
int proc_dointvec(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
-@@ -3006,6 +3087,7 @@ EXPORT_SYMBOL(proc_dointvec_minmax);
+@@ -2515,5 +2574,6 @@ EXPORT_SYMBOL(proc_dointvec_minmax);
EXPORT_SYMBOL(proc_dointvec_userhz_jiffies);
EXPORT_SYMBOL(proc_dointvec_ms_jiffies);
EXPORT_SYMBOL(proc_dostring);
+EXPORT_SYMBOL(proc_dostring_modpriv);
EXPORT_SYMBOL(proc_doulongvec_minmax);
EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
- EXPORT_SYMBOL(register_sysctl_table);
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c
index a650694..aaeeb20 100644
--- a/kernel/sysctl_binary.c
set_fs(old_fs);
if (result < 0)
goto out;
-diff --git a/kernel/sysctl_check.c b/kernel/sysctl_check.c
-index 362da65..ab8ef8c 100644
---- a/kernel/sysctl_check.c
-+++ b/kernel/sysctl_check.c
-@@ -129,6 +129,7 @@ int sysctl_check_table(struct nsproxy *namespaces, struct ctl_table *table)
- set_fail(&fail, table, "Directory with extra2");
- } else {
- if ((table->proc_handler == proc_dostring) ||
-+ (table->proc_handler == proc_dostring_modpriv) ||
- (table->proc_handler == proc_dointvec) ||
- (table->proc_handler == proc_dointvec_minmax) ||
- (table->proc_handler == proc_dointvec_jiffies) ||
diff --git a/kernel/taskstats.c b/kernel/taskstats.c
index e660464..c8b9e67 100644
--- a/kernel/taskstats.c
return cmd_attr_register_cpumask(info);
else if (info->attrs[TASKSTATS_CMD_ATTR_DEREGISTER_CPUMASK])
diff --git a/kernel/time.c b/kernel/time.c
-index 73e416d..cfc6f69 100644
+index ba744cf..267b7c5 100644
--- a/kernel/time.c
+++ b/kernel/time.c
@@ -163,6 +163,11 @@ int do_sys_settimeofday(const struct timespec *tv, const struct timezone *tz)
+ if (!tv)
+ gr_log_timechange();
+
- /* SMP safe, global irq locking makes it work. */
sys_tz = *tz;
update_vsyscall_tz();
+ if (firsttime) {
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
-index 8a46f5d..bbe6f9c 100644
+index 8a538c5..def79d4 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
-@@ -773,7 +773,7 @@ static int __init alarmtimer_init(void)
+@@ -779,7 +779,7 @@ static int __init alarmtimer_init(void)
struct platform_device *pdev;
int error = 0;
int i;
.clock_get = alarm_clock_get,
.timer_create = alarm_timer_create,
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
-index fd4a7b1..fae5c2a 100644
+index f113755..ec24223 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -115,7 +115,7 @@ int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
cpumask_clear_cpu(cpu, tick_get_broadcast_mask());
tick_broadcast_clear_oneshot(cpu);
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
-index 0c63581..e25dcb6 100644
+index d42574df..247414c 100644
--- a/kernel/time/timekeeping.c
+++ b/kernel/time/timekeeping.c
@@ -14,6 +14,7 @@
#include <linux/syscore_ops.h>
#include <linux/clocksource.h>
#include <linux/jiffies.h>
-@@ -365,6 +366,8 @@ int do_settimeofday(const struct timespec *tv)
+@@ -373,6 +374,8 @@ int do_settimeofday(const struct timespec *tv)
if ((unsigned long)tv->tv_nsec >= NSEC_PER_SEC)
return -EINVAL;
+ gr_log_timechange();
+
- write_seqlock_irqsave(&xtime_lock, flags);
+ write_seqlock_irqsave(&timekeeper.lock, flags);
timekeeping_forward_now();
diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c
struct tvec_base *base = __this_cpu_read(tvec_bases);
diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c
-index cdea7b5..9b820d4 100644
+index c0bd030..62a1927 100644
--- a/kernel/trace/blktrace.c
+++ b/kernel/trace/blktrace.c
-@@ -324,7 +324,7 @@ static ssize_t blk_dropped_read(struct file *filp, char __user *buffer,
+@@ -317,7 +317,7 @@ static ssize_t blk_dropped_read(struct file *filp, char __user *buffer,
struct blk_trace *bt = filp->private_data;
char buf[16];
return simple_read_from_buffer(buffer, count, ppos, buf, strlen(buf));
}
-@@ -389,7 +389,7 @@ static int blk_subbuf_start_callback(struct rchan_buf *buf, void *subbuf,
+@@ -375,7 +375,7 @@ static int blk_subbuf_start_callback(struct rchan_buf *buf, void *subbuf,
return 1;
bt = buf->chan->private_data;
return 0;
}
-@@ -490,7 +490,7 @@ int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
+@@ -476,7 +476,7 @@ int do_blk_trace_setup(struct request_queue *q, char *name, dev_t dev,
bt->dir = dir;
bt->dev = dev;
ret = -EIO;
bt->dropped_file = debugfs_create_file("dropped", 0444, dir, bt,
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
-index 683d559..d70d914 100644
+index 0fa92f6..89950b2 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
-@@ -1726,12 +1726,17 @@ ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec)
+@@ -1800,12 +1800,17 @@ ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec)
if (unlikely(ftrace_disabled))
return 0;
}
/*
-@@ -2843,7 +2848,7 @@ static void ftrace_free_entry_rcu(struct rcu_head *rhp)
+@@ -2917,7 +2922,7 @@ static void ftrace_free_entry_rcu(struct rcu_head *rhp)
int
register_ftrace_function_probe(char *glob, struct ftrace_probe_ops *ops,
struct ftrace_func_probe *entry;
struct ftrace_page *pg;
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
-index c4579f1..6a439da 100644
+index 2a22255..cdcdd06 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
-@@ -4258,10 +4258,9 @@ static const struct file_operations tracing_dyn_info_fops = {
+@@ -4312,10 +4312,9 @@ static const struct file_operations tracing_dyn_info_fops = {
};
#endif
static int once;
if (d_tracer)
-@@ -4281,10 +4280,9 @@ struct dentry *tracing_init_dentry(void)
+@@ -4335,10 +4334,9 @@ struct dentry *tracing_init_dentry(void)
return d_tracer;
}
struct dentry *d_tracer;
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
-index c212a7f..7b02394 100644
+index 29111da..d190fe2 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
-@@ -1299,10 +1299,6 @@ static LIST_HEAD(ftrace_module_file_list);
+@@ -1308,10 +1308,6 @@ static LIST_HEAD(ftrace_module_file_list);
struct ftrace_module_file_ops {
struct list_head list;
struct module *mod;
};
static struct ftrace_module_file_ops *
-@@ -1323,17 +1319,12 @@ trace_create_file_ops(struct module *mod)
+@@ -1332,17 +1328,12 @@ trace_create_file_ops(struct module *mod)
file_ops->mod = mod;
list_add(&file_ops->list, &ftrace_module_file_list);
-@@ -1357,8 +1348,8 @@ static void trace_module_add_events(struct module *mod)
+@@ -1366,8 +1357,8 @@ static void trace_module_add_events(struct module *mod)
for_each_event(call, start, end) {
__trace_add_event_call(*call, mod,
}
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
-index 00d527c..7c5b1a3 100644
+index 580a05e..9b31acb 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -217,7 +217,7 @@ static __kprobes void FETCH_FUNC_NAME(memory, string)(struct pt_regs *regs,
}
entry = ring_buffer_event_data(event);
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
-index d9c07f0..c1eeceb 100644
+index df611a0..10d8b32 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
-@@ -278,7 +278,7 @@ int trace_seq_path(struct trace_seq *s, struct path *path)
+@@ -278,7 +278,7 @@ int trace_seq_path(struct trace_seq *s, const struct path *path)
p = d_path(path, s->buffer + s->len, PAGE_SIZE - s->len);
if (!IS_ERR(p)) {
put_task_struct(tsk);
}
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
-index 8745ac7..d144e37 100644
+index 6777153..8519f60 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
-@@ -1103,6 +1103,7 @@ config LATENCYTOP
+@@ -1132,6 +1132,7 @@ config LATENCYTOP
depends on DEBUG_KERNEL
depends on STACKTRACE_SUPPORT
depends on PROC_FS
select KALLSYMS
select KALLSYMS_ALL
diff --git a/lib/bitmap.c b/lib/bitmap.c
-index 0d4a127..33a06c7 100644
+index b5a8b6a..a69623c 100644
--- a/lib/bitmap.c
+++ b/lib/bitmap.c
-@@ -419,7 +419,7 @@ int __bitmap_parse(const char *buf, unsigned int buflen,
+@@ -421,7 +421,7 @@ int __bitmap_parse(const char *buf, unsigned int buflen,
{
int c, old_c, totaldigits, ndigits, nchunks, nbits;
u32 chunk;
bitmap_zero(maskp, nmaskbits);
-@@ -504,7 +504,7 @@ int bitmap_parse_user(const char __user *ubuf,
+@@ -506,7 +506,7 @@ int bitmap_parse_user(const char __user *ubuf,
{
if (!access_ok(VERIFY_READ, ubuf, ulen))
return -EFAULT;
ulen, 1, maskp, nmaskbits);
}
-@@ -596,7 +596,7 @@ static int __bitmap_parselist(const char *buf, unsigned int buflen,
+@@ -598,7 +598,7 @@ static int __bitmap_parselist(const char *buf, unsigned int buflen,
{
unsigned a, b;
int c, old_c, totaldigits;
int exp_digit, in_range;
totaldigits = c = 0;
-@@ -696,7 +696,7 @@ int bitmap_parselist_user(const char __user *ubuf,
+@@ -698,7 +698,7 @@ int bitmap_parselist_user(const char __user *ubuf,
{
if (!access_ok(VERIFY_READ, ubuf, ulen))
return -EFAULT;
return;
diff --git a/lib/devres.c b/lib/devres.c
-index 9676617..5149e15 100644
+index 80b9c76..9e32279 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -80,7 +80,7 @@ EXPORT_SYMBOL(devm_ioremap_nocache);
EXPORT_SYMBOL(devm_ioport_unmap);
diff --git a/lib/dma-debug.c b/lib/dma-debug.c
-index fea790a..ebb0e82 100644
+index 13ef233..5241683 100644
--- a/lib/dma-debug.c
+++ b/lib/dma-debug.c
-@@ -925,7 +925,7 @@ out:
+@@ -924,7 +924,7 @@ out:
static void check_for_stack(struct device *dev, void *addr)
{
#endif
diff --git a/lib/ioremap.c b/lib/ioremap.c
-index da4e2ad..6373b5f 100644
+index 0c9216c..863bd89 100644
--- a/lib/ioremap.c
+++ b/lib/ioremap.c
@@ -38,7 +38,7 @@ static inline int ioremap_pmd_range(pud_t *pud, unsigned long addr,
return false;
diff --git a/lib/radix-tree.c b/lib/radix-tree.c
-index dc63d08..95ae14a 100644
+index 3ac50dc..240bb7e 100644
--- a/lib/radix-tree.c
+++ b/lib/radix-tree.c
-@@ -78,7 +78,7 @@ struct radix_tree_preload {
+@@ -79,7 +79,7 @@ struct radix_tree_preload {
int nr;
struct radix_tree_node *nodes[RADIX_TREE_MAX_PATH];
};
static inline void *ptr_to_indirect(void *ptr)
{
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
-index 38e612e..4fb99a8 100644
+index abbabec..362988d 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -16,6 +16,9 @@
+#define __INCLUDED_BY_HIDESYM 1
+#endif
#include <stdarg.h>
- #include <linux/module.h>
+ #include <linux/module.h> /* for KSYM_SYMBOL_LEN */
#include <linux/types.h>
-@@ -413,7 +416,7 @@ char *symbol_string(char *buf, char *end, void *ptr,
+@@ -433,7 +436,7 @@ char *symbol_string(char *buf, char *end, void *ptr,
char sym[KSYM_SYMBOL_LEN];
if (ext == 'B')
sprint_backtrace(sym, value);
sprint_symbol(sym, value);
else
kallsyms_lookup(value, NULL, NULL, NULL, sym);
-@@ -789,7 +792,11 @@ char *netdev_feature_string(char *buf, char *end, const u8 *addr,
+@@ -809,7 +812,11 @@ char *netdev_feature_string(char *buf, char *end, const u8 *addr,
return number(buf, end, *(const netdev_features_t *)addr, spec);
}
/*
* Show a '%p' thing. A kernel extension is that the '%p' is followed
-@@ -803,6 +810,8 @@ int kptr_restrict __read_mostly;
+@@ -823,6 +830,8 @@ int kptr_restrict __read_mostly;
* - 'S' For symbolic direct pointers with offset
* - 's' For symbolic direct pointers without offset
* - 'B' For backtraced symbolic direct pointers with offset
* - 'R' For decoded struct resource, e.g., [mem 0x0-0x1f 64bit pref]
* - 'r' For raw struct resource, e.g., [mem 0x0-0x1f flags 0x201]
* - 'M' For a 6-byte MAC address, it prints the address in the
-@@ -848,12 +857,12 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
+@@ -868,12 +877,12 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
{
if (!ptr && *fmt != 'K') {
/*
}
switch (*fmt) {
-@@ -863,6 +872,13 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
+@@ -883,6 +892,13 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
/* Fallthrough */
case 'S':
case 's':
case 'B':
return symbol_string(buf, end, ptr, spec, *fmt);
case 'R':
-@@ -1633,11 +1649,11 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
+@@ -1653,11 +1669,11 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
typeof(type) value; \
if (sizeof(type) == 8) { \
args = PTR_ALIGN(args, sizeof(u32)); \
} \
args += sizeof(type); \
value; \
-@@ -1700,7 +1716,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
+@@ -1720,7 +1736,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
case FORMAT_TYPE_STR: {
const char *str_arg = args;
args += strlen(str_arg) + 1;
@@ -0,0 +1 @@
+-grsec
diff --git a/mm/Kconfig b/mm/Kconfig
-index e338407..49b5b7a 100644
+index e338407..4210331 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -247,10 +247,10 @@ config KSM
This is the portion of low virtual memory which should be protected
from userspace allocation. Keeping a user from writing to low pages
can help reduce the impact of kernel NULL pointer bugs.
+@@ -280,7 +280,7 @@ config MEMORY_FAILURE
+
+ config HWPOISON_INJECT
+ tristate "HWPoison pages injector"
+- depends on MEMORY_FAILURE && DEBUG_KERNEL && PROC_FS
++ depends on MEMORY_FAILURE && DEBUG_KERNEL && PROC_FS && !GRKERNSEC
+ select PROC_PAGE_MONITOR
+
+ config NOMMU_INITIAL_TRIM_EXCESS
diff --git a/mm/filemap.c b/mm/filemap.c
-index b662757..3081ddd 100644
+index 79c4b2b..596b417 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
-@@ -1770,7 +1770,7 @@ int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
+@@ -1762,7 +1762,7 @@ int generic_file_mmap(struct file * file, struct vm_area_struct * vma)
struct address_space *mapping = file->f_mapping;
if (!mapping->a_ops->readpage)
file_accessed(file);
vma->vm_ops = &generic_file_vm_ops;
vma->vm_flags |= VM_CAN_NONLINEAR;
-@@ -2176,6 +2176,7 @@ inline int generic_write_checks(struct file *file, loff_t *pos, size_t *count, i
+@@ -2168,6 +2168,7 @@ inline int generic_write_checks(struct file *file, loff_t *pos, size_t *count, i
*pos = i_size_read(inode);
if (limit != RLIM_INFINITY) {
set_page_address(page, (void *)vaddr);
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
-index 8f7fc39..69bf1e9 100644
+index f0e5306..cb9398e 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -733,7 +733,7 @@ out:
/* if an huge pmd materialized from under us just retry later */
if (unlikely(pmd_trans_huge(*pmd)))
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
-index 24b1787..e0fbc01 100644
+index 263e177..3f36aec 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
-@@ -2425,6 +2425,27 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2446,6 +2446,27 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
return 1;
}
/*
* Hugetlb_cow() should be called with page lock of the original hugepage held.
* Called with hugetlb_instantiation_mutex held and pte_page locked so we
-@@ -2538,6 +2559,11 @@ retry_avoidcopy:
+@@ -2558,6 +2579,11 @@ retry_avoidcopy:
make_huge_pte(vma, new_page, 1));
page_remove_rmap(old_page);
hugepage_add_new_anon_rmap(new_page, vma, address);
/* Make the old page be freed below */
new_page = old_page;
mmu_notifier_invalidate_range_end(mm,
-@@ -2692,6 +2718,10 @@ retry:
+@@ -2712,6 +2738,10 @@ retry:
&& (vma->vm_flags & VM_SHARED)));
set_huge_pte_at(mm, address, ptep, new_pte);
if ((flags & FAULT_FLAG_WRITE) && !(vma->vm_flags & VM_SHARED)) {
/* Optimization, do the COW without a second fault */
ret = hugetlb_cow(mm, vma, address, ptep, new_pte, page);
-@@ -2721,6 +2751,10 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2741,6 +2771,10 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
static DEFINE_MUTEX(hugetlb_instantiation_mutex);
struct hstate *h = hstate_vma(vma);
address &= huge_page_mask(h);
ptep = huge_pte_offset(mm, address);
-@@ -2734,6 +2768,26 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2754,6 +2788,26 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
VM_FAULT_SET_HINDEX(h - hstates);
}
set_fs(old_fs);
diff --git a/mm/madvise.c b/mm/madvise.c
-index 74bf193..feb6fd3 100644
+index 1ccbba5..79e16f9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -45,6 +45,10 @@ static long madvise_behavior(struct vm_area_struct * vma,
switch (behavior) {
case MADV_NORMAL:
new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ;
-@@ -110,6 +114,13 @@ success:
+@@ -116,6 +120,13 @@ success:
/*
* vm_flags is protected by the mmap_sem held in write mode.
*/
vma->vm_flags = new_flags;
out:
-@@ -168,6 +179,11 @@ static long madvise_dontneed(struct vm_area_struct * vma,
+@@ -174,6 +185,11 @@ static long madvise_dontneed(struct vm_area_struct * vma,
struct vm_area_struct ** prev,
unsigned long start, unsigned long end)
{
*prev = vma;
if (vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_PFNMAP))
return -EINVAL;
-@@ -180,6 +196,21 @@ static long madvise_dontneed(struct vm_area_struct * vma,
+@@ -186,6 +202,21 @@ static long madvise_dontneed(struct vm_area_struct * vma,
zap_page_range(vma, start, end - start, &details);
} else
zap_page_range(vma, start, end - start, NULL);
return 0;
}
-@@ -376,6 +407,16 @@ SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior)
+@@ -384,6 +415,16 @@ SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior)
if (end < start)
goto out;
if (end == start)
goto out;
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
-index 56080ea..115071e 100644
+index 97cc273..6ed703f 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -61,7 +61,7 @@ int sysctl_memory_failure_early_kill __read_mostly = 0;
#if defined(CONFIG_HWPOISON_INJECT) || defined(CONFIG_HWPOISON_INJECT_MODULE)
-@@ -202,7 +202,7 @@ static int kill_proc_ao(struct task_struct *t, unsigned long addr, int trapno,
+@@ -202,7 +202,7 @@ static int kill_proc(struct task_struct *t, unsigned long addr, int trapno,
+ pfn, t->comm, t->pid);
si.si_signo = SIGBUS;
si.si_errno = 0;
- si.si_code = BUS_MCEERR_AO;
- si.si_addr = (void *)addr;
+ si.si_addr = (void __user *)addr;
#ifdef __ARCH_SI_TRAPNO
si.si_trapno = trapno;
#endif
-@@ -1010,7 +1010,7 @@ int __memory_failure(unsigned long pfn, int trapno, int flags)
+@@ -1036,7 +1036,7 @@ int memory_failure(unsigned long pfn, int trapno, int flags)
}
nr_pages = 1 << compound_trans_order(hpage);
/*
* We need/can do nothing about count=0 pages.
-@@ -1040,7 +1040,7 @@ int __memory_failure(unsigned long pfn, int trapno, int flags)
+@@ -1066,7 +1066,7 @@ int memory_failure(unsigned long pfn, int trapno, int flags)
if (!PageHWPoison(hpage)
|| (hwpoison_filter(p) && TestClearPageHWPoison(p))
|| (p != hpage && TestSetPageHWPoison(hpage))) {
return 0;
}
set_page_hwpoison_huge_page(hpage);
-@@ -1098,7 +1098,7 @@ int __memory_failure(unsigned long pfn, int trapno, int flags)
+@@ -1124,7 +1124,7 @@ int memory_failure(unsigned long pfn, int trapno, int flags)
}
if (hwpoison_filter(p)) {
if (TestClearPageHWPoison(p))
unlock_page(hpage);
put_page(hpage);
return 0;
-@@ -1315,7 +1315,7 @@ int unpoison_memory(unsigned long pfn)
+@@ -1319,7 +1319,7 @@ int unpoison_memory(unsigned long pfn)
return 0;
}
if (TestClearPageHWPoison(p))
pr_info("MCE: Software-unpoisoned free page %#lx\n", pfn);
return 0;
}
-@@ -1329,7 +1329,7 @@ int unpoison_memory(unsigned long pfn)
+@@ -1333,7 +1333,7 @@ int unpoison_memory(unsigned long pfn)
*/
if (TestClearPageHWPoison(page)) {
pr_info("MCE: Software-unpoisoned page %#lx\n", pfn);
freeit = 1;
if (PageHuge(page))
clear_page_hwpoison_huge_page(page);
-@@ -1442,7 +1442,7 @@ static int soft_offline_huge_page(struct page *page, int flags)
+@@ -1446,7 +1446,7 @@ static int soft_offline_huge_page(struct page *page, int flags)
}
done:
if (!PageHWPoison(hpage))
set_page_hwpoison_huge_page(hpage);
dequeue_hwpoisoned_huge_page(hpage);
/* keep elevated page count for bad page */
-@@ -1573,7 +1573,7 @@ int soft_offline_page(struct page *page, int flags)
+@@ -1577,7 +1577,7 @@ int soft_offline_page(struct page *page, int flags)
return ret;
done:
/* keep elevated page count for bad page */
return ret;
diff --git a/mm/memory.c b/mm/memory.c
-index 10b4dda..06857f3 100644
+index 6105f47..3363489 100644
--- a/mm/memory.c
+++ b/mm/memory.c
-@@ -457,8 +457,12 @@ static inline void free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
+@@ -434,8 +434,12 @@ static inline void free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
return;
pmd = pmd_offset(pud, start);
}
static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
-@@ -489,9 +493,12 @@ static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
+@@ -466,9 +470,12 @@ static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
if (end - 1 > ceiling - 1)
return;
}
/*
-@@ -1593,12 +1600,6 @@ no_page_table:
+@@ -1597,12 +1604,6 @@ no_page_table:
return page;
}
/**
* __get_user_pages() - pin user pages in memory
* @tsk: task_struct of target task
-@@ -1671,10 +1672,10 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
+@@ -1675,10 +1676,10 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
(VM_MAYREAD | VM_MAYWRITE) : (VM_READ | VM_WRITE);
i = 0;
if (!vma && in_gate_area(mm, start)) {
unsigned long pg = start & PAGE_MASK;
pgd_t *pgd;
-@@ -1722,7 +1723,7 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
+@@ -1726,7 +1727,7 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
goto next_page;
}
(vma->vm_flags & (VM_IO | VM_PFNMAP)) ||
!(vm_flags & vma->vm_flags))
return i ? : -EFAULT;
-@@ -1749,11 +1750,6 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
+@@ -1753,11 +1754,6 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
int ret;
unsigned int fault_flags = 0;
if (foll_flags & FOLL_WRITE)
fault_flags |= FAULT_FLAG_WRITE;
if (nonblocking)
-@@ -1827,7 +1823,7 @@ next_page:
+@@ -1831,7 +1827,7 @@ next_page:
start += PAGE_SIZE;
nr_pages--;
} while (nr_pages && start < vma->vm_end);
return i;
}
EXPORT_SYMBOL(__get_user_pages);
-@@ -2034,6 +2030,10 @@ static int insert_page(struct vm_area_struct *vma, unsigned long addr,
+@@ -2038,6 +2034,10 @@ static int insert_page(struct vm_area_struct *vma, unsigned long addr,
page_add_file_rmap(page);
set_pte_at(mm, addr, pte, mk_pte(page, prot));
retval = 0;
pte_unmap_unlock(pte, ptl);
return retval;
-@@ -2068,10 +2068,22 @@ out:
+@@ -2072,10 +2072,22 @@ out:
int vm_insert_page(struct vm_area_struct *vma, unsigned long addr,
struct page *page)
{
vma->vm_flags |= VM_INSERTPAGE;
return insert_page(vma, addr, page, vma->vm_page_prot);
}
-@@ -2157,6 +2169,7 @@ int vm_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
+@@ -2161,6 +2173,7 @@ int vm_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
unsigned long pfn)
{
BUG_ON(!(vma->vm_flags & VM_MIXEDMAP));
if (addr < vma->vm_start || addr >= vma->vm_end)
return -EFAULT;
-@@ -2364,7 +2377,9 @@ static int apply_to_pmd_range(struct mm_struct *mm, pud_t *pud,
+@@ -2368,7 +2381,9 @@ static int apply_to_pmd_range(struct mm_struct *mm, pud_t *pud,
BUG_ON(pud_huge(*pud));
if (!pmd)
return -ENOMEM;
do {
-@@ -2384,7 +2399,9 @@ static int apply_to_pud_range(struct mm_struct *mm, pgd_t *pgd,
+@@ -2388,7 +2403,9 @@ static int apply_to_pud_range(struct mm_struct *mm, pgd_t *pgd,
unsigned long next;
int err;
if (!pud)
return -ENOMEM;
do {
-@@ -2472,6 +2489,186 @@ static inline void cow_user_page(struct page *dst, struct page *src, unsigned lo
+@@ -2476,6 +2493,186 @@ static inline void cow_user_page(struct page *dst, struct page *src, unsigned lo
copy_user_highpage(dst, src, va, vma);
}
/*
* This routine handles present pages, when users try to write
* to a shared page. It is done by copying the page to a new address
-@@ -2683,6 +2880,12 @@ gotten:
+@@ -2687,6 +2884,12 @@ gotten:
*/
page_table = pte_offset_map_lock(mm, pmd, address, &ptl);
if (likely(pte_same(*page_table, orig_pte))) {
if (old_page) {
if (!PageAnon(old_page)) {
dec_mm_counter_fast(mm, MM_FILEPAGES);
-@@ -2734,6 +2937,10 @@ gotten:
+@@ -2738,6 +2941,10 @@ gotten:
page_remove_rmap(old_page);
}
/* Free the old page.. */
new_page = old_page;
ret |= VM_FAULT_WRITE;
-@@ -3013,6 +3220,11 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3017,6 +3224,11 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
swap_free(entry);
if (vm_swap_full() || (vma->vm_flags & VM_LOCKED) || PageMlocked(page))
try_to_free_swap(page);
unlock_page(page);
if (swapcache) {
/*
-@@ -3036,6 +3248,11 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3040,6 +3252,11 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
/* No need to invalidate - it was non-present before */
update_mmu_cache(vma, address, page_table);
unlock:
pte_unmap_unlock(page_table, ptl);
out:
-@@ -3055,40 +3272,6 @@ out_release:
+@@ -3059,40 +3276,6 @@ out_release:
}
/*
* We enter with non-exclusive mmap_sem (to exclude vma changes,
* but allow concurrent faults), and pte mapped but not yet locked.
* We return with mmap_sem still held, but pte unmapped and unlocked.
-@@ -3097,27 +3280,23 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3101,27 +3284,23 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
unsigned long address, pte_t *page_table, pmd_t *pmd,
unsigned int flags)
{
if (unlikely(anon_vma_prepare(vma)))
goto oom;
page = alloc_zeroed_user_highpage_movable(vma, address);
-@@ -3136,6 +3315,11 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3140,6 +3319,11 @@ static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
if (!pte_none(*page_table))
goto release;
inc_mm_counter_fast(mm, MM_ANONPAGES);
page_add_new_anon_rmap(page, vma, address);
setpte:
-@@ -3143,6 +3327,12 @@ setpte:
+@@ -3147,6 +3331,12 @@ setpte:
/* No need to invalidate - it was non-present before */
update_mmu_cache(vma, address, page_table);
unlock:
pte_unmap_unlock(page_table, ptl);
return 0;
-@@ -3286,6 +3476,12 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3290,6 +3480,12 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma,
*/
/* Only go through if we didn't race with anybody else... */
if (likely(pte_same(*page_table, orig_pte))) {
flush_icache_page(vma, page);
entry = mk_pte(page, vma->vm_page_prot);
if (flags & FAULT_FLAG_WRITE)
-@@ -3305,6 +3501,14 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3309,6 +3505,14 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma,
/* no need to invalidate: a not-present page won't be cached */
update_mmu_cache(vma, address, page_table);
} else {
if (cow_page)
mem_cgroup_uncharge_page(cow_page);
-@@ -3458,6 +3662,12 @@ int handle_pte_fault(struct mm_struct *mm,
+@@ -3462,6 +3666,12 @@ int handle_pte_fault(struct mm_struct *mm,
if (flags & FAULT_FLAG_WRITE)
flush_tlb_fix_spurious_fault(vma, address);
}
unlock:
pte_unmap_unlock(pte, ptl);
return 0;
-@@ -3474,6 +3684,10 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3478,6 +3688,10 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
pmd_t *pmd;
pte_t *pte;
__set_current_state(TASK_RUNNING);
count_vm_event(PGFAULT);
-@@ -3485,6 +3699,34 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3489,6 +3703,34 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
if (unlikely(is_vm_hugetlb_page(vma)))
return hugetlb_fault(mm, vma, address, flags);
pgd = pgd_offset(mm, address);
pud = pud_alloc(mm, pgd, address);
if (!pud)
-@@ -3514,7 +3756,7 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3518,7 +3760,7 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
* run pte_offset_map on the pmd, if an huge pmd could
* materialize from under us from a different thread.
*/
return VM_FAULT_OOM;
/* if an huge pmd materialized from under us just retry later */
if (unlikely(pmd_trans_huge(*pmd)))
-@@ -3551,6 +3793,23 @@ int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address)
+@@ -3555,6 +3797,23 @@ int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address)
spin_unlock(&mm->page_table_lock);
return 0;
}
#endif /* __PAGETABLE_PUD_FOLDED */
#ifndef __PAGETABLE_PMD_FOLDED
-@@ -3581,6 +3840,30 @@ int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address)
+@@ -3585,6 +3844,30 @@ int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address)
spin_unlock(&mm->page_table_lock);
return 0;
}
#endif /* __PAGETABLE_PMD_FOLDED */
int make_pages_present(unsigned long addr, unsigned long end)
-@@ -3618,7 +3901,7 @@ static int __init gate_vma_init(void)
+@@ -3622,7 +3905,7 @@ static int __init gate_vma_init(void)
gate_vma.vm_start = FIXADDR_USER_START;
gate_vma.vm_end = FIXADDR_USER_END;
gate_vma.vm_flags = VM_READ | VM_MAYREAD | VM_EXEC | VM_MAYEXEC;
- gate_vma.vm_page_prot = __P101;
+ gate_vma.vm_page_prot = vm_get_page_prot(gate_vma.vm_flags);
- /*
- * Make sure the vDSO gets into every core dump.
- * Dumping its contents makes post-mortem fully interpretable later
+
+ return 0;
+ }
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
-index 0a37570..2048346 100644
+index bf5b485..e44c2cb 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
-@@ -640,6 +640,10 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
+@@ -619,6 +619,10 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
unsigned long vmstart;
unsigned long vmend;
vma = find_vma(mm, start);
if (!vma || vma->vm_start > start)
return -EFAULT;
-@@ -679,6 +683,16 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
- err = policy_vma(vma, new_pol);
- if (err)
- goto out;
+@@ -672,6 +676,16 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
+ if (err)
+ goto out;
+ }
+
+#ifdef CONFIG_PAX_SEGMEXEC
+ vma_m = pax_find_mirror_vma(vma);
-+ if (vma_m) {
-+ err = policy_vma(vma_m, new_pol);
++ if (vma_m && vma_m->vm_ops && vma_m->vm_ops->set_policy) {
++ err = vma_m->vm_ops->set_policy(vma_m, new_pol);
+ if (err)
+ goto out;
+ }
}
out:
-@@ -1112,6 +1126,17 @@ static long do_mbind(unsigned long start, unsigned long len,
+@@ -1105,6 +1119,17 @@ static long do_mbind(unsigned long start, unsigned long len,
if (end < start)
return -EINVAL;
if (end == start)
return 0;
-@@ -1330,6 +1355,14 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
- if (!mm)
- goto out;
-
-+#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
-+ if (mm != current->mm &&
-+ (mm->pax_flags & MF_PAX_RANDMMAP || mm->pax_flags & MF_PAX_SEGMEXEC)) {
-+ err = -EPERM;
-+ goto out;
-+ }
-+#endif
-+
- /*
- * Check if this process has the right to modify the specified
- * process. The right exists if the process has administrative
-@@ -1339,8 +1372,7 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
- rcu_read_lock();
+@@ -1328,8 +1353,7 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
+ */
tcred = __task_cred(task);
if (cred->euid != tcred->suid && cred->euid != tcred->uid &&
- cred->uid != tcred->suid && cred->uid != tcred->uid &&
+ cred->uid != tcred->suid && !capable(CAP_SYS_NICE)) {
rcu_read_unlock();
err = -EPERM;
+ goto out_put;
+@@ -1360,6 +1384,15 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
goto out;
-diff --git a/mm/migrate.c b/mm/migrate.c
-index 1503b6b..156c672 100644
---- a/mm/migrate.c
-+++ b/mm/migrate.c
-@@ -1370,6 +1370,14 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages,
- if (!mm)
- return -EINVAL;
+ }
+#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
+ if (mm != current->mm &&
+ (mm->pax_flags & MF_PAX_RANDMMAP || mm->pax_flags & MF_PAX_SEGMEXEC)) {
++ mmput(mm);
+ err = -EPERM;
+ goto out;
+ }
+#endif
+
- /*
- * Check if this process has the right to modify the specified
- * process. The right exists if the process has administrative
-@@ -1379,8 +1387,7 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages,
- rcu_read_lock();
- tcred = __task_cred(task);
- if (cred->euid != tcred->suid && cred->euid != tcred->uid &&
-- cred->uid != tcred->suid && cred->uid != tcred->uid &&
-- !capable(CAP_SYS_NICE)) {
-+ cred->uid != tcred->suid && !capable(CAP_SYS_NICE)) {
- rcu_read_unlock();
- err = -EPERM;
- goto out;
+ err = do_migrate_pages(mm, old, new,
+ capable(CAP_SYS_NICE) ? MPOL_MF_MOVE_ALL : MPOL_MF_MOVE);
+
diff --git a/mm/mlock.c b/mm/mlock.c
index ef726e8..13e0901 100644
--- a/mm/mlock.c
capable(CAP_IPC_LOCK))
ret = do_mlockall(flags);
diff --git a/mm/mmap.c b/mm/mmap.c
-index da15a79..314aef3 100644
+index 848ef52..d2b586c 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -46,6 +46,16 @@
if (vma->vm_ops && vma->vm_ops->close)
vma->vm_ops->close(vma);
if (vma->vm_file) {
-@@ -272,6 +293,7 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)
+@@ -274,6 +295,7 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)
* not page aligned -Ram Gupta
*/
rlim = rlimit(RLIMIT_DATA);
if (rlim < RLIM_INFINITY && (brk - mm->start_brk) +
(mm->end_data - mm->start_data) > rlim)
goto out;
-@@ -689,6 +711,12 @@ static int
+@@ -690,6 +712,12 @@ static int
can_vma_merge_before(struct vm_area_struct *vma, unsigned long vm_flags,
struct anon_vma *anon_vma, struct file *file, pgoff_t vm_pgoff)
{
if (is_mergeable_vma(vma, file, vm_flags) &&
is_mergeable_anon_vma(anon_vma, vma->anon_vma, vma)) {
if (vma->vm_pgoff == vm_pgoff)
-@@ -708,6 +736,12 @@ static int
+@@ -709,6 +737,12 @@ static int
can_vma_merge_after(struct vm_area_struct *vma, unsigned long vm_flags,
struct anon_vma *anon_vma, struct file *file, pgoff_t vm_pgoff)
{
if (is_mergeable_vma(vma, file, vm_flags) &&
is_mergeable_anon_vma(anon_vma, vma->anon_vma, vma)) {
pgoff_t vm_pglen;
-@@ -750,13 +784,20 @@ can_vma_merge_after(struct vm_area_struct *vma, unsigned long vm_flags,
+@@ -751,13 +785,20 @@ can_vma_merge_after(struct vm_area_struct *vma, unsigned long vm_flags,
struct vm_area_struct *vma_merge(struct mm_struct *mm,
struct vm_area_struct *prev, unsigned long addr,
unsigned long end, unsigned long vm_flags,
/*
* We later require that vma->vm_flags == vm_flags,
* so this tests vma->vm_flags & VM_SPECIAL, too.
-@@ -772,6 +813,15 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
+@@ -773,6 +814,15 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
if (next && next->vm_end == end) /* cases 6, 7, 8 */
next = next->vm_next;
/*
* Can it merge with the predecessor?
*/
-@@ -791,9 +841,24 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
+@@ -792,9 +842,24 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
/* cases 1, 6 */
err = vma_adjust(prev, prev->vm_start,
next->vm_end, prev->vm_pgoff, NULL);
if (err)
return NULL;
khugepaged_enter_vma_merge(prev);
-@@ -807,12 +872,27 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
+@@ -808,12 +873,27 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
mpol_equal(policy, vma_policy(next)) &&
can_vma_merge_before(next, vm_flags,
anon_vma, file, pgoff+pglen)) {
if (err)
return NULL;
khugepaged_enter_vma_merge(area);
-@@ -921,14 +1001,11 @@ none:
+@@ -922,14 +1002,11 @@ none:
void vm_stat_account(struct mm_struct *mm, unsigned long flags,
struct file *file, long pages)
{
mm->stack_vm += pages;
if (flags & (VM_RESERVED|VM_IO))
mm->reserved_vm += pages;
-@@ -955,7 +1032,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -969,7 +1046,7 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
* (the exception is when the underlying filesystem is noexec
* mounted, in which case we dont add PROT_EXEC.)
*/
if (!(file && (file->f_path.mnt->mnt_flags & MNT_NOEXEC)))
prot |= PROT_EXEC;
-@@ -981,7 +1058,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -995,7 +1072,7 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
/* Obtain the address to map to. we verify (or select) it and ensure
* that it represents a valid section of the address space.
*/
if (addr & ~PAGE_MASK)
return addr;
-@@ -992,6 +1069,36 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1006,6 +1083,36 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
vm_flags = calc_vm_prot_bits(prot) | calc_vm_flag_bits(flags) |
mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC;
if (flags & MAP_LOCKED)
if (!can_do_mlock())
return -EPERM;
-@@ -1003,6 +1110,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1017,6 +1124,7 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
locked += mm->locked_vm;
lock_limit = rlimit(RLIMIT_MEMLOCK);
lock_limit >>= PAGE_SHIFT;
if (locked > lock_limit && !capable(CAP_IPC_LOCK))
return -EAGAIN;
}
-@@ -1073,6 +1181,9 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1087,6 +1195,9 @@ static unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
if (error)
return error;
+
return mmap_region(file, addr, len, flags, vm_flags, pgoff);
}
- EXPORT_SYMBOL(do_mmap_pgoff);
-@@ -1153,7 +1264,7 @@ int vma_wants_writenotify(struct vm_area_struct *vma)
+
+@@ -1192,7 +1303,7 @@ int vma_wants_writenotify(struct vm_area_struct *vma)
vm_flags_t vm_flags = vma->vm_flags;
/* If it was private or non-writable, the write bit is already clear */
return 0;
/* The backer wishes to know when pages are first written to? */
-@@ -1202,14 +1313,24 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
+@@ -1241,14 +1352,24 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
unsigned long charged = 0;
struct inode *inode = file ? file->f_path.dentry->d_inode : NULL;
}
/* Check against address space limit. */
-@@ -1258,6 +1379,16 @@ munmap_back:
+@@ -1297,6 +1418,16 @@ munmap_back:
goto unacct_error;
}
vma->vm_mm = mm;
vma->vm_start = addr;
vma->vm_end = addr + len;
-@@ -1282,6 +1413,19 @@ munmap_back:
+@@ -1321,6 +1452,19 @@ munmap_back:
error = file->f_op->mmap(file, vma);
if (error)
goto unmap_and_free_vma;
if (vm_flags & VM_EXECUTABLE)
added_exe_file_vma(mm);
-@@ -1319,6 +1463,11 @@ munmap_back:
+@@ -1358,6 +1502,11 @@ munmap_back:
vma_link(mm, vma, prev, rb_link, rb_parent);
file = vma->vm_file;
/* Once vma denies write, undo our temporary denial count */
if (correct_wcount)
atomic_inc(&inode->i_writecount);
-@@ -1327,6 +1476,7 @@ out:
+@@ -1366,6 +1515,7 @@ out:
mm->total_vm += len >> PAGE_SHIFT;
vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
if (vm_flags & VM_LOCKED) {
if (!mlock_vma_pages_range(vma, addr, addr + len))
mm->locked_vm += (len >> PAGE_SHIFT);
-@@ -1344,6 +1494,12 @@ unmap_and_free_vma:
+@@ -1383,6 +1533,12 @@ unmap_and_free_vma:
unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end);
charged = 0;
free_vma:
kmem_cache_free(vm_area_cachep, vma);
unacct_error:
if (charged)
-@@ -1351,6 +1507,44 @@ unacct_error:
+@@ -1390,6 +1546,44 @@ unacct_error:
return error;
}
/* Get an address range which is currently unmapped.
* For shmat() with addr=0.
*
-@@ -1377,18 +1571,23 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -1416,18 +1610,23 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
if (flags & MAP_FIXED)
return addr;
}
full_search:
-@@ -1399,34 +1598,40 @@ full_search:
+@@ -1438,34 +1637,40 @@ full_search:
* Start a new search - just in case we missed
* some holes.
*/
/*
* Is this a new hole at the lowest possible address?
*/
-- if (addr >= TASK_UNMAPPED_BASE && addr < mm->free_area_cache) {
-+ if (addr >= mm->mmap_base && addr < mm->free_area_cache) {
+- if (addr >= TASK_UNMAPPED_BASE && addr < mm->free_area_cache)
++ if (addr >= mm->mmap_base && addr < mm->free_area_cache)
mm->free_area_cache = addr;
- mm->cached_hole_size = ~0UL;
- }
-@@ -1444,7 +1649,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+ }
+
+@@ -1481,7 +1686,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
{
struct vm_area_struct *vma;
struct mm_struct *mm = current->mm;
-- unsigned long addr = addr0;
-+ unsigned long base = mm->mmap_base, addr = addr0;
+- unsigned long addr = addr0, start_addr;
++ unsigned long base = mm->mmap_base, addr = addr0, start_addr;
/* requested length too big for entire address space */
if (len > TASK_SIZE)
-@@ -1453,13 +1658,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -1490,13 +1695,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
if (flags & MAP_FIXED)
return addr;
}
/* check if free_area_cache is useful for us */
-@@ -1474,7 +1684,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
- /* make sure it can fit in the remaining address space */
- if (addr > len) {
- vma = find_vma(mm, addr-len);
-- if (!vma || addr <= vma->vm_start)
-+ if (check_heap_stack_gap(vma, addr - len, len))
- /* remember the address as a hint for next time */
- return (mm->free_area_cache = addr-len);
- }
-@@ -1491,7 +1701,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -1520,7 +1730,7 @@ try_again:
* return with success:
*/
vma = find_vma(mm, addr);
/* remember the address as a hint for next time */
return (mm->free_area_cache = addr);
-@@ -1500,8 +1710,8 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -1529,8 +1739,8 @@ try_again:
mm->cached_hole_size = vma->vm_start - addr;
/* try just below the current vma->vm_start */
+ addr = skip_heap_stack_gap(vma, len);
+ } while (!IS_ERR_VALUE(addr));
- bottomup:
+ fail:
/*
-@@ -1510,13 +1720,21 @@ bottomup:
+@@ -1553,13 +1763,21 @@ fail:
* can happen with large stack limits and large mmap()
* allocations.
*/
mm->cached_hole_size = ~0UL;
return addr;
-@@ -1525,6 +1743,12 @@ bottomup:
+@@ -1568,6 +1786,12 @@ fail:
void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr)
{
/*
* Is this a new hole at the highest possible address?
*/
-@@ -1532,8 +1756,10 @@ void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr)
+@@ -1575,8 +1799,10 @@ void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr)
mm->free_area_cache = addr;
/* dont allow allocations above current base */
}
unsigned long
-@@ -1629,6 +1855,28 @@ find_vma_prev(struct mm_struct *mm, unsigned long addr,
+@@ -1672,6 +1898,28 @@ find_vma_prev(struct mm_struct *mm, unsigned long addr,
return vma;
}
/*
* Verify that the stack growth is acceptable and
* update accounting. This is shared with both the
-@@ -1645,6 +1893,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
+@@ -1688,6 +1936,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
return -ENOMEM;
/* Stack limit test */
if (size > ACCESS_ONCE(rlim[RLIMIT_STACK].rlim_cur))
return -ENOMEM;
-@@ -1655,6 +1904,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
+@@ -1698,6 +1947,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
locked = mm->locked_vm + grow;
limit = ACCESS_ONCE(rlim[RLIMIT_MEMLOCK].rlim_cur);
limit >>= PAGE_SHIFT;
if (locked > limit && !capable(CAP_IPC_LOCK))
return -ENOMEM;
}
-@@ -1685,37 +1935,48 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
+@@ -1728,37 +1978,48 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
* PA-RISC uses this for its stack; IA64 for its Register Backing Store.
* vma is the last one with address > vma->vm_end. Have to extend vma.
*/
unsigned long size, grow;
size = address - vma->vm_start;
-@@ -1730,6 +1991,8 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
+@@ -1773,6 +2034,8 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
}
}
}
vma_unlock_anon_vma(vma);
khugepaged_enter_vma_merge(vma);
return error;
-@@ -1743,6 +2006,8 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -1786,6 +2049,8 @@ int expand_downwards(struct vm_area_struct *vma,
unsigned long address)
{
int error;
/*
* We must make sure the anon_vma is allocated
-@@ -1756,6 +2021,15 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -1799,6 +2064,15 @@ int expand_downwards(struct vm_area_struct *vma,
if (error)
return error;
vma_lock_anon_vma(vma);
/*
-@@ -1765,9 +2039,17 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -1808,9 +2082,17 @@ int expand_downwards(struct vm_area_struct *vma,
*/
/* Somebody else might have raced and expanded it already */
size = vma->vm_end - address;
grow = (vma->vm_start - address) >> PAGE_SHIFT;
-@@ -1777,11 +2059,22 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -1820,11 +2102,22 @@ int expand_downwards(struct vm_area_struct *vma,
if (!error) {
vma->vm_start = address;
vma->vm_pgoff -= grow;
khugepaged_enter_vma_merge(vma);
return error;
}
-@@ -1851,6 +2144,13 @@ static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)
+@@ -1894,6 +2187,13 @@ static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)
do {
long nrpages = vma_pages(vma);
mm->total_vm -= nrpages;
vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages);
vma = remove_vma(vma);
-@@ -1896,6 +2196,16 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -1939,6 +2239,16 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma,
insertion_point = (prev ? &prev->vm_next : &mm->mmap);
vma->vm_prev = NULL;
do {
rb_erase(&vma->vm_rb, &mm->mm_rb);
mm->map_count--;
tail_vma = vma;
-@@ -1924,14 +2234,33 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -1967,14 +2277,33 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
struct vm_area_struct *new;
int err = -ENOMEM;
/* most fields are the same, copy all, and then fixup */
*new = *vma;
-@@ -1944,6 +2273,22 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -1987,6 +2316,22 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
new->vm_pgoff += ((addr - vma->vm_start) >> PAGE_SHIFT);
}
pol = mpol_dup(vma_policy(vma));
if (IS_ERR(pol)) {
err = PTR_ERR(pol);
-@@ -1969,6 +2314,42 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2012,6 +2357,42 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
else
err = vma_adjust(vma, vma->vm_start, addr, vma->vm_pgoff, new);
/* Success. */
if (!err)
return 0;
-@@ -1981,10 +2362,18 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2024,10 +2405,18 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
removed_exe_file_vma(mm);
fput(new->vm_file);
}
kmem_cache_free(vm_area_cachep, new);
out_err:
return err;
-@@ -1997,6 +2386,15 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2040,6 +2429,15 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
unsigned long addr, int new_below)
{
if (mm->map_count >= sysctl_max_map_count)
return -ENOMEM;
-@@ -2008,11 +2406,30 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2051,11 +2449,30 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
* work. This now handles partial unmappings.
* Jeremy Fitzhardinge <jeremy@goop.org>
*/
if ((start & ~PAGE_MASK) || start > TASK_SIZE || len > TASK_SIZE-start)
return -EINVAL;
-@@ -2087,6 +2504,8 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len)
+@@ -2130,6 +2547,8 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len)
/* Fix up all other VM information */
remove_vma_list(mm, vma);
+
return 0;
}
+ EXPORT_SYMBOL(do_munmap);
+@@ -2139,6 +2558,13 @@ int vm_munmap(unsigned long start, size_t len)
+ int ret;
+ struct mm_struct *mm = current->mm;
-@@ -2099,22 +2518,18 @@ SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
-
- profile_munmap(addr);
-
++
+#ifdef CONFIG_PAX_SEGMEXEC
+ if ((mm->pax_flags & MF_PAX_SEGMEXEC) &&
-+ (len > SEGMEXEC_TASK_SIZE || addr > SEGMEXEC_TASK_SIZE-len))
++ (len > SEGMEXEC_TASK_SIZE || start > SEGMEXEC_TASK_SIZE-len))
+ return -EINVAL;
+#endif
+
down_write(&mm->mmap_sem);
- ret = do_munmap(mm, addr, len);
+ ret = do_munmap(mm, start, len);
up_write(&mm->mmap_sem);
- return ret;
+@@ -2152,16 +2578,6 @@ SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
+ return vm_munmap(addr, len);
}
-static inline void verify_mm_writelocked(struct mm_struct *mm)
/*
* this is really a simplified "do_mmap". it only handles
* anonymous maps. eventually we may be able to do some
-@@ -2128,6 +2543,7 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2175,6 +2591,7 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
struct rb_node ** rb_link, * rb_parent;
pgoff_t pgoff = addr >> PAGE_SHIFT;
int error;
len = PAGE_ALIGN(len);
if (!len)
-@@ -2139,16 +2555,30 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2186,16 +2603,30 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
flags = VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT | mm->def_flags;
locked += mm->locked_vm;
lock_limit = rlimit(RLIMIT_MEMLOCK);
lock_limit >>= PAGE_SHIFT;
-@@ -2165,22 +2595,22 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2212,22 +2643,22 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
/*
* Clear old maps. this also does some error checking for us
*/
if (do_munmap(mm, addr, len))
return -ENOMEM;
- goto munmap_back;
+- }
+ vma = find_vma_prepare(mm, addr, &prev, &rb_link, &rb_parent);
+ BUG_ON(vma && vma->vm_start < addr + len);
- }
++ }
/* Check against address space limits *after* clearing old maps... */
- if (!may_expand_vm(mm, len >> PAGE_SHIFT))
if (mm->map_count > sysctl_max_map_count)
return -ENOMEM;
-- if (security_vm_enough_memory(len >> PAGE_SHIFT))
-+ if (security_vm_enough_memory(charged))
+- if (security_vm_enough_memory_mm(mm, len >> PAGE_SHIFT))
++ if (security_vm_enough_memory_mm(mm, charged))
return -ENOMEM;
/* Can we just expand an old private anonymous mapping? */
-@@ -2194,7 +2624,7 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2241,7 +2672,7 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
*/
vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL);
if (!vma) {
return -ENOMEM;
}
-@@ -2208,11 +2638,12 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2255,11 +2686,12 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
vma_link(mm, vma, prev, rb_link, rb_parent);
out:
perf_event_mmap(vma);
return addr;
}
-@@ -2259,8 +2690,10 @@ void exit_mmap(struct mm_struct *mm)
+@@ -2315,8 +2747,10 @@ void exit_mmap(struct mm_struct *mm)
* Walk the list again, actually closing and freeing it,
* with preemption enabled, without holding any MM locks.
*/
BUG_ON(mm->nr_ptes > (FIRST_USER_ADDRESS+PMD_SIZE-1)>>PMD_SHIFT);
}
-@@ -2274,6 +2707,13 @@ int insert_vm_struct(struct mm_struct * mm, struct vm_area_struct * vma)
+@@ -2330,6 +2764,13 @@ int insert_vm_struct(struct mm_struct * mm, struct vm_area_struct * vma)
struct vm_area_struct * __vma, * prev;
struct rb_node ** rb_link, * rb_parent;
/*
* The vm_pgoff of a purely anonymous vma should be irrelevant
* until its first write fault, when page's anon_vma and index
-@@ -2296,7 +2736,22 @@ int insert_vm_struct(struct mm_struct * mm, struct vm_area_struct * vma)
+@@ -2352,7 +2793,22 @@ int insert_vm_struct(struct mm_struct * mm, struct vm_area_struct * vma)
if ((vma->vm_flags & VM_ACCOUNT) &&
security_vm_enough_memory_mm(mm, vma_pages(vma)))
return -ENOMEM;
return 0;
}
-@@ -2315,6 +2770,8 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
+@@ -2371,6 +2827,8 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
struct mempolicy *pol;
bool faulted_in_anon_vma = true;
/*
* If anonymous vma has not yet been faulted, update new pgoff
* to match new location, to increase its chance of merging.
-@@ -2382,6 +2839,39 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
+@@ -2438,6 +2896,39 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
return NULL;
}
/*
* Return true if the calling process may expand its vm space by the passed
* number of pages
-@@ -2393,6 +2883,12 @@ int may_expand_vm(struct mm_struct *mm, unsigned long npages)
+@@ -2449,6 +2940,12 @@ int may_expand_vm(struct mm_struct *mm, unsigned long npages)
lim = rlimit(RLIMIT_AS) >> PAGE_SHIFT;
if (cur + npages > lim)
return 0;
return 1;
-@@ -2463,6 +2959,22 @@ int install_special_mapping(struct mm_struct *mm,
+@@ -2519,6 +3016,22 @@ int install_special_mapping(struct mm_struct *mm,
vma->vm_start = addr;
vma->vm_end = addr + len;
vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
diff --git a/mm/mprotect.c b/mm/mprotect.c
-index f437d05..e3763f6 100644
+index a409926..8b32e6d 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
-@@ -23,10 +23,16 @@
+@@ -23,10 +23,17 @@
#include <linux/mmu_notifier.h>
#include <linux/migrate.h>
#include <linux/perf_event.h>
+
+#ifdef CONFIG_PAX_MPROTECT
+#include <linux/elf.h>
++#include <linux/binfmts.h>
+#endif
+
#include <asm/uaccess.h>
#ifndef pgprot_modify
static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
-@@ -141,6 +147,48 @@ static void change_protection(struct vm_area_struct *vma,
+@@ -141,6 +148,48 @@ static void change_protection(struct vm_area_struct *vma,
flush_tlb_range(vma, start, end);
}
int
mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
unsigned long start, unsigned long end, unsigned long newflags)
-@@ -153,11 +201,29 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
+@@ -153,11 +202,29 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
int error;
int dirty_accountable = 0;
/*
* If we make a private mapping writable we increase our commit;
* but (without finer accounting) cannot reduce our commit if we
-@@ -174,6 +240,42 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
+@@ -174,6 +241,42 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
}
}
/*
* First try to merge with previous and/or next vma.
*/
-@@ -204,9 +306,21 @@ success:
+@@ -204,9 +307,21 @@ success:
* vm_flags and vm_page_prot are protected by the mmap_sem
* held in write mode.
*/
if (vma_wants_writenotify(vma)) {
vma->vm_page_prot = vm_get_page_prot(newflags & ~VM_SHARED);
-@@ -248,6 +362,17 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -248,6 +363,17 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
end = start + len;
if (end <= start)
return -ENOMEM;
if (!arch_validate_prot(prot))
return -EINVAL;
-@@ -255,7 +380,7 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -255,7 +381,7 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
/*
* Does the application expect PROT_READ to imply PROT_EXEC:
*/
prot |= PROT_EXEC;
vm_flags = calc_vm_prot_bits(prot);
-@@ -288,6 +413,11 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -288,6 +414,11 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
if (start > vma->vm_start)
prev = vma;
for (nstart = start ; ; ) {
unsigned long newflags;
-@@ -297,6 +427,14 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -297,6 +428,14 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
/* newflags >> 4 shift VM_MAY% in place of VM_% */
if ((newflags & ~(newflags >> 4)) & (VM_READ | VM_WRITE | VM_EXEC)) {
error = -EACCES;
goto out;
}
-@@ -311,6 +449,9 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -311,6 +450,9 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
error = mprotect_fixup(vma, &prev, nstart, tmp, newflags);
if (error)
goto out;
if (nstart < prev->vm_end)
diff --git a/mm/mremap.c b/mm/mremap.c
-index 87bb839..c3bfadb 100644
+index db8d983..76506cb 100644
--- a/mm/mremap.c
+++ b/mm/mremap.c
@@ -106,6 +106,12 @@ static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd,
out:
if (ret & ~PAGE_MASK)
diff --git a/mm/nommu.c b/mm/nommu.c
-index f59e170..34e2a2b 100644
+index bb8f4f0..40d3e02 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -62,7 +62,6 @@ int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
* expand a stack to a given address
* - not supported under NOMMU conditions
*/
-@@ -1555,6 +1545,7 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -1580,6 +1570,7 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
/* most fields are the same, copy all, and then fixup */
*new = *vma;
new->vm_region = region;
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
-index a13ded1..b949d15 100644
+index 918330f..ae99ae1 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -335,7 +335,7 @@ out:
if (order && (gfp_flags & __GFP_COMP))
prep_compound_page(page, order);
-@@ -3468,7 +3480,13 @@ static int pageblock_is_reserved(unsigned long start_pfn, unsigned long end_pfn)
+@@ -3523,7 +3535,13 @@ static int pageblock_is_reserved(unsigned long start_pfn, unsigned long end_pfn)
unsigned long pfn;
for (pfn = start_pfn; pfn < end_pfn; pfn++) {
}
return 0;
diff --git a/mm/percpu.c b/mm/percpu.c
-index f47af91..7eeef99 100644
+index bb4be74..a43ea85 100644
--- a/mm/percpu.c
+++ b/mm/percpu.c
@@ -122,7 +122,7 @@ static unsigned int pcpu_low_unit_cpu __read_mostly;
if (!mm || IS_ERR(mm)) {
rc = IS_ERR(mm) ? PTR_ERR(mm) : -ESRCH;
diff --git a/mm/rmap.c b/mm/rmap.c
-index c8454e0..b04f3a2 100644
+index 5b5ad58..0f77903 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
-@@ -152,6 +152,10 @@ int anon_vma_prepare(struct vm_area_struct *vma)
+@@ -167,6 +167,10 @@ int anon_vma_prepare(struct vm_area_struct *vma)
struct anon_vma *anon_vma = vma->anon_vma;
struct anon_vma_chain *avc;
might_sleep();
if (unlikely(!anon_vma)) {
struct mm_struct *mm = vma->vm_mm;
-@@ -161,6 +165,12 @@ int anon_vma_prepare(struct vm_area_struct *vma)
+@@ -176,6 +180,12 @@ int anon_vma_prepare(struct vm_area_struct *vma)
if (!avc)
goto out_enomem;
anon_vma = find_mergeable_anon_vma(vma);
allocated = NULL;
if (!anon_vma) {
-@@ -174,6 +184,21 @@ int anon_vma_prepare(struct vm_area_struct *vma)
+@@ -189,6 +199,18 @@ int anon_vma_prepare(struct vm_area_struct *vma)
/* page_table_lock to protect against threads */
spin_lock(&mm->page_table_lock);
if (likely(!vma->anon_vma)) {
+ if (vma_m) {
+ BUG_ON(vma_m->anon_vma);
+ vma_m->anon_vma = anon_vma;
-+ avc_m->anon_vma = anon_vma;
-+ avc_m->vma = vma;
-+ list_add(&avc_m->same_vma, &vma_m->anon_vma_chain);
-+ list_add(&avc_m->same_anon_vma, &anon_vma->head);
++ anon_vma_chain_link(vma_m, avc_m, anon_vma);
+ avc_m = NULL;
+ }
+#endif
+
vma->anon_vma = anon_vma;
- avc->anon_vma = anon_vma;
- avc->vma = vma;
-@@ -187,12 +212,24 @@ int anon_vma_prepare(struct vm_area_struct *vma)
+ anon_vma_chain_link(vma, avc, anon_vma);
+ allocated = NULL;
+@@ -199,12 +221,24 @@ int anon_vma_prepare(struct vm_area_struct *vma)
if (unlikely(allocated))
put_anon_vma(allocated);
anon_vma_chain_free(avc);
out_enomem:
return -ENOMEM;
-@@ -243,7 +280,7 @@ static void anon_vma_chain_link(struct vm_area_struct *vma,
+@@ -240,7 +274,7 @@ static inline void unlock_anon_vma_root(struct anon_vma *root)
* Attach the anon_vmas from src to dst.
* Returns 0 on success, -ENOMEM on failure.
*/
{
struct anon_vma_chain *avc, *pavc;
struct anon_vma *root = NULL;
-@@ -321,7 +358,7 @@ void anon_vma_moveto_tail(struct vm_area_struct *dst)
+@@ -318,7 +352,7 @@ void anon_vma_moveto_tail(struct vm_area_struct *dst)
* the corresponding VMA in the parent process is attached to.
* Returns 0 on success, non-zero on failure.
*/
struct anon_vma_chain *avc;
struct anon_vma *anon_vma;
diff --git a/mm/shmem.c b/mm/shmem.c
-index 269d049..a9d2b50 100644
+index f99ff3e..faea8b6 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -31,7 +31,7 @@
struct shmem_xattr {
struct list_head list; /* anchored by shmem_inode_info->xattr_list */
-@@ -2180,8 +2180,7 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent)
+@@ -2235,8 +2235,7 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent)
int err = -ENOMEM;
/* Round up to L1_CACHE_BYTES to resist false sharing */
return -ENOMEM;
diff --git a/mm/slab.c b/mm/slab.c
-index f0bd785..348b96a 100644
+index e901a36..ee8fe97 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -153,7 +153,7 @@
NULL);
}
#ifdef CONFIG_ZONE_DMA
-@@ -4339,10 +4339,10 @@ static int s_show(struct seq_file *m, void *p)
+@@ -4390,10 +4390,10 @@ static int s_show(struct seq_file *m, void *p)
}
/* cpu stats */
{
seq_printf(m, " : cpustat %6lu %6lu %6lu %6lu",
allochit, allocmiss, freehit, freemiss);
-@@ -4601,13 +4601,62 @@ static int __init slab_proc_init(void)
+@@ -4652,13 +4652,62 @@ static int __init slab_proc_init(void)
{
proc_create("slabinfo",S_IWUSR|S_IRUSR,NULL,&proc_slabinfo_operations);
#ifdef CONFIG_DEBUG_SLAB_LEAK
EXPORT_SYMBOL(kmem_cache_free);
diff --git a/mm/slub.c b/mm/slub.c
-index 0342a5d..8180ae9 100644
+index 71de9b5..dd263c5 100644
--- a/mm/slub.c
+++ b/mm/slub.c
-@@ -208,7 +208,7 @@ struct track {
+@@ -209,7 +209,7 @@ struct track {
enum track_item { TRACK_ALLOC, TRACK_FREE };
static int sysfs_slab_add(struct kmem_cache *);
static int sysfs_slab_alias(struct kmem_cache *, const char *);
static void sysfs_slab_remove(struct kmem_cache *);
-@@ -532,7 +532,7 @@ static void print_track(const char *s, struct track *t)
+@@ -538,7 +538,7 @@ static void print_track(const char *s, struct track *t)
if (!t->addr)
return;
s, (void *)t->addr, jiffies - t->when, t->cpu, t->pid);
#ifdef CONFIG_STACKTRACE
{
-@@ -2571,6 +2571,8 @@ void kmem_cache_free(struct kmem_cache *s, void *x)
+@@ -2603,6 +2603,8 @@ void kmem_cache_free(struct kmem_cache *s, void *x)
page = virt_to_head_page(x);
slab_free(s, page, x, _RET_IP_);
trace_kmem_cache_free(_RET_IP_, x);
-@@ -2604,7 +2606,7 @@ static int slub_min_objects;
+@@ -2636,7 +2638,7 @@ static int slub_min_objects;
* Merge control. If this is set then no merging of slab caches will occur.
* (Could be removed. This was introduced to pacify the merge skeptics.)
*/
/*
* Calculate the order of allocation given an slab object size.
-@@ -3057,7 +3059,7 @@ static int kmem_cache_open(struct kmem_cache *s,
+@@ -3089,7 +3091,7 @@ static int kmem_cache_open(struct kmem_cache *s,
else
s->cpu_partial = 30;
#ifdef CONFIG_NUMA
s->remote_node_defrag_ratio = 1000;
#endif
-@@ -3161,8 +3163,7 @@ static inline int kmem_cache_close(struct kmem_cache *s)
+@@ -3193,8 +3195,7 @@ static inline int kmem_cache_close(struct kmem_cache *s)
void kmem_cache_destroy(struct kmem_cache *s)
{
down_write(&slub_lock);
list_del(&s->list);
up_write(&slub_lock);
if (kmem_cache_close(s)) {
-@@ -3373,6 +3374,50 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node)
+@@ -3405,6 +3406,50 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node)
EXPORT_SYMBOL(__kmalloc_node);
#endif
size_t ksize(const void *object)
{
struct page *page;
-@@ -3647,7 +3692,7 @@ static void __init kmem_cache_bootstrap_fixup(struct kmem_cache *s)
+@@ -3679,7 +3724,7 @@ static void __init kmem_cache_bootstrap_fixup(struct kmem_cache *s)
int node;
list_add(&s->list, &slab_caches);
for_each_node_state(node, N_NORMAL_MEMORY) {
struct kmem_cache_node *n = get_node(s, node);
-@@ -3767,17 +3812,17 @@ void __init kmem_cache_init(void)
+@@ -3799,17 +3844,17 @@ void __init kmem_cache_init(void)
/* Caches that are not of the two-to-the-power-of size */
if (KMALLOC_MIN_SIZE <= 32) {
caches++;
}
-@@ -3845,7 +3890,7 @@ static int slab_unmergeable(struct kmem_cache *s)
+@@ -3877,7 +3922,7 @@ static int slab_unmergeable(struct kmem_cache *s)
/*
* We may have set a slab to be unmergeable during bootstrap.
*/
return 1;
return 0;
-@@ -3904,7 +3949,7 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
+@@ -3936,7 +3981,7 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
down_write(&slub_lock);
s = find_mergeable(size, align, flags, name, ctor);
if (s) {
/*
* Adjust the object sizes so that we clear
* the complete object on kzalloc.
-@@ -3913,7 +3958,7 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
+@@ -3945,7 +3990,7 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size,
s->inuse = max_t(int, s->inuse, ALIGN(size, sizeof(void *)));
if (sysfs_slab_alias(s, name)) {
goto err;
}
up_write(&slub_lock);
-@@ -4042,7 +4087,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
+@@ -4074,7 +4119,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
}
#endif
static int count_inuse(struct page *page)
{
return page->inuse;
-@@ -4429,12 +4474,12 @@ static void resiliency_test(void)
+@@ -4461,12 +4506,12 @@ static void resiliency_test(void)
validate_slab_cache(kmalloc_caches[9]);
}
#else
enum slab_stat_type {
SL_ALL, /* All slabs */
SL_PARTIAL, /* Only partially allocated slabs */
-@@ -4677,7 +4722,7 @@ SLAB_ATTR_RO(ctor);
+@@ -4709,7 +4754,7 @@ SLAB_ATTR_RO(ctor);
static ssize_t aliases_show(struct kmem_cache *s, char *buf)
{
}
SLAB_ATTR_RO(aliases);
-@@ -5244,6 +5289,7 @@ static char *create_unique_id(struct kmem_cache *s)
+@@ -5280,6 +5325,7 @@ static char *create_unique_id(struct kmem_cache *s)
return name;
}
static int sysfs_slab_add(struct kmem_cache *s)
{
int err;
-@@ -5306,6 +5352,7 @@ static void sysfs_slab_remove(struct kmem_cache *s)
+@@ -5342,6 +5388,7 @@ static void sysfs_slab_remove(struct kmem_cache *s)
kobject_del(&s->kobj);
kobject_put(&s->kobj);
}
/*
* Need to buffer aliases during bootup until sysfs becomes
-@@ -5319,6 +5366,7 @@ struct saved_alias {
+@@ -5355,6 +5402,7 @@ struct saved_alias {
static struct saved_alias *alias_list;
static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
{
struct saved_alias *al;
-@@ -5341,6 +5389,7 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
+@@ -5377,6 +5425,7 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
alias_list = al;
return 0;
}
return pgd;
}
diff --git a/mm/swap.c b/mm/swap.c
-index 14380e9..e244704 100644
+index 5c13f13..f1cfc13 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -30,6 +30,7 @@
}
diff --git a/mm/swapfile.c b/mm/swapfile.c
-index f31b29d..8bdcae2 100644
+index fafc26d..1b7493e 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -61,7 +61,7 @@ static DEFINE_MUTEX(swapon_mutex);
static inline unsigned char swap_count(unsigned char ent)
{
-@@ -1669,7 +1669,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
+@@ -1671,7 +1671,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
}
filp_close(swap_file, NULL);
err = 0;
wake_up_interruptible(&proc_poll_wait);
out_dput:
-@@ -1685,8 +1685,8 @@ static unsigned swaps_poll(struct file *file, poll_table *wait)
+@@ -1687,8 +1687,8 @@ static unsigned swaps_poll(struct file *file, poll_table *wait)
poll_wait(file, &proc_poll_wait, wait);
return POLLIN | POLLRDNORM | POLLERR | POLLPRI;
}
-@@ -1784,7 +1784,7 @@ static int swaps_open(struct inode *inode, struct file *file)
+@@ -1786,7 +1786,7 @@ static int swaps_open(struct inode *inode, struct file *file)
return ret;
seq = file->private_data;
return 0;
}
-@@ -2122,7 +2122,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
+@@ -2127,7 +2127,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
(p->flags & SWP_DISCARDABLE) ? "D" : "");
mutex_unlock(&swapon_mutex);
if (S_ISREG(inode->i_mode))
diff --git a/mm/util.c b/mm/util.c
-index 136ac4f..f917fa9 100644
+index ae962b3..0bba886 100644
--- a/mm/util.c
+++ b/mm/util.c
-@@ -243,6 +243,12 @@ void __vma_link_list(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -284,6 +284,12 @@ done:
void arch_pick_mmap_layout(struct mm_struct *mm)
{
mm->mmap_base = TASK_UNMAPPED_BASE;
mm->unmap_area = arch_unmap_area;
}
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
-index 86ce9a5..e0bd080 100644
+index 1196c77..2e608e8 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -39,8 +39,19 @@ static void vunmap_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end)
if (!pmd_none(*pmd)) {
pte_t *ptep, pte;
-@@ -1319,6 +1359,16 @@ static struct vm_struct *__get_vm_area_node(unsigned long size,
+@@ -332,6 +372,10 @@ static void purge_vmap_area_lazy(void);
+ static struct vmap_area *alloc_vmap_area(unsigned long size,
+ unsigned long align,
+ unsigned long vstart, unsigned long vend,
++ int node, gfp_t gfp_mask) __size_overflow(1);
++static struct vmap_area *alloc_vmap_area(unsigned long size,
++ unsigned long align,
++ unsigned long vstart, unsigned long vend,
+ int node, gfp_t gfp_mask)
+ {
+ struct vmap_area *va;
+@@ -1320,6 +1364,16 @@ static struct vm_struct *__get_vm_area_node(unsigned long size,
struct vm_struct *area;
BUG_ON(in_interrupt());
if (flags & VM_IOREMAP) {
int bit = fls(size);
-@@ -1551,6 +1601,11 @@ void *vmap(struct page **pages, unsigned int count,
+@@ -1552,6 +1606,11 @@ void *vmap(struct page **pages, unsigned int count,
if (count > totalram_pages)
return NULL;
area = get_vm_area_caller((count << PAGE_SHIFT), flags,
__builtin_return_address(0));
if (!area)
-@@ -1652,6 +1707,13 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
+@@ -1653,6 +1712,13 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
if (!size || (size >> PAGE_SHIFT) > totalram_pages)
goto fail;
area = __get_vm_area_node(size, align, VM_ALLOC | VM_UNLIST,
start, end, node, gfp_mask, caller);
if (!area)
-@@ -1825,10 +1887,9 @@ EXPORT_SYMBOL(vzalloc_node);
+@@ -1826,10 +1892,9 @@ EXPORT_SYMBOL(vzalloc_node);
* For tight control over page level allocator and protection flags
* use __vmalloc() instead.
*/
-1, __builtin_return_address(0));
}
-@@ -2123,6 +2184,8 @@ int remap_vmalloc_range(struct vm_area_struct *vma, void *addr,
+@@ -2124,6 +2189,8 @@ int remap_vmalloc_range(struct vm_area_struct *vma, void *addr,
unsigned long uaddr = vma->vm_start;
unsigned long usize = vma->vm_end - vma->vm_start;
if ((PAGE_SIZE-1) & (unsigned long)addr)
return -EINVAL;
+@@ -2376,8 +2443,8 @@ struct vm_struct **pcpu_get_vm_areas(const unsigned long *offsets,
+ return NULL;
+ }
+
+- vms = kzalloc(sizeof(vms[0]) * nr_vms, GFP_KERNEL);
+- vas = kzalloc(sizeof(vas[0]) * nr_vms, GFP_KERNEL);
++ vms = kcalloc(nr_vms, sizeof(vms[0]), GFP_KERNEL);
++ vas = kcalloc(nr_vms, sizeof(vas[0]), GFP_KERNEL);
+ if (!vas || !vms)
+ goto err_free2;
+
diff --git a/mm/vmstat.c b/mm/vmstat.c
-index f600557..1459fc8 100644
+index 7db1b9b..e9f6b07 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -78,7 +78,7 @@ void vm_events_fold_cpu(int cpu)
#undef __HANDLE_ITEM
}
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
-index 3512e25..2b33401 100644
+index a6d5d63..1cc6c2b 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
-@@ -541,7 +541,7 @@ void bat_ogm_schedule(struct hard_iface *hard_iface, int tt_num_changes)
+@@ -539,7 +539,7 @@ static void bat_iv_ogm_schedule(struct hard_iface *hard_iface,
/* change sequence number to network order */
batman_ogm_packet->seqno =
batman_ogm_packet->ttvn = atomic_read(&bat_priv->ttvn);
batman_ogm_packet->tt_crc = htons((uint16_t)
-@@ -561,7 +561,7 @@ void bat_ogm_schedule(struct hard_iface *hard_iface, int tt_num_changes)
+@@ -559,7 +559,7 @@ static void bat_iv_ogm_schedule(struct hard_iface *hard_iface,
else
batman_ogm_packet->gw_flags = NO_FLAGS;
+ atomic_inc_unchecked(&hard_iface->seqno);
slide_own_bcast_window(hard_iface);
- bat_ogm_queue_add(bat_priv, hard_iface->packet_buff,
-@@ -922,7 +922,7 @@ static void bat_ogm_process(const struct ethhdr *ethhdr,
+ bat_iv_ogm_queue_add(bat_priv, hard_iface->packet_buff,
+@@ -917,7 +917,7 @@ static void bat_iv_ogm_process(const struct ethhdr *ethhdr,
return;
/* could be changed by schedule_own_packet() */
has_directlink_flag = (batman_ogm_packet->flags & DIRECTLINK ? 1 : 0);
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
-index 7704df4..beb4e16 100644
+index 3778977..f6a9450 100644
--- a/net/batman-adv/hard-interface.c
+++ b/net/batman-adv/hard-interface.c
-@@ -326,8 +326,8 @@ int hardif_enable_interface(struct hard_iface *hard_iface,
+@@ -328,8 +328,8 @@ int hardif_enable_interface(struct hard_iface *hard_iface,
hard_iface->batman_adv_ptype.dev = hard_iface->net_dev;
dev_add_pack(&hard_iface->batman_adv_ptype);
hard_iface->net_dev->name);
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
-index 987c75a..20d6f36 100644
+index a5590f4..8d31969 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -645,7 +645,7 @@ static int interface_tx(struct sk_buff *skb, struct net_device *soft_iface)
add_bcast_packet_to_list(bat_priv, skb, 1);
-@@ -843,7 +843,7 @@ struct net_device *softif_create(const char *name)
+@@ -841,7 +841,7 @@ struct net_device *softif_create(const char *name)
atomic_set(&bat_priv->batman_queue_left, BATMAN_QUEUE_LEN);
atomic_set(&bat_priv->mesh_state, MESH_INACTIVE);
atomic_set(&bat_priv->tt_local_changes, 0);
atomic_set(&bat_priv->tt_ogm_append_cnt, 0);
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
-index e9eb043..d174eeb 100644
+index 302efb5..1590365 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -38,8 +38,8 @@ struct hard_iface {
unsigned char *packet_buff;
int packet_len;
struct kobject *hardif_obj;
-@@ -154,7 +154,7 @@ struct bat_priv {
+@@ -155,7 +155,7 @@ struct bat_priv {
atomic_t orig_interval; /* uint */
atomic_t hop_penalty; /* uint */
atomic_t log_level; /* uint */
atomic_t batman_queue_left;
atomic_t ttvn; /* translation table version number */
diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c
-index 07d1c1d..7e9bea9 100644
+index 676f6a6..3b4e668 100644
--- a/net/batman-adv/unicast.c
+++ b/net/batman-adv/unicast.c
@@ -264,7 +264,7 @@ int frag_send_skb(struct sk_buff *skb, struct bat_priv *bat_priv,
frag2->seqno = htons(seqno);
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
-index 280953b..cd219bb 100644
+index 5238b6b..c9798ce 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
-@@ -234,7 +234,7 @@ void hci_le_ltk_reply(struct hci_conn *conn, u8 ltk[16])
+@@ -233,7 +233,7 @@ void hci_le_ltk_reply(struct hci_conn *conn, u8 ltk[16])
memset(&cp, 0, sizeof(cp));
cp.handle = cpu_to_le16(conn->handle);
hci_send_cmd(hdev, HCI_OP_LE_LTK_REPLY, sizeof(cp), &cp);
}
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
-index 32d338c..d24bcdb 100644
+index 6f9c25b..d19fd66 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
-@@ -2418,8 +2418,10 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
+@@ -2466,8 +2466,10 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
break;
case L2CAP_CONF_RFC:
if (test_bit(CONF_STATE2_DEVICE, &chan->conf_state) &&
rfc.mode != chan->mode)
-@@ -2537,8 +2539,10 @@ static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len)
+@@ -2585,8 +2587,10 @@ static void l2cap_conf_rfc_get(struct l2cap_chan *chan, void *rsp, int len)
switch (type) {
case L2CAP_CONF_RFC:
goto done;
}
}
-diff --git a/net/bridge/netfilter/ebt_ulog.c b/net/bridge/netfilter/ebt_ulog.c
-index 5449294..7da9a5f 100644
---- a/net/bridge/netfilter/ebt_ulog.c
-+++ b/net/bridge/netfilter/ebt_ulog.c
-@@ -96,6 +96,7 @@ static void ulog_timer(unsigned long data)
- spin_unlock_bh(&ulog_buffers[data].lock);
- }
-
-+static struct sk_buff *ulog_alloc_skb(unsigned int size) __size_overflow(1);
- static struct sk_buff *ulog_alloc_skb(unsigned int size)
- {
- struct sk_buff *skb;
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index 5fe2ff3..10968b5 100644
--- a/net/bridge/netfilter/ebtables.c
BUGPRINT("c2u Didn't work\n");
ret = -EFAULT;
break;
-diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
-index a97d97a..6f679ed 100644
---- a/net/caif/caif_socket.c
-+++ b/net/caif/caif_socket.c
-@@ -48,19 +48,20 @@ static struct dentry *debugfsdir;
- #ifdef CONFIG_DEBUG_FS
- struct debug_fs_counter {
- atomic_t caif_nr_socks;
-- atomic_t caif_sock_create;
-- atomic_t num_connect_req;
-- atomic_t num_connect_resp;
-- atomic_t num_connect_fail_resp;
-- atomic_t num_disconnect;
-- atomic_t num_remote_shutdown_ind;
-- atomic_t num_tx_flow_off_ind;
-- atomic_t num_tx_flow_on_ind;
-- atomic_t num_rx_flow_off;
-- atomic_t num_rx_flow_on;
-+ atomic_unchecked_t caif_sock_create;
-+ atomic_unchecked_t num_connect_req;
-+ atomic_unchecked_t num_connect_resp;
-+ atomic_unchecked_t num_connect_fail_resp;
-+ atomic_unchecked_t num_disconnect;
-+ atomic_unchecked_t num_remote_shutdown_ind;
-+ atomic_unchecked_t num_tx_flow_off_ind;
-+ atomic_unchecked_t num_tx_flow_on_ind;
-+ atomic_unchecked_t num_rx_flow_off;
-+ atomic_unchecked_t num_rx_flow_on;
- };
- static struct debug_fs_counter cnt;
- #define dbfs_atomic_inc(v) atomic_inc_return(v)
-+#define dbfs_atomic_inc_unchecked(v) atomic_inc_return_unchecked(v)
- #define dbfs_atomic_dec(v) atomic_dec_return(v)
- #else
- #define dbfs_atomic_inc(v) 0
-@@ -161,7 +162,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
- atomic_read(&cf_sk->sk.sk_rmem_alloc),
- sk_rcvbuf_lowwater(cf_sk));
- set_rx_flow_off(cf_sk);
-- dbfs_atomic_inc(&cnt.num_rx_flow_off);
-+ dbfs_atomic_inc_unchecked(&cnt.num_rx_flow_off);
- caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_OFF_REQ);
- }
-
-@@ -172,7 +173,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
- set_rx_flow_off(cf_sk);
- if (net_ratelimit())
- pr_debug("sending flow OFF due to rmem_schedule\n");
-- dbfs_atomic_inc(&cnt.num_rx_flow_off);
-+ dbfs_atomic_inc_unchecked(&cnt.num_rx_flow_off);
- caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_OFF_REQ);
- }
- skb->dev = NULL;
-@@ -233,14 +234,14 @@ static void caif_ctrl_cb(struct cflayer *layr,
- switch (flow) {
- case CAIF_CTRLCMD_FLOW_ON_IND:
- /* OK from modem to start sending again */
-- dbfs_atomic_inc(&cnt.num_tx_flow_on_ind);
-+ dbfs_atomic_inc_unchecked(&cnt.num_tx_flow_on_ind);
- set_tx_flow_on(cf_sk);
- cf_sk->sk.sk_state_change(&cf_sk->sk);
- break;
-
- case CAIF_CTRLCMD_FLOW_OFF_IND:
- /* Modem asks us to shut up */
-- dbfs_atomic_inc(&cnt.num_tx_flow_off_ind);
-+ dbfs_atomic_inc_unchecked(&cnt.num_tx_flow_off_ind);
- set_tx_flow_off(cf_sk);
- cf_sk->sk.sk_state_change(&cf_sk->sk);
- break;
-@@ -249,7 +250,7 @@ static void caif_ctrl_cb(struct cflayer *layr,
- /* We're now connected */
- caif_client_register_refcnt(&cf_sk->layer,
- cfsk_hold, cfsk_put);
-- dbfs_atomic_inc(&cnt.num_connect_resp);
-+ dbfs_atomic_inc_unchecked(&cnt.num_connect_resp);
- cf_sk->sk.sk_state = CAIF_CONNECTED;
- set_tx_flow_on(cf_sk);
- cf_sk->sk.sk_state_change(&cf_sk->sk);
-@@ -263,7 +264,7 @@ static void caif_ctrl_cb(struct cflayer *layr,
-
- case CAIF_CTRLCMD_INIT_FAIL_RSP:
- /* Connect request failed */
-- dbfs_atomic_inc(&cnt.num_connect_fail_resp);
-+ dbfs_atomic_inc_unchecked(&cnt.num_connect_fail_resp);
- cf_sk->sk.sk_err = ECONNREFUSED;
- cf_sk->sk.sk_state = CAIF_DISCONNECTED;
- cf_sk->sk.sk_shutdown = SHUTDOWN_MASK;
-@@ -277,7 +278,7 @@ static void caif_ctrl_cb(struct cflayer *layr,
-
- case CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND:
- /* Modem has closed this connection, or device is down. */
-- dbfs_atomic_inc(&cnt.num_remote_shutdown_ind);
-+ dbfs_atomic_inc_unchecked(&cnt.num_remote_shutdown_ind);
- cf_sk->sk.sk_shutdown = SHUTDOWN_MASK;
- cf_sk->sk.sk_err = ECONNRESET;
- set_rx_flow_on(cf_sk);
-@@ -297,7 +298,7 @@ static void caif_check_flow_release(struct sock *sk)
- return;
-
- if (atomic_read(&sk->sk_rmem_alloc) <= sk_rcvbuf_lowwater(cf_sk)) {
-- dbfs_atomic_inc(&cnt.num_rx_flow_on);
-+ dbfs_atomic_inc_unchecked(&cnt.num_rx_flow_on);
- set_rx_flow_on(cf_sk);
- caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_ON_REQ);
- }
-@@ -856,7 +857,7 @@ static int caif_connect(struct socket *sock, struct sockaddr *uaddr,
- /*ifindex = id of the interface.*/
- cf_sk->conn_req.ifindex = cf_sk->sk.sk_bound_dev_if;
-
-- dbfs_atomic_inc(&cnt.num_connect_req);
-+ dbfs_atomic_inc_unchecked(&cnt.num_connect_req);
- cf_sk->layer.receive = caif_sktrecv_cb;
-
- err = caif_connect_client(sock_net(sk), &cf_sk->conn_req,
-@@ -945,7 +946,7 @@ static int caif_release(struct socket *sock)
- spin_unlock_bh(&sk->sk_receive_queue.lock);
- sock->sk = NULL;
-
-- dbfs_atomic_inc(&cnt.num_disconnect);
-+ dbfs_atomic_inc_unchecked(&cnt.num_disconnect);
-
- WARN_ON(IS_ERR(cf_sk->debugfs_socket_dir));
- if (cf_sk->debugfs_socket_dir != NULL)
-@@ -1124,7 +1125,7 @@ static int caif_create(struct net *net, struct socket *sock, int protocol,
- cf_sk->conn_req.protocol = protocol;
- /* Increase the number of sockets created. */
- dbfs_atomic_inc(&cnt.caif_nr_socks);
-- num = dbfs_atomic_inc(&cnt.caif_sock_create);
-+ num = dbfs_atomic_inc_unchecked(&cnt.caif_sock_create);
- #ifdef CONFIG_DEBUG_FS
- if (!IS_ERR(debugfsdir)) {
-
diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c
index 5cf5222..6f704ad 100644
--- a/net/caif/cfctrl.c
diff --git a/net/compat.c b/net/compat.c
-index 6def90e..c6992fa 100644
+index e055708..3f80795 100644
--- a/net/compat.c
+++ b/net/compat.c
@@ -71,9 +71,9 @@ int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg)
msg->msg_controllen)
return NULL;
return (struct compat_cmsghdr __user *)ptr;
-@@ -221,7 +221,7 @@ int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *dat
+@@ -219,7 +219,7 @@ Efault:
+
+ int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *data)
{
- struct compat_timeval ctv;
- struct compat_timespec cts[3];
- struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __user *) kmsg->msg_control;
+ struct compat_cmsghdr __user *cm = (struct compat_cmsghdr __force_user *) kmsg->msg_control;
struct compat_cmsghdr cmhdr;
int cmlen;
-@@ -273,7 +273,7 @@ int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *dat
+@@ -275,7 +275,7 @@ int put_cmsg_compat(struct msghdr *kmsg, int level, int type, int len, void *dat
void scm_detach_fds_compat(struct msghdr *kmsg, struct scm_cookie *scm)
{
int fdmax = (kmsg->msg_controllen - sizeof(struct compat_cmsghdr)) / sizeof(int);
int fdnum = scm->fp->count;
struct file **fp = scm->fp->fp;
-@@ -370,7 +370,7 @@ static int do_set_sock_timeout(struct socket *sock, int level,
+@@ -372,7 +372,7 @@ static int do_set_sock_timeout(struct socket *sock, int level,
return -EFAULT;
old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
return err;
-@@ -431,7 +431,7 @@ static int do_get_sock_timeout(struct socket *sock, int level, int optname,
+@@ -433,7 +433,7 @@ static int do_get_sock_timeout(struct socket *sock, int level, int optname,
len = sizeof(ktime);
old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (!err) {
-@@ -566,7 +566,7 @@ int compat_mc_setsockopt(struct sock *sock, int level, int optname,
+@@ -576,7 +576,7 @@ int compat_mc_setsockopt(struct sock *sock, int level, int optname,
case MCAST_JOIN_GROUP:
case MCAST_LEAVE_GROUP:
{
struct group_req __user *kgr =
compat_alloc_user_space(sizeof(struct group_req));
u32 interface;
-@@ -587,7 +587,7 @@ int compat_mc_setsockopt(struct sock *sock, int level, int optname,
+@@ -597,7 +597,7 @@ int compat_mc_setsockopt(struct sock *sock, int level, int optname,
case MCAST_BLOCK_SOURCE:
case MCAST_UNBLOCK_SOURCE:
{
struct group_source_req __user *kgsr = compat_alloc_user_space(
sizeof(struct group_source_req));
u32 interface;
-@@ -608,7 +608,7 @@ int compat_mc_setsockopt(struct sock *sock, int level, int optname,
+@@ -618,7 +618,7 @@ int compat_mc_setsockopt(struct sock *sock, int level, int optname,
}
case MCAST_MSFILTER:
{
struct group_filter __user *kgf;
u32 interface, fmode, numsrc;
-@@ -646,7 +646,7 @@ int compat_mc_getsockopt(struct sock *sock, int level, int optname,
+@@ -656,7 +656,7 @@ int compat_mc_getsockopt(struct sock *sock, int level, int optname,
char __user *optval, int __user *optlen,
int (*getsockopt)(struct sock *, int, int, char __user *, int __user *))
{
int __user *koptlen;
u32 interface, fmode, numsrc;
diff --git a/net/core/datagram.c b/net/core/datagram.c
-index 68bbf9f..5ef0d12 100644
+index e4fbfd6..6a6ac94 100644
--- a/net/core/datagram.c
+++ b/net/core/datagram.c
-@@ -285,7 +285,7 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)
+@@ -290,7 +290,7 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)
}
kfree_skb(skb);
return err;
diff --git a/net/core/dev.c b/net/core/dev.c
-index 0336374..659088a 100644
+index 99e1d75..adf968a 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
-@@ -1138,10 +1138,14 @@ void dev_load(struct net *net, const char *name)
+@@ -1136,9 +1136,13 @@ void dev_load(struct net *net, const char *name)
if (no_module && capable(CAP_NET_ADMIN))
no_module = request_module("netdev-%s", name);
if (no_module && capable(CAP_SYS_MODULE)) {
+ ___request_module(true, "grsec_modharden_netdev", "%s", name);
+#else
if (!request_module("%s", name))
- pr_err("Loading kernel module for a network device "
- "with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-%s "
- "instead\n", name);
+ pr_err("Loading kernel module for a network device with CAP_SYS_MODULE (deprecated). Use CAP_NET_ADMIN and alias netdev-%s instead.\n",
+ name);
+#endif
}
}
EXPORT_SYMBOL(dev_load);
-@@ -1605,7 +1609,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
+@@ -1602,7 +1606,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
{
if (skb_shinfo(skb)->tx_flags & SKBTX_DEV_ZEROCOPY) {
if (skb_copy_ubufs(skb, GFP_ATOMIC)) {
kfree_skb(skb);
return NET_RX_DROP;
}
-@@ -1615,7 +1619,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
+@@ -1612,7 +1616,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
nf_reset(skb);
if (unlikely(!is_skb_forwardable(dev, skb))) {
kfree_skb(skb);
return NET_RX_DROP;
}
-@@ -2077,7 +2081,7 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
+@@ -2042,7 +2046,7 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
struct dev_gso_cb {
void (*destructor)(struct sk_buff *skb);
#define DEV_GSO_CB(skb) ((struct dev_gso_cb *)(skb)->cb)
-@@ -2933,7 +2937,7 @@ enqueue:
+@@ -2898,7 +2902,7 @@ enqueue:
local_irq_restore(flags);
kfree_skb(skb);
return NET_RX_DROP;
}
-@@ -3005,7 +3009,7 @@ int netif_rx_ni(struct sk_buff *skb)
+@@ -2970,7 +2974,7 @@ int netif_rx_ni(struct sk_buff *skb)
}
EXPORT_SYMBOL(netif_rx_ni);
{
struct softnet_data *sd = &__get_cpu_var(softnet_data);
-@@ -3293,7 +3297,7 @@ ncls:
+@@ -3258,7 +3262,7 @@ ncls:
if (pt_prev) {
ret = pt_prev->func(skb, skb->dev, pt_prev, orig_dev);
} else {
kfree_skb(skb);
/* Jamal, now you will not able to escape explaining
* me how you were going to use this. :-)
-@@ -3853,7 +3857,7 @@ void netif_napi_del(struct napi_struct *napi)
+@@ -3818,7 +3822,7 @@ void netif_napi_del(struct napi_struct *napi)
}
EXPORT_SYMBOL(netif_napi_del);
{
struct softnet_data *sd = &__get_cpu_var(softnet_data);
unsigned long time_limit = jiffies + 2;
-@@ -5878,7 +5882,7 @@ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
+@@ -4288,8 +4292,13 @@ static int ptype_seq_show(struct seq_file *seq, void *v)
+ else
+ seq_printf(seq, "%04x", ntohs(pt->type));
+
++#ifdef CONFIG_GRKERNSEC_HIDESYM
++ seq_printf(seq, " %-8s %p\n",
++ pt->dev ? pt->dev->name : "", NULL);
++#else
+ seq_printf(seq, " %-8s %pF\n",
+ pt->dev ? pt->dev->name : "", pt->func);
++#endif
+ }
+
+ return 0;
+@@ -5839,7 +5848,7 @@ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
} else {
netdev_stats_to_stats64(storage, &dev->stats);
}
fle->object = flo;
else
diff --git a/net/core/iovec.c b/net/core/iovec.c
-index c40f27e..7f49254 100644
+index 7e7aeb0..2a998cb 100644
--- a/net/core/iovec.c
+++ b/net/core/iovec.c
-@@ -42,7 +42,7 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address,
+@@ -42,7 +42,7 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr_storage *a
if (m->msg_namelen) {
if (mode == VERIFY_READ) {
void __user *namep;
err = move_addr_to_kernel(namep, m->msg_namelen,
address);
if (err < 0)
-@@ -54,7 +54,7 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr *address,
+@@ -54,7 +54,7 @@ int verify_iovec(struct msghdr *m, struct iovec *iov, struct sockaddr_storage *a
}
size = m->msg_iovlen * sizeof(struct iovec);
m->msg_iov = iov;
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
-index 5c30296..ebe7b61 100644
+index 90430b7..0032ec0 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
-@@ -57,7 +57,7 @@ struct rtnl_link {
+@@ -56,7 +56,7 @@ struct rtnl_link {
rtnl_doit_func doit;
rtnl_dumpit_func dumpit;
rtnl_calcit_func calcit;
static DEFINE_MUTEX(rtnl_mutex);
diff --git a/net/core/scm.c b/net/core/scm.c
-index ff52ad0..aff1c0f 100644
+index 611c5ef..88f6d6d 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
-@@ -220,7 +220,7 @@ EXPORT_SYMBOL(__scm_send);
+@@ -219,7 +219,7 @@ EXPORT_SYMBOL(__scm_send);
int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
{
struct cmsghdr __user *cm
struct cmsghdr cmhdr;
int cmlen = CMSG_LEN(len);
int err;
-@@ -243,7 +243,7 @@ int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
+@@ -242,7 +242,7 @@ int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
err = -EFAULT;
if (copy_to_user(cm, &cmhdr, sizeof cmhdr))
goto out;
goto out;
cmlen = CMSG_SPACE(len);
if (msg->msg_controllen < cmlen)
-@@ -259,7 +259,7 @@ EXPORT_SYMBOL(put_cmsg);
+@@ -258,7 +258,7 @@ EXPORT_SYMBOL(put_cmsg);
void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
{
struct cmsghdr __user *cm
int fdmax = 0;
int fdnum = scm->fp->count;
-@@ -279,7 +279,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
+@@ -278,7 +278,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
if (fdnum < fdmax)
fdmax = fdnum;
{
int new_fd;
diff --git a/net/core/sock.c b/net/core/sock.c
-index 02f8dfe..86dfd4a 100644
+index b2e14c0..6651b32 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
-@@ -341,7 +341,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
+@@ -340,7 +340,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
struct sk_buff_head *list = &sk->sk_receive_queue;
if (atomic_read(&sk->sk_rmem_alloc) >= sk->sk_rcvbuf) {
trace_sock_rcvqueue_full(sk, skb);
return -ENOMEM;
}
-@@ -351,7 +351,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
+@@ -350,7 +350,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
return err;
if (!sk_rmem_schedule(sk, skb->truesize)) {
return -ENOBUFS;
}
-@@ -371,7 +371,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
+@@ -370,7 +370,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
skb_dst_force(skb);
spin_lock_irqsave(&list->lock, flags);
__skb_queue_tail(list, skb);
spin_unlock_irqrestore(&list->lock, flags);
-@@ -391,7 +391,7 @@ int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested)
+@@ -390,7 +390,7 @@ int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested)
skb->dev = NULL;
if (sk_rcvqueues_full(sk, skb)) {
goto discard_and_relse;
}
if (nested)
-@@ -409,7 +409,7 @@ int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested)
+@@ -408,7 +408,7 @@ int sk_receive_skb(struct sock *sk, struct sk_buff *skb, const int nested)
mutex_release(&sk->sk_lock.dep_map, 1, _RET_IP_);
} else if (sk_add_backlog(sk, skb)) {
bh_unlock_sock(sk);
goto discard_and_relse;
}
-@@ -974,7 +974,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
+@@ -984,7 +984,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
if (len > sizeof(peercred))
len = sizeof(peercred);
cred_to_ucred(sk->sk_peer_pid, sk->sk_peer_cred, &peercred);
return -EFAULT;
goto lenout;
}
-@@ -987,7 +987,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
+@@ -997,7 +997,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
return -ENOTCONN;
if (lv < len)
return -EINVAL;
return -EFAULT;
goto lenout;
}
-@@ -1024,7 +1024,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
+@@ -1043,7 +1043,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
if (len > lv)
len = lv;
return -EFAULT;
lenout:
if (put_user(len, optlen))
-@@ -2108,7 +2108,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)
+@@ -2128,7 +2128,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)
*/
smp_wmb();
atomic_set(&sk->sk_refcnt, 1);
---help---
Econet is a fairly old and slow networking protocol mainly used by
Acorn computers to access file and print servers. It uses native
-diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
-index 36d1440..44ff28b 100644
---- a/net/ipv4/ah4.c
-+++ b/net/ipv4/ah4.c
-@@ -19,6 +19,8 @@ struct ah_skb_cb {
- #define AH_SKB_CB(__skb) ((struct ah_skb_cb *)&((__skb)->cb[0]))
-
- static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
-+ unsigned int size) __size_overflow(3);
-+static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
- unsigned int size)
- {
- unsigned int len;
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
-index 92fc5f6..b790d91 100644
+index cbe3a68..a879b75 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
-@@ -970,12 +970,12 @@ static int fib_inetaddr_event(struct notifier_block *this, unsigned long event,
+@@ -969,12 +969,12 @@ static int fib_inetaddr_event(struct notifier_block *this, unsigned long event,
#ifdef CONFIG_IP_ROUTE_MULTIPATH
fib_sync_up(dev);
#endif
if (ifa->ifa_dev->ifa_list == NULL) {
/* Last address was deleted from this interface.
* Disable IP.
-@@ -1011,7 +1011,7 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo
+@@ -1010,7 +1010,7 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo
#ifdef CONFIG_IP_ROUTE_MULTIPATH
fib_sync_up(dev);
#endif
break;
case NETDEV_DOWN:
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
-index 80106d8..232e898 100644
+index 8861f91..ab1e3c1 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
-@@ -699,7 +699,7 @@ __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh)
+@@ -698,7 +698,7 @@ __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh)
nh->nh_saddr = inet_select_addr(nh->nh_dev,
nh->nh_gw,
nh->nh_parent->fib_scope);
secure_ip_id(daddr->addr.a4) :
secure_ipv6_id(daddr->addr.a6));
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c
-index 1f23a57..7180dfe 100644
+index 3727e23..517f5df 100644
--- a/net/ipv4/ip_fragment.c
+++ b/net/ipv4/ip_fragment.c
-@@ -316,7 +316,7 @@ static inline int ip_frag_too_far(struct ipq *qp)
+@@ -318,7 +318,7 @@ static inline int ip_frag_too_far(struct ipq *qp)
return 0;
start = qp->rid;
rc = qp->q.fragments && (end - start) > max;
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
-index 8aa87c1..35c3248 100644
+index 2fd0fba..83fac99 100644
--- a/net/ipv4/ip_sockglue.c
+++ b/net/ipv4/ip_sockglue.c
-@@ -1112,7 +1112,8 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
+@@ -1137,7 +1137,8 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
len = min_t(unsigned int, len, opt->optlen);
if (put_user(len, optlen))
return -EFAULT;
return -EFAULT;
return 0;
}
-@@ -1240,7 +1241,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
+@@ -1268,7 +1269,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
if (sk->sk_type != SOCK_STREAM)
return -ENOPROTOOPT;
msg.msg_flags = flags;
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
-index 6e412a6..6640538 100644
+index 92ac7e7..13f93d9 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
-@@ -318,7 +318,7 @@ static int __init ic_devinet_ioctl(unsigned int cmd, struct ifreq *arg)
+@@ -321,7 +321,7 @@ static int __init ic_devinet_ioctl(unsigned int cmd, struct ifreq *arg)
mm_segment_t oldfs = get_fs();
set_fs(get_ds());
set_fs(oldfs);
return res;
}
-@@ -329,7 +329,7 @@ static int __init ic_dev_ioctl(unsigned int cmd, struct ifreq *arg)
+@@ -332,7 +332,7 @@ static int __init ic_dev_ioctl(unsigned int cmd, struct ifreq *arg)
mm_segment_t oldfs = get_fs();
set_fs(get_ds());
set_fs(oldfs);
return res;
}
-@@ -340,7 +340,7 @@ static int __init ic_route_ioctl(unsigned int cmd, struct rtentry *arg)
+@@ -343,7 +343,7 @@ static int __init ic_route_ioctl(unsigned int cmd, struct rtentry *arg)
mm_segment_t oldfs = get_fs();
set_fs(get_ds());
set_fs(oldfs);
return res;
}
-diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
-index fd7a3f6..a1b1013 100644
---- a/net/ipv4/netfilter/arp_tables.c
-+++ b/net/ipv4/netfilter/arp_tables.c
-@@ -757,6 +757,9 @@ static struct xt_counters *alloc_counters(const struct xt_table *table)
-
- static int copy_entries_to_user(unsigned int total_size,
- const struct xt_table *table,
-+ void __user *userptr) __size_overflow(1);
-+static int copy_entries_to_user(unsigned int total_size,
-+ const struct xt_table *table,
- void __user *userptr)
- {
- unsigned int off, num;
-@@ -984,6 +987,11 @@ static int __do_replace(struct net *net, const char *name,
- unsigned int valid_hooks,
- struct xt_table_info *newinfo,
- unsigned int num_counters,
-+ void __user *counters_ptr) __size_overflow(5);
-+static int __do_replace(struct net *net, const char *name,
-+ unsigned int valid_hooks,
-+ struct xt_table_info *newinfo,
-+ unsigned int num_counters,
- void __user *counters_ptr)
- {
- int ret;
-@@ -1104,6 +1112,8 @@ static int do_replace(struct net *net, const void __user *user,
- }
-
- static int do_add_counters(struct net *net, const void __user *user,
-+ unsigned int len, int compat) __size_overflow(3);
-+static int do_add_counters(struct net *net, const void __user *user,
- unsigned int len, int compat)
- {
- unsigned int i, curcpu;
-diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
-index 24e556e..b073356 100644
---- a/net/ipv4/netfilter/ip_tables.c
-+++ b/net/ipv4/netfilter/ip_tables.c
-@@ -923,6 +923,10 @@ static struct xt_counters *alloc_counters(const struct xt_table *table)
- static int
- copy_entries_to_user(unsigned int total_size,
- const struct xt_table *table,
-+ void __user *userptr) __size_overflow(1);
-+static int
-+copy_entries_to_user(unsigned int total_size,
-+ const struct xt_table *table,
- void __user *userptr)
- {
- unsigned int off, num;
-@@ -1172,6 +1176,10 @@ get_entries(struct net *net, struct ipt_get_entries __user *uptr,
- static int
- __do_replace(struct net *net, const char *name, unsigned int valid_hooks,
- struct xt_table_info *newinfo, unsigned int num_counters,
-+ void __user *counters_ptr) __size_overflow(5);
-+static int
-+__do_replace(struct net *net, const char *name, unsigned int valid_hooks,
-+ struct xt_table_info *newinfo, unsigned int num_counters,
- void __user *counters_ptr)
- {
- int ret;
-@@ -1293,6 +1301,9 @@ do_replace(struct net *net, const void __user *user, unsigned int len)
-
- static int
- do_add_counters(struct net *net, const void __user *user,
-+ unsigned int len, int compat) __size_overflow(3);
-+static int
-+do_add_counters(struct net *net, const void __user *user,
- unsigned int len, int compat)
- {
- unsigned int i, curcpu;
-diff --git a/net/ipv4/netfilter/ipt_ULOG.c b/net/ipv4/netfilter/ipt_ULOG.c
-index ba5756d..8d34d74 100644
---- a/net/ipv4/netfilter/ipt_ULOG.c
-+++ b/net/ipv4/netfilter/ipt_ULOG.c
-@@ -125,6 +125,7 @@ static void ulog_timer(unsigned long data)
- spin_unlock_bh(&ulog_lock);
- }
-
-+static struct sk_buff *ulog_alloc_skb(unsigned int size) __size_overflow(1);
- static struct sk_buff *ulog_alloc_skb(unsigned int size)
- {
- struct sk_buff *skb;
-diff --git a/net/ipv4/netfilter/nf_nat_snmp_basic.c b/net/ipv4/netfilter/nf_nat_snmp_basic.c
-index 2133c30..0e8047e 100644
---- a/net/ipv4/netfilter/nf_nat_snmp_basic.c
-+++ b/net/ipv4/netfilter/nf_nat_snmp_basic.c
-@@ -435,6 +435,10 @@ static unsigned char asn1_subid_decode(struct asn1_ctx *ctx,
- static unsigned char asn1_oid_decode(struct asn1_ctx *ctx,
- unsigned char *eoc,
- unsigned long **oid,
-+ unsigned int *len) __size_overflow(2);
-+static unsigned char asn1_oid_decode(struct asn1_ctx *ctx,
-+ unsigned char *eoc,
-+ unsigned long **oid,
- unsigned int *len)
- {
- unsigned long subid;
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
-index b072386..abdebcf 100644
+index 50009c7..5996a9f 100644
--- a/net/ipv4/ping.c
+++ b/net/ipv4/ping.c
@@ -838,7 +838,7 @@ static void ping_format_sock(struct sock *sp, struct seq_file *f,
static int ping_seq_show(struct seq_file *seq, void *v)
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
-index 3ccda5a..3c1e61d 100644
+index bbd604c..4d5469c 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -304,7 +304,7 @@ static int raw_rcv_skb(struct sock * sk, struct sk_buff * skb)
kfree_skb(skb);
return NET_RX_DROP;
}
-@@ -742,16 +742,20 @@ static int raw_init(struct sock *sk)
+@@ -740,16 +740,20 @@ static int raw_init(struct sock *sk)
static int raw_seticmpfilter(struct sock *sk, char __user *optval, int optlen)
{
if (get_user(len, optlen))
goto out;
-@@ -761,8 +765,8 @@ static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *o
+@@ -759,8 +763,8 @@ static int raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *o
if (len > sizeof(struct icmp_filter))
len = sizeof(struct icmp_filter);
ret = -EFAULT;
goto out;
ret = 0;
out: return ret;
-@@ -990,7 +994,13 @@ static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
+@@ -988,7 +992,13 @@ static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
sk_wmem_alloc_get(sp),
sk_rmem_alloc_get(sp),
0, 0L, 0, sock_i_uid(sp), 0, sock_i_ino(sp),
static int raw_seq_show(struct seq_file *seq, void *v)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
-index 0197747..7adb0dc 100644
+index 167ea10..4b15883 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
-@@ -311,7 +311,7 @@ static inline unsigned int rt_hash(__be32 daddr, __be32 saddr, int idx,
+@@ -312,7 +312,7 @@ static inline unsigned int rt_hash(__be32 daddr, __be32 saddr, int idx,
static inline int rt_genid(struct net *net)
{
}
#ifdef CONFIG_PROC_FS
-@@ -935,7 +935,7 @@ static void rt_cache_invalidate(struct net *net)
+@@ -936,7 +936,7 @@ static void rt_cache_invalidate(struct net *net)
unsigned char shuffle;
get_random_bytes(&shuffle, sizeof(shuffle));
inetpeer_invalidate_tree(AF_INET);
}
-@@ -3010,7 +3010,7 @@ static int rt_fill_info(struct net *net,
+@@ -3009,7 +3009,7 @@ static int rt_fill_info(struct net *net,
error = rt->dst.error;
if (peer) {
inet_peer_refcheck(rt->peer);
ts = peer->tcp_ts;
tsage = get_seconds() - peer->tcp_ts_stamp;
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
-index fd54c5f..96d6407 100644
+index 0cb86ce..8e7fda8 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
-@@ -88,6 +88,9 @@ int sysctl_tcp_tw_reuse __read_mostly;
- int sysctl_tcp_low_latency __read_mostly;
+@@ -90,6 +90,10 @@ int sysctl_tcp_low_latency __read_mostly;
EXPORT_SYMBOL(sysctl_tcp_low_latency);
+
+#ifdef CONFIG_GRKERNSEC_BLACKHOLE
+extern int grsec_enable_blackhole;
+#endif
-
++
#ifdef CONFIG_TCP_MD5SIG
- static struct tcp_md5sig_key *tcp_v4_md5_do_lookup(struct sock *sk,
-@@ -1638,6 +1641,9 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
+ static int tcp_v4_md5_hash_hdr(char *md5_hash, const struct tcp_md5sig_key *key,
+ __be32 daddr, __be32 saddr, const struct tcphdr *th);
+@@ -1641,6 +1645,9 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
return 0;
reset:
tcp_v4_send_reset(rsk, skb);
discard:
kfree_skb(skb);
-@@ -1700,12 +1706,19 @@ int tcp_v4_rcv(struct sk_buff *skb)
+@@ -1703,12 +1710,19 @@ int tcp_v4_rcv(struct sk_buff *skb)
TCP_SKB_CB(skb)->sacked = 0;
sk = __inet_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest);
if (unlikely(iph->ttl < inet_sk(sk)->min_ttl)) {
NET_INC_STATS_BH(net, LINUX_MIB_TCPMINTTLDROP);
-@@ -1755,6 +1768,10 @@ no_tcp_socket:
+@@ -1758,6 +1772,10 @@ no_tcp_socket:
bad_packet:
TCP_INC_STATS_BH(net, TCP_MIB_INERRS);
} else {
tcp_v4_send_reset(NULL, skb);
}
-@@ -2417,7 +2434,11 @@ static void get_openreq4(const struct sock *sk, const struct request_sock *req,
+@@ -2419,7 +2437,11 @@ static void get_openreq4(const struct sock *sk, const struct request_sock *req,
0, /* non standard timer */
0, /* open_requests have no inode */
atomic_read(&sk->sk_refcnt),
len);
}
-@@ -2467,7 +2488,12 @@ static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i, int *len)
+@@ -2469,7 +2491,12 @@ static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i, int *len)
sock_i_uid(sk),
icsk->icsk_probes_out,
sock_i_ino(sk),
jiffies_to_clock_t(icsk->icsk_rto),
jiffies_to_clock_t(icsk->icsk_ack.ato),
(icsk->icsk_ack.quick << 1) | icsk->icsk_ack.pingpong,
-@@ -2495,7 +2521,13 @@ static void get_timewait4_sock(const struct inet_timewait_sock *tw,
+@@ -2497,7 +2524,13 @@ static void get_timewait4_sock(const struct inet_timewait_sock *tw,
" %02X %08X:%08X %02X:%08lX %08X %5d %8d %d %d %pK%n",
i, src, srcp, dest, destp, tw->tw_substate, 0, 0,
3, jiffies_to_clock_t(ttd), 0, 0, 0, 0,
#define TMPSZ 150
diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
-index 550e755..25721b3 100644
+index 3cabafb..640525b 100644
--- a/net/ipv4/tcp_minisocks.c
+++ b/net/ipv4/tcp_minisocks.c
@@ -27,6 +27,10 @@
req->rsk_ops->send_reset(sk, skb);
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c
-index 85ee7eb..53277ab 100644
+index a981cdc..48f4c3a 100644
--- a/net/ipv4/tcp_probe.c
+++ b/net/ipv4/tcp_probe.c
-@@ -202,7 +202,7 @@ static ssize_t tcpprobe_read(struct file *file, char __user *buf,
+@@ -204,7 +204,7 @@ static ssize_t tcpprobe_read(struct file *file, char __user *buf,
if (cnt + width >= len)
break;
cnt += width;
}
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
-index cd2e072..1fffee2 100644
+index 34d4a02..3b57f86 100644
--- a/net/ipv4/tcp_timer.c
+++ b/net/ipv4/tcp_timer.c
@@ -22,6 +22,10 @@
syn_set ? 0 : icsk->icsk_user_timeout, syn_set)) {
/* Has it gone just too far? */
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
-index 5d075b5..d907d5f 100644
+index fe14105..0618260 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
-@@ -86,6 +86,7 @@
+@@ -87,6 +87,7 @@
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/module.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/igmp.h>
-@@ -108,6 +109,10 @@
+@@ -109,6 +110,10 @@
#include <trace/events/udp.h>
#include "udp_impl.h"
struct udp_table udp_table __read_mostly;
EXPORT_SYMBOL(udp_table);
-@@ -566,6 +571,9 @@ found:
+@@ -567,6 +572,9 @@ found:
return s;
}
/*
* This routine is called by the ICMP module when it gets some
* sort of error condition. If err < 0 then the socket should
-@@ -857,9 +865,18 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
+@@ -858,9 +866,18 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
dport = usin->sin_port;
if (dport == 0)
return -EINVAL;
daddr = inet->inet_daddr;
dport = inet->inet_dport;
/* Open fast path for connected socket.
-@@ -1100,7 +1117,7 @@ static unsigned int first_packet_length(struct sock *sk)
+@@ -1102,7 +1119,7 @@ static unsigned int first_packet_length(struct sock *sk)
udp_lib_checksum_complete(skb)) {
UDP_INC_STATS_BH(sock_net(sk), UDP_MIB_INERRORS,
IS_UDPLITE(sk));
__skb_unlink(skb, rcvq);
__skb_queue_tail(&list_kill, skb);
}
-@@ -1186,6 +1203,10 @@ try_again:
+@@ -1188,6 +1205,10 @@ try_again:
if (!skb)
goto out;
icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);
/*
-@@ -2100,8 +2124,13 @@ static void udp4_format_sock(struct sock *sp, struct seq_file *f,
+@@ -2094,8 +2118,13 @@ static void udp4_format_sock(struct sock *sp, struct seq_file *f,
sk_wmem_alloc_get(sp),
sk_rmem_alloc_get(sp),
0, 0L, 0, sock_i_uid(sp), 0, sock_i_ino(sp),
int udp4_seq_show(struct seq_file *seq, void *v)
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
-index 6b8ebc5..1d624f4 100644
+index 7d5cb97..c56564f 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
-@@ -2145,7 +2145,7 @@ int addrconf_set_dstaddr(struct net *net, void __user *arg)
+@@ -2142,7 +2142,7 @@ int addrconf_set_dstaddr(struct net *net, void __user *arg)
p.iph.ihl = 5;
p.iph.protocol = IPPROTO_IPV6;
p.iph.ttl = 64;
if (ops->ndo_do_ioctl) {
mm_segment_t oldfs = get_fs();
-diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
-index 2ae79db..8f101bf 100644
---- a/net/ipv6/ah6.c
-+++ b/net/ipv6/ah6.c
-@@ -56,6 +56,8 @@ struct ah_skb_cb {
- #define AH_SKB_CB(__skb) ((struct ah_skb_cb *)&((__skb)->cb[0]))
-
- static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
-+ unsigned int size) __size_overflow(3);
-+static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags,
- unsigned int size)
- {
- unsigned int len;
diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c
index 02dd203..e03fcc9 100644
--- a/net/ipv6/inet6_connection_sock.c
dst = NULL;
}
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
-index 18a2719..779f36a 100644
+index 63dd1f8..e7f53ca 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
-@@ -960,7 +960,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
+@@ -990,7 +990,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
if (sk->sk_type != SOCK_STREAM)
return -ENOPROTOOPT;
msg.msg_controllen = len;
msg.msg_flags = flags;
-diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
-index 94874b0..108a94d 100644
---- a/net/ipv6/netfilter/ip6_tables.c
-+++ b/net/ipv6/netfilter/ip6_tables.c
-@@ -945,6 +945,10 @@ static struct xt_counters *alloc_counters(const struct xt_table *table)
- static int
- copy_entries_to_user(unsigned int total_size,
- const struct xt_table *table,
-+ void __user *userptr) __size_overflow(1);
-+static int
-+copy_entries_to_user(unsigned int total_size,
-+ const struct xt_table *table,
- void __user *userptr)
- {
- unsigned int off, num;
-@@ -1194,6 +1198,10 @@ get_entries(struct net *net, struct ip6t_get_entries __user *uptr,
- static int
- __do_replace(struct net *net, const char *name, unsigned int valid_hooks,
- struct xt_table_info *newinfo, unsigned int num_counters,
-+ void __user *counters_ptr) __size_overflow(5);
-+static int
-+__do_replace(struct net *net, const char *name, unsigned int valid_hooks,
-+ struct xt_table_info *newinfo, unsigned int num_counters,
- void __user *counters_ptr)
- {
- int ret;
-@@ -1315,6 +1323,9 @@ do_replace(struct net *net, const void __user *user, unsigned int len)
-
- static int
- do_add_counters(struct net *net, const void __user *user, unsigned int len,
-+ int compat) __size_overflow(3);
-+static int
-+do_add_counters(struct net *net, const void __user *user, unsigned int len,
- int compat)
- {
- unsigned int i, curcpu;
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
-index d02f7e4..2d2a0f1 100644
+index 5bddea7..82d9d67 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -377,7 +377,7 @@ static inline int rawv6_rcv_skb(struct sock *sk, struct sk_buff *skb)
struct flowi6 *fl6, struct dst_entry **dstp,
unsigned int flags)
{
-@@ -912,12 +912,15 @@ do_confirm:
+@@ -914,12 +914,15 @@ do_confirm:
static int rawv6_seticmpfilter(struct sock *sk, int level, int optname,
char __user *optval, int optlen)
{
return 0;
default:
return -ENOPROTOOPT;
-@@ -930,6 +933,7 @@ static int rawv6_geticmpfilter(struct sock *sk, int level, int optname,
+@@ -932,6 +935,7 @@ static int rawv6_geticmpfilter(struct sock *sk, int level, int optname,
char __user *optval, int __user *optlen)
{
int len;
switch (optname) {
case ICMPV6_FILTER:
-@@ -941,7 +945,8 @@ static int rawv6_geticmpfilter(struct sock *sk, int level, int optname,
+@@ -943,7 +947,8 @@ static int rawv6_geticmpfilter(struct sock *sk, int level, int optname,
len = sizeof(struct icmp6_filter);
if (put_user(len, optlen))
return -EFAULT;
return -EFAULT;
return 0;
default:
-@@ -1248,7 +1253,13 @@ static void raw6_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
+@@ -1250,7 +1255,13 @@ static void raw6_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
0, 0L, 0,
sock_i_uid(sp), 0,
sock_i_ino(sp),
static int raw6_seq_show(struct seq_file *seq, void *v)
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
-index a89ca8d..12e66b0 100644
+index 98256cf..7f16dbd 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -94,6 +94,10 @@ static struct tcp_md5sig_key *tcp_v6_md5_do_lookup(struct sock *sk,
static void tcp_v6_hash(struct sock *sk)
{
if (sk->sk_state != TCP_CLOSE) {
-@@ -1654,6 +1658,9 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
+@@ -1542,6 +1546,9 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
return 0;
reset:
tcp_v6_send_reset(sk, skb);
discard:
if (opt_skb)
-@@ -1733,12 +1740,20 @@ static int tcp_v6_rcv(struct sk_buff *skb)
+@@ -1623,12 +1630,20 @@ static int tcp_v6_rcv(struct sk_buff *skb)
TCP_SKB_CB(skb)->sacked = 0;
sk = __inet6_lookup_skb(&tcp_hashinfo, skb, th->source, th->dest);
if (hdr->hop_limit < inet6_sk(sk)->min_hopcount) {
NET_INC_STATS_BH(net, LINUX_MIB_TCPMINTTLDROP);
-@@ -1786,6 +1801,10 @@ no_tcp_socket:
+@@ -1676,6 +1691,10 @@ no_tcp_socket:
bad_packet:
TCP_INC_STATS_BH(net, TCP_MIB_INERRS);
} else {
tcp_v6_send_reset(NULL, skb);
}
-@@ -2047,7 +2066,13 @@ static void get_openreq6(struct seq_file *seq,
+@@ -1930,7 +1949,13 @@ static void get_openreq6(struct seq_file *seq,
uid,
0, /* non standard timer */
0, /* open_requests have no inode */
}
static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
-@@ -2097,7 +2122,12 @@ static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
+@@ -1980,7 +2005,12 @@ static void get_tcp6_sock(struct seq_file *seq, struct sock *sp, int i)
sock_i_uid(sp),
icsk->icsk_probes_out,
sock_i_ino(sp),
jiffies_to_clock_t(icsk->icsk_rto),
jiffies_to_clock_t(icsk->icsk_ack.ato),
(icsk->icsk_ack.quick << 1 ) | icsk->icsk_ack.pingpong,
-@@ -2132,7 +2162,13 @@ static void get_timewait6_sock(struct seq_file *seq,
+@@ -2015,7 +2045,13 @@ static void get_timewait6_sock(struct seq_file *seq,
dest->s6_addr32[2], dest->s6_addr32[3], destp,
tw->tw_substate, 0, 0,
3, jiffies_to_clock_t(ttd), 0, 0, 0, 0,
static int tcp6_seq_show(struct seq_file *seq, void *v)
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
-index 4f96b5c..75543d7 100644
+index 37b0699..d323408 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -50,6 +50,10 @@
bh_unlock_sock(sk);
sock_put(sk);
goto discard;
-@@ -1410,8 +1417,13 @@ static void udp6_sock_seq_show(struct seq_file *seq, struct sock *sp, int bucket
+@@ -1411,8 +1418,13 @@ static void udp6_sock_seq_show(struct seq_file *seq, struct sock *sp, int bucket
0, 0L, 0,
sock_i_uid(sp), 0,
sock_i_ino(sp),
int udp6_seq_show(struct seq_file *seq, void *v)
diff --git a/net/irda/ircomm/ircomm_tty.c b/net/irda/ircomm/ircomm_tty.c
-index 253695d..9481ce8 100644
+index 6b9d5a0..4dffaf1 100644
--- a/net/irda/ircomm/ircomm_tty.c
+++ b/net/irda/ircomm/ircomm_tty.c
-@@ -282,16 +282,16 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
+@@ -281,16 +281,16 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
add_wait_queue(&self->open_wait, &wait);
IRDA_DEBUG(2, "%s(%d):block_til_ready before block on %s open_count=%d\n",
while (1) {
if (tty->termios->c_cflag & CBAUD) {
-@@ -331,7 +331,7 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
+@@ -330,7 +330,7 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
}
IRDA_DEBUG(1, "%s(%d):block_til_ready blocking on %s open_count=%d\n",
schedule();
}
-@@ -342,13 +342,13 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
+@@ -341,13 +341,13 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
if (extra_count) {
/* ++ is not atomic, so this should be protected - Jean II */
spin_lock_irqsave(&self->spinlock, flags);
if (!retval)
self->flags |= ASYNC_NORMAL_ACTIVE;
-@@ -417,14 +417,14 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
+@@ -412,14 +412,14 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
}
/* ++ is not atomic, so this should be protected - Jean II */
spin_lock_irqsave(&self->spinlock, flags);
/* Not really used by us, but lets do it anyway */
self->tty->low_latency = (self->flags & ASYNC_LOW_LATENCY) ? 1 : 0;
-@@ -510,7 +510,7 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
+@@ -505,7 +505,7 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
return;
}
/*
* Uh, oh. tty->count is 1, which means that the tty
* structure will be freed. state->count should always
-@@ -520,16 +520,16 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
+@@ -515,16 +515,16 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
*/
IRDA_DEBUG(0, "%s(), bad serial port count; "
"tty->count is 1, state->count is %d\n", __func__ ,
spin_unlock_irqrestore(&self->spinlock, flags);
IRDA_DEBUG(0, "%s(), open count > 0\n", __func__ );
-@@ -561,7 +561,7 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
+@@ -556,7 +556,7 @@ static void ircomm_tty_close(struct tty_struct *tty, struct file *filp)
tty->closing = 0;
self->tty = NULL;
if (self->close_delay)
schedule_timeout_interruptible(self->close_delay);
wake_up_interruptible(&self->open_wait);
-@@ -1013,7 +1013,7 @@ static void ircomm_tty_hangup(struct tty_struct *tty)
+@@ -1008,7 +1008,7 @@ static void ircomm_tty_hangup(struct tty_struct *tty)
spin_lock_irqsave(&self->spinlock, flags);
self->flags &= ~ASYNC_NORMAL_ACTIVE;
self->tty = NULL;
spin_unlock_irqrestore(&self->spinlock, flags);
wake_up_interruptible(&self->open_wait);
-@@ -1360,7 +1360,7 @@ static void ircomm_tty_line_info(struct ircomm_tty_cb *self, struct seq_file *m)
+@@ -1355,7 +1355,7 @@ static void ircomm_tty_line_info(struct ircomm_tty_cb *self, struct seq_file *m)
seq_putc(m, '\n');
seq_printf(m, "Role: %s\n", self->client ? "client" : "server");
seq_printf(m, "Max header size: %d\n", self->max_header_size);
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
-index d5c5b8f..33beff0 100644
+index 07d7d55..541de95 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
-@@ -764,10 +764,10 @@ static int iucv_sock_autobind(struct sock *sk)
+@@ -783,10 +783,10 @@ static int iucv_sock_autobind(struct sock *sk)
write_lock_bh(&iucv_sk_list.lock);
write_unlock_bh(&iucv_sk_list.lock);
diff --git a/net/key/af_key.c b/net/key/af_key.c
-index 11dbb22..c20f667 100644
+index 7e5d927..cdbb54e 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -3016,10 +3016,10 @@ static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, const struc
return res;
}
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
-index 2f0642d..e5c6fba 100644
+index db8fae5..ff070cd 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -28,6 +28,7 @@
#include "key.h"
#include "sta_info.h"
-@@ -781,7 +782,7 @@ struct ieee80211_local {
+@@ -842,7 +843,7 @@ struct ieee80211_local {
/* also used to protect ampdu_ac_queue and amdpu_ac_stop_refcnt */
spinlock_t queue_stop_reason_lock;
/* number of interfaces with corresponding FIF_ flags */
int fif_fcsfail, fif_plcpfail, fif_control, fif_other_bss, fif_pspoll,
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
-index 8e2137b..2974283 100644
+index 48f937e..4ccd7b8 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -222,7 +222,7 @@ static int ieee80211_do_open(struct net_device *dev, bool coming_up)
drv_stop(local);
err_del_bss:
sdata->bss = NULL;
-@@ -489,7 +489,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
+@@ -491,7 +491,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
}
if (going_down)
switch (sdata->vif.type) {
case NL80211_IFTYPE_AP_VLAN:
-@@ -548,7 +548,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
+@@ -562,7 +562,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
ieee80211_recalc_ps(local, -1);
napi_disable(&local->napi);
ieee80211_clear_tx_pending(local);
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
-index b142bd4..a651749 100644
+index 1633648..d45ebfa 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
-@@ -166,7 +166,7 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
+@@ -164,7 +164,7 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
local->hw.conf.power_level = power;
}
/*
* Goal:
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
-index 596efaf..8f1911f 100644
+index ef8eba1..5c63952 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -34,7 +34,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
if (local->wowlan) {
int err = drv_suspend(local, wowlan);
if (err < 0) {
-@@ -129,7 +129,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
+@@ -128,7 +128,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
}
/* stop hardware - this must stop RX */
suspend:
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
-index f9b8e81..bb89b46 100644
+index 3313c11..bec9f17 100644
--- a/net/mac80211/rate.c
+++ b/net/mac80211/rate.c
-@@ -401,7 +401,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
+@@ -494,7 +494,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
ASSERT_RTNL();
return p;
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
-index 9919892..8c49803 100644
+index eb9d7c0..d34b832 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
-@@ -1143,7 +1143,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
+@@ -1179,7 +1179,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
}
#endif
/* everything else happens only if HW was up & running */
/*
diff --git a/net/netfilter/Kconfig b/net/netfilter/Kconfig
-index f8ac4ef..b02560b 100644
+index 0c6f67e..d02cdfc 100644
--- a/net/netfilter/Kconfig
+++ b/net/netfilter/Kconfig
-@@ -806,6 +806,16 @@ config NETFILTER_XT_MATCH_ESP
+@@ -836,6 +836,16 @@ config NETFILTER_XT_MATCH_ESP
To compile it as a module, choose M here. If unsure, say N.
tristate '"hashlimit" match support'
depends on (IP6_NF_IPTABLES || IP6_NF_IPTABLES=n)
diff --git a/net/netfilter/Makefile b/net/netfilter/Makefile
-index 40f4c3d..0d5dd6b 100644
+index ca36765..0882e7c 100644
--- a/net/netfilter/Makefile
+++ b/net/netfilter/Makefile
-@@ -83,6 +83,7 @@ obj-$(CONFIG_NETFILTER_XT_MATCH_DEVGROUP) += xt_devgroup.o
+@@ -86,6 +86,7 @@ obj-$(CONFIG_NETFILTER_XT_MATCH_DEVGROUP) += xt_devgroup.o
obj-$(CONFIG_NETFILTER_XT_MATCH_DSCP) += xt_dscp.o
obj-$(CONFIG_NETFILTER_XT_MATCH_ECN) += xt_ecn.o
obj-$(CONFIG_NETFILTER_XT_MATCH_ESP) += xt_esp.o
if (!todrop_rate[i]) return 0;
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c
-index 2555816..31492d9 100644
+index 00bdb1d..6725a48 100644
--- a/net/netfilter/ipvs/ip_vs_core.c
+++ b/net/netfilter/ipvs/ip_vs_core.c
@@ -562,7 +562,7 @@ int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
if ((ipvs->sync_state & IP_VS_STATE_MASTER) &&
cp->protocol == IPPROTO_SCTP) {
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
-index b3afe18..08ec940 100644
+index f558998..9cdff60 100644
--- a/net/netfilter/ipvs/ip_vs_ctl.c
+++ b/net/netfilter/ipvs/ip_vs_ctl.c
@@ -788,7 +788,7 @@ __ip_vs_update_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest,
return 0;
}
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
-index 467af9c..8f415cc 100644
+index faa48f7..65f7f54 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -741,7 +741,7 @@ static void netlink_overrun(struct sock *sk)
}
static struct sock *netlink_getsockbypid(struct sock *ssk, u32 pid)
-@@ -1997,7 +1997,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v)
+@@ -2013,7 +2013,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v)
sk_wmem_alloc_get(s),
nlk->cb,
atomic_read(&s->sk_refcnt),
);
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
-index 7dab229..212156f 100644
+index 06592d8..64860f6 100644
--- a/net/netrom/af_netrom.c
+++ b/net/netrom/af_netrom.c
-@@ -839,6 +839,7 @@ static int nr_getname(struct socket *sock, struct sockaddr *uaddr,
+@@ -838,6 +838,7 @@ static int nr_getname(struct socket *sock, struct sockaddr *uaddr,
struct sock *sk = sock->sk;
struct nr_sock *nr = nr_sk(sk);
lock_sock(sk);
if (peer != 0) {
if (sk->sk_state != TCP_ESTABLISHED) {
-@@ -853,7 +854,6 @@ static int nr_getname(struct socket *sock, struct sockaddr *uaddr,
+@@ -852,7 +853,6 @@ static int nr_getname(struct socket *sock, struct sockaddr *uaddr,
*uaddr_len = sizeof(struct full_sockaddr_ax25);
} else {
sax->fsa_ax25.sax25_family = AF_NETROM;
sax->fsa_ax25.sax25_call = nr->source_addr;
*uaddr_len = sizeof(struct sockaddr_ax25);
}
-diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
-index 2c03050..5cf68c1 100644
---- a/net/openvswitch/datapath.c
-+++ b/net/openvswitch/datapath.c
-@@ -322,7 +322,7 @@ static int queue_userspace_packet(int dp_ifindex, struct sk_buff *skb,
- return -ENOMEM;
-
- nskb = __vlan_put_tag(nskb, vlan_tx_tag_get(nskb));
-- if (!skb)
-+ if (!nskb)
- return -ENOMEM;
-
- nskb->vlan_tci = 0;
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
-index 2dbb32b..a1b4722 100644
+index 4f2c0df..f0ff342 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
-@@ -1676,7 +1676,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
+@@ -1687,7 +1687,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
spin_lock(&sk->sk_receive_queue.lock);
po->stats.tp_packets++;
__skb_queue_tail(&sk->sk_receive_queue, skb);
spin_unlock(&sk->sk_receive_queue.lock);
sk->sk_data_ready(sk, skb->len);
-@@ -1685,7 +1685,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
+@@ -1696,7 +1696,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
drop_n_acct:
spin_lock(&sk->sk_receive_queue.lock);
po->stats.tp_drops++;
spin_unlock(&sk->sk_receive_queue.lock);
drop_n_restore:
-@@ -3271,7 +3271,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
+@@ -3294,7 +3294,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
case PACKET_HDRLEN:
if (len > sizeof(int))
len = sizeof(int);
return -EFAULT;
switch (val) {
case TPACKET_V1:
-@@ -3321,7 +3321,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
+@@ -3344,7 +3344,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
if (put_user(len, optlen))
return -EFAULT;
spinlock_t i_ack_lock; /* protect i_ack_next */
u64 i_ack_next; /* next ACK to send */
diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c
-index 51c8689..36c555f 100644
+index a1e1162..265e129 100644
--- a/net/rds/ib_cm.c
+++ b/net/rds/ib_cm.c
@@ -718,7 +718,7 @@ void rds_ib_conn_shutdown(struct rds_connection *conn)
ic->i_ack_next = 0;
#endif
diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c
-index e29e0ca..fa3a6a3 100644
+index 8d19491..05a3e65 100644
--- a/net/rds/ib_recv.c
+++ b/net/rds/ib_recv.c
@@ -592,7 +592,7 @@ static u64 rds_ib_get_ack(struct rds_ib_connection *ic)
spinlock_t i_ack_lock; /* protect i_ack_next */
u64 i_ack_next; /* next ACK to send */
diff --git a/net/rds/iw_cm.c b/net/rds/iw_cm.c
-index 9556d28..f046d0e 100644
+index a91e1db..cf3053f 100644
--- a/net/rds/iw_cm.c
+++ b/net/rds/iw_cm.c
@@ -663,7 +663,7 @@ void rds_iw_conn_shutdown(struct rds_connection *conn)
ic->i_ack_next = 0;
#endif
diff --git a/net/rds/iw_recv.c b/net/rds/iw_recv.c
-index 5e57347..3916042 100644
+index 4503335..db566b4 100644
--- a/net/rds/iw_recv.c
+++ b/net/rds/iw_recv.c
@@ -427,7 +427,7 @@ static u64 rds_iw_get_ack(struct rds_iw_connection *ic)
assoc->assoc_id,
assoc->sndbuf_used,
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
-index d043722..6903416 100644
+index 92ba71d..9a97902 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
-@@ -4575,7 +4575,7 @@ static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
+@@ -4569,7 +4569,7 @@ static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
addrlen = sctp_get_af_specific(temp.sa.sa_family)->sockaddr_len;
if (space_left < addrlen)
return -ENOMEM;
to += addrlen;
cnt++;
diff --git a/net/socket.c b/net/socket.c
-index 0de4131..7e7ddab 100644
+index 851edcd..b786851 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -88,6 +88,7 @@
goto out;
@@ -1451,6 +1466,14 @@ SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen)
if (sock) {
- err = move_addr_to_kernel(umyaddr, addrlen, (struct sockaddr *)&address);
+ err = move_addr_to_kernel(umyaddr, addrlen, &address);
if (err >= 0) {
+ if (gr_handle_sock_server((struct sockaddr *)&address)) {
+ err = -EACCES;
err =
security_socket_connect(sock, (struct sockaddr *)&address, addrlen);
if (err)
-@@ -1970,7 +2030,7 @@ static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg,
+@@ -1966,7 +2026,7 @@ static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg,
* checking falls down on this.
*/
if (copy_from_user(ctl_buf,
ctl_len))
goto out_freectl;
msg_sys->msg_control = ctl_buf;
-@@ -2140,7 +2200,7 @@ static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
+@@ -2136,7 +2196,7 @@ static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
* kernel msghdr to use the kernel address space)
*/
+ uaddr = (void __force_user *)msg_sys->msg_name;
uaddr_len = COMPAT_NAMELEN(msg);
if (MSG_CMSG_COMPAT & flags) {
- err = verify_compat_iovec(msg_sys, iov,
-@@ -2768,7 +2828,7 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
+ err = verify_compat_iovec(msg_sys, iov, &addr, VERIFY_WRITE);
+@@ -2758,7 +2818,7 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
}
ifr = compat_alloc_user_space(buf_size);
if (copy_in_user(&ifr->ifr_name, &ifr32->ifr_name, IFNAMSIZ))
return -EFAULT;
-@@ -2792,12 +2852,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
+@@ -2782,12 +2842,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
offsetof(struct ethtool_rxnfc, fs.ring_cookie));
if (copy_in_user(rxnfc, compat_rxnfc,
copy_in_user(&rxnfc->rule_cnt, &compat_rxnfc->rule_cnt,
sizeof(rxnfc->rule_cnt)))
return -EFAULT;
-@@ -2809,12 +2869,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
+@@ -2799,12 +2859,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
if (convert_out) {
if (copy_in_user(compat_rxnfc, rxnfc,
copy_in_user(&compat_rxnfc->rule_cnt, &rxnfc->rule_cnt,
sizeof(rxnfc->rule_cnt)))
return -EFAULT;
-@@ -2884,7 +2944,7 @@ static int bond_ioctl(struct net *net, unsigned int cmd,
+@@ -2874,7 +2934,7 @@ static int bond_ioctl(struct net *net, unsigned int cmd,
old_fs = get_fs();
set_fs(KERNEL_DS);
err = dev_ioctl(net, cmd,
set_fs(old_fs);
return err;
-@@ -2993,7 +3053,7 @@ static int compat_sioc_ifmap(struct net *net, unsigned int cmd,
+@@ -2983,7 +3043,7 @@ static int compat_sioc_ifmap(struct net *net, unsigned int cmd,
old_fs = get_fs();
set_fs(KERNEL_DS);
set_fs(old_fs);
if (cmd == SIOCGIFMAP && !err) {
-@@ -3098,7 +3158,7 @@ static int routing_ioctl(struct net *net, struct socket *sock,
+@@ -3088,7 +3148,7 @@ static int routing_ioctl(struct net *net, struct socket *sock,
ret |= __get_user(rtdev, &(ur4->rt_dev));
if (rtdev) {
ret |= copy_from_user(devname, compat_ptr(rtdev), 15);
devname[15] = 0;
} else
r4.rt_dev = NULL;
-@@ -3324,8 +3384,8 @@ int kernel_getsockopt(struct socket *sock, int level, int optname,
+@@ -3314,8 +3374,8 @@ int kernel_getsockopt(struct socket *sock, int level, int optname,
int __user *uoptlen;
int err;
set_fs(KERNEL_DS);
if (level == SOL_SOCKET)
-@@ -3345,7 +3405,7 @@ int kernel_setsockopt(struct socket *sock, int level, int optname,
+@@ -3335,7 +3395,7 @@ int kernel_setsockopt(struct socket *sock, int level, int optname,
char __user *uoptval;
int err;
set_fs(KERNEL_DS);
if (level == SOL_SOCKET)
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
-index 8efd96c..b492ab2 100644
+index 994cfea..5343b6b 100644
--- a/net/sunrpc/sched.c
+++ b/net/sunrpc/sched.c
-@@ -239,9 +239,9 @@ static int rpc_wait_bit_killable(void *word)
+@@ -240,9 +240,9 @@ static int rpc_wait_bit_killable(void *word)
#ifdef RPC_DEBUG
static void rpc_task_set_debuginfo(struct rpc_task *task)
{
}
#else
static inline void rpc_task_set_debuginfo(struct rpc_task *task)
-diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
-index 4645709..d41d668 100644
---- a/net/sunrpc/svcsock.c
-+++ b/net/sunrpc/svcsock.c
-@@ -396,7 +396,7 @@ static int svc_partial_recvfrom(struct svc_rqst *rqstp,
- int buflen, unsigned int base)
- {
- size_t save_iovlen;
-- void __user *save_iovbase;
-+ void *save_iovbase;
- unsigned int i;
- int ret;
-
diff --git a/net/sunrpc/xprtrdma/svc_rdma.c b/net/sunrpc/xprtrdma/svc_rdma.c
-index 09af4fa..77110a9 100644
+index 8343737..677025e 100644
--- a/net/sunrpc/xprtrdma/svc_rdma.c
+++ b/net/sunrpc/xprtrdma/svc_rdma.c
-@@ -61,15 +61,15 @@ unsigned int svcrdma_max_req_size = RPCRDMA_MAX_REQ_SIZE;
+@@ -62,15 +62,15 @@ unsigned int svcrdma_max_req_size = RPCRDMA_MAX_REQ_SIZE;
static unsigned int min_max_inline = 4096;
static unsigned int max_max_inline = 65536;
/* Temporary NFS request map and context caches */
struct kmem_cache *svc_rdma_map_cachep;
-@@ -109,7 +109,7 @@ static int read_reset_stat(ctl_table *table, int write,
+@@ -110,7 +110,7 @@ static int read_reset_stat(ctl_table *table, int write,
len -= *ppos;
if (len > *lenp)
len = *lenp;
return -EFAULT;
*lenp = len;
*ppos += len;
-@@ -150,63 +150,63 @@ static ctl_table svcrdma_parm_table[] = {
+@@ -151,63 +151,63 @@ static ctl_table svcrdma_parm_table[] = {
{
.procname = "rdma_stat_read",
.data = &rdma_stat_read,
.proc_handler = read_reset_stat,
},
diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
-index df67211..c354b13 100644
+index 41cb63b..c4a1489 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
-@@ -499,7 +499,7 @@ next_sge:
+@@ -501,7 +501,7 @@ next_sge:
svc_rdma_put_context(ctxt, 0);
goto out;
}
if (read_wr.num_sge < chl_map->ch[ch_no].count) {
chl_map->ch[ch_no].count -= read_wr.num_sge;
-@@ -609,7 +609,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
+@@ -611,7 +611,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
dto_q);
list_del_init(&ctxt->dto_q);
} else {
clear_bit(XPT_DATA, &xprt->xpt_flags);
ctxt = NULL;
}
-@@ -629,7 +629,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
+@@ -631,7 +631,7 @@ int svc_rdma_recvfrom(struct svc_rqst *rqstp)
dprintk("svcrdma: processing ctxt=%p on xprt=%p, rqstp=%p, status=%d\n",
ctxt, rdma_xprt, rqstp, ctxt->wc_status);
BUG_ON(ctxt->wc_status != IB_WC_SUCCESS);
/* Build up the XDR from the receive buffers. */
rdma_build_arg_xdr(rqstp, ctxt, ctxt->byte_len);
diff --git a/net/sunrpc/xprtrdma/svc_rdma_sendto.c b/net/sunrpc/xprtrdma/svc_rdma_sendto.c
-index 249a835..fb2794b 100644
+index 42eb7ba..c887c45 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_sendto.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_sendto.c
@@ -362,7 +362,7 @@ static int send_write(struct svcxprt_rdma *xprt, struct svc_rqst *rqstp,
goto err;
return 0;
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c
-index 894cb42..cf5bafb 100644
+index 73b428b..5f3f8f3 100644
--- a/net/sunrpc/xprtrdma/svc_rdma_transport.c
+++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c
-@@ -300,7 +300,7 @@ static void rq_cq_reap(struct svcxprt_rdma *xprt)
+@@ -292,7 +292,7 @@ static void rq_cq_reap(struct svcxprt_rdma *xprt)
return;
ib_req_notify_cq(xprt->sc_rq_cq, IB_CQ_NEXT_COMP);
while ((ret = ib_poll_cq(xprt->sc_rq_cq, 1, &wc)) > 0) {
ctxt = (struct svc_rdma_op_ctxt *)(unsigned long)wc.wr_id;
-@@ -322,7 +322,7 @@ static void rq_cq_reap(struct svcxprt_rdma *xprt)
+@@ -314,7 +314,7 @@ static void rq_cq_reap(struct svcxprt_rdma *xprt)
}
if (ctxt)
set_bit(XPT_DATA, &xprt->sc_xprt.xpt_flags);
/*
-@@ -394,7 +394,7 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt)
+@@ -386,7 +386,7 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt)
return;
ib_req_notify_cq(xprt->sc_sq_cq, IB_CQ_NEXT_COMP);
while ((ret = ib_poll_cq(cq, 1, &wc)) > 0) {
if (wc.status != IB_WC_SUCCESS)
/* Close the transport */
-@@ -412,7 +412,7 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt)
+@@ -404,7 +404,7 @@ static void sq_cq_reap(struct svcxprt_rdma *xprt)
}
if (ctxt)
}
static void sq_comp_handler(struct ib_cq *cq, void *cq_context)
-@@ -1274,7 +1274,7 @@ int svc_rdma_send(struct svcxprt_rdma *xprt, struct ib_send_wr *wr)
+@@ -1266,7 +1266,7 @@ int svc_rdma_send(struct svcxprt_rdma *xprt, struct ib_send_wr *wr)
spin_lock_bh(&xprt->sc_lock);
if (xprt->sc_sq_depth < atomic_read(&xprt->sc_sq_count) + wr_count) {
spin_unlock_bh(&xprt->sc_lock);
/* See if we can opportunistically reap SQ WR to make room */
sq_cq_reap(xprt);
diff --git a/net/sysctl_net.c b/net/sysctl_net.c
-index e758139..d29ea47 100644
+index c3e65ae..f512a2b 100644
--- a/net/sysctl_net.c
+++ b/net/sysctl_net.c
@@ -47,7 +47,7 @@ static int net_ctl_permissions(struct ctl_table_root *root,
return (mode << 6) | (mode << 3) | mode;
}
diff --git a/net/tipc/link.c b/net/tipc/link.c
-index ac1832a..533ed97 100644
+index b4b9b30..5b62131 100644
--- a/net/tipc/link.c
+++ b/net/tipc/link.c
-@@ -1205,7 +1205,7 @@ static int link_send_sections_long(struct tipc_port *sender,
+@@ -1203,7 +1203,7 @@ static int link_send_sections_long(struct tipc_port *sender,
struct tipc_msg fragm_hdr;
struct sk_buff *buf, *buf_chain, *prev;
u32 fragm_crs, fragm_rest, hsz, sect_rest;
int curr_sect;
u32 fragm_no;
-@@ -1249,7 +1249,7 @@ again:
+@@ -1247,7 +1247,7 @@ again:
if (!sect_rest) {
sect_rest = msg_sect[++curr_sect].iov_len;
}
if (sect_rest < fragm_rest)
-@@ -1268,7 +1268,7 @@ error:
+@@ -1266,7 +1266,7 @@ error:
}
} else
skb_copy_to_linear_data_offset(buf, fragm_crs,
sect_rest -= sz;
fragm_crs += sz;
diff --git a/net/tipc/msg.c b/net/tipc/msg.c
-index 3e4d3e2..27b55dc 100644
+index e3afe16..333ea83 100644
--- a/net/tipc/msg.c
+++ b/net/tipc/msg.c
@@ -99,7 +99,7 @@ int tipc_msg_build(struct tipc_msg *hdr, struct iovec const *msg_sect,
pos += msg_sect[cnt].iov_len;
}
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
-index 8c49566..14510cb 100644
+index b2964e9..fdf2e27 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -101,7 +101,7 @@ static void subscr_send_event(struct tipc_subscription *sub,
sub->evt.event = htohl(event, sub->swap);
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
-index 85d3bb7..79f4487 100644
+index d510353..26c8a32 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
-@@ -770,6 +770,12 @@ static struct sock *unix_find_other(struct net *net,
+@@ -779,6 +779,12 @@ static struct sock *unix_find_other(struct net *net,
err = -ECONNREFUSED;
if (!S_ISSOCK(inode->i_mode))
goto put_fail;
u = unix_find_socket_byinode(inode);
if (!u)
goto put_fail;
-@@ -790,6 +796,13 @@ static struct sock *unix_find_other(struct net *net,
+@@ -799,6 +805,13 @@ static struct sock *unix_find_other(struct net *net,
if (u) {
struct dentry *dentry;
- dentry = unix_sk(u)->dentry;
+ dentry = unix_sk(u)->path.dentry;
+
+ if (!gr_handle_chroot_unix(pid_vnr(u->sk_peer_pid))) {
+ err = -EPERM;
+ }
+
if (dentry)
- touch_atime(unix_sk(u)->mnt, dentry);
+ touch_atime(&unix_sk(u)->path);
} else
-@@ -872,11 +885,18 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
+@@ -881,11 +894,18 @@ static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
err = security_path_mknod(&path, dentry, mode, 0);
if (err)
goto out_mknod_drop_write;
dput(path.dentry);
path.dentry = dentry;
diff --git a/net/wireless/core.h b/net/wireless/core.h
-index 43ad9c8..ab5127c 100644
+index 3ac2dd0..fbe533e 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -27,7 +27,7 @@ struct cfg80211_registered_device {
struct work_struct rfkill_sync;
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c
-index 0af7f54..c916d2f 100644
+index af648e0..6185d3a 100644
--- a/net/wireless/wext-core.c
+++ b/net/wireless/wext-core.c
@@ -747,8 +747,7 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
/* Allow userspace to GET more than max so
* we can support any size GET requests.
* There is still a limit : -ENOMEM.
-@@ -785,22 +784,6 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
+@@ -787,22 +786,6 @@ static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
}
}
iwp->length += essid_compat;
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
-index 7661576..80f7627 100644
+index a15d2a0..12142af 100644
--- a/net/xfrm/xfrm_policy.c
+++ b/net/xfrm/xfrm_policy.c
@@ -299,7 +299,7 @@ static void xfrm_policy_kill(struct xfrm_policy *policy)
return xdst;
}
-@@ -2345,7 +2345,7 @@ static int xfrm_bundle_ok(struct xfrm_dst *first)
+@@ -2348,7 +2348,7 @@ static int xfrm_bundle_ok(struct xfrm_dst *first)
if (xdst->xfrm_genid != dst->xfrm->genid)
return 0;
if (xdst->num_pols > 0 &&
return 0;
mtu = dst_mtu(dst->child);
-@@ -2882,7 +2882,7 @@ static int xfrm_policy_migrate(struct xfrm_policy *pol,
+@@ -2885,7 +2885,7 @@ static int xfrm_policy_migrate(struct xfrm_policy *pol,
sizeof(pol->xfrm_vec[i].saddr));
pol->xfrm_vec[i].encap_family = mp->new_family;
/* flush bundles */
}
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
-index d2b366c..51ff91ebc 100644
+index ff1720d..ed8475e 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
-@@ -109,7 +109,7 @@ endif
+@@ -111,7 +111,7 @@ endif
endif
# Do not include host rules unless needed
-ifneq ($(hostprogs-y)$(hostprogs-m),)
-+ifneq ($(hostprogs-y)$(hostprogs-m)$(hostlibs-y)$(hostlibs-m),)
++ifneq ($(hostprogs-y)$(hostprogs-m)$(hostlibs-y)$(hostlibs-m)$(hostcxxlibs-y)$(hostcxxlibs-m),)
include scripts/Makefile.host
endif
__clean-files := $(filter-out $(no-clean-files), $(__clean-files))
diff --git a/scripts/Makefile.host b/scripts/Makefile.host
-index 1ac414f..a1c1451 100644
+index 1ac414f..38575f7 100644
--- a/scripts/Makefile.host
+++ b/scripts/Makefile.host
-@@ -31,6 +31,7 @@
+@@ -31,6 +31,8 @@
# Note: Shared libraries consisting of C++ files are not supported
__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
+__hostlibs := $(sort $(hostlibs-y) $(hostlibs-m))
++__hostcxxlibs := $(sort $(hostcxxlibs-y) $(hostcxxlibs-m))
# C code
# Executables compiled from a single .c file
-@@ -54,6 +55,7 @@ host-cxxobjs := $(sort $(foreach m,$(host-cxxmulti),$($(m)-cxxobjs)))
+@@ -54,11 +56,15 @@ host-cxxobjs := $(sort $(foreach m,$(host-cxxmulti),$($(m)-cxxobjs)))
# Shared libaries (only .c supported)
# Shared libraries (.so) - all .so files referenced in "xxx-objs"
host-cshlib := $(sort $(filter %.so, $(host-cobjs)))
+host-cshlib += $(sort $(filter %.so, $(__hostlibs)))
++host-cxxshlib := $(sort $(filter %.so, $(__hostcxxlibs)))
# Remove .so files from "xxx-objs"
host-cobjs := $(filter-out %.so,$(host-cobjs))
++host-cxxobjs := $(filter-out %.so,$(host-cxxobjs))
+
+-#Object (.o) files used by the shared libaries
++# Object (.o) files used by the shared libaries
+ host-cshobjs := $(sort $(foreach m,$(host-cshlib),$($(m:.so=-objs))))
++host-cxxshobjs := $(sort $(foreach m,$(host-cxxshlib),$($(m:.so=-objs))))
+
+ # output directory for programs/.o files
+ # hostprogs-y := tools/build may have been specified. Retrieve directory
+@@ -82,7 +88,9 @@ host-cobjs := $(addprefix $(obj)/,$(host-cobjs))
+ host-cxxmulti := $(addprefix $(obj)/,$(host-cxxmulti))
+ host-cxxobjs := $(addprefix $(obj)/,$(host-cxxobjs))
+ host-cshlib := $(addprefix $(obj)/,$(host-cshlib))
++host-cxxshlib := $(addprefix $(obj)/,$(host-cxxshlib))
+ host-cshobjs := $(addprefix $(obj)/,$(host-cshobjs))
++host-cxxshobjs := $(addprefix $(obj)/,$(host-cxxshobjs))
+ host-objdirs := $(addprefix $(obj)/,$(host-objdirs))
+
+ obj-dirs += $(host-objdirs)
+@@ -156,6 +164,13 @@ quiet_cmd_host-cshobjs = HOSTCC -fPIC $@
+ $(host-cshobjs): $(obj)/%.o: $(src)/%.c FORCE
+ $(call if_changed_dep,host-cshobjs)
+
++# Compile .c file, create position independent .o file
++# host-cxxshobjs -> .o
++quiet_cmd_host-cxxshobjs = HOSTCXX -fPIC $@
++ cmd_host-cxxshobjs = $(HOSTCXX) $(hostcxx_flags) -fPIC -c -o $@ $<
++$(host-cxxshobjs): $(obj)/%.o: $(src)/%.c FORCE
++ $(call if_changed_dep,host-cxxshobjs)
++
+ # Link a shared library, based on position independent .o files
+ # *.o -> .so shared library (host-cshlib)
+ quiet_cmd_host-cshlib = HOSTLLD -shared $@
+@@ -165,6 +180,15 @@ quiet_cmd_host-cshlib = HOSTLLD -shared $@
+ $(host-cshlib): $(obj)/%: $(host-cshobjs) FORCE
+ $(call if_changed,host-cshlib)
+
++# Link a shared library, based on position independent .o files
++# *.o -> .so shared library (host-cxxshlib)
++quiet_cmd_host-cxxshlib = HOSTLLD -shared $@
++ cmd_host-cxxshlib = $(HOSTCXX) $(HOSTLDFLAGS) -shared -o $@ \
++ $(addprefix $(obj)/,$($(@F:.so=-objs))) \
++ $(HOST_LOADLIBES) $(HOSTLOADLIBES_$(@F))
++$(host-cxxshlib): $(obj)/%: $(host-cxxshobjs) FORCE
++ $(call if_changed,host-cxxshlib)
++
+ targets += $(host-csingle) $(host-cmulti) $(host-cobjs)\
+- $(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs)
++ $(host-cxxmulti) $(host-cxxobjs) $(host-cshlib) $(host-cshobjs) $(host-cxxshlib) $(host-cxxshobjs)
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c
index cb1f50c..cef2a7c 100644
fprintf(stderr, "fixdep: sizeof(int) != 4 or wrong endianess? %#x\n",
diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh
new file mode 100644
-index 0000000..8729101
+index 0000000..5a412da
--- /dev/null
+++ b/scripts/gcc-plugin.sh
-@@ -0,0 +1,2 @@
+@@ -0,0 +1,17 @@
+#!/bin/sh
-+echo -e "#include \"gcc-plugin.h\"\n#include \"tree.h\"\n#include \"tm.h\"\n#include \"rtl.h\"" | $1 -x c -shared - -o /dev/null -I`$2 -print-file-name=plugin`/include >/dev/null 2>&1 && echo "y"
++plugincc=`$1 -x c -shared - -o /dev/null -I\`$3 -print-file-name=plugin\`/include 2>&1 <<EOF
++#include "gcc-plugin.h"
++#include "tree.h"
++#include "tm.h"
++#include "rtl.h"
++#ifdef ENABLE_BUILD_WITH_CXX
++#warning $2
++#else
++#warning $1
++#endif
++EOF`
++if [ $? -eq 0 ]
++then
++ [[ "$plugincc" =~ "$1" ]] && echo $1
++ [[ "$plugincc" =~ "$2" ]] && echo $2
++fi
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
-index e047e17..ea646ec 100644
+index 44ddaa5..a3119bd 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -128,7 +128,7 @@ static void device_id_check(const char *modname, const char *device_id,
logoname);
write_hex_cnt = 0;
for (i = 0; i < logo_clutsize; i++) {
-diff --git a/scripts/tags.sh b/scripts/tags.sh
-index 833813a..0bc8588 100755
---- a/scripts/tags.sh
-+++ b/scripts/tags.sh
-@@ -116,7 +116,7 @@ docscope()
-
- dogtags()
- {
-- all_sources | gtags -f -
-+ all_sources | gtags -i -f -
- }
-
- exuberant()
diff --git a/security/Kconfig b/security/Kconfig
-index 51bd5a0..c37f5e6 100644
+index ccc61f8..5effdb4 100644
--- a/security/Kconfig
+++ b/security/Kconfig
@@ -4,6 +4,640 @@
help
This is the portion of low virtual memory which should be protected
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
-index 97ce8fa..23dad96 100644
+index ad05d39..afffccb 100644
--- a/security/apparmor/lsm.c
+++ b/security/apparmor/lsm.c
-@@ -620,7 +620,7 @@ static int apparmor_task_setrlimit(struct task_struct *task,
+@@ -622,7 +622,7 @@ static int apparmor_task_setrlimit(struct task_struct *task,
return error;
}
.ptrace_access_check = apparmor_ptrace_access_check,
diff --git a/security/commoncap.c b/security/commoncap.c
-index b8d2bb9..980069e 100644
+index 71a166a..851bb3e 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
-@@ -29,6 +29,7 @@
- #include <linux/securebits.h>
- #include <linux/user_namespace.h>
- #include <linux/personality.h>
-+#include <net/sock.h>
-
- /*
- * If a non-root user executes a setuid-root binary in
-@@ -575,6 +576,9 @@ int cap_bprm_secureexec(struct linux_binprm *bprm)
+@@ -576,6 +576,9 @@ int cap_bprm_secureexec(struct linux_binprm *bprm)
{
const struct cred *cred = current_cred();
if (iov != iovstack)
kfree(iov);
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
-index 0b3f5d7..892c8a6 100644
+index fb767c6..b9c49c0 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
-@@ -921,7 +921,7 @@ static int keyctl_change_reqkey_auth(struct key *key)
+@@ -935,7 +935,7 @@ static int keyctl_change_reqkey_auth(struct key *key)
/*
* Copy the iovec data from userspace
*/
unsigned ioc)
{
for (; ioc > 0; ioc--) {
-@@ -943,7 +943,7 @@ static long copy_from_user_iovec(void *buffer, const struct iovec *iov,
+@@ -957,7 +957,7 @@ static long copy_from_user_iovec(void *buffer, const struct iovec *iov,
* If successful, 0 will be returned.
*/
long keyctl_instantiate_key_common(key_serial_t id,
unsigned ioc,
size_t plen,
key_serial_t ringid)
-@@ -1038,7 +1038,7 @@ long keyctl_instantiate_key(key_serial_t id,
+@@ -1052,7 +1052,7 @@ long keyctl_instantiate_key(key_serial_t id,
[0].iov_len = plen
};
}
return keyctl_instantiate_key_common(id, NULL, 0, 0, ringid);
-@@ -1071,7 +1071,7 @@ long keyctl_instantiate_key_iov(key_serial_t id,
+@@ -1085,7 +1085,7 @@ long keyctl_instantiate_key_iov(key_serial_t id,
if (ret == 0)
goto no_payload_free;
/*
diff --git a/security/security.c b/security/security.c
-index d754249..8bf426e 100644
+index bf619ff..8179030 100644
--- a/security/security.c
+++ b/security/security.c
-@@ -26,8 +26,8 @@
+@@ -20,6 +20,7 @@
+ #include <linux/ima.h>
+ #include <linux/evm.h>
+ #include <linux/fsnotify.h>
++#include <linux/mm.h>
+ #include <net/flow.h>
+
+ #define MAX_LSM_EVM_XATTR 2
+@@ -28,8 +29,8 @@
static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] =
CONFIG_DEFAULT_SECURITY;
.name = "default",
};
-@@ -68,7 +68,9 @@ int __init security_init(void)
+@@ -70,7 +71,9 @@ int __init security_init(void)
void reset_security_ops(void)
{
/* Save user chosen LSM */
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
-index 6a3683e..f52f4c0 100644
+index d85b793..a164832 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
-@@ -94,8 +94,6 @@
+@@ -95,8 +95,6 @@
#define NUM_SEL_MNT_OPTS 5
/* SECMARK reference count */
static atomic_t selinux_secmark_refcount = ATOMIC_INIT(0);
-@@ -5429,7 +5427,7 @@ static int selinux_key_getsecurity(struct key *key, char **_buffer)
+@@ -5520,7 +5518,7 @@ static int selinux_key_getsecurity(struct key *key, char **_buffer)
#endif
.ptrace_access_check = selinux_ptrace_access_check,
diff --git a/security/selinux/include/xfrm.h b/security/selinux/include/xfrm.h
-index b43813c..74be837 100644
+index c220f31..89fab3f 100644
--- a/security/selinux/include/xfrm.h
+++ b/security/selinux/include/xfrm.h
-@@ -48,7 +48,7 @@ int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall);
+@@ -50,7 +50,7 @@ int selinux_xfrm_decode_session(struct sk_buff *skb, u32 *sid, int ckall);
static inline void selinux_xfrm_notify_policyload(void)
{
#else
static inline int selinux_xfrm_enabled(void)
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
-index e8af5b0b..78527ef 100644
+index 45c32f0..0038be2 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
-@@ -3481,7 +3481,7 @@ static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen)
+@@ -3500,7 +3500,7 @@ static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen)
return 0;
}
.name = "tomoyo",
.cred_alloc_blank = tomoyo_cred_alloc_blank,
.cred_prepare = tomoyo_cred_prepare,
+diff --git a/security/yama/Kconfig b/security/yama/Kconfig
+index 51d6709..1f3dbe2 100644
+--- a/security/yama/Kconfig
++++ b/security/yama/Kconfig
+@@ -1,6 +1,6 @@
+ config SECURITY_YAMA
+ bool "Yama support"
+- depends on SECURITY
++ depends on SECURITY && !GRKERNSEC
+ select SECURITYFS
+ select SECURITY_PATH
+ default n
diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c
-index 762af68..7103453 100644
+index 270790d..c67dfcb 100644
--- a/sound/aoa/codecs/onyx.c
+++ b/sound/aoa/codecs/onyx.c
@@ -54,7 +54,7 @@ struct onyx {
if (err < 0)
return err;
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
-index 25ed9fe..24c46e9 100644
+index 3fe99e6..26952e4 100644
--- a/sound/core/pcm_native.c
+++ b/sound/core/pcm_native.c
-@@ -2765,11 +2765,11 @@ int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream,
+@@ -2770,11 +2770,11 @@ int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream,
switch (substream->stream) {
case SNDRV_PCM_STREAM_PLAYBACK:
result = snd_pcm_playback_ioctl1(NULL, substream, cmd,
/**
diff --git a/sound/firewire/isight.c b/sound/firewire/isight.c
-index cd094ec..eca1277 100644
+index d428ffe..751ef78 100644
--- a/sound/firewire/isight.c
+++ b/sound/firewire/isight.c
@@ -96,7 +96,7 @@ static void isight_update_pointers(struct isight *isight, unsigned int count)
list_add(&s->list, &cs4297a_devs);
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
-index f0f1943..8e1f96c 100644
+index 56b4f74..7cfd41a 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -611,7 +611,7 @@ struct hda_bus_ops {
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
-index 12a9a2b..2b6138f 100644
+index a8159b81..5f006a5 100644
--- a/sound/pci/ymfpci/ymfpci_main.c
+++ b/sound/pci/ymfpci/ymfpci_main.c
@@ -203,8 +203,8 @@ static void snd_ymfpci_hw_stop(struct snd_ymfpci *chip)
wake_up(&chip->interrupt_sleep);
}
}
-@@ -2389,7 +2389,7 @@ int __devinit snd_ymfpci_create(struct snd_card *card,
+@@ -2398,7 +2398,7 @@ int __devinit snd_ymfpci_create(struct snd_card *card,
spin_lock_init(&chip->reg_lock);
spin_lock_init(&chip->voice_lock);
init_waitqueue_head(&chip->interrupt_sleep);
chip->pci = pci;
chip->irq = -1;
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
-index cdc860a..db34a93 100644
+index 0ad8dca..7186339 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
-@@ -605,7 +605,7 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num)
+@@ -641,7 +641,7 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num)
struct snd_soc_platform *platform = rtd->platform;
struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
};
diff --git a/tools/gcc/Makefile b/tools/gcc/Makefile
new file mode 100644
-index 0000000..ca64170
+index 0000000..991f33b
--- /dev/null
+++ b/tools/gcc/Makefile
-@@ -0,0 +1,26 @@
+@@ -0,0 +1,31 @@
+#CC := gcc
+#PLUGIN_SOURCE_FILES := pax_plugin.c
+#PLUGIN_OBJECT_FILES := $(patsubst %.c,%.o,$(PLUGIN_SOURCE_FILES))
+GCCPLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
+#CFLAGS += -I$(GCCPLUGINS_DIR)/include -fPIC -O2 -Wall -W -std=gnu99
+
++ifeq ($(PLUGINCC),$(HOSTCC))
++HOSTLIBS := hostlibs
+HOST_EXTRACFLAGS += -I$(GCCPLUGINS_DIR)/include -I$(GCCPLUGINS_DIR)/include/c-family -std=gnu99 -ggdb
-+CFLAGS_size_overflow_plugin.o := -Wno-missing-initializer
++else
++HOSTLIBS := hostcxxlibs
++HOST_EXTRACXXFLAGS += -I$(GCCPLUGINS_DIR)/include -I$(GCCPLUGINS_DIR)/include/c-family -std=gnu++98 -ggdb -Wno-unused-parameter
++endif
+
-+hostlibs-y := constify_plugin.so
-+hostlibs-$(CONFIG_PAX_MEMORY_STACKLEAK) += stackleak_plugin.so
-+hostlibs-$(CONFIG_KALLOCSTAT_PLUGIN) += kallocstat_plugin.so
-+hostlibs-$(CONFIG_PAX_KERNEXEC_PLUGIN) += kernexec_plugin.so
-+hostlibs-$(CONFIG_CHECKER_PLUGIN) += checker_plugin.so
-+hostlibs-y += colorize_plugin.so
-+hostlibs-$(CONFIG_PAX_SIZE_OVERFLOW) += size_overflow_plugin.so
++$(HOSTLIBS)-y := constify_plugin.so
++$(HOSTLIBS)-$(CONFIG_PAX_MEMORY_STACKLEAK) += stackleak_plugin.so
++$(HOSTLIBS)-$(CONFIG_KALLOCSTAT_PLUGIN) += kallocstat_plugin.so
++$(HOSTLIBS)-$(CONFIG_PAX_KERNEXEC_PLUGIN) += kernexec_plugin.so
++$(HOSTLIBS)-$(CONFIG_CHECKER_PLUGIN) += checker_plugin.so
++$(HOSTLIBS)-y += colorize_plugin.so
++$(HOSTLIBS)-$(CONFIG_PAX_SIZE_OVERFLOW) += size_overflow_plugin.so
+
-+always := $(hostlibs-y)
++always := $($(HOSTLIBS)-y)
+
+constify_plugin-objs := constify_plugin.o
+stackleak_plugin-objs := stackleak_plugin.o
+}
diff --git a/tools/gcc/colorize_plugin.c b/tools/gcc/colorize_plugin.c
new file mode 100644
-index 0000000..ee950d0
+index 0000000..7a5e311
--- /dev/null
+++ b/tools/gcc/colorize_plugin.c
-@@ -0,0 +1,147 @@
+@@ -0,0 +1,148 @@
+/*
+ * Copyright 2012 by PaX Team <pageexec@freemail.hu>
+ * Licensed under the GPL v2
+
+static struct plugin_info colorize_plugin_info = {
+ .version = "201203092200",
++ .help = NULL,
+};
+
+#define GREEN "\033[32m\033[2m"
+}
diff --git a/tools/gcc/constify_plugin.c b/tools/gcc/constify_plugin.c
new file mode 100644
-index 0000000..88a7438
+index 0000000..89b7f56
--- /dev/null
+++ b/tools/gcc/constify_plugin.c
-@@ -0,0 +1,303 @@
+@@ -0,0 +1,328 @@
+/*
+ * Copyright 2011 by Emese Revfy <re.emese@gmail.com>
+ * Copyright 2011 by PaX Team <pageexec@freemail.hu>
+int plugin_is_GPL_compatible;
+
+static struct plugin_info const_plugin_info = {
-+ .version = "201111150100",
++ .version = "201205300030",
+ .help = "no-constify\tturn off constification\n",
+};
+
-+static void constify_type(tree type);
-+static bool walk_struct(tree node);
++static void deconstify_tree(tree node);
++
++static void deconstify_type(tree type)
++{
++ tree field;
++
++ for (field = TYPE_FIELDS(type); field; field = TREE_CHAIN(field)) {
++ tree type = TREE_TYPE(field);
++
++ if (TREE_CODE(type) != RECORD_TYPE && TREE_CODE(type) != UNION_TYPE)
++ continue;
++ if (!TYPE_READONLY(type))
++ continue;
+
-+static tree deconstify_type(tree old_type)
++ deconstify_tree(field);
++ }
++ TYPE_READONLY(type) = 0;
++ C_TYPE_FIELDS_READONLY(type) = 0;
++}
++
++static void deconstify_tree(tree node)
+{
-+ tree new_type, field;
++ tree old_type, new_type, field;
++
++ old_type = TREE_TYPE(node);
++
++ gcc_assert(TYPE_READONLY(old_type) && (TYPE_QUALS(old_type) & TYPE_QUAL_CONST));
+
+ new_type = build_qualified_type(old_type, TYPE_QUALS(old_type) & ~TYPE_QUAL_CONST);
+ TYPE_FIELDS(new_type) = copy_list(TYPE_FIELDS(new_type));
+ for (field = TYPE_FIELDS(new_type); field; field = TREE_CHAIN(field))
+ DECL_FIELD_CONTEXT(field) = new_type;
-+ TYPE_READONLY(new_type) = 0;
-+ C_TYPE_FIELDS_READONLY(new_type) = 0;
-+ return new_type;
++
++ deconstify_type(new_type);
++
++ TREE_READONLY(node) = 0;
++ TREE_TYPE(node) = new_type;
+}
+
+static tree handle_no_const_attribute(tree *node, tree name, tree args, int flags, bool *no_add_attrs)
+ }
+
+ if (TREE_CODE(*node) == TYPE_DECL) {
-+ TREE_TYPE(*node) = deconstify_type(type);
-+ TREE_READONLY(*node) = 0;
++ deconstify_tree(*node);
+ return NULL_TREE;
+ }
+
+ return NULL_TREE;
+}
+
++static void constify_type(tree type)
++{
++ TYPE_READONLY(type) = 1;
++ C_TYPE_FIELDS_READONLY(type) = 1;
++}
++
+static tree handle_do_const_attribute(tree *node, tree name, tree args, int flags, bool *no_add_attrs)
+{
+ *no_add_attrs = true;
+ register_attribute(&do_const_attr);
+}
+
-+static void constify_type(tree type)
-+{
-+ TYPE_READONLY(type) = 1;
-+ C_TYPE_FIELDS_READONLY(type) = 1;
-+}
-+
+static bool is_fptr(tree field)
+{
+ tree ptr = TREE_TYPE(field);
+{
+ tree field;
+
-+ if (lookup_attribute("no_const", TYPE_ATTRIBUTES(node)))
++ if (TYPE_FIELDS(node) == NULL_TREE)
+ return false;
+
-+ if (TYPE_FIELDS(node) == NULL_TREE)
++ if (lookup_attribute("no_const", TYPE_ATTRIBUTES(node))) {
++ gcc_assert(!TYPE_READONLY(node));
++ deconstify_type(node);
+ return false;
++ }
+
+ for (field = TYPE_FIELDS(node); field; field = TREE_CHAIN(field)) {
+ tree type = TREE_TYPE(field);
+
+ return 0;
+}
-diff --git a/tools/gcc/size_overflow_hash1.h b/tools/gcc/size_overflow_hash1.h
-new file mode 100644
-index 0000000..16ccac1
---- /dev/null
-+++ b/tools/gcc/size_overflow_hash1.h
-@@ -0,0 +1,3047 @@
-+struct size_overflow_hash size_overflow_hash1[65536] = {
-+ [10013].file = "security/smack/smackfs.c",
-+ [10013].name = "smk_write_direct",
-+ [10013].param3 = 1,
-+ [10167].file = "sound/core/oss/pcm_plugin.c",
-+ [10167].name = "snd_pcm_plugin_build",
-+ [10167].param5 = 1,
-+ [1020].file = "drivers/usb/misc/usbtest.c",
-+ [1020].name = "test_unaligned_bulk",
-+ [1020].param3 = 1,
-+ [1022].file = "sound/pci/rme9652/rme9652.c",
-+ [1022].name = "snd_rme9652_playback_copy",
-+ [1022].param5 = 1,
-+ [10321].file = "drivers/platform/x86/thinkpad_acpi.c",
-+ [10321].name = "create_attr_set",
-+ [10321].param1 = 1,
-+ [10341].file = "fs/nfsd/nfs4xdr.c",
-+ [10341].name = "read_buf",
-+ [10341].param2 = 1,
-+ [10357].file = "net/sunrpc/cache.c",
-+ [10357].name = "cache_read",
-+ [10357].param3 = 1,
-+ [10397].file = "drivers/gpu/drm/i915/i915_debugfs.c",
-+ [10397].name = "i915_wedged_write",
-+ [10397].param3 = 1,
-+ [10399].file = "kernel/trace/trace.c",
-+ [10399].name = "trace_seq_to_user",
-+ [10399].param3 = 1,
-+ [10414].file = "drivers/tty/vt/vt.c",
-+ [10414].name = "vc_do_resize",
-+ [10414].param3 = 1,
-+ [10414].param4 = 1,
-+ [10565].file = "drivers/input/touchscreen/ad7879-spi.c",
-+ [10565].name = "ad7879_spi_multi_read",
-+ [10565].param3 = 1,
-+ [10623].file = "drivers/infiniband/core/user_mad.c",
-+ [10623].name = "ib_umad_write",
-+ [10623].param3 = 1,
-+ [10707].file = "fs/nfs/idmap.c",
-+ [10707].name = "nfs_idmap_request_key",
-+ [10707].param2 = 1,
-+ [1073].file = "drivers/block/aoe/aoecmd.c",
-+ [1073].name = "addtgt",
-+ [1073].param3 = 1,
-+ [10745].file = "fs/cifs/connect.c",
-+ [10745].name = "get_server_iovec",
-+ [10745].param2 = 1,
-+ [10750].file = "drivers/net/wireless/iwmc3200wifi/rx.c",
-+ [10750].name = "iwm_ntf_calib_res",
-+ [10750].param3 = 1,
-+ [10773].file = "drivers/input/mousedev.c",
-+ [10773].name = "mousedev_read",
-+ [10773].param3 = 1,
-+ [10777].file = "fs/ntfs/file.c",
-+ [10777].name = "ntfs_file_buffered_write",
-+ [10777].param6 = 1,
-+ [10893].file = "drivers/misc/sgi-gru/gruprocfs.c",
-+ [10893].name = "options_write",
-+ [10893].param3 = 1,
-+ [10919].file = "net/ipv4/netfilter/arp_tables.c",
-+ [10919].name = "do_arpt_set_ctl",
-+ [10919].param4 = 1,
-+ [1107].file = "mm/process_vm_access.c",
-+ [1107].name = "process_vm_rw_single_vec",
-+ [1107].param1 = 1,
-+ [1107].param2 = 1,
-+ [11230].file = "net/core/neighbour.c",
-+ [11230].name = "neigh_hash_grow",
-+ [11230].param2 = 1,
-+ [11364].file = "fs/ext4/super.c",
-+ [11364].name = "ext4_kvzalloc",
-+ [11364].param1 = 1,
-+ [114].file = "security/selinux/selinuxfs.c",
-+ [114].name = "sel_write_relabel",
-+ [114].param3 = 1,
-+ [11549].file = "drivers/media/rc/redrat3.c",
-+ [11549].name = "redrat3_transmit_ir",
-+ [11549].param3 = 1,
-+ [11568].file = "drivers/gpu/drm/drm_scatter.c",
-+ [11568].name = "drm_vmalloc_dma",
-+ [11568].param1 = 1,
-+ [11582].file = "drivers/scsi/lpfc/lpfc_sli.c",
-+ [11582].name = "lpfc_sli4_queue_alloc",
-+ [11582].param3 = 1,
-+ [11616].file = "security/selinux/selinuxfs.c",
-+ [11616].name = "sel_write_enforce",
-+ [11616].param3 = 1,
-+ [11699].file = "drivers/net/ethernet/neterion/vxge/vxge-config.h",
-+ [11699].name = "vxge_os_dma_malloc",
-+ [11699].param2 = 1,
-+ [11766].file = "drivers/block/paride/pt.c",
-+ [11766].name = "pt_read",
-+ [11766].param3 = 1,
-+ [11784].file = "fs/bio.c",
-+ [11784].name = "bio_kmalloc",
-+ [11784].param2 = 1,
-+ [11919].file = "drivers/lguest/core.c",
-+ [11919].name = "__lgread",
-+ [11919].param4 = 1,
-+ [11925].file = "drivers/media/video/cx18/cx18-fileops.c",
-+ [11925].name = "cx18_copy_mdl_to_user",
-+ [11925].param4 = 1,
-+ [11985].file = "drivers/block/floppy.c",
-+ [11985].name = "fd_copyin",
-+ [11985].param3 = 1,
-+ [11986].file = "drivers/net/usb/asix.c",
-+ [11986].name = "asix_read_cmd",
-+ [11986].param5 = 1,
-+ [12018].file = "sound/core/oss/pcm_oss.c",
-+ [12018].name = "snd_pcm_oss_read1",
-+ [12018].param3 = 1,
-+ [12059].file = "drivers/net/wireless/libertas/debugfs.c",
-+ [12059].name = "lbs_debugfs_write",
-+ [12059].param3 = 1,
-+ [12151].file = "fs/compat.c",
-+ [12151].name = "compat_rw_copy_check_uvector",
-+ [12151].param3 = 1,
-+ [12205].file = "fs/reiserfs/journal.c",
-+ [12205].name = "reiserfs_allocate_list_bitmaps",
-+ [12205].param3 = 1,
-+ [12234].file = "include/acpi/platform/aclinux.h",
-+ [12234].name = "acpi_os_allocate",
-+ [12234].param1 = 1,
-+ [1227].file = "lib/cpu_rmap.c",
-+ [1227].name = "alloc_cpu_rmap",
-+ [1227].param1 = 1,
-+ [12395].file = "drivers/char/hw_random/core.c",
-+ [12395].name = "rng_dev_read",
-+ [12395].param3 = 1,
-+ [12602].file = "net/sunrpc/cache.c",
-+ [12602].name = "cache_downcall",
-+ [12602].param3 = 1,
-+ [12712].file = "drivers/net/wimax/i2400m/fw.c",
-+ [12712].name = "i2400m_zrealloc_2x",
-+ [12712].param3 = 1,
-+ [12755].file = "sound/drivers/opl4/opl4_proc.c",
-+ [12755].name = "snd_opl4_mem_proc_read",
-+ [12755].param5 = 1,
-+ [12833].file = "net/sctp/auth.c",
-+ [12833].name = "sctp_auth_create_key",
-+ [12833].param1 = 1,
-+ [12840].file = "net/sctp/tsnmap.c",
-+ [12840].name = "sctp_tsnmap_mark",
-+ [12840].param2 = 1,
-+ [12931].file = "drivers/hid/hid-roccat.c",
-+ [12931].name = "roccat_read",
-+ [12931].param3 = 1,
-+ [12954].file = "fs/proc/base.c",
-+ [12954].name = "oom_adjust_write",
-+ [12954].param3 = 1,
-+ [13103].file = "drivers/acpi/acpica/utobject.c",
-+ [13103].name = "acpi_ut_create_string_object",
-+ [13103].param1 = 1,
-+ [13121].file = "net/ipv4/ip_sockglue.c",
-+ [13121].name = "do_ip_setsockopt",
-+ [13121].param5 = 1,
-+ [1327].file = "net/netfilter/nfnetlink_log.c",
-+ [1327].name = "nfulnl_alloc_skb",
-+ [1327].param2 = 1,
-+ [13337].file = "net/core/iovec.c",
-+ [13337].name = "csum_partial_copy_fromiovecend",
-+ [13337].param4 = 1,
-+ [13339].file = "security/smack/smackfs.c",
-+ [13339].name = "smk_write_netlbladdr",
-+ [13339].param3 = 1,
-+ [13342].file = "fs/jbd2/journal.c",
-+ [13342].name = "jbd2_alloc",
-+ [13342].param1 = 1,
-+ [13384].file = "drivers/char/virtio_console.c",
-+ [13384].name = "alloc_buf",
-+ [13384].param1 = 1,
-+ [13412].file = "fs/proc/base.c",
-+ [13412].name = "oom_score_adj_write",
-+ [13412].param3 = 1,
-+ [13559].file = "drivers/media/video/ivtv/ivtv-fileops.c",
-+ [13559].name = "ivtv_read",
-+ [13559].param3 = 1,
-+ [13618].file = "drivers/net/team/team.c",
-+ [13618].name = "team_options_register",
-+ [13618].param3 = 1,
-+ [13659].file = "drivers/net/wan/hdlc.c",
-+ [13659].name = "attach_hdlc_protocol",
-+ [13659].param3 = 1,
-+ [13708].file = "drivers/usb/misc/usbtest.c",
-+ [13708].name = "simple_alloc_urb",
-+ [13708].param3 = 1,
-+ [13805].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [13805].name = "altera_swap_dr",
-+ [13805].param2 = 1,
-+ [13868].file = "fs/lockd/mon.c",
-+ [13868].name = "nsm_create_handle",
-+ [13868].param4 = 1,
-+ [13924].file = "net/ipv4/netfilter/ip_tables.c",
-+ [13924].name = "do_ipt_set_ctl",
-+ [13924].param4 = 1,
-+ [14019].file = "net/dns_resolver/dns_key.c",
-+ [14019].name = "dns_resolver_instantiate",
-+ [14019].param2 = 1,
-+ [14019].param3 = 1,
-+ [14025].file = "net/ax25/af_ax25.c",
-+ [14025].name = "ax25_setsockopt",
-+ [14025].param5 = 1,
-+ [14029].file = "drivers/spi/spidev.c",
-+ [14029].name = "spidev_compat_ioctl",
-+ [14029].param2 = 1,
-+ [14090].file = "drivers/bluetooth/btmrvl_debugfs.c",
-+ [14090].name = "btmrvl_hsmode_write",
-+ [14090].param3 = 1,
-+ [14149].file = "drivers/hid/hidraw.c",
-+ [14149].name = "hidraw_ioctl",
-+ [14149].param2 = 1,
-+ [14153].file = "drivers/staging/bcm/led_control.c",
-+ [14153].name = "ValidateDSDParamsChecksum",
-+ [14153].param3 = 1,
-+ [14174].file = "sound/pci/es1938.c",
-+ [14174].name = "snd_es1938_capture_copy",
-+ [14174].param5 = 1,
-+ [14207].file = "drivers/media/video/v4l2-event.c",
-+ [14207].name = "v4l2_event_subscribe",
-+ [14207].param3 = 1,
-+ [14241].file = "drivers/platform/x86/asus_acpi.c",
-+ [14241].name = "brn_proc_write",
-+ [14241].param3 = 1,
-+ [14345].file = "fs/cachefiles/daemon.c",
-+ [14345].name = "cachefiles_daemon_write",
-+ [14345].param3 = 1,
-+ [14347].file = "drivers/media/dvb/dvb-core/dvb_ca_en50221.c",
-+ [14347].name = "dvb_ca_en50221_io_write",
-+ [14347].param3 = 1,
-+ [14566].file = "drivers/pci/hotplug/ibmphp_ebda.c",
-+ [14566].name = "alloc_ebda_hpc",
-+ [14566].param1 = 1,
-+ [14566].param2 = 1,
-+ [1458].file = "drivers/misc/lkdtm.c",
-+ [1458].name = "direct_entry",
-+ [1458].param3 = 1,
-+ [14646].file = "fs/compat.c",
-+ [14646].name = "compat_writev",
-+ [14646].param3 = 1,
-+ [14684].file = "drivers/media/video/stk-webcam.c",
-+ [14684].name = "stk_allocate_buffers",
-+ [14684].param2 = 1,
-+ [14736].file = "drivers/usb/misc/usbtest.c",
-+ [14736].name = "unlink_queued",
-+ [14736].param3 = 1,
-+ [1482].file = "drivers/scsi/scsi_netlink.c",
-+ [1482].name = "scsi_nl_send_vendor_msg",
-+ [1482].param5 = 1,
-+ [15017].file = "drivers/edac/edac_device.c",
-+ [15017].name = "edac_device_alloc_ctl_info",
-+ [15017].param1 = 1,
-+ [15044].file = "drivers/uio/uio.c",
-+ [15044].name = "uio_write",
-+ [15044].param3 = 1,
-+ [15087].file = "fs/bio.c",
-+ [15087].name = "bio_map_kern",
-+ [15087].param2 = 1,
-+ [15087].param3 = 1,
-+ [15112].file = "drivers/xen/evtchn.c",
-+ [15112].name = "evtchn_write",
-+ [15112].param3 = 1,
-+ [15130].file = "net/bluetooth/hci_core.c",
-+ [15130].name = "hci_send_cmd",
-+ [15130].param3 = 1,
-+ [15202].file = "net/bluetooth/rfcomm/tty.c",
-+ [15202].name = "rfcomm_wmalloc",
-+ [15202].param2 = 1,
-+ [15274].file = "crypto/shash.c",
-+ [15274].name = "crypto_shash_setkey",
-+ [15274].param3 = 1,
-+ [15354].file = "drivers/isdn/mISDN/socket.c",
-+ [15354].name = "mISDN_sock_sendmsg",
-+ [15354].param4 = 1,
-+ [15361].file = "drivers/char/agp/generic.c",
-+ [15361].name = "agp_allocate_memory",
-+ [15361].param2 = 1,
-+ [15497].file = "drivers/media/dvb/ddbridge/ddbridge-core.c",
-+ [15497].name = "ts_read",
-+ [15497].param3 = 1,
-+ [15551].file = "net/ipv4/netfilter/ipt_CLUSTERIP.c",
-+ [15551].name = "clusterip_proc_write",
-+ [15551].param3 = 1,
-+ [15701].file = "drivers/hid/hid-roccat-common.c",
-+ [15701].name = "roccat_common_receive",
-+ [15701].param4 = 1,
-+ [1572].file = "net/ceph/pagevec.c",
-+ [1572].name = "ceph_copy_page_vector_to_user",
-+ [1572].param4 = 1,
-+ [15814].file = "net/mac80211/debugfs_netdev.c",
-+ [15814].name = "ieee80211_if_write",
-+ [15814].param3 = 1,
-+ [15883].file = "security/keys/keyctl.c",
-+ [15883].name = "sys_add_key",
-+ [15883].param4 = 1,
-+ [15884].file = "fs/exofs/super.c",
-+ [15884].name = "exofs_read_lookup_dev_table",
-+ [15884].param3 = 1,
-+ [16037].file = "drivers/staging/media/easycap/easycap_sound.c",
-+ [16037].name = "easycap_alsa_vmalloc",
-+ [16037].param2 = 1,
-+ [16073].file = "net/sctp/socket.c",
-+ [16073].name = "sctp_setsockopt",
-+ [16073].param5 = 1,
-+ [16132].file = "drivers/staging/vme/devices/vme_user.c",
-+ [16132].name = "buffer_from_user",
-+ [16132].param3 = 1,
-+ [16138].file = "security/selinux/ss/services.c",
-+ [16138].name = "security_context_to_sid_force",
-+ [16138].param2 = 1,
-+ [16166].file = "drivers/platform/x86/thinkpad_acpi.c",
-+ [16166].name = "dispatch_proc_write",
-+ [16166].param3 = 1,
-+ [16229].file = "drivers/scsi/scsi_transport_iscsi.c",
-+ [16229].name = "iscsi_offload_mesg",
-+ [16229].param5 = 1,
-+ [16353].file = "drivers/base/regmap/regmap.c",
-+ [16353].name = "regmap_raw_write",
-+ [16353].param4 = 1,
-+ [16383].file = "fs/proc/base.c",
-+ [16383].name = "comm_write",
-+ [16383].param3 = 1,
-+ [16396].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [16396].name = "altera_irscan",
-+ [16396].param2 = 1,
-+ [16447].file = "drivers/hid/usbhid/hiddev.c",
-+ [16447].name = "hiddev_ioctl",
-+ [16447].param2 = 1,
-+ [16453].file = "include/linux/slab.h",
-+ [16453].name = "kzalloc",
-+ [16453].param1 = 1,
-+ [16605].file = "fs/ecryptfs/miscdev.c",
-+ [16605].name = "ecryptfs_send_miscdev",
-+ [16605].param2 = 1,
-+ [16606].file = "drivers/ide/ide-tape.c",
-+ [16606].name = "idetape_chrdev_write",
-+ [16606].param3 = 1,
-+ [16637].file = "security/keys/encrypted-keys/encrypted.c",
-+ [16637].name = "datablob_hmac_verify",
-+ [16637].param4 = 1,
-+ [16828].file = "net/batman-adv/hash.c",
-+ [16828].name = "hash_new",
-+ [16828].param1 = 1,
-+ [16853].file = "drivers/net/ethernet/chelsio/cxgb4vf/sge.c",
-+ [16853].name = "t4vf_pktgl_to_skb",
-+ [16853].param2 = 1,
-+ [16911].file = "drivers/media/dvb/ttpci/av7110_hw.c",
-+ [16911].name = "LoadBitmap",
-+ [16911].param2 = 1,
-+ [169].file = "drivers/net/ethernet/amd/pcnet32.c",
-+ [169].name = "pcnet32_realloc_rx_ring",
-+ [169].param3 = 1,
-+ [17075].file = "sound/isa/gus/gus_dram.c",
-+ [17075].name = "snd_gus_dram_write",
-+ [17075].param4 = 1,
-+ [17133].file = "drivers/usb/misc/iowarrior.c",
-+ [17133].name = "iowarrior_read",
-+ [17133].param3 = 1,
-+ [17185].file = "net/wireless/scan.c",
-+ [17185].name = "cfg80211_inform_bss",
-+ [17185].param8 = 1,
-+ [17349].file = "net/tipc/link.c",
-+ [17349].name = "tipc_link_send_sections_fast",
-+ [17349].param4 = 1,
-+ [17377].file = "drivers/usb/class/cdc-wdm.c",
-+ [17377].name = "wdm_write",
-+ [17377].param3 = 1,
-+ [17459].file = "drivers/usb/misc/rio500.c",
-+ [17459].name = "write_rio",
-+ [17459].param3 = 1,
-+ [17460].file = "fs/nfsd/nfscache.c",
-+ [17460].name = "nfsd_cache_update",
-+ [17460].param3 = 1,
-+ [17492].file = "net/dccp/proto.c",
-+ [17492].name = "do_dccp_setsockopt",
-+ [17492].param5 = 1,
-+ [1754].file = "sound/core/oss/pcm_oss.c",
-+ [1754].name = "snd_pcm_oss_write",
-+ [1754].param3 = 1,
-+ [17604].file = "fs/proc/generic.c",
-+ [17604].name = "__proc_file_read",
-+ [17604].param3 = 1,
-+ [17718].file = "net/caif/caif_socket.c",
-+ [17718].name = "setsockopt",
-+ [17718].param5 = 1,
-+ [17828].file = "kernel/sched/core.c",
-+ [17828].name = "sched_feat_write",
-+ [17828].param3 = 1,
-+ [17841].file = "drivers/misc/tifm_core.c",
-+ [17841].name = "tifm_alloc_adapter",
-+ [17841].param1 = 1,
-+ [17946].file = "drivers/net/wireless/libertas/if_spi.c",
-+ [17946].name = "if_spi_host_to_card",
-+ [17946].param4 = 1,
-+ [1800].file = "drivers/media/dvb/dvb-core/dmxdev.c",
-+ [1800].name = "dvb_dvr_do_ioctl",
-+ [1800].param3 = 1,
-+ [18119].file = "drivers/misc/iwmc3200top/fw-download.c",
-+ [18119].name = "iwmct_fw_parser_init",
-+ [18119].param4 = 1,
-+ [18140].file = "drivers/scsi/pm8001/pm8001_ctl.c",
-+ [18140].name = "pm8001_store_update_fw",
-+ [18140].param4 = 1,
-+ [18191].file = "sound/pci/hda/patch_realtek.c",
-+ [18191].name = "new_bind_ctl",
-+ [18191].param2 = 1,
-+ [18224].file = "drivers/xen/grant-table.c",
-+ [18224].name = "gnttab_map",
-+ [18224].param2 = 1,
-+ [18232].file = "fs/nfs/write.c",
-+ [18232].name = "nfs_writedata_alloc",
-+ [18232].param1 = 1,
-+ [18247].file = "drivers/char/agp/generic.c",
-+ [18247].name = "agp_create_user_memory",
-+ [18247].param1 = 1,
-+ [18303].file = "fs/xattr.c",
-+ [18303].name = "getxattr",
-+ [18303].param4 = 1,
-+ [18353].file = "net/rfkill/core.c",
-+ [18353].name = "rfkill_fop_read",
-+ [18353].param3 = 1,
-+ [18386].file = "fs/read_write.c",
-+ [18386].name = "vfs_readv",
-+ [18386].param3 = 1,
-+ [18391].file = "fs/ocfs2/stack_user.c",
-+ [18391].name = "ocfs2_control_write",
-+ [18391].param3 = 1,
-+ [183].file = "crypto/ahash.c",
-+ [183].name = "crypto_ahash_setkey",
-+ [183].param3 = 1,
-+ [18406].file = "drivers/media/video/tm6000/tm6000-core.c",
-+ [18406].name = "tm6000_read_write_usb",
-+ [18406].param7 = 1,
-+ [1845].file = "drivers/net/wireless/rt2x00/rt2x00debug.c",
-+ [1845].name = "rt2x00debug_write_rf",
-+ [1845].param3 = 1,
-+ [18465].file = "drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c",
-+ [18465].name = "cxgb_alloc_mem",
-+ [18465].param1 = 1,
-+ [184].file = "drivers/firewire/nosy.c",
-+ [184].name = "packet_buffer_init",
-+ [184].param2 = 1,
-+ [1858].file = "net/ipv6/netfilter/ip6_tables.c",
-+ [1858].name = "do_ip6t_set_ctl",
-+ [1858].param4 = 1,
-+ [18659].file = "drivers/media/dvb/dvb-core/dvbdev.c",
-+ [18659].name = "dvb_usercopy",
-+ [18659].param2 = 1,
-+ [18722].file = "security/tomoyo/condition.c",
-+ [18722].name = "tomoyo_scan_bprm",
-+ [18722].param2 = 1,
-+ [18722].param4 = 1,
-+ [18775].file = "include/linux/textsearch.h",
-+ [18775].name = "alloc_ts_config",
-+ [18775].param1 = 1,
-+ [18940].file = "drivers/usb/host/hwa-hc.c",
-+ [18940].name = "__hwahc_op_set_gtk",
-+ [18940].param4 = 1,
-+ [19012].file = "drivers/acpi/event.c",
-+ [19012].name = "acpi_system_read_event",
-+ [19012].param3 = 1,
-+ [19028].file = "mm/filemap.c",
-+ [19028].name = "iov_iter_copy_from_user_atomic",
-+ [19028].param4 = 1,
-+ [19107].file = "security/smack/smackfs.c",
-+ [19107].name = "smk_write_load_list",
-+ [19107].param3 = 1,
-+ [19240].file = "net/sctp/socket.c",
-+ [19240].name = "sctp_setsockopt_delayed_ack",
-+ [19240].param3 = 1,
-+ [19274].file = "net/core/pktgen.c",
-+ [19274].name = "pktgen_if_write",
-+ [19274].param3 = 1,
-+ [19286].file = "drivers/base/regmap/regmap.c",
-+ [19286].name = "_regmap_raw_write",
-+ [19286].param4 = 1,
-+ [19308].file = "drivers/char/mem.c",
-+ [19308].name = "read_oldmem",
-+ [19308].param3 = 1,
-+ [19343].file = "security/keys/encrypted-keys/encrypted.c",
-+ [19343].name = "datablob_hmac_append",
-+ [19343].param3 = 1,
-+ [19349].file = "drivers/acpi/acpica/utobject.c",
-+ [19349].name = "acpi_ut_create_package_object",
-+ [19349].param1 = 1,
-+ [19453].file = "drivers/net/ethernet/chelsio/cxgb/sge.c",
-+ [19453].name = "sge_rx",
-+ [19453].param3 = 1,
-+ [19504].file = "drivers/usb/serial/garmin_gps.c",
-+ [19504].name = "pkt_add",
-+ [19504].param3 = 1,
-+ [19522].file = "mm/percpu.c",
-+ [19522].name = "pcpu_mem_zalloc",
-+ [19522].param1 = 1,
-+ [19548].file = "drivers/scsi/qla2xxx/qla_init.c",
-+ [19548].name = "qla2x00_get_ctx_sp",
-+ [19548].param3 = 1,
-+ [19592].file = "net/dccp/proto.c",
-+ [19592].name = "dccp_setsockopt_service",
-+ [19592].param4 = 1,
-+ [19726].file = "kernel/trace/trace.c",
-+ [19726].name = "tracing_set_trace_write",
-+ [19726].param3 = 1,
-+ [19738].file = "fs/sysfs/file.c",
-+ [19738].name = "sysfs_write_file",
-+ [19738].param3 = 1,
-+ [19833].file = "drivers/xen/privcmd.c",
-+ [19833].name = "gather_array",
-+ [19833].param3 = 1,
-+ [19910].file = "drivers/media/video/saa7164/saa7164-buffer.c",
-+ [19910].name = "saa7164_buffer_alloc_user",
-+ [19910].param2 = 1,
-+ [19920].file = "drivers/input/joydev.c",
-+ [19920].name = "joydev_ioctl",
-+ [19920].param2 = 1,
-+ [19931].file = "drivers/usb/misc/ftdi-elan.c",
-+ [19931].name = "ftdi_elan_write",
-+ [19931].param3 = 1,
-+ [19960].file = "drivers/usb/class/usblp.c",
-+ [19960].name = "usblp_read",
-+ [19960].param3 = 1,
-+ [1996].file = "drivers/scsi/libsrp.c",
-+ [1996].name = "srp_target_alloc",
-+ [1996].param3 = 1,
-+ [20023].file = "drivers/media/video/gspca/gspca.c",
-+ [20023].name = "dev_read",
-+ [20023].param3 = 1,
-+ [20207].file = "net/core/sock.c",
-+ [20207].name = "sock_alloc_send_pskb",
-+ [20207].param2 = 1,
-+ [20263].file = "kernel/trace/trace_events.c",
-+ [20263].name = "event_filter_write",
-+ [20263].param3 = 1,
-+ [20314].file = "drivers/gpu/drm/drm_hashtab.c",
-+ [20314].name = "drm_ht_create",
-+ [20314].param2 = 1,
-+ [20320].file = "drivers/mfd/sm501.c",
-+ [20320].name = "sm501_create_subdev",
-+ [20320].param3 = 1,
-+ [20320].param4 = 1,
-+ [20376].file = "mm/nobootmem.c",
-+ [20376].name = "__alloc_bootmem_nopanic",
-+ [20376].param1 = 1,
-+ [20409].file = "drivers/media/dvb/dvb-usb/opera1.c",
-+ [20409].name = "opera1_usb_i2c_msgxfer",
-+ [20409].param4 = 1,
-+ [20473].file = "drivers/mtd/mtdchar.c",
-+ [20473].name = "mtdchar_write",
-+ [20473].param3 = 1,
-+ [20611].file = "net/netfilter/x_tables.c",
-+ [20611].name = "xt_alloc_table_info",
-+ [20611].param1 = 1,
-+ [20618].file = "drivers/staging/crystalhd/crystalhd_lnx.c",
-+ [20618].name = "chd_dec_fetch_cdata",
-+ [20618].param3 = 1,
-+ [20713].file = "drivers/gpu/drm/ttm/ttm_bo_vm.c",
-+ [20713].name = "ttm_bo_io",
-+ [20713].param5 = 1,
-+ [20801].file = "drivers/vhost/vhost.c",
-+ [20801].name = "vhost_add_used_n",
-+ [20801].param3 = 1,
-+ [20835].file = "drivers/isdn/i4l/isdn_common.c",
-+ [20835].name = "isdn_read",
-+ [20835].param3 = 1,
-+ [20951].file = "crypto/rng.c",
-+ [20951].name = "rngapi_reset",
-+ [20951].param3 = 1,
-+ [21125].file = "fs/gfs2/dir.c",
-+ [21125].name = "gfs2_alloc_sort_buffer",
-+ [21125].param1 = 1,
-+ [21132].file = "kernel/cgroup.c",
-+ [21132].name = "cgroup_write_X64",
-+ [21132].param5 = 1,
-+ [21138].file = "drivers/uio/uio.c",
-+ [21138].name = "uio_read",
-+ [21138].param3 = 1,
-+ [21193].file = "net/wireless/sme.c",
-+ [21193].name = "cfg80211_disconnected",
-+ [21193].param4 = 1,
-+ [21312].file = "lib/ts_kmp.c",
-+ [21312].name = "kmp_init",
-+ [21312].param2 = 1,
-+ [21335].file = "net/econet/af_econet.c",
-+ [21335].name = "econet_sendmsg",
-+ [21335].param4 = 1,
-+ [21406].file = "fs/libfs.c",
-+ [21406].name = "simple_write_to_buffer",
-+ [21406].param2 = 1,
-+ [21406].param5 = 1,
-+ [21451].file = "net/netfilter/ipvs/ip_vs_ctl.c",
-+ [21451].name = "do_ip_vs_set_ctl",
-+ [21451].param4 = 1,
-+ [21459].file = "security/smack/smackfs.c",
-+ [21459].name = "smk_write_doi",
-+ [21459].param3 = 1,
-+ [21508].file = "include/linux/usb/wusb.h",
-+ [21508].name = "wusb_prf_64",
-+ [21508].param7 = 1,
-+ [21511].file = "drivers/input/ff-core.c",
-+ [21511].name = "input_ff_create",
-+ [21511].param2 = 1,
-+ [21538].file = "net/bluetooth/l2cap_sock.c",
-+ [21538].name = "l2cap_sock_setsockopt",
-+ [21538].param5 = 1,
-+ [21543].file = "drivers/media/video/gspca/gspca.c",
-+ [21543].name = "frame_alloc",
-+ [21543].param4 = 1,
-+ [21608].file = "drivers/char/tpm/tpm.c",
-+ [21608].name = "tpm_write",
-+ [21608].param3 = 1,
-+ [2160].file = "drivers/net/wireless/ray_cs.c",
-+ [2160].name = "int_proc_write",
-+ [2160].param3 = 1,
-+ [21632].file = "fs/afs/cell.c",
-+ [21632].name = "afs_cell_create",
-+ [21632].param2 = 1,
-+ [21679].file = "drivers/net/wireless/ath/carl9170/debug.c",
-+ [21679].name = "carl9170_debugfs_write",
-+ [21679].param3 = 1,
-+ [21784].file = "crypto/ahash.c",
-+ [21784].name = "ahash_setkey_unaligned",
-+ [21784].param3 = 1,
-+ [2180].file = "drivers/char/ppdev.c",
-+ [2180].name = "pp_write",
-+ [2180].param3 = 1,
-+ [21810].file = "net/core/netprio_cgroup.c",
-+ [21810].name = "extend_netdev_table",
-+ [21810].param2 = 1,
-+ [21906].file = "net/atm/mpc.c",
-+ [21906].name = "copy_macs",
-+ [21906].param4 = 1,
-+ [21946].file = "fs/nfs/idmap.c",
-+ [21946].name = "nfs_map_name_to_uid",
-+ [21946].param3 = 1,
-+ [22052].file = "drivers/net/ethernet/chelsio/cxgb3/sge.c",
-+ [22052].name = "get_packet_pg",
-+ [22052].param4 = 1,
-+ [22085].file = "drivers/staging/sep/sep_driver.c",
-+ [22085].name = "sep_lock_user_pages",
-+ [22085].param2 = 1,
-+ [22085].param3 = 1,
-+ [22190].file = "drivers/char/tpm/tpm.c",
-+ [22190].name = "tpm_read",
-+ [22190].param3 = 1,
-+ [22291].file = "net/core/pktgen.c",
-+ [22291].name = "pgctrl_write",
-+ [22291].param3 = 1,
-+ [22439].file = "fs/afs/rxrpc.c",
-+ [22439].name = "afs_alloc_flat_call",
-+ [22439].param2 = 1,
-+ [22439].param3 = 1,
-+ [2243].file = "drivers/scsi/scsi_tgt_lib.c",
-+ [2243].name = "scsi_tgt_kspace_exec",
-+ [2243].param8 = 1,
-+ [22440].file = "drivers/uwb/neh.c",
-+ [22440].name = "uwb_rc_neh_grok_event",
-+ [22440].param3 = 1,
-+ [22611].file = "drivers/staging/android/logger.c",
-+ [22611].name = "do_write_log_from_user",
-+ [22611].param3 = 1,
-+ [22614].file = "drivers/media/video/cx18/cx18-fileops.c",
-+ [22614].name = "cx18_copy_buf_to_user",
-+ [22614].param4 = 1,
-+ [22667].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [22667].name = "altera_set_ir_post",
-+ [22667].param2 = 1,
-+ [22772].file = "drivers/target/iscsi/iscsi_target_erl1.c",
-+ [22772].name = "iscsit_dump_data_payload",
-+ [22772].param2 = 1,
-+ [22777].file = "drivers/infiniband/ulp/srp/ib_srp.c",
-+ [22777].name = "srp_alloc_iu",
-+ [22777].param2 = 1,
-+ [22811].file = "drivers/usb/dwc3/debugfs.c",
-+ [22811].name = "dwc3_mode_write",
-+ [22811].param3 = 1,
-+ [22817].file = "drivers/media/video/usbvision/usbvision-core.c",
-+ [22817].name = "usbvision_rvmalloc",
-+ [22817].param1 = 1,
-+ [22864].file = "drivers/net/wireless/ath/ath6kl/cfg80211.c",
-+ [22864].name = "ath6kl_add_bss_if_needed",
-+ [22864].param6 = 1,
-+ [2286].file = "drivers/scsi/mvumi.c",
-+ [2286].name = "mvumi_alloc_mem_resource",
-+ [2286].param3 = 1,
-+ [22904].file = "security/selinux/ss/services.c",
-+ [22904].name = "security_context_to_sid_default",
-+ [22904].param2 = 1,
-+ [22932].file = "fs/compat.c",
-+ [22932].name = "compat_sys_writev",
-+ [22932].param3 = 1,
-+ [2302].file = "drivers/media/video/stk-webcam.c",
-+ [2302].name = "v4l_stk_read",
-+ [2302].param3 = 1,
-+ [2307].file = "drivers/pcmcia/cistpl.c",
-+ [2307].name = "pcmcia_replace_cis",
-+ [2307].param3 = 1,
-+ [23117].file = "drivers/media/dvb/ttpci/av7110_av.c",
-+ [23117].name = "dvb_audio_write",
-+ [23117].param3 = 1,
-+ [23220].file = "drivers/gpu/drm/vmwgfx/vmwgfx_kms.c",
-+ [23220].name = "do_dmabuf_dirty_sou",
-+ [23220].param7 = 1,
-+ [23232].file = "drivers/md/persistent-data/dm-space-map-checker.c",
-+ [23232].name = "sm_checker_extend",
-+ [23232].param2 = 1,
-+ [2324].file = "net/ieee802154/wpan-class.c",
-+ [2324].name = "wpan_phy_alloc",
-+ [2324].param1 = 1,
-+ [2328].file = "kernel/trace/ftrace.c",
-+ [2328].name = "ftrace_pid_write",
-+ [2328].param3 = 1,
-+ [23290].file = "fs/proc/base.c",
-+ [23290].name = "mem_rw",
-+ [23290].param3 = 1,
-+ [23449].file = "crypto/blkcipher.c",
-+ [23449].name = "blkcipher_next_slow",
-+ [23449].param3 = 1,
-+ [23449].param4 = 1,
-+ [23535].file = "ipc/sem.c",
-+ [23535].name = "sys_semtimedop",
-+ [23535].param3 = 1,
-+ [2357].file = "drivers/usb/serial/garmin_gps.c",
-+ [2357].name = "garmin_read_process",
-+ [2357].param3 = 1,
-+ [23589].file = "kernel/relay.c",
-+ [23589].name = "subbuf_read_actor",
-+ [23589].param3 = 1,
-+ [23848].file = "crypto/blkcipher.c",
-+ [23848].name = "async_setkey",
-+ [23848].param3 = 1,
-+ [2386].file = "drivers/acpi/acpica/exnames.c",
-+ [2386].name = "acpi_ex_allocate_name_string",
-+ [2386].param2 = 1,
-+ [2389].file = "net/core/sock.c",
-+ [2389].name = "sock_rmalloc",
-+ [2389].param2 = 1,
-+ [23994].file = "net/bluetooth/mgmt.c",
-+ [23994].name = "set_powered",
-+ [23994].param4 = 1,
-+ [23999].file = "sound/pci/rme9652/hdsp.c",
-+ [23999].name = "snd_hdsp_capture_copy",
-+ [23999].param5 = 1,
-+ [24233].file = "drivers/pci/pcie/aer/aer_inject.c",
-+ [24233].name = "aer_inject_write",
-+ [24233].param3 = 1,
-+ [24359].file = "kernel/power/qos.c",
-+ [24359].name = "pm_qos_power_write",
-+ [24359].param3 = 1,
-+ [24457].file = "fs/btrfs/backref.c",
-+ [24457].name = "init_data_container",
-+ [24457].param1 = 1,
-+ [24719].file = "drivers/input/evdev.c",
-+ [24719].name = "bits_to_user",
-+ [24719].param3 = 1,
-+ [2472].file = "net/ipv4/netfilter/ip_tables.c",
-+ [2472].name = "compat_do_ipt_set_ctl",
-+ [2472].param4 = 1,
-+ [24755].file = "drivers/infiniband/hw/qib/qib_diag.c",
-+ [24755].name = "qib_diag_write",
-+ [24755].param3 = 1,
-+ [24805].file = "security/keys/user_defined.c",
-+ [24805].name = "user_update",
-+ [24805].param3 = 1,
-+ [25036].file = "fs/pipe.c",
-+ [25036].name = "pipe_iov_copy_from_user",
-+ [25036].param3 = 1,
-+ [25078].file = "drivers/net/wireless/p54/fwio.c",
-+ [25078].name = "p54_download_eeprom",
-+ [25078].param4 = 1,
-+ [25127].file = "drivers/scsi/device_handler/scsi_dh_alua.c",
-+ [25127].name = "realloc_buffer",
-+ [25127].param2 = 1,
-+ [25145].file = "net/tipc/link.c",
-+ [25145].name = "link_send_sections_long",
-+ [25145].param4 = 1,
-+ [25157].file = "security/keys/request_key_auth.c",
-+ [25157].name = "request_key_auth_new",
-+ [25157].param3 = 1,
-+ [25158].file = "drivers/net/ethernet/mellanox/mlx4/en_rx.c",
-+ [25158].name = "mlx4_en_create_rx_ring",
-+ [25158].param3 = 1,
-+ [25267].file = "fs/configfs/file.c",
-+ [25267].name = "configfs_write_file",
-+ [25267].param3 = 1,
-+ [25495].file = "drivers/scsi/bfa/bfad_debugfs.c",
-+ [25495].name = "bfad_debugfs_write_regwr",
-+ [25495].param3 = 1,
-+ [25558].file = "fs/proc/task_mmu.c",
-+ [25558].name = "clear_refs_write",
-+ [25558].param3 = 1,
-+ [25692].file = "drivers/net/wireless/ath/ath6kl/wmi.c",
-+ [25692].name = "ath6kl_wmi_send_action_cmd",
-+ [25692].param7 = 1,
-+ [25765].file = "drivers/media/dvb/b2c2/flexcop.c",
-+ [25765].name = "flexcop_device_kmalloc",
-+ [25765].param1 = 1,
-+ [26100].file = "sound/core/info.c",
-+ [26100].name = "snd_info_entry_write",
-+ [26100].param3 = 1,
-+ [26256].file = "fs/hpfs/name.c",
-+ [26256].name = "hpfs_translate_name",
-+ [26256].param3 = 1,
-+ [26394].file = "drivers/hid/hidraw.c",
-+ [26394].name = "hidraw_get_report",
-+ [26394].param3 = 1,
-+ [26494].file = "kernel/signal.c",
-+ [26494].name = "sys_rt_sigpending",
-+ [26494].param2 = 1,
-+ [26497].file = "security/keys/keyctl.c",
-+ [26497].name = "sys_keyctl",
-+ [26497].param4 = 1,
-+ [26533].file = "drivers/block/aoe/aoechr.c",
-+ [26533].name = "aoechr_write",
-+ [26533].param3 = 1,
-+ [26560].file = "crypto/algapi.c",
-+ [26560].name = "crypto_alloc_instance2",
-+ [26560].param3 = 1,
-+ [26605].file = "security/selinux/selinuxfs.c",
-+ [26605].name = "sel_write_user",
-+ [26605].param3 = 1,
-+ [26620].file = "net/bluetooth/mgmt.c",
-+ [26620].name = "mgmt_control",
-+ [26620].param3 = 1,
-+ [26701].file = "drivers/mtd/chips/cfi_util.c",
-+ [26701].name = "cfi_read_pri",
-+ [26701].param3 = 1,
-+ [26757].file = "fs/xattr.c",
-+ [26757].name = "sys_fgetxattr",
-+ [26757].param4 = 1,
-+ [2678].file = "drivers/platform/x86/asus_acpi.c",
-+ [2678].name = "disp_proc_write",
-+ [2678].param3 = 1,
-+ [26834].file = "drivers/gpu/drm/drm_drv.c",
-+ [26834].name = "drm_ioctl",
-+ [26834].param2 = 1,
-+ [26843].file = "drivers/firewire/core-cdev.c",
-+ [26843].name = "fw_device_op_compat_ioctl",
-+ [26843].param2 = 1,
-+ [26845].file = "drivers/scsi/qla2xxx/qla_bsg.c",
-+ [26845].name = "qla2x00_get_ctx_bsg_sp",
-+ [26845].param3 = 1,
-+ [26888].file = "net/bridge/br_ioctl.c",
-+ [26888].name = "get_fdb_entries",
-+ [26888].param3 = 1,
-+ [26962].file = "drivers/usb/class/usbtmc.c",
-+ [26962].name = "usbtmc_write",
-+ [26962].param3 = 1,
-+ [26966].file = "drivers/media/dvb/ddbridge/ddbridge-core.c",
-+ [26966].name = "ts_write",
-+ [26966].param3 = 1,
-+ [27004].file = "drivers/misc/hpilo.c",
-+ [27004].name = "ilo_write",
-+ [27004].param3 = 1,
-+ [27025].file = "fs/ntfs/file.c",
-+ [27025].name = "__ntfs_copy_from_user_iovec_inatomic",
-+ [27025].param3 = 1,
-+ [27025].param4 = 1,
-+ [27061].file = "drivers/firewire/core-cdev.c",
-+ [27061].name = "iso_callback",
-+ [27061].param3 = 1,
-+ [2711].file = "drivers/media/dvb/dvb-core/dvb_ringbuffer.c",
-+ [2711].name = "dvb_ringbuffer_read_user",
-+ [2711].param3 = 1,
-+ [27129].file = "fs/lockd/mon.c",
-+ [27129].name = "nsm_get_handle",
-+ [27129].param4 = 1,
-+ [27142].file = "fs/proc/kcore.c",
-+ [27142].name = "read_kcore",
-+ [27142].param3 = 1,
-+ [27164].file = "include/drm/drm_mem_util.h",
-+ [27164].name = "drm_calloc_large",
-+ [27164].param1 = 1,
-+ [27164].param2 = 1,
-+ [27176].file = "drivers/mtd/devices/mtd_dataflash.c",
-+ [27176].name = "otp_read",
-+ [27176].param2 = 1,
-+ [27176].param5 = 1,
-+ [27232].file = "security/apparmor/lib.c",
-+ [27232].name = "kvmalloc",
-+ [27232].param1 = 1,
-+ [27275].file = "drivers/scsi/cxgbi/libcxgbi.c",
-+ [27275].name = "cxgbi_ddp_reserve",
-+ [27275].param4 = 1,
-+ [27280].file = "drivers/net/ethernet/mellanox/mlx4/en_tx.c",
-+ [27280].name = "mlx4_en_create_tx_ring",
-+ [27280].param4 = 1,
-+ [27290].file = "security/selinux/ss/services.c",
-+ [27290].name = "security_context_to_sid_core",
-+ [27290].param2 = 1,
-+ [27302].file = "fs/proc/base.c",
-+ [27302].name = "proc_loginuid_write",
-+ [27302].param3 = 1,
-+ [2730].file = "drivers/target/iscsi/iscsi_target_parameters.c",
-+ [2730].name = "iscsi_decode_text_input",
-+ [2730].param4 = 1,
-+ [27314].file = "net/bluetooth/mgmt.c",
-+ [27314].name = "cmd_complete",
-+ [27314].param5 = 1,
-+ [27472].file = "security/selinux/selinuxfs.c",
-+ [27472].name = "sel_write_load",
-+ [27472].param3 = 1,
-+ [27491].file = "fs/proc/base.c",
-+ [27491].name = "proc_pid_attr_write",
-+ [27491].param3 = 1,
-+ [27568].file = "drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c",
-+ [27568].name = "t4_alloc_mem",
-+ [27568].param1 = 1,
-+ [27582].file = "drivers/platform/x86/asus_acpi.c",
-+ [27582].name = "ledd_proc_write",
-+ [27582].param3 = 1,
-+ [27595].file = "net/core/sock.c",
-+ [27595].name = "sock_alloc_send_skb",
-+ [27595].param2 = 1,
-+ [27648].file = "net/bluetooth/l2cap_core.c",
-+ [27648].name = "l2cap_bredr_sig_cmd",
-+ [27648].param3 = 1,
-+ [27697].file = "drivers/staging/mei/iorw.c",
-+ [27697].name = "amthi_read",
-+ [27697].param4 = 1,
-+ [27911].file = "fs/ext4/resize.c",
-+ [27911].name = "alloc_flex_gd",
-+ [27911].param1 = 1,
-+ [27927].file = "drivers/tty/tty_io.c",
-+ [27927].name = "redirected_tty_write",
-+ [27927].param3 = 1,
-+ [28040].file = "kernel/kfifo.c",
-+ [28040].name = "__kfifo_alloc",
-+ [28040].param2 = 1,
-+ [28040].param3 = 1,
-+ [28151].file = "mm/filemap_xip.c",
-+ [28151].name = "do_xip_mapping_read",
-+ [28151].param5 = 1,
-+ [28247].file = "net/sctp/tsnmap.c",
-+ [28247].name = "sctp_tsnmap_init",
-+ [28247].param2 = 1,
-+ [28253].file = "include/linux/fb.h",
-+ [28253].name = "alloc_apertures",
-+ [28253].param1 = 1,
-+ [28265].file = "fs/notify/fanotify/fanotify_user.c",
-+ [28265].name = "fanotify_write",
-+ [28265].param3 = 1,
-+ [28316].file = "drivers/input/joydev.c",
-+ [28316].name = "joydev_ioctl_common",
-+ [28316].param2 = 1,
-+ [28359].file = "drivers/spi/spidev.c",
-+ [28359].name = "spidev_message",
-+ [28359].param3 = 1,
-+ [28360].file = "drivers/hid/usbhid/hiddev.c",
-+ [28360].name = "hiddev_compat_ioctl",
-+ [28360].param2 = 1,
-+ [28407].file = "drivers/net/wireless/rt2x00/rt2x00debug.c",
-+ [28407].name = "rt2x00debug_write_csr",
-+ [28407].param3 = 1,
-+ [2847].file = "fs/ntfs/file.c",
-+ [2847].name = "ntfs_copy_from_user",
-+ [2847].param3 = 1,
-+ [2847].param5 = 1,
-+ [28584].file = "drivers/memstick/core/memstick.c",
-+ [28584].name = "memstick_alloc_host",
-+ [28584].param1 = 1,
-+ [28783].file = "drivers/gpu/drm/i915/i915_debugfs.c",
-+ [28783].name = "i915_cache_sharing_write",
-+ [28783].param3 = 1,
-+ [28787].file = "drivers/media/video/videobuf2-core.c",
-+ [28787].name = "vb2_write",
-+ [28787].param3 = 1,
-+ [28879].file = "drivers/base/map.c",
-+ [28879].name = "kobj_map",
-+ [28879].param2 = 1,
-+ [28879].param3 = 1,
-+ [28889].file = "drivers/char/pcmcia/cm4040_cs.c",
-+ [28889].name = "cm4040_write",
-+ [28889].param3 = 1,
-+ [29073].file = "drivers/gpu/drm/vmwgfx/vmwgfx_kms.c",
-+ [29073].name = "vmw_kms_readback",
-+ [29073].param6 = 1,
-+ [29085].file = "security/apparmor/apparmorfs.c",
-+ [29085].name = "profile_load",
-+ [29085].param3 = 1,
-+ [29092].file = "lib/lru_cache.c",
-+ [29092].name = "lc_create",
-+ [29092].param3 = 1,
-+ [29257].file = "drivers/vhost/vhost.c",
-+ [29257].name = "vhost_add_used_and_signal_n",
-+ [29257].param4 = 1,
-+ [29267].file = "net/ipv4/fib_trie.c",
-+ [29267].name = "tnode_alloc",
-+ [29267].param1 = 1,
-+ [29338].file = "drivers/net/ethernet/brocade/bna/bnad_debugfs.c",
-+ [29338].name = "bnad_debugfs_write_regwr",
-+ [29338].param3 = 1,
-+ [29353].file = "net/sctp/socket.c",
-+ [29353].name = "sctp_setsockopt_del_key",
-+ [29353].param3 = 1,
-+ [29405].file = "drivers/media/dvb/dvb-usb/dw2102.c",
-+ [29405].name = "dw210x_op_rw",
-+ [29405].param6 = 1,
-+ [29542].file = "net/nfc/nci/core.c",
-+ [29542].name = "nci_send_cmd",
-+ [29542].param3 = 1,
-+ [29714].file = "drivers/scsi/cxgbi/libcxgbi.c",
-+ [29714].name = "cxgbi_device_register",
-+ [29714].param1 = 1,
-+ [29714].param2 = 1,
-+ [2972].file = "drivers/staging/crystalhd/crystalhd_misc.c",
-+ [2972].name = "crystalhd_create_dio_pool",
-+ [2972].param2 = 1,
-+ [29769].file = "drivers/misc/iwmc3200top/log.c",
-+ [29769].name = "store_iwmct_log_level",
-+ [29769].param4 = 1,
-+ [29792].file = "drivers/staging/bcm/nvm.c",
-+ [29792].name = "BcmCopySection",
-+ [29792].param5 = 1,
-+ [29859].file = "net/rds/page.c",
-+ [29859].name = "rds_page_copy_user",
-+ [29859].param4 = 1,
-+ [29905].file = "mm/nobootmem.c",
-+ [29905].name = "___alloc_bootmem",
-+ [29905].param1 = 1,
-+ [2995].file = "mm/page_alloc.c",
-+ [2995].name = "alloc_large_system_hash",
-+ [2995].param2 = 1,
-+ [30000].file = "drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c",
-+ [30000].name = "wlc_phy_loadsampletable_nphy",
-+ [30000].param3 = 1,
-+ [30242].file = "fs/cifs/cifssmb.c",
-+ [30242].name = "cifs_readdata_alloc",
-+ [30242].param1 = 1,
-+ [30494].file = "net/ceph/buffer.c",
-+ [30494].name = "ceph_buffer_new",
-+ [30494].param1 = 1,
-+ [30590].file = "security/tomoyo/memory.c",
-+ [30590].name = "tomoyo_commit_ok",
-+ [30590].param2 = 1,
-+ [3060].file = "lib/mpi/mpiutil.c",
-+ [3060].name = "mpi_alloc_limb_space",
-+ [3060].param1 = 1,
-+ [30687].file = "drivers/uwb/uwb-debug.c",
-+ [30687].name = "command_write",
-+ [30687].param3 = 1,
-+ [30726].file = "drivers/bluetooth/hci_vhci.c",
-+ [30726].name = "vhci_get_user",
-+ [30726].param3 = 1,
-+ [30873].file = "net/packet/af_packet.c",
-+ [30873].name = "alloc_one_pg_vec_page",
-+ [30873].param1 = 1,
-+ [30970].file = "drivers/staging/hv/storvsc_drv.c",
-+ [30970].name = "create_bounce_buffer",
-+ [30970].param3 = 1,
-+ [310].file = "drivers/block/drbd/drbd_bitmap.c",
-+ [310].name = "bm_realloc_pages",
-+ [310].param2 = 1,
-+ [3119].file = "drivers/misc/ibmasm/command.c",
-+ [3119].name = "ibmasm_new_command",
-+ [3119].param2 = 1,
-+ [31207].file = "drivers/platform/x86/asus_acpi.c",
-+ [31207].name = "parse_arg",
-+ [31207].param2 = 1,
-+ [31287].file = "drivers/scsi/libsrp.c",
-+ [31287].name = "srp_iu_pool_alloc",
-+ [31287].param2 = 1,
-+ [31291].file = "sound/pci/rme9652/rme9652.c",
-+ [31291].name = "snd_rme9652_capture_copy",
-+ [31291].param5 = 1,
-+ [31348].file = "kernel/sched/core.c",
-+ [31348].name = "sys_sched_getaffinity",
-+ [31348].param2 = 1,
-+ [31492].file = "drivers/hid/hidraw.c",
-+ [31492].name = "hidraw_read",
-+ [31492].param3 = 1,
-+ [3170].file = "security/integrity/ima/ima_fs.c",
-+ [3170].name = "ima_write_policy",
-+ [3170].param3 = 1,
-+ [31782].file = "drivers/misc/pti.c",
-+ [31782].name = "pti_char_write",
-+ [31782].param3 = 1,
-+ [31789].file = "fs/file.c",
-+ [31789].name = "alloc_fdmem",
-+ [31789].param1 = 1,
-+ [31957].file = "fs/afs/proc.c",
-+ [31957].name = "afs_proc_cells_write",
-+ [31957].param3 = 1,
-+ [32002].file = "net/sctp/socket.c",
-+ [32002].name = "sctp_setsockopt_active_key",
-+ [32002].param3 = 1,
-+ [32182].file = "net/sunrpc/cache.c",
-+ [32182].name = "cache_write",
-+ [32182].param3 = 1,
-+ [32278].file = "kernel/time/timer_stats.c",
-+ [32278].name = "tstats_write",
-+ [32278].param3 = 1,
-+ [32326].file = "drivers/tty/n_r3964.c",
-+ [32326].name = "r3964_write",
-+ [32326].param4 = 1,
-+ [32399].file = "drivers/net/phy/mdio_bus.c",
-+ [32399].name = "mdiobus_alloc_size",
-+ [32399].param1 = 1,
-+ [32402].file = "net/ceph/pagevec.c",
-+ [32402].name = "ceph_copy_user_to_page_vector",
-+ [32402].param4 = 1,
-+ [3241].file = "drivers/usb/wusbcore/crypto.c",
-+ [3241].name = "wusb_prf",
-+ [3241].param7 = 1,
-+ [32459].file = "drivers/media/radio/radio-wl1273.c",
-+ [32459].name = "wl1273_fm_fops_write",
-+ [32459].param3 = 1,
-+ [32531].file = "fs/bio.c",
-+ [32531].name = "__bio_map_kern",
-+ [32531].param2 = 1,
-+ [32531].param3 = 1,
-+ [32537].file = "drivers/staging/vme/devices/vme_user.c",
-+ [32537].name = "buffer_to_user",
-+ [32537].param3 = 1,
-+ [32560].file = "drivers/input/input-mt.c",
-+ [32560].name = "input_mt_init_slots",
-+ [32560].param2 = 1,
-+ [32600].file = "drivers/net/wireless/ath/ath6kl/cfg80211.c",
-+ [32600].name = "ath6kl_set_assoc_req_ies",
-+ [32600].param3 = 1,
-+ [32608].file = "security/selinux/selinuxfs.c",
-+ [32608].name = "sel_write_checkreqprot",
-+ [32608].param3 = 1,
-+ [32812].file = "drivers/net/ethernet/neterion/vxge/vxge-config.c",
-+ [32812].name = "__vxge_hw_channel_allocate",
-+ [32812].param3 = 1,
-+ [32950].file = "fs/reiserfs/resize.c",
-+ [32950].name = "reiserfs_resize",
-+ [32950].param2 = 1,
-+ [33010].file = "drivers/media/dvb/dvb-core/dvb_ringbuffer.c",
-+ [33010].name = "dvb_ringbuffer_pkt_read_user",
-+ [33010].param5 = 1,
-+ [33130].file = "net/llc/llc_sap.c",
-+ [33130].name = "llc_alloc_frame",
-+ [33130].param4 = 1,
-+ [33221].file = "crypto/ablkcipher.c",
-+ [33221].name = "ablkcipher_copy_iv",
-+ [33221].param3 = 1,
-+ [33268].file = "mm/maccess.c",
-+ [33268].name = "__probe_kernel_write",
-+ [33268].param3 = 1,
-+ [33280].file = "fs/xfs/kmem.c",
-+ [33280].name = "kmem_realloc",
-+ [33280].param2 = 1,
-+ [33375].file = "drivers/staging/rtl8712/osdep_service.h",
-+ [33375].name = "_malloc",
-+ [33375].param1 = 1,
-+ [33420].file = "drivers/net/team/team.c",
-+ [33420].name = "__team_options_register",
-+ [33420].param3 = 1,
-+ [33489].file = "fs/binfmt_misc.c",
-+ [33489].name = "create_entry",
-+ [33489].param2 = 1,
-+ [33637].file = "net/9p/client.c",
-+ [33637].name = "p9_client_read",
-+ [33637].param5 = 1,
-+ [33669].file = "fs/gfs2/glock.c",
-+ [33669].name = "gfs2_glock_nq_m",
-+ [33669].param1 = 1,
-+ [33704].file = "drivers/gpu/drm/ttm/ttm_page_alloc_dma.c",
-+ [33704].name = "ttm_dma_page_pool_free",
-+ [33704].param2 = 1,
-+ [33779].file = "drivers/staging/vme/devices/vme_user.c",
-+ [33779].name = "resource_from_user",
-+ [33779].param3 = 1,
-+ [33810].file = "net/mac80211/util.c",
-+ [33810].name = "ieee80211_send_probe_req",
-+ [33810].param6 = 1,
-+ [3384].file = "drivers/block/paride/pg.c",
-+ [3384].name = "pg_write",
-+ [3384].param3 = 1,
-+ [34105].file = "fs/libfs.c",
-+ [34105].name = "simple_read_from_buffer",
-+ [34105].param2 = 1,
-+ [34105].param5 = 1,
-+ [34120].file = "drivers/media/video/pvrusb2/pvrusb2-io.c",
-+ [34120].name = "pvr2_stream_buffer_count",
-+ [34120].param2 = 1,
-+ [34226].file = "mm/shmem.c",
-+ [34226].name = "shmem_xattr_set",
-+ [34226].param4 = 1,
-+ [34251].file = "drivers/staging/cxt1e1/sbecom_inline_linux.h",
-+ [34251].name = "OS_kmalloc",
-+ [34251].param1 = 1,
-+ [34276].file = "drivers/media/video/videobuf2-core.c",
-+ [34276].name = "__vb2_perform_fileio",
-+ [34276].param3 = 1,
-+ [34278].file = "fs/ubifs/debug.c",
-+ [34278].name = "dfs_global_file_write",
-+ [34278].param3 = 1,
-+ [34432].file = "drivers/edac/edac_pci.c",
-+ [34432].name = "edac_pci_alloc_ctl_info",
-+ [34432].param1 = 1,
-+ [34532].file = "drivers/virtio/virtio_ring.c",
-+ [34532].name = "vring_add_indirect",
-+ [34532].param3 = 1,
-+ [34532].param4 = 1,
-+ [34543].file = "net/sctp/tsnmap.c",
-+ [34543].name = "sctp_tsnmap_grow",
-+ [34543].param2 = 1,
-+ [34551].file = "fs/ocfs2/stack_user.c",
-+ [34551].name = "ocfs2_control_cfu",
-+ [34551].param2 = 1,
-+ [34634].file = "drivers/net/wireless/ath/ath6kl/cfg80211.c",
-+ [34634].name = "ath6kl_send_go_probe_resp",
-+ [34634].param3 = 1,
-+ [34666].file = "fs/cifs/cifs_debug.c",
-+ [34666].name = "cifs_security_flags_proc_write",
-+ [34666].param3 = 1,
-+ [3466].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [3466].name = "altera_drscan",
-+ [3466].param2 = 1,
-+ [34672].file = "drivers/tty/tty_io.c",
-+ [34672].name = "tty_write",
-+ [34672].param3 = 1,
-+ [34679].file = "drivers/media/video/ivtv/ivtv-fileops.c",
-+ [34679].name = "ivtv_copy_buf_to_user",
-+ [34679].param4 = 1,
-+ [34721].file = "drivers/usb/host/hwa-hc.c",
-+ [34721].name = "__hwahc_dev_set_key",
-+ [34721].param5 = 1,
-+ [34749].file = "mm/nobootmem.c",
-+ [34749].name = "__alloc_bootmem_low_node",
-+ [34749].param2 = 1,
-+ [34760].file = "include/acpi/platform/aclinux.h",
-+ [34760].name = "acpi_os_allocate_zeroed",
-+ [34760].param1 = 1,
-+ [34802].file = "drivers/scsi/cxgbi/libcxgbi.h",
-+ [34802].name = "cxgbi_alloc_big_mem",
-+ [34802].param1 = 1,
-+ [34863].file = "drivers/video/fbsysfs.c",
-+ [34863].name = "framebuffer_alloc",
-+ [34863].param1 = 1,
-+ [34868].file = "drivers/net/ethernet/brocade/bna/bnad_debugfs.c",
-+ [34868].name = "bnad_debugfs_write_regrd",
-+ [34868].param3 = 1,
-+ [34882].file = "drivers/platform/x86/toshiba_acpi.c",
-+ [34882].name = "video_proc_write",
-+ [34882].param3 = 1,
-+ [35050].file = "fs/ocfs2/dlmfs/dlmfs.c",
-+ [35050].name = "dlmfs_file_write",
-+ [35050].param3 = 1,
-+ [35119].file = "fs/xattr.c",
-+ [35119].name = "sys_llistxattr",
-+ [35119].param3 = 1,
-+ [35129].file = "mm/nobootmem.c",
-+ [35129].name = "___alloc_bootmem_nopanic",
-+ [35129].param1 = 1,
-+ [35159].file = "drivers/net/wimax/i2400m/usb.c",
-+ [35159].name = "__i2400mu_send_barker",
-+ [35159].param3 = 1,
-+ [35232].file = "drivers/media/video/cx18/cx18-fileops.c",
-+ [35232].name = "cx18_read",
-+ [35232].param3 = 1,
-+ [35234].file = "net/irda/irnet/irnet_ppp.c",
-+ [35234].name = "irnet_ctrl_write",
-+ [35234].param3 = 1,
-+ [35256].file = "sound/core/memory.c",
-+ [35256].name = "copy_from_user_toio",
-+ [35256].param3 = 1,
-+ [35268].file = "security/keys/request_key_auth.c",
-+ [35268].name = "request_key_auth_read",
-+ [35268].param3 = 1,
-+ [3538].file = "net/bluetooth/mgmt.c",
-+ [3538].name = "disconnect",
-+ [3538].param4 = 1,
-+ [35443].file = "sound/core/pcm_memory.c",
-+ [35443].name = "_snd_pcm_lib_alloc_vmalloc_buffer",
-+ [35443].param2 = 1,
-+ [35468].file = "drivers/xen/xenbus/xenbus_dev_frontend.c",
-+ [35468].name = "xenbus_file_write",
-+ [35468].param3 = 1,
-+ [35536].file = "kernel/sysctl_binary.c",
-+ [35536].name = "bin_uuid",
-+ [35536].param3 = 1,
-+ [35551].file = "drivers/media/video/ivtv/ivtv-fileops.c",
-+ [35551].name = "ivtv_read_pos",
-+ [35551].param3 = 1,
-+ [35556].file = "fs/read_write.c",
-+ [35556].name = "sys_readv",
-+ [35556].param3 = 1,
-+ [35693].file = "drivers/staging/mei/main.c",
-+ [35693].name = "mei_read",
-+ [35693].param3 = 1,
-+ [35703].file = "crypto/ablkcipher.c",
-+ [35703].name = "ablkcipher_next_slow",
-+ [35703].param3 = 1,
-+ [35703].param4 = 1,
-+ [35729].file = "include/linux/skbuff.h",
-+ [35729].name = "__dev_alloc_skb",
-+ [35729].param1 = 1,
-+ [35731].file = "drivers/usb/class/cdc-wdm.c",
-+ [35731].name = "wdm_read",
-+ [35731].param3 = 1,
-+ [35796].file = "drivers/mtd/nand/nand_bch.c",
-+ [35796].name = "nand_bch_init",
-+ [35796].param2 = 1,
-+ [35796].param3 = 1,
-+ [35880].file = "fs/ecryptfs/crypto.c",
-+ [35880].name = "ecryptfs_encrypt_and_encode_filename",
-+ [35880].param6 = 1,
-+ [36076].file = "drivers/net/ethernet/sfc/tx.c",
-+ [36076].name = "efx_tsoh_heap_alloc",
-+ [36076].param2 = 1,
-+ [36080].file = "drivers/media/video/v4l2-ioctl.c",
-+ [36080].name = "video_usercopy",
-+ [36080].param2 = 1,
-+ [36149].file = "fs/udf/inode.c",
-+ [36149].name = "udf_alloc_i_data",
-+ [36149].param2 = 1,
-+ [36183].file = "drivers/tty/vt/vc_screen.c",
-+ [36183].name = "vcs_read",
-+ [36183].param3 = 1,
-+ [36199].file = "net/sunrpc/auth_gss/auth_gss.c",
-+ [36199].name = "gss_pipe_downcall",
-+ [36199].param3 = 1,
-+ [36206].file = "net/ipv4/tcp_input.c",
-+ [36206].name = "tcp_collapse",
-+ [36206].param5 = 1,
-+ [36206].param6 = 1,
-+ [36230].file = "drivers/net/wan/hdlc_ppp.c",
-+ [36230].name = "ppp_cp_parse_cr",
-+ [36230].param4 = 1,
-+ [36284].file = "drivers/spi/spi.c",
-+ [36284].name = "spi_register_board_info",
-+ [36284].param2 = 1,
-+ [36490].file = "drivers/net/wireless/ath/ath6kl/cfg80211.c",
-+ [36490].name = "ath6kl_cfg80211_connect_event",
-+ [36490].param7 = 1,
-+ [36522].file = "drivers/hid/hidraw.c",
-+ [36522].name = "hidraw_send_report",
-+ [36522].param3 = 1,
-+ [36560].file = "net/sunrpc/cache.c",
-+ [36560].name = "write_flush",
-+ [36560].param3 = 1,
-+ [36807].file = "drivers/usb/mon/mon_bin.c",
-+ [36807].name = "mon_bin_get_event",
-+ [36807].param4 = 1,
-+ [37034].file = "fs/cifs/cifssmb.c",
-+ [37034].name = "cifs_writedata_alloc",
-+ [37034].param1 = 1,
-+ [37044].file = "sound/firewire/packets-buffer.c",
-+ [37044].name = "iso_packets_buffer_init",
-+ [37044].param3 = 1,
-+ [37108].file = "drivers/media/dvb/ttpci/av7110_av.c",
-+ [37108].name = "dvb_video_write",
-+ [37108].param3 = 1,
-+ [37154].file = "net/nfc/llcp/commands.c",
-+ [37154].name = "nfc_llcp_build_tlv",
-+ [37154].param3 = 1,
-+ [37163].file = "net/core/skbuff.c",
-+ [37163].name = "__netdev_alloc_skb",
-+ [37163].param2 = 1,
-+ [37233].file = "fs/ocfs2/cluster/tcp.c",
-+ [37233].name = "o2net_send_message_vec",
-+ [37233].param4 = 1,
-+ [37241].file = "net/atm/lec.c",
-+ [37241].name = "lane2_associate_req",
-+ [37241].param4 = 1,
-+ [37384].file = "drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c",
-+ [37384].name = "vmw_fifo_reserve",
-+ [37384].param2 = 1,
-+ [37497].file = "net/mac80211/util.c",
-+ [37497].name = "ieee80211_build_probe_req",
-+ [37497].param7 = 1,
-+ [37535].file = "kernel/trace/trace.c",
-+ [37535].name = "tracing_trace_options_write",
-+ [37535].param3 = 1,
-+ [37611].file = "drivers/xen/xenbus/xenbus_xs.c",
-+ [37611].name = "split",
-+ [37611].param2 = 1,
-+ [37661].file = "mm/filemap.c",
-+ [37661].name = "file_read_actor",
-+ [37661].param4 = 1,
-+ [37852].file = "drivers/staging/android/logger.c",
-+ [37852].name = "do_read_log_to_user",
-+ [37852].param4 = 1,
-+ [37921].file = "drivers/net/wireless/wl12xx/rx.c",
-+ [37921].name = "wl1271_rx_handle_data",
-+ [37921].param3 = 1,
-+ [37976].file = "drivers/platform/x86/asus_acpi.c",
-+ [37976].name = "bluetooth_proc_write",
-+ [37976].param3 = 1,
-+ [3797].file = "sound/pci/asihpi/hpicmn.c",
-+ [3797].name = "hpi_alloc_control_cache",
-+ [3797].param1 = 1,
-+ [3801].file = "drivers/block/paride/pt.c",
-+ [3801].name = "pt_write",
-+ [3801].param3 = 1,
-+ [38052].file = "kernel/kexec.c",
-+ [38052].name = "kimage_normal_alloc",
-+ [38052].param3 = 1,
-+ [38057].file = "fs/coda/psdev.c",
-+ [38057].name = "coda_psdev_write",
-+ [38057].param3 = 1,
-+ [38186].file = "kernel/signal.c",
-+ [38186].name = "do_sigpending",
-+ [38186].param2 = 1,
-+ [38314].file = "fs/nfs/read.c",
-+ [38314].name = "nfs_readdata_alloc",
-+ [38314].param1 = 1,
-+ [38401].file = "drivers/xen/xenbus/xenbus_dev_frontend.c",
-+ [38401].name = "queue_reply",
-+ [38401].param3 = 1,
-+ [3841].file = "drivers/platform/x86/asus_acpi.c",
-+ [3841].name = "write_led",
-+ [3841].param2 = 1,
-+ [38532].file = "fs/afs/cell.c",
-+ [38532].name = "afs_cell_lookup",
-+ [38532].param2 = 1,
-+ [38564].file = "fs/nfs/nfs4proc.c",
-+ [38564].name = "nfs4_realloc_slot_table",
-+ [38564].param2 = 1,
-+ [38576].file = "drivers/i2c/i2c-dev.c",
-+ [38576].name = "i2cdev_read",
-+ [38576].param3 = 1,
-+ [38704].file = "drivers/media/video/uvc/uvc_driver.c",
-+ [38704].name = "uvc_alloc_entity",
-+ [38704].param3 = 1,
-+ [38704].param4 = 1,
-+ [38747].file = "fs/xattr.c",
-+ [38747].name = "sys_lgetxattr",
-+ [38747].param4 = 1,
-+ [38867].file = "drivers/scsi/scsi_transport_fc.c",
-+ [38867].name = "fc_host_post_vendor_event",
-+ [38867].param3 = 1,
-+ [38931].file = "drivers/isdn/hardware/eicon/capimain.c",
-+ [38931].name = "diva_os_alloc_message_buffer",
-+ [38931].param1 = 1,
-+ [38972].file = "security/smack/smackfs.c",
-+ [38972].name = "smk_write_logging",
-+ [38972].param3 = 1,
-+ [39001].file = "net/xfrm/xfrm_hash.c",
-+ [39001].name = "xfrm_hash_alloc",
-+ [39001].param1 = 1,
-+ [39052].file = "drivers/input/evdev.c",
-+ [39052].name = "evdev_ioctl",
-+ [39052].param2 = 1,
-+ [39066].file = "drivers/media/dvb/frontends/tda10048.c",
-+ [39066].name = "tda10048_writeregbulk",
-+ [39066].param4 = 1,
-+ [39118].file = "drivers/misc/iwmc3200top/log.c",
-+ [39118].name = "store_iwmct_log_level_fw",
-+ [39118].param4 = 1,
-+ [39254].file = "drivers/char/pcmcia/cm4000_cs.c",
-+ [39254].name = "cmm_write",
-+ [39254].param3 = 1,
-+ [39392].file = "drivers/atm/solos-pci.c",
-+ [39392].name = "send_command",
-+ [39392].param4 = 1,
-+ [39415].file = "fs/pstore/inode.c",
-+ [39415].name = "pstore_mkfile",
-+ [39415].param5 = 1,
-+ [39417].file = "drivers/block/DAC960.c",
-+ [39417].name = "dac960_user_command_proc_write",
-+ [39417].param3 = 1,
-+ [39460].file = "fs/btrfs/volumes.c",
-+ [39460].name = "btrfs_map_block",
-+ [39460].param3 = 1,
-+ [39479].file = "drivers/ide/ide-tape.c",
-+ [39479].name = "idetape_chrdev_read",
-+ [39479].param3 = 1,
-+ [39586].file = "drivers/hv/channel.c",
-+ [39586].name = "create_gpadl_header",
-+ [39586].param2 = 1,
-+ [39638].file = "security/selinux/selinuxfs.c",
-+ [39638].name = "sel_write_avc_cache_threshold",
-+ [39638].param3 = 1,
-+ [39645].file = "drivers/media/dvb/dvb-core/dvbdev.c",
-+ [39645].name = "dvb_generic_ioctl",
-+ [39645].param2 = 1,
-+ [39770].file = "include/linux/mISDNif.h",
-+ [39770].name = "mI_alloc_skb",
-+ [39770].param1 = 1,
-+ [39813].file = "fs/ocfs2/stack_user.c",
-+ [39813].name = "ocfs2_control_message",
-+ [39813].param3 = 1,
-+ [39888].file = "net/core/skbuff.c",
-+ [39888].name = "__alloc_skb",
-+ [39888].param1 = 1,
-+ [39980].file = "net/bluetooth/mgmt.c",
-+ [39980].name = "pair_device",
-+ [39980].param4 = 1,
-+ [40043].file = "drivers/media/video/v4l2-ioctl.c",
-+ [40043].name = "video_ioctl2",
-+ [40043].param2 = 1,
-+ [40049].file = "drivers/bluetooth/btmrvl_debugfs.c",
-+ [40049].name = "btmrvl_psmode_write",
-+ [40049].param3 = 1,
-+ [40075].file = "drivers/media/video/c-qcam.c",
-+ [40075].name = "qc_capture",
-+ [40075].param3 = 1,
-+ [40163].file = "fs/ncpfs/file.c",
-+ [40163].name = "ncp_file_write",
-+ [40163].param3 = 1,
-+ [40240].file = "drivers/char/nvram.c",
-+ [40240].name = "nvram_write",
-+ [40240].param3 = 1,
-+ [40256].file = "drivers/tty/vt/vc_screen.c",
-+ [40256].name = "vcs_write",
-+ [40256].param3 = 1,
-+ [40302].file = "sound/isa/gus/gus_dram.c",
-+ [40302].name = "snd_gus_dram_poke",
-+ [40302].param4 = 1,
-+ [40339].file = "drivers/acpi/apei/hest.c",
-+ [40339].name = "hest_ghes_dev_register",
-+ [40339].param1 = 1,
-+ [40355].file = "drivers/staging/mei/main.c",
-+ [40355].name = "mei_write",
-+ [40355].param3 = 1,
-+ [40373].file = "fs/cifs/cifs_spnego.c",
-+ [40373].name = "cifs_spnego_key_instantiate",
-+ [40373].param3 = 1,
-+ [40519].file = "net/sctp/socket.c",
-+ [40519].name = "sctp_setsockopt_events",
-+ [40519].param3 = 1,
-+ [40694].file = "mm/page_cgroup.c",
-+ [40694].name = "alloc_page_cgroup",
-+ [40694].param1 = 1,
-+ [40731].file = "drivers/tty/tty_io.c",
-+ [40731].name = "do_tty_write",
-+ [40731].param5 = 1,
-+ [40754].file = "fs/btrfs/delayed-inode.c",
-+ [40754].name = "btrfs_alloc_delayed_item",
-+ [40754].param1 = 1,
-+ [40786].file = "net/ipv4/netfilter/nf_nat_snmp_basic.c",
-+ [40786].name = "asn1_octets_decode",
-+ [40786].param2 = 1,
-+ [40901].file = "drivers/block/drbd/drbd_bitmap.c",
-+ [40901].name = "drbd_bm_resize",
-+ [40901].param2 = 1,
-+ [40951].file = "drivers/xen/evtchn.c",
-+ [40951].name = "evtchn_read",
-+ [40951].param3 = 1,
-+ [40952].file = "drivers/misc/sgi-xp/xpc_partition.c",
-+ [40952].name = "xpc_kmalloc_cacheline_aligned",
-+ [40952].param1 = 1,
-+ [41000].file = "sound/core/pcm_native.c",
-+ [41000].name = "snd_pcm_aio_read",
-+ [41000].param3 = 1,
-+ [41005].file = "net/bridge/netfilter/ebtables.c",
-+ [41005].name = "copy_counters_to_user",
-+ [41005].param5 = 1,
-+ [41041].file = "net/core/sock.c",
-+ [41041].name = "sock_wmalloc",
-+ [41041].param2 = 1,
-+ [41122].file = "fs/binfmt_misc.c",
-+ [41122].name = "bm_status_write",
-+ [41122].param3 = 1,
-+ [41176].file = "kernel/trace/trace_events.c",
-+ [41176].name = "subsystem_filter_write",
-+ [41176].param3 = 1,
-+ [41249].file = "drivers/media/video/zr364xx.c",
-+ [41249].name = "send_control_msg",
-+ [41249].param6 = 1,
-+ [41287].file = "drivers/net/ethernet/neterion/vxge/vxge-config.c",
-+ [41287].name = "vxge_os_dma_malloc_async",
-+ [41287].param3 = 1,
-+ [41302].file = "net/dns_resolver/dns_query.c",
-+ [41302].name = "dns_query",
-+ [41302].param3 = 1,
-+ [41408].file = "mm/filemap_xip.c",
-+ [41408].name = "__xip_file_write",
-+ [41408].param3 = 1,
-+ [41547].file = "net/bluetooth/smp.c",
-+ [41547].name = "smp_build_cmd",
-+ [41547].param3 = 1,
-+ [4155].file = "kernel/kexec.c",
-+ [4155].name = "do_kimage_alloc",
-+ [4155].param3 = 1,
-+ [41676].file = "fs/compat.c",
-+ [41676].name = "compat_sys_preadv",
-+ [41676].param3 = 1,
-+ [4167].file = "drivers/media/dvb/frontends/cx24116.c",
-+ [4167].name = "cx24116_writeregN",
-+ [4167].param4 = 1,
-+ [41793].file = "drivers/net/wireless/ath/ath6kl/wmi.c",
-+ [41793].name = "ath6kl_wmi_send_mgmt_cmd",
-+ [41793].param7 = 1,
-+ [41924].file = "security/keys/keyctl.c",
-+ [41924].name = "keyctl_get_security",
-+ [41924].param3 = 1,
-+ [41968].file = "fs/btrfs/volumes.c",
-+ [41968].name = "__btrfs_map_block",
-+ [41968].param3 = 1,
-+ [4202].file = "drivers/edac/edac_mc.c",
-+ [4202].name = "edac_mc_alloc",
-+ [4202].param1 = 1,
-+ [42081].file = "net/econet/af_econet.c",
-+ [42081].name = "aun_incoming",
-+ [42081].param3 = 1,
-+ [42143].file = "drivers/media/video/c-qcam.c",
-+ [42143].name = "qcam_read",
-+ [42143].param3 = 1,
-+ [42206].file = "fs/quota/quota_tree.c",
-+ [42206].name = "getdqbuf",
-+ [42206].param1 = 1,
-+ [42270].file = "net/wireless/scan.c",
-+ [42270].name = "cfg80211_inform_bss_frame",
-+ [42270].param4 = 1,
-+ [42281].file = "include/linux/mISDNif.h",
-+ [42281].name = "_queue_data",
-+ [42281].param4 = 1,
-+ [42420].file = "drivers/net/wireless/hostap/hostap_ioctl.c",
-+ [42420].name = "prism2_set_genericelement",
-+ [42420].param3 = 1,
-+ [42472].file = "fs/compat.c",
-+ [42472].name = "compat_readv",
-+ [42472].param3 = 1,
-+ [42473].file = "net/tipc/name_table.c",
-+ [42473].name = "tipc_subseq_alloc",
-+ [42473].param1 = 1,
-+ [42562].file = "kernel/kfifo.c",
-+ [42562].name = "__kfifo_to_user_r",
-+ [42562].param3 = 1,
-+ [42666].file = "drivers/pcmcia/cistpl.c",
-+ [42666].name = "read_cis_cache",
-+ [42666].param4 = 1,
-+ [42714].file = "drivers/scsi/scsi_tgt_lib.c",
-+ [42714].name = "scsi_tgt_copy_sense",
-+ [42714].param3 = 1,
-+ [42833].file = "kernel/trace/blktrace.c",
-+ [42833].name = "blk_msg_write",
-+ [42833].param3 = 1,
-+ [42857].file = "security/selinux/selinuxfs.c",
-+ [42857].name = "sel_write_member",
-+ [42857].param3 = 1,
-+ [42882].file = "security/keys/user_defined.c",
-+ [42882].name = "user_instantiate",
-+ [42882].param3 = 1,
-+ [42930].file = "net/caif/cfpkt_skbuff.c",
-+ [42930].name = "cfpkt_create_pfx",
-+ [42930].param1 = 1,
-+ [42930].param2 = 1,
-+ [43023].file = "drivers/usb/misc/usblcd.c",
-+ [43023].name = "lcd_write",
-+ [43023].param3 = 1,
-+ [43104].file = "drivers/mtd/devices/mtd_dataflash.c",
-+ [43104].name = "dataflash_read_user_otp",
-+ [43104].param3 = 1,
-+ [43133].file = "lib/mpi/mpiutil.c",
-+ [43133].name = "mpi_resize",
-+ [43133].param2 = 1,
-+ [4324].file = "drivers/video/fbmem.c",
-+ [4324].name = "fb_read",
-+ [4324].param3 = 1,
-+ [43266].file = "fs/afs/cell.c",
-+ [43266].name = "afs_cell_alloc",
-+ [43266].param2 = 1,
-+ [4328].file = "drivers/usb/musb/musb_debugfs.c",
-+ [4328].name = "musb_test_mode_write",
-+ [4328].param3 = 1,
-+ [43380].file = "drivers/scsi/bfa/bfad_debugfs.c",
-+ [43380].name = "bfad_debugfs_write_regrd",
-+ [43380].param3 = 1,
-+ [43510].file = "kernel/kexec.c",
-+ [43510].name = "compat_sys_kexec_load",
-+ [43510].param2 = 1,
-+ [43540].file = "include/rdma/ib_verbs.h",
-+ [43540].name = "ib_copy_to_udata",
-+ [43540].param3 = 1,
-+ [4357].file = "security/tomoyo/securityfs_if.c",
-+ [4357].name = "tomoyo_read_self",
-+ [4357].param3 = 1,
-+ [43590].file = "security/smack/smackfs.c",
-+ [43590].name = "smk_write_onlycap",
-+ [43590].param3 = 1,
-+ [43596].file = "drivers/usb/core/buffer.c",
-+ [43596].name = "hcd_buffer_alloc",
-+ [43596].param2 = 1,
-+ [43632].file = "drivers/media/video/videobuf2-core.c",
-+ [43632].name = "vb2_read",
-+ [43632].param3 = 1,
-+ [43659].file = "drivers/firmware/efivars.c",
-+ [43659].name = "efivar_create_sysfs_entry",
-+ [43659].param2 = 1,
-+ [43731].file = "drivers/hid/hid-picolcd.c",
-+ [43731].name = "picolcd_debug_eeprom_read",
-+ [43731].param3 = 1,
-+ [43777].file = "drivers/acpi/acpica/utobject.c",
-+ [43777].name = "acpi_ut_create_buffer_object",
-+ [43777].param1 = 1,
-+ [43798].file = "net/bluetooth/mgmt.c",
-+ [43798].name = "set_local_name",
-+ [43798].param4 = 1,
-+ [4380].file = "drivers/mtd/devices/mtd_dataflash.c",
-+ [4380].name = "dataflash_read_fact_otp",
-+ [4380].param3 = 1,
-+ [43834].file = "security/apparmor/apparmorfs.c",
-+ [43834].name = "profile_replace",
-+ [43834].param3 = 1,
-+ [43895].file = "drivers/media/dvb/ddbridge/ddbridge-core.c",
-+ [43895].name = "ddb_output_write",
-+ [43895].param3 = 1,
-+ [43899].file = "drivers/media/rc/imon.c",
-+ [43899].name = "vfd_write",
-+ [43899].param3 = 1,
-+ [43900].file = "drivers/scsi/cxgbi/libcxgbi.c",
-+ [43900].name = "cxgbi_device_portmap_create",
-+ [43900].param3 = 1,
-+ [43922].file = "drivers/mmc/card/mmc_test.c",
-+ [43922].name = "mmc_test_alloc_mem",
-+ [43922].param3 = 1,
-+ [43946].file = "drivers/net/wireless/ath/ath6kl/txrx.c",
-+ [43946].name = "aggr_recv_addba_req_evt",
-+ [43946].param4 = 1,
-+ [44006].file = "mm/process_vm_access.c",
-+ [44006].name = "process_vm_rw_pages",
-+ [44006].param5 = 1,
-+ [44006].param6 = 1,
-+ [44050].file = "fs/nfs/idmap.c",
-+ [44050].name = "nfs_map_group_to_gid",
-+ [44050].param3 = 1,
-+ [44125].file = "fs/ext4/super.c",
-+ [44125].name = "ext4_kvmalloc",
-+ [44125].param1 = 1,
-+ [44266].file = "kernel/cgroup.c",
-+ [44266].name = "cgroup_write_string",
-+ [44266].param5 = 1,
-+ [44290].file = "drivers/net/usb/dm9601.c",
-+ [44290].name = "dm_read",
-+ [44290].param3 = 1,
-+ [44308].file = "crypto/af_alg.c",
-+ [44308].name = "alg_setkey",
-+ [44308].param3 = 1,
-+ [44510].file = "drivers/net/ethernet/broadcom/bnx2.c",
-+ [44510].name = "bnx2_nvram_write",
-+ [44510].param2 = 1,
-+ [44625].file = "net/bluetooth/mgmt.c",
-+ [44625].name = "set_connectable",
-+ [44625].param4 = 1,
-+ [44642].file = "drivers/net/wireless/iwmc3200wifi/commands.c",
-+ [44642].name = "iwm_umac_set_config_var",
-+ [44642].param4 = 1,
-+ [44698].file = "net/sctp/socket.c",
-+ [44698].name = "sctp_setsockopt_context",
-+ [44698].param3 = 1,
-+ [4471].file = "fs/ntfs/malloc.h",
-+ [4471].name = "__ntfs_malloc",
-+ [4471].param1 = 1,
-+ [44773].file = "drivers/staging/vme/devices/vme_user.c",
-+ [44773].name = "vme_user_write",
-+ [44773].param3 = 1,
-+ [44825].file = "drivers/scsi/osd/osd_initiator.c",
-+ [44825].name = "_osd_realloc_seg",
-+ [44825].param3 = 1,
-+ [44852].file = "net/sctp/socket.c",
-+ [44852].name = "sctp_setsockopt_rtoinfo",
-+ [44852].param3 = 1,
-+ [44936].file = "drivers/md/dm-raid.c",
-+ [44936].name = "context_alloc",
-+ [44936].param3 = 1,
-+ [44943].file = "mm/util.c",
-+ [44943].name = "kmemdup",
-+ [44943].param2 = 1,
-+ [44946].file = "net/sctp/socket.c",
-+ [44946].name = "sctp_setsockopt_auth_chunk",
-+ [44946].param3 = 1,
-+ [44990].file = "drivers/media/video/pvrusb2/pvrusb2-ioread.c",
-+ [44990].name = "pvr2_ioread_set_sync_key",
-+ [44990].param3 = 1,
-+ [45000].file = "fs/afs/proc.c",
-+ [45000].name = "afs_proc_rootcell_write",
-+ [45000].param3 = 1,
-+ [45117].file = "drivers/staging/winbond/wb35reg.c",
-+ [45117].name = "Wb35Reg_BurstWrite",
-+ [45117].param4 = 1,
-+ [45200].file = "drivers/scsi/scsi_proc.c",
-+ [45200].name = "proc_scsi_write_proc",
-+ [45200].param3 = 1,
-+ [45217].file = "drivers/net/wireless/iwlwifi/iwl-debugfs.c",
-+ [45217].name = "iwl_dbgfs_debug_level_write",
-+ [45217].param3 = 1,
-+ [45233].file = "net/rds/info.c",
-+ [45233].name = "rds_info_getsockopt",
-+ [45233].param3 = 1,
-+ [45326].file = "drivers/mtd/ubi/cdev.c",
-+ [45326].name = "vol_cdev_read",
-+ [45326].param3 = 1,
-+ [45335].file = "fs/read_write.c",
-+ [45335].name = "vfs_writev",
-+ [45335].param3 = 1,
-+ [45366].file = "drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c",
-+ [45366].name = "init_tid_tabs",
-+ [45366].param2 = 1,
-+ [45366].param3 = 1,
-+ [45366].param4 = 1,
-+ [45534].file = "drivers/net/wireless/ath/carl9170/cmd.c",
-+ [45534].name = "carl9170_cmd_buf",
-+ [45534].param3 = 1,
-+ [45576].file = "net/netfilter/xt_recent.c",
-+ [45576].name = "recent_mt_proc_write",
-+ [45576].param3 = 1,
-+ [45583].file = "fs/gfs2/dir.c",
-+ [45583].name = "leaf_dealloc",
-+ [45583].param3 = 1,
-+ [45586].file = "drivers/net/wireless/rt2x00/rt2x00debug.c",
-+ [45586].name = "rt2x00debug_write_bbp",
-+ [45586].param3 = 1,
-+ [45629].file = "lib/bch.c",
-+ [45629].name = "bch_alloc",
-+ [45629].param1 = 1,
-+ [45633].file = "drivers/input/evdev.c",
-+ [45633].name = "evdev_do_ioctl",
-+ [45633].param2 = 1,
-+ [45743].file = "drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c",
-+ [45743].name = "qlcnic_alloc_msix_entries",
-+ [45743].param2 = 1,
-+ [45864].file = "drivers/atm/ambassador.c",
-+ [45864].name = "create_queues",
-+ [45864].param2 = 1,
-+ [45864].param3 = 1,
-+ [45930].file = "security/apparmor/apparmorfs.c",
-+ [45930].name = "profile_remove",
-+ [45930].param3 = 1,
-+ [45954].file = "drivers/usb/misc/legousbtower.c",
-+ [45954].name = "tower_write",
-+ [45954].param3 = 1,
-+ [46140].file = "sound/core/memalloc.c",
-+ [46140].name = "snd_mem_proc_write",
-+ [46140].param3 = 1,
-+ [4616].file = "net/sunrpc/cache.c",
-+ [4616].name = "cache_do_downcall",
-+ [4616].param3 = 1,
-+ [46243].file = "fs/binfmt_misc.c",
-+ [46243].name = "bm_register_write",
-+ [46243].param3 = 1,
-+ [46250].file = "fs/xattr.c",
-+ [46250].name = "sys_getxattr",
-+ [46250].param4 = 1,
-+ [46343].file = "fs/compat.c",
-+ [46343].name = "compat_do_readv_writev",
-+ [46343].param4 = 1,
-+ [46400].file = "drivers/staging/sep/sep_driver.c",
-+ [46400].name = "sep_prepare_input_output_dma_table",
-+ [46400].param2 = 1,
-+ [46400].param3 = 1,
-+ [46400].param4 = 1,
-+ [4644].file = "drivers/net/usb/mcs7830.c",
-+ [4644].name = "mcs7830_get_reg",
-+ [4644].param3 = 1,
-+ [46605].file = "sound/core/oss/pcm_oss.c",
-+ [46605].name = "snd_pcm_oss_sync1",
-+ [46605].param2 = 1,
-+ [46630].file = "net/decnet/af_decnet.c",
-+ [46630].name = "__dn_setsockopt",
-+ [46630].param5 = 1,
-+ [46655].file = "drivers/media/video/hdpvr/hdpvr-video.c",
-+ [46655].name = "hdpvr_read",
-+ [46655].param3 = 1,
-+ [46685].file = "drivers/gpu/drm/ttm/ttm_bo_vm.c",
-+ [46685].name = "ttm_bo_fbdev_io",
-+ [46685].param4 = 1,
-+ [46742].file = "drivers/scsi/st.c",
-+ [46742].name = "sgl_map_user_pages",
-+ [46742].param2 = 1,
-+ [46881].file = "drivers/char/lp.c",
-+ [46881].name = "lp_write",
-+ [46881].param3 = 1,
-+ [47130].file = "kernel/kfifo.c",
-+ [47130].name = "kfifo_copy_to_user",
-+ [47130].param3 = 1,
-+ [47265].file = "drivers/scsi/bnx2fc/bnx2fc_io.c",
-+ [47265].name = "bnx2fc_cmd_mgr_alloc",
-+ [47265].param2 = 1,
-+ [47265].param3 = 1,
-+ [47309].file = "drivers/scsi/aic94xx/aic94xx_init.c",
-+ [47309].name = "asd_store_update_bios",
-+ [47309].param4 = 1,
-+ [47342].file = "fs/proc/base.c",
-+ [47342].name = "sched_autogroup_write",
-+ [47342].param3 = 1,
-+ [47363].file = "drivers/input/evdev.c",
-+ [47363].name = "evdev_ioctl_handler",
-+ [47363].param2 = 1,
-+ [47385].file = "drivers/net/wireless/zd1211rw/zd_usb.c",
-+ [47385].name = "zd_usb_iowrite16v",
-+ [47385].param3 = 1,
-+ [4738].file = "drivers/net/wireless/ath/ath6kl/cfg80211.c",
-+ [4738].name = "ath6kl_set_ap_probe_resp_ies",
-+ [4738].param3 = 1,
-+ [47393].file = "drivers/net/wireless/ath/main.c",
-+ [47393].name = "ath_rxbuf_alloc",
-+ [47393].param2 = 1,
-+ [47463].file = "fs/xfs/kmem.c",
-+ [47463].name = "kmem_zalloc",
-+ [47463].param1 = 1,
-+ [47474].file = "kernel/trace/trace.c",
-+ [47474].name = "tracing_buffers_read",
-+ [47474].param3 = 1,
-+ [47636].file = "drivers/usb/class/usblp.c",
-+ [47636].name = "usblp_ioctl",
-+ [47636].param2 = 1,
-+ [47637].file = "drivers/block/cciss.c",
-+ [47637].name = "cciss_proc_write",
-+ [47637].param3 = 1,
-+ [47712].file = "net/sctp/socket.c",
-+ [47712].name = "sctp_setsockopt_maxburst",
-+ [47712].param3 = 1,
-+ [47728].file = "drivers/char/agp/isoch.c",
-+ [47728].name = "agp_3_5_isochronous_node_enable",
-+ [47728].param3 = 1,
-+ [4779].file = "fs/pipe.c",
-+ [4779].name = "pipe_set_size",
-+ [4779].param2 = 1,
-+ [47881].file = "security/selinux/selinuxfs.c",
-+ [47881].name = "sel_write_disable",
-+ [47881].param3 = 1,
-+ [48111].file = "net/wireless/sme.c",
-+ [48111].name = "cfg80211_roamed_bss",
-+ [48111].param4 = 1,
-+ [48111].param6 = 1,
-+ [48124].file = "drivers/net/wireless/iwmc3200wifi/main.c",
-+ [48124].name = "iwm_notif_send",
-+ [48124].param6 = 1,
-+ [48155].file = "net/sctp/sm_make_chunk.c",
-+ [48155].name = "sctp_make_abort_user",
-+ [48155].param3 = 1,
-+ [48182].file = "crypto/cryptd.c",
-+ [48182].name = "cryptd_alloc_instance",
-+ [48182].param2 = 1,
-+ [48182].param3 = 1,
-+ [48248].file = "security/keys/keyctl.c",
-+ [48248].name = "keyctl_instantiate_key",
-+ [48248].param3 = 1,
-+ [4829].file = "drivers/block/floppy.c",
-+ [4829].name = "fd_copyout",
-+ [4829].param3 = 1,
-+ [48632].file = "net/bluetooth/l2cap_core.c",
-+ [48632].name = "l2cap_build_cmd",
-+ [48632].param4 = 1,
-+ [48642].file = "fs/hugetlbfs/inode.c",
-+ [48642].name = "hugetlbfs_read",
-+ [48642].param3 = 1,
-+ [48720].file = "drivers/gpu/drm/i915/i915_debugfs.c",
-+ [48720].name = "i915_max_freq_write",
-+ [48720].param3 = 1,
-+ [48768].file = "net/irda/irnet/irnet_ppp.c",
-+ [48768].name = "dev_irnet_write",
-+ [48768].param3 = 1,
-+ [48818].file = "net/sunrpc/svc.c",
-+ [48818].name = "svc_pool_map_alloc_arrays",
-+ [48818].param2 = 1,
-+ [48856].file = "drivers/acpi/acpica/utalloc.c",
-+ [48856].name = "acpi_ut_initialize_buffer",
-+ [48856].param2 = 1,
-+ [48862].file = "net/sctp/socket.c",
-+ [48862].name = "sctp_setsockopt_adaptation_layer",
-+ [48862].param3 = 1,
-+ [49126].file = "lib/prio_heap.c",
-+ [49126].name = "heap_init",
-+ [49126].param2 = 1,
-+ [49143].file = "sound/core/oss/pcm_oss.c",
-+ [49143].name = "snd_pcm_oss_write2",
-+ [49143].param3 = 1,
-+ [49216].file = "fs/read_write.c",
-+ [49216].name = "do_readv_writev",
-+ [49216].param4 = 1,
-+ [49426].file = "net/bluetooth/l2cap_sock.c",
-+ [49426].name = "l2cap_sock_setsockopt_old",
-+ [49426].param4 = 1,
-+ [49448].file = "drivers/isdn/gigaset/common.c",
-+ [49448].name = "gigaset_initdriver",
-+ [49448].param2 = 1,
-+ [49494].file = "drivers/virtio/virtio_ring.c",
-+ [49494].name = "vring_new_virtqueue",
-+ [49494].param1 = 1,
-+ [49499].file = "drivers/block/nvme.c",
-+ [49499].name = "nvme_alloc_iod",
-+ [49499].param1 = 1,
-+ [49510].file = "net/sctp/socket.c",
-+ [49510].name = "sctp_setsockopt_autoclose",
-+ [49510].param3 = 1,
-+ [4958].file = "drivers/net/wireless/p54/fwio.c",
-+ [4958].name = "p54_alloc_skb",
-+ [4958].param3 = 1,
-+ [49604].file = "crypto/af_alg.c",
-+ [49604].name = "alg_setsockopt",
-+ [49604].param5 = 1,
-+ [49646].file = "drivers/tty/vt/vt.c",
-+ [49646].name = "vc_resize",
-+ [49646].param2 = 1,
-+ [49646].param3 = 1,
-+ [49658].file = "drivers/net/wireless/brcm80211/brcmsmac/dma.c",
-+ [49658].name = "dma_attach",
-+ [49658].param6 = 1,
-+ [49658].param7 = 1,
-+ [49663].file = "drivers/media/video/uvc/uvc_driver.c",
-+ [49663].name = "uvc_simplify_fraction",
-+ [49663].param3 = 1,
-+ [49746].file = "net/ipv4/netfilter/arp_tables.c",
-+ [49746].name = "compat_do_arpt_set_ctl",
-+ [49746].param4 = 1,
-+ [49780].file = "net/mac80211/key.c",
-+ [49780].name = "ieee80211_key_alloc",
-+ [49780].param3 = 1,
-+ [49805].file = "drivers/pci/pci.c",
-+ [49805].name = "pci_add_cap_save_buffer",
-+ [49805].param3 = 1,
-+ [49845].file = "mm/vmalloc.c",
-+ [49845].name = "__vmalloc_node",
-+ [49845].param1 = 1,
-+ [49929].file = "drivers/mtd/ubi/cdev.c",
-+ [49929].name = "vol_cdev_direct_write",
-+ [49929].param3 = 1,
-+ [49935].file = "fs/xfs/kmem.c",
-+ [49935].name = "kmem_zalloc_greedy",
-+ [49935].param2 = 1,
-+ [49935].param3 = 1,
-+ [49].file = "net/atm/svc.c",
-+ [49].name = "svc_setsockopt",
-+ [49].param5 = 1,
-+ [50518].file = "drivers/gpu/drm/nouveau/nouveau_gem.c",
-+ [50518].name = "u_memcpya",
-+ [50518].param2 = 1,
-+ [50518].param3 = 1,
-+ [5052].file = "drivers/char/ppdev.c",
-+ [5052].name = "pp_read",
-+ [5052].param3 = 1,
-+ [50562].file = "drivers/media/video/zoran/zoran_procfs.c",
-+ [50562].name = "zoran_write",
-+ [50562].param3 = 1,
-+ [50617].file = "fs/hugetlbfs/inode.c",
-+ [50617].name = "hugetlbfs_read_actor",
-+ [50617].param2 = 1,
-+ [50617].param4 = 1,
-+ [50617].param5 = 1,
-+ [50692].file = "lib/ts_bm.c",
-+ [50692].name = "bm_init",
-+ [50692].param2 = 1,
-+ [50813].file = "mm/vmalloc.c",
-+ [50813].name = "__vmalloc_node_flags",
-+ [50813].param1 = 1,
-+ [5087].file = "drivers/atm/solos-pci.c",
-+ [5087].name = "console_store",
-+ [5087].param4 = 1,
-+ [5102].file = "drivers/usb/misc/usbtest.c",
-+ [5102].name = "usbtest_alloc_urb",
-+ [5102].param3 = 1,
-+ [5102].param5 = 1,
-+ [51061].file = "net/bluetooth/mgmt.c",
-+ [51061].name = "pin_code_reply",
-+ [51061].param4 = 1,
-+ [51139].file = "fs/pipe.c",
-+ [51139].name = "pipe_iov_copy_to_user",
-+ [51139].param3 = 1,
-+ [51177].file = "net/sunrpc/xprtrdma/transport.c",
-+ [51177].name = "xprt_rdma_allocate",
-+ [51177].param2 = 1,
-+ [51182].file = "drivers/misc/sgi-xp/xpc_main.c",
-+ [51182].name = "xpc_kzalloc_cacheline_aligned",
-+ [51182].param1 = 1,
-+ [51250].file = "fs/read_write.c",
-+ [51250].name = "rw_copy_check_uvector",
-+ [51250].param3 = 1,
-+ [51253].file = "drivers/net/wireless/rt2x00/rt2x00debug.c",
-+ [51253].name = "rt2x00debug_write_eeprom",
-+ [51253].param3 = 1,
-+ [51323].file = "sound/pci/ac97/ac97_pcm.c",
-+ [51323].name = "snd_ac97_pcm_assign",
-+ [51323].param2 = 1,
-+ [51340].file = "drivers/usb/class/usblp.c",
-+ [51340].name = "usblp_write",
-+ [51340].param3 = 1,
-+ [51499].file = "net/802/garp.c",
-+ [51499].name = "garp_attr_create",
-+ [51499].param3 = 1,
-+ [51842].file = "drivers/hid/hid-core.c",
-+ [51842].name = "hid_register_field",
-+ [51842].param2 = 1,
-+ [51842].param3 = 1,
-+ [5197].file = "net/core/dev.c",
-+ [5197].name = "dev_set_alias",
-+ [5197].param3 = 1,
-+ [5204].file = "drivers/media/video/usbvision/usbvision-video.c",
-+ [5204].name = "usbvision_v4l2_read",
-+ [5204].param3 = 1,
-+ [5206].file = "drivers/media/dvb/ttpci/av7110_v4l.c",
-+ [5206].name = "av7110_vbi_write",
-+ [5206].param3 = 1,
-+ [52086].file = "drivers/usb/image/mdc800.c",
-+ [52086].name = "mdc800_device_read",
-+ [52086].param3 = 1,
-+ [52099].file = "drivers/gpu/drm/vmwgfx/vmwgfx_kms.c",
-+ [52099].name = "do_surface_dirty_sou",
-+ [52099].param7 = 1,
-+ [52172].file = "drivers/pcmcia/cistpl.c",
-+ [52172].name = "pccard_store_cis",
-+ [52172].param6 = 1,
-+ [52173].file = "drivers/misc/ibmasm/ibmasmfs.c",
-+ [52173].name = "remote_settings_file_write",
-+ [52173].param3 = 1,
-+ [52199].file = "mm/nobootmem.c",
-+ [52199].name = "__alloc_bootmem",
-+ [52199].param1 = 1,
-+ [52343].file = "drivers/usb/misc/adutux.c",
-+ [52343].name = "adu_read",
-+ [52343].param3 = 1,
-+ [52401].file = "drivers/staging/rtl8712/rtl871x_ioctl_linux.c",
-+ [52401].name = "r871x_set_wpa_ie",
-+ [52401].param3 = 1,
-+ [52699].file = "lib/ts_fsm.c",
-+ [52699].name = "fsm_init",
-+ [52699].param2 = 1,
-+ [52721].file = "security/keys/encrypted-keys/encrypted.c",
-+ [52721].name = "encrypted_instantiate",
-+ [52721].param3 = 1,
-+ [52902].file = "fs/xfs/kmem.h",
-+ [52902].name = "kmem_zalloc_large",
-+ [52902].param1 = 1,
-+ [52950].file = "net/bluetooth/mgmt.c",
-+ [52950].name = "set_discoverable",
-+ [52950].param4 = 1,
-+ [53041].file = "fs/libfs.c",
-+ [53041].name = "simple_transaction_get",
-+ [53041].param3 = 1,
-+ [5313].file = "fs/gfs2/quota.c",
-+ [5313].name = "do_sync",
-+ [5313].param1 = 1,
-+ [53209].file = "drivers/usb/host/ehci-sched.c",
-+ [53209].name = "iso_sched_alloc",
-+ [53209].param1 = 1,
-+ [53302].file = "drivers/firewire/core-cdev.c",
-+ [53302].name = "dispatch_ioctl",
-+ [53302].param2 = 1,
-+ [53355].file = "fs/ceph/dir.c",
-+ [53355].name = "ceph_read_dir",
-+ [53355].param3 = 1,
-+ [53405].file = "drivers/media/video/videobuf-core.c",
-+ [53405].name = "__videobuf_copy_to_user",
-+ [53405].param4 = 1,
-+ [53407].file = "net/wireless/sme.c",
-+ [53407].name = "cfg80211_connect_result",
-+ [53407].param4 = 1,
-+ [53407].param6 = 1,
-+ [53426].file = "fs/libfs.c",
-+ [53426].name = "simple_transaction_read",
-+ [53426].param3 = 1,
-+ [5344].file = "security/selinux/ss/hashtab.c",
-+ [5344].name = "hashtab_create",
-+ [5344].param3 = 1,
-+ [53513].file = "drivers/mmc/core/mmc_ops.c",
-+ [53513].name = "mmc_send_bus_test",
-+ [53513].param4 = 1,
-+ [53626].file = "drivers/block/paride/pg.c",
-+ [53626].name = "pg_read",
-+ [53626].param3 = 1,
-+ [53631].file = "mm/util.c",
-+ [53631].name = "memdup_user",
-+ [53631].param2 = 1,
-+ [53674].file = "drivers/media/dvb/ttpci/av7110_ca.c",
-+ [53674].name = "ci_ll_write",
-+ [53674].param4 = 1,
-+ [5389].file = "drivers/infiniband/core/uverbs_cmd.c",
-+ [5389].name = "ib_uverbs_unmarshall_recv",
-+ [5389].param5 = 1,
-+ [53901].file = "net/rds/message.c",
-+ [53901].name = "rds_message_alloc",
-+ [53901].param1 = 1,
-+ [53902].file = "net/sctp/socket.c",
-+ [53902].name = "sctp_setsockopt_initmsg",
-+ [53902].param3 = 1,
-+ [5410].file = "kernel/kexec.c",
-+ [5410].name = "sys_kexec_load",
-+ [5410].param2 = 1,
-+ [54172].file = "net/nfc/core.c",
-+ [54172].name = "nfc_alloc_recv_skb",
-+ [54172].param1 = 1,
-+ [54182].file = "drivers/block/rbd.c",
-+ [54182].name = "rbd_snap_add",
-+ [54182].param4 = 1,
-+ [54201].file = "drivers/platform/x86/asus_acpi.c",
-+ [54201].name = "mled_proc_write",
-+ [54201].param3 = 1,
-+ [54263].file = "security/keys/trusted.c",
-+ [54263].name = "trusted_instantiate",
-+ [54263].param3 = 1,
-+ [54296].file = "include/linux/mISDNif.h",
-+ [54296].name = "_alloc_mISDN_skb",
-+ [54296].param3 = 1,
-+ [54298].file = "drivers/usb/wusbcore/crypto.c",
-+ [54298].name = "wusb_ccm_mac",
-+ [54298].param7 = 1,
-+ [54318].file = "include/drm/drm_mem_util.h",
-+ [54318].name = "drm_malloc_ab",
-+ [54318].param1 = 1,
-+ [54318].param2 = 1,
-+ [54335].file = "drivers/md/dm-table.c",
-+ [54335].name = "dm_vcalloc",
-+ [54335].param1 = 1,
-+ [54335].param2 = 1,
-+ [54338].file = "fs/ntfs/malloc.h",
-+ [54338].name = "ntfs_malloc_nofs",
-+ [54338].param1 = 1,
-+ [54339].file = "security/smack/smackfs.c",
-+ [54339].name = "smk_write_cipso",
-+ [54339].param3 = 1,
-+ [54369].file = "drivers/usb/storage/realtek_cr.c",
-+ [54369].name = "rts51x_read_mem",
-+ [54369].param4 = 1,
-+ [5438].file = "sound/core/memory.c",
-+ [5438].name = "copy_to_user_fromio",
-+ [5438].param3 = 1,
-+ [54401].file = "lib/dynamic_debug.c",
-+ [54401].name = "ddebug_proc_write",
-+ [54401].param3 = 1,
-+ [54467].file = "net/packet/af_packet.c",
-+ [54467].name = "packet_setsockopt",
-+ [54467].param5 = 1,
-+ [54573].file = "ipc/sem.c",
-+ [54573].name = "sys_semop",
-+ [54573].param3 = 1,
-+ [54583].file = "net/sctp/socket.c",
-+ [54583].name = "sctp_setsockopt_peer_addr_params",
-+ [54583].param3 = 1,
-+ [54643].file = "drivers/isdn/hardware/eicon/divasi.c",
-+ [54643].name = "um_idi_write",
-+ [54643].param3 = 1,
-+ [54657].file = "mm/migrate.c",
-+ [54657].name = "do_pages_stat",
-+ [54657].param2 = 1,
-+ [54663].file = "drivers/isdn/hardware/eicon/platform.h",
-+ [54663].name = "diva_os_malloc",
-+ [54663].param2 = 1,
-+ [54701].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [54701].name = "altera_swap_ir",
-+ [54701].param2 = 1,
-+ [54751].file = "drivers/infiniband/core/device.c",
-+ [54751].name = "ib_alloc_device",
-+ [54751].param1 = 1,
-+ [54771].file = "drivers/isdn/mISDN/socket.c",
-+ [54771].name = "_l2_alloc_skb",
-+ [54771].param1 = 1,
-+ [54777].file = "drivers/net/wireless/ath/ath6kl/debug.c",
-+ [54777].name = "ath6kl_debug_roam_tbl_event",
-+ [54777].param3 = 1,
-+ [54806].file = "drivers/scsi/lpfc/lpfc_debugfs.c",
-+ [54806].name = "lpfc_debugfs_dif_err_write",
-+ [54806].param3 = 1,
-+ [5494].file = "fs/cifs/cifsacl.c",
-+ [5494].name = "cifs_idmap_key_instantiate",
-+ [5494].param3 = 1,
-+ [55066].file = "net/ipv6/ipv6_sockglue.c",
-+ [55066].name = "do_ipv6_setsockopt",
-+ [55066].param5 = 1,
-+ [55105].file = "drivers/base/devres.c",
-+ [55105].name = "devres_alloc",
-+ [55105].param2 = 1,
-+ [55115].file = "net/sctp/probe.c",
-+ [55115].name = "sctpprobe_read",
-+ [55115].param3 = 1,
-+ [55155].file = "net/bluetooth/rfcomm/sock.c",
-+ [55155].name = "rfcomm_sock_setsockopt",
-+ [55155].param5 = 1,
-+ [55187].file = "security/keys/keyctl.c",
-+ [55187].name = "keyctl_describe_key",
-+ [55187].param3 = 1,
-+ [55253].file = "drivers/net/wireless/ray_cs.c",
-+ [55253].name = "ray_cs_essid_proc_write",
-+ [55253].param3 = 1,
-+ [55341].file = "drivers/staging/sep/sep_driver.c",
-+ [55341].name = "sep_prepare_input_output_dma_table_in_dcb",
-+ [55341].param4 = 1,
-+ [55341].param5 = 1,
-+ [55417].file = "drivers/hv/channel.c",
-+ [55417].name = "vmbus_open",
-+ [55417].param2 = 1,
-+ [55417].param3 = 1,
-+ [5548].file = "drivers/media/media-entity.c",
-+ [5548].name = "media_entity_init",
-+ [5548].param2 = 1,
-+ [5548].param4 = 1,
-+ [55546].file = "drivers/spi/spi.c",
-+ [55546].name = "spi_alloc_master",
-+ [55546].param2 = 1,
-+ [55580].file = "drivers/usb/mon/mon_bin.c",
-+ [55580].name = "copy_from_buf",
-+ [55580].param2 = 1,
-+ [55584].file = "drivers/tty/tty_buffer.c",
-+ [55584].name = "tty_buffer_alloc",
-+ [55584].param2 = 1,
-+ [55712].file = "drivers/char/mem.c",
-+ [55712].name = "read_zero",
-+ [55712].param3 = 1,
-+ [55727].file = "drivers/media/video/stk-webcam.c",
-+ [55727].name = "stk_prepare_sio_buffers",
-+ [55727].param2 = 1,
-+ [55816].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [55816].name = "altera_set_ir_pre",
-+ [55816].param2 = 1,
-+ [55826].file = "drivers/infiniband/hw/ipath/ipath_file_ops.c",
-+ [55826].name = "ipath_get_base_info",
-+ [55826].param3 = 1,
-+ [5586].file = "net/atm/common.c",
-+ [5586].name = "alloc_tx",
-+ [5586].param2 = 1,
-+ [55978].file = "drivers/usb/misc/iowarrior.c",
-+ [55978].name = "iowarrior_write",
-+ [55978].param3 = 1,
-+ [56170].file = "drivers/usb/wusbcore/wa-xfer.c",
-+ [56170].name = "__wa_xfer_setup_segs",
-+ [56170].param2 = 1,
-+ [56199].file = "fs/binfmt_misc.c",
-+ [56199].name = "parse_command",
-+ [56199].param2 = 1,
-+ [56218].file = "drivers/mmc/card/mmc_test.c",
-+ [56218].name = "mtf_test_write",
-+ [56218].param3 = 1,
-+ [56239].file = "fs/sysfs/file.c",
-+ [56239].name = "fill_write_buffer",
-+ [56239].param3 = 1,
-+ [5624].file = "drivers/net/wireless/ath/ath9k/wmi.c",
-+ [5624].name = "ath9k_wmi_cmd",
-+ [5624].param4 = 1,
-+ [56416].file = "drivers/misc/lkdtm.c",
-+ [56416].name = "do_register_entry",
-+ [56416].param4 = 1,
-+ [56458].file = "drivers/usb/host/hwa-hc.c",
-+ [56458].name = "__hwahc_op_set_ptk",
-+ [56458].param5 = 1,
-+ [56471].file = "include/linux/slab.h",
-+ [56471].name = "kcalloc",
-+ [56471].param1 = 1,
-+ [56471].param2 = 1,
-+ [56513].file = "fs/cifs/connect.c",
-+ [56513].name = "cifs_readv_from_socket",
-+ [56513].param3 = 1,
-+ [56531].file = "net/bluetooth/l2cap_core.c",
-+ [56531].name = "l2cap_send_cmd",
-+ [56531].param4 = 1,
-+ [56544].file = "drivers/block/drbd/drbd_receiver.c",
-+ [56544].name = "receive_DataRequest",
-+ [56544].param3 = 1,
-+ [56609].file = "lib/mpi/mpi-internal.h",
-+ [56609].name = "RESIZE_IF_NEEDED",
-+ [56609].param2 = 1,
-+ [56652].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [56652].name = "altera_set_dr_post",
-+ [56652].param2 = 1,
-+ [56653].file = "net/irda/af_irda.c",
-+ [56653].name = "irda_setsockopt",
-+ [56653].param5 = 1,
-+ [56672].file = "drivers/char/agp/generic.c",
-+ [56672].name = "agp_alloc_page_array",
-+ [56672].param1 = 1,
-+ [56798].file = "fs/bio.c",
-+ [56798].name = "bio_alloc_map_data",
-+ [56798].param2 = 1,
-+ [56843].file = "drivers/scsi/scsi_transport_iscsi.c",
-+ [56843].name = "iscsi_recv_pdu",
-+ [56843].param4 = 1,
-+ [56903].file = "drivers/mtd/mtdchar.c",
-+ [56903].name = "mtdchar_readoob",
-+ [56903].param4 = 1,
-+ [5699].file = "net/sctp/socket.c",
-+ [5699].name = "sctp_setsockopt_default_send_param",
-+ [5699].param3 = 1,
-+ [5704].file = "drivers/mtd/mtdswap.c",
-+ [5704].name = "mtdswap_init",
-+ [5704].param2 = 1,
-+ [57128].file = "drivers/pnp/pnpbios/proc.c",
-+ [57128].name = "pnpbios_proc_write",
-+ [57128].param3 = 1,
-+ [57190].file = "drivers/char/agp/generic.c",
-+ [57190].name = "agp_generic_alloc_user",
-+ [57190].param1 = 1,
-+ [57252].file = "drivers/media/dvb/dvb-core/dmxdev.c",
-+ [57252].name = "dvb_dmxdev_set_buffer_size",
-+ [57252].param2 = 1,
-+ [57392].file = "drivers/block/aoe/aoecmd.c",
-+ [57392].name = "new_skb",
-+ [57392].param1 = 1,
-+ [57471].file = "drivers/media/video/sn9c102/sn9c102_core.c",
-+ [57471].name = "sn9c102_read",
-+ [57471].param3 = 1,
-+ [57547].file = "security/keys/encrypted-keys/encrypted.c",
-+ [57547].name = "get_derived_key",
-+ [57547].param4 = 1,
-+ [57552].file = "net/sunrpc/cache.c",
-+ [57552].name = "cache_slow_downcall",
-+ [57552].param2 = 1,
-+ [57670].file = "drivers/bluetooth/btmrvl_debugfs.c",
-+ [57670].name = "btmrvl_pscmd_write",
-+ [57670].param3 = 1,
-+ [57710].file = "include/linux/usb/wusb.h",
-+ [57710].name = "wusb_prf_256",
-+ [57710].param7 = 1,
-+ [57724].file = "net/bluetooth/hci_sock.c",
-+ [57724].name = "hci_sock_setsockopt",
-+ [57724].param5 = 1,
-+ [57761].file = "kernel/kexec.c",
-+ [57761].name = "kimage_crash_alloc",
-+ [57761].param3 = 1,
-+ [57786].file = "net/ipv6/netfilter/ip6_tables.c",
-+ [57786].name = "compat_do_ip6t_set_ctl",
-+ [57786].param4 = 1,
-+ [57872].file = "fs/ceph/xattr.c",
-+ [57872].name = "ceph_setxattr",
-+ [57872].param4 = 1,
-+ [57927].file = "fs/read_write.c",
-+ [57927].name = "sys_preadv",
-+ [57927].param3 = 1,
-+ [58012].file = "include/net/bluetooth/bluetooth.h",
-+ [58012].name = "bt_skb_alloc",
-+ [58012].param1 = 1,
-+ [58020].file = "drivers/firewire/core-cdev.c",
-+ [58020].name = "fw_device_op_ioctl",
-+ [58020].param2 = 1,
-+ [58043].file = "kernel/auditfilter.c",
-+ [58043].name = "audit_unpack_string",
-+ [58043].param3 = 1,
-+ [58087].file = "kernel/module.c",
-+ [58087].name = "module_alloc_update_bounds_rw",
-+ [58087].param1 = 1,
-+ [58124].file = "drivers/usb/misc/usbtest.c",
-+ [58124].name = "ctrl_out",
-+ [58124].param3 = 1,
-+ [58124].param5 = 1,
-+ [58217].file = "net/sctp/socket.c",
-+ [58217].name = "sctp_setsockopt_peer_primary_addr",
-+ [58217].param3 = 1,
-+ [58263].file = "security/keys/keyring.c",
-+ [58263].name = "keyring_read",
-+ [58263].param3 = 1,
-+ [5830].file = "drivers/gpu/vga/vga_switcheroo.c",
-+ [5830].name = "vga_switcheroo_debugfs_write",
-+ [5830].param3 = 1,
-+ [58320].file = "drivers/scsi/scsi_proc.c",
-+ [58320].name = "proc_scsi_write",
-+ [58320].param3 = 1,
-+ [58344].file = "net/sunrpc/cache.c",
-+ [58344].name = "read_flush",
-+ [58344].param3 = 1,
-+ [58379].file = "mm/nobootmem.c",
-+ [58379].name = "__alloc_bootmem_node",
-+ [58379].param2 = 1,
-+ [58597].file = "kernel/kfifo.c",
-+ [58597].name = "__kfifo_to_user",
-+ [58597].param3 = 1,
-+ [58641].file = "drivers/usb/misc/adutux.c",
-+ [58641].name = "adu_write",
-+ [58641].param3 = 1,
-+ [58709].file = "fs/compat.c",
-+ [58709].name = "compat_sys_pwritev",
-+ [58709].param3 = 1,
-+ [58769].file = "drivers/net/wireless/zd1211rw/zd_usb.c",
-+ [58769].name = "zd_usb_read_fw",
-+ [58769].param4 = 1,
-+ [5876].file = "drivers/net/ppp/ppp_generic.c",
-+ [5876].name = "ppp_write",
-+ [5876].param3 = 1,
-+ [58826].file = "net/sunrpc/xprt.c",
-+ [58826].name = "xprt_alloc",
-+ [58826].param2 = 1,
-+ [58865].file = "include/linux/slub_def.h",
-+ [58865].name = "kmalloc_order_trace",
-+ [58865].param1 = 1,
-+ [58867].file = "drivers/platform/x86/asus_acpi.c",
-+ [58867].name = "wled_proc_write",
-+ [58867].param3 = 1,
-+ [58888].file = "fs/xattr.c",
-+ [58888].name = "listxattr",
-+ [58888].param3 = 1,
-+ [58889].file = "kernel/trace/trace_kprobe.c",
-+ [58889].name = "probes_write",
-+ [58889].param3 = 1,
-+ [58912].file = "drivers/lguest/core.c",
-+ [58912].name = "__lgwrite",
-+ [58912].param4 = 1,
-+ [58918].file = "sound/core/pcm_native.c",
-+ [58918].name = "snd_pcm_aio_write",
-+ [58918].param3 = 1,
-+ [58942].file = "drivers/block/aoe/aoedev.c",
-+ [58942].name = "aoedev_flush",
-+ [58942].param2 = 1,
-+ [58958].file = "fs/fuse/control.c",
-+ [58958].name = "fuse_conn_limit_write",
-+ [58958].param3 = 1,
-+ [59005].file = "drivers/staging/sep/sep_driver.c",
-+ [59005].name = "sep_prepare_input_dma_table",
-+ [59005].param2 = 1,
-+ [59005].param3 = 1,
-+ [59013].file = "fs/xfs/xfs_ioctl.c",
-+ [59013].name = "xfs_handle_to_dentry",
-+ [59013].param3 = 1,
-+ [59034].file = "drivers/acpi/acpica/dsobject.c",
-+ [59034].name = "acpi_ds_build_internal_package_obj",
-+ [59034].param3 = 1,
-+ [59073].file = "drivers/staging/speakup/i18n.c",
-+ [59073].name = "msg_set",
-+ [59073].param3 = 1,
-+ [59074].file = "drivers/scsi/cxgbi/libcxgbi.c",
-+ [59074].name = "ddp_make_gl",
-+ [59074].param1 = 1,
-+ [59297].file = "drivers/media/dvb/ttpci/av7110_av.c",
-+ [59297].name = "dvb_play",
-+ [59297].param3 = 1,
-+ [59472].file = "drivers/misc/ibmasm/ibmasmfs.c",
-+ [59472].name = "command_file_write",
-+ [59472].param3 = 1,
-+ [59504].file = "fs/exofs/super.c",
-+ [59504].name = "__alloc_dev_table",
-+ [59504].param2 = 1,
-+ [59505].file = "drivers/media/video/pvrusb2/pvrusb2-ioread.c",
-+ [59505].name = "pvr2_ioread_read",
-+ [59505].param3 = 1,
-+ [59681].file = "fs/xfs/kmem.c",
-+ [59681].name = "kmem_alloc",
-+ [59681].param1 = 1,
-+ [5968].file = "net/sunrpc/sched.c",
-+ [5968].name = "rpc_malloc",
-+ [5968].param2 = 1,
-+ [59695].file = "net/ipv4/netfilter/ipt_ULOG.c",
-+ [59695].name = "ulog_alloc_skb",
-+ [59695].param1 = 1,
-+ [59838].file = "net/netlink/af_netlink.c",
-+ [59838].name = "nl_pid_hash_zalloc",
-+ [59838].param1 = 1,
-+ [59856].file = "drivers/base/devres.c",
-+ [59856].name = "devm_kzalloc",
-+ [59856].param2 = 1,
-+ [60066].file = "mm/filemap.c",
-+ [60066].name = "iov_iter_copy_from_user",
-+ [60066].param4 = 1,
-+ [60185].file = "kernel/params.c",
-+ [60185].name = "kmalloc_parameter",
-+ [60185].param1 = 1,
-+ [60198].file = "fs/nfs/nfs4proc.c",
-+ [60198].name = "nfs4_write_cached_acl",
-+ [60198].param3 = 1,
-+ [60330].file = "drivers/media/video/w9966.c",
-+ [60330].name = "w9966_v4l_read",
-+ [60330].param3 = 1,
-+ [604].file = "drivers/staging/rtl8712/usb_ops_linux.c",
-+ [604].name = "r8712_usbctrl_vendorreq",
-+ [604].param6 = 1,
-+ [60543].file = "drivers/usb/class/usbtmc.c",
-+ [60543].name = "usbtmc_read",
-+ [60543].param3 = 1,
-+ [60683].file = "sound/drivers/opl4/opl4_proc.c",
-+ [60683].name = "snd_opl4_mem_proc_write",
-+ [60683].param5 = 1,
-+ [60693].file = "drivers/misc/hpilo.c",
-+ [60693].name = "ilo_read",
-+ [60693].param3 = 1,
-+ [60744].file = "sound/pci/emu10k1/emuproc.c",
-+ [60744].name = "snd_emu10k1_fx8010_read",
-+ [60744].param5 = 1,
-+ [60777].file = "fs/ntfs/malloc.h",
-+ [60777].name = "ntfs_malloc_nofs_nofail",
-+ [60777].param1 = 1,
-+ [60833].file = "drivers/block/aoe/aoenet.c",
-+ [60833].name = "set_aoe_iflist",
-+ [60833].param2 = 1,
-+ [60882].file = "drivers/input/joydev.c",
-+ [60882].name = "joydev_compat_ioctl",
-+ [60882].param2 = 1,
-+ [60891].file = "kernel/sched/core.c",
-+ [60891].name = "sys_sched_setaffinity",
-+ [60891].param2 = 1,
-+ [60920].file = "drivers/infiniband/hw/qib/qib_file_ops.c",
-+ [60920].name = "qib_get_base_info",
-+ [60920].param3 = 1,
-+ [60928].file = "drivers/staging/bcm/Bcmchar.c",
-+ [60928].name = "bcm_char_read",
-+ [60928].param3 = 1,
-+ [61122].file = "drivers/base/devres.c",
-+ [61122].name = "alloc_dr",
-+ [61122].param2 = 1,
-+ [61254].file = "drivers/scsi/scsi_devinfo.c",
-+ [61254].name = "proc_scsi_devinfo_write",
-+ [61254].param3 = 1,
-+ [61283].file = "drivers/net/wireless/ath/ath6kl/debug.c",
-+ [61283].name = "ath6kl_fwlog_read",
-+ [61283].param3 = 1,
-+ [61289].file = "security/apparmor/apparmorfs.c",
-+ [61289].name = "aa_simple_write_to_buffer",
-+ [61289].param4 = 1,
-+ [61389].file = "include/linux/slab.h",
-+ [61389].name = "kzalloc_node",
-+ [61389].param1 = 1,
-+ [61441].file = "fs/ntfs/file.c",
-+ [61441].name = "ntfs_copy_from_user_iovec",
-+ [61441].param3 = 1,
-+ [61441].param6 = 1,
-+ [61552].file = "drivers/input/evdev.c",
-+ [61552].name = "str_to_user",
-+ [61552].param2 = 1,
-+ [61673].file = "security/keys/trusted.c",
-+ [61673].name = "trusted_update",
-+ [61673].param3 = 1,
-+ [61676].file = "kernel/module.c",
-+ [61676].name = "module_alloc_update_bounds_rx",
-+ [61676].param1 = 1,
-+ [61684].file = "drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c",
-+ [61684].name = "cxgb3_get_cpl_reply_skb",
-+ [61684].param2 = 1,
-+ [6173].file = "net/netlink/af_netlink.c",
-+ [6173].name = "netlink_sendmsg",
-+ [6173].param4 = 1,
-+ [61770].file = "drivers/media/video/et61x251/et61x251_core.c",
-+ [61770].name = "et61x251_read",
-+ [61770].param3 = 1,
-+ [61772].file = "fs/exofs/ore_raid.c",
-+ [61772].name = "_sp2d_alloc",
-+ [61772].param1 = 1,
-+ [61772].param2 = 1,
-+ [61772].param3 = 1,
-+ [61926].file = "drivers/media/dvb/ddbridge/ddbridge-core.c",
-+ [61926].name = "ddb_input_read",
-+ [61926].param3 = 1,
-+ [61932].file = "drivers/message/fusion/mptctl.c",
-+ [61932].name = "__mptctl_ioctl",
-+ [61932].param2 = 1,
-+ [61966].file = "fs/nfs/nfs4proc.c",
-+ [61966].name = "nfs4_alloc_slots",
-+ [61966].param1 = 1,
-+ [62081].file = "drivers/net/irda/vlsi_ir.c",
-+ [62081].name = "vlsi_alloc_ring",
-+ [62081].param3 = 1,
-+ [62081].param4 = 1,
-+ [62116].file = "fs/libfs.c",
-+ [62116].name = "simple_attr_read",
-+ [62116].param3 = 1,
-+ [6211].file = "drivers/net/ethernet/amd/pcnet32.c",
-+ [6211].name = "pcnet32_realloc_tx_ring",
-+ [6211].param3 = 1,
-+ [62294].file = "sound/core/info.c",
-+ [62294].name = "resize_info_buffer",
-+ [62294].param2 = 1,
-+ [62387].file = "fs/nfs/idmap.c",
-+ [62387].name = "nfs_idmap_lookup_id",
-+ [62387].param2 = 1,
-+ [62465].file = "drivers/misc/altera-stapl/altera-jtag.c",
-+ [62465].name = "altera_set_dr_pre",
-+ [62465].param2 = 1,
-+ [62466].file = "lib/mpi/mpiutil.c",
-+ [62466].name = "mpi_alloc",
-+ [62466].param1 = 1,
-+ [62495].file = "drivers/block/floppy.c",
-+ [62495].name = "fallback_on_nodma_alloc",
-+ [62495].param2 = 1,
-+ [62498].file = "fs/xattr.c",
-+ [62498].name = "sys_listxattr",
-+ [62498].param3 = 1,
-+ [625].file = "fs/read_write.c",
-+ [625].name = "sys_pwritev",
-+ [625].param3 = 1,
-+ [62662].file = "drivers/message/fusion/mptctl.c",
-+ [62662].name = "mptctl_getiocinfo",
-+ [62662].param2 = 1,
-+ [62669].file = "drivers/platform/x86/asus_acpi.c",
-+ [62669].name = "tled_proc_write",
-+ [62669].param3 = 1,
-+ [62714].file = "security/keys/keyctl.c",
-+ [62714].name = "keyctl_update_key",
-+ [62714].param3 = 1,
-+ [62760].file = "drivers/media/dvb/ttpci/av7110_av.c",
-+ [62760].name = "play_iframe",
-+ [62760].param3 = 1,
-+ [62851].file = "fs/proc/vmcore.c",
-+ [62851].name = "read_vmcore",
-+ [62851].param3 = 1,
-+ [62870].file = "fs/nfs/idmap.c",
-+ [62870].name = "nfs_idmap_get_desc",
-+ [62870].param2 = 1,
-+ [62870].param4 = 1,
-+ [62905].file = "net/caif/cfpkt_skbuff.c",
-+ [62905].name = "cfpkt_create",
-+ [62905].param1 = 1,
-+ [62920].file = "drivers/net/wireless/b43/phy_n.c",
-+ [62920].name = "b43_nphy_load_samples",
-+ [62920].param3 = 1,
-+ [62925].file = "include/rdma/ib_verbs.h",
-+ [62925].name = "ib_copy_from_udata",
-+ [62925].param3 = 1,
-+ [62934].file = "drivers/net/wireless/wl1251/cmd.c",
-+ [62934].name = "wl1251_cmd_template_set",
-+ [62934].param4 = 1,
-+ [62940].file = "drivers/scsi/libsrp.c",
-+ [62940].name = "srp_ring_alloc",
-+ [62940].param2 = 1,
-+ [62967].file = "security/keys/encrypted-keys/encrypted.c",
-+ [62967].name = "encrypted_update",
-+ [62967].param3 = 1,
-+ [62970].file = "net/sched/sch_api.c",
-+ [62970].name = "qdisc_class_hash_alloc",
-+ [62970].param1 = 1,
-+ [62999].file = "net/core/neighbour.c",
-+ [62999].name = "neigh_hash_alloc",
-+ [62999].param1 = 1,
-+ [63007].file = "fs/proc/base.c",
-+ [63007].name = "proc_coredump_filter_write",
-+ [63007].param3 = 1,
-+ [63010].file = "drivers/gpu/drm/ttm/ttm_page_alloc.c",
-+ [63010].name = "ttm_page_pool_free",
-+ [63010].param2 = 1,
-+ [63045].file = "crypto/shash.c",
-+ [63045].name = "shash_setkey_unaligned",
-+ [63045].param3 = 1,
-+ [63075].file = "kernel/relay.c",
-+ [63075].name = "relay_alloc_page_array",
-+ [63075].param1 = 1,
-+ [63076].file = "fs/cifs/xattr.c",
-+ [63076].name = "cifs_setxattr",
-+ [63076].param4 = 1,
-+ [63091].file = "drivers/net/usb/pegasus.c",
-+ [63091].name = "get_registers",
-+ [63091].param3 = 1,
-+ [6331].file = "drivers/atm/solos-pci.c",
-+ [6331].name = "solos_param_store",
-+ [6331].param4 = 1,
-+ [63367].file = "net/netfilter/ipset/ip_set_core.c",
-+ [63367].name = "ip_set_alloc",
-+ [63367].param1 = 1,
-+ [63489].file = "drivers/bluetooth/btmrvl_debugfs.c",
-+ [63489].name = "btmrvl_hscfgcmd_write",
-+ [63489].param3 = 1,
-+ [63490].file = "crypto/shash.c",
-+ [63490].name = "shash_compat_setkey",
-+ [63490].param3 = 1,
-+ [63605].file = "mm/mempool.c",
-+ [63605].name = "mempool_kmalloc",
-+ [63605].param2 = 1,
-+ [63633].file = "drivers/bluetooth/btmrvl_sdio.c",
-+ [63633].name = "btmrvl_sdio_host_to_card",
-+ [63633].param3 = 1,
-+ [63961].file = "fs/xattr.c",
-+ [63961].name = "sys_flistxattr",
-+ [63961].param3 = 1,
-+ [63964].file = "net/sctp/socket.c",
-+ [63964].name = "sctp_setsockopt_maxseg",
-+ [63964].param3 = 1,
-+ [63988].file = "drivers/input/evdev.c",
-+ [63988].name = "evdev_ioctl_compat",
-+ [63988].param2 = 1,
-+ [64055].file = "drivers/media/dvb/ttpci/av7110_av.c",
-+ [64055].name = "dvb_aplay",
-+ [64055].param3 = 1,
-+ [64156].file = "drivers/net/wireless/ath/ath6kl/cfg80211.c",
-+ [64156].name = "ath6kl_mgmt_tx",
-+ [64156].param9 = 1,
-+ [64226].file = "drivers/md/persistent-data/dm-space-map-checker.c",
-+ [64226].name = "ca_extend",
-+ [64226].param2 = 1,
-+ [64227].file = "mm/nobootmem.c",
-+ [64227].name = "__alloc_bootmem_node_nopanic",
-+ [64227].param2 = 1,
-+ [64351].file = "kernel/kfifo.c",
-+ [64351].name = "kfifo_copy_from_user",
-+ [64351].param3 = 1,
-+ [64392].file = "drivers/mmc/core/mmc_ops.c",
-+ [64392].name = "mmc_send_cxd_data",
-+ [64392].param5 = 1,
-+ [64423].file = "kernel/sched/core.c",
-+ [64423].name = "get_user_cpu_mask",
-+ [64423].param2 = 1,
-+ [64432].file = "security/selinux/selinuxfs.c",
-+ [64432].name = "sel_write_create",
-+ [64432].param3 = 1,
-+ [64471].file = "drivers/bluetooth/btmrvl_debugfs.c",
-+ [64471].name = "btmrvl_hscmd_write",
-+ [64471].param3 = 1,
-+ [64667].file = "sound/core/oss/pcm_oss.c",
-+ [64667].name = "snd_pcm_oss_read",
-+ [64667].param3 = 1,
-+ [64689].file = "sound/isa/gus/gus_dram.c",
-+ [64689].name = "snd_gus_dram_read",
-+ [64689].param4 = 1,
-+ [64692].file = "fs/binfmt_misc.c",
-+ [64692].name = "bm_entry_write",
-+ [64692].param3 = 1,
-+ [64705].file = "drivers/staging/iio/accel/sca3000_ring.c",
-+ [64705].name = "sca3000_read_first_n_hw_rb",
-+ [64705].param2 = 1,
-+ [64713].file = "fs/cifs/connect.c",
-+ [64713].name = "extract_hostname",
-+ [64713].param1 = 1,
-+ [64743].file = "fs/ocfs2/dlmfs/dlmfs.c",
-+ [64743].name = "dlmfs_file_read",
-+ [64743].param3 = 1,
-+ [64771].file = "security/keys/encrypted-keys/encrypted.c",
-+ [64771].name = "datablob_format",
-+ [64771].param2 = 1,
-+ [6477].file = "net/bluetooth/mgmt.c",
-+ [6477].name = "mgmt_pending_add",
-+ [6477].param5 = 1,
-+ [64906].file = "drivers/net/wireless/b43legacy/debugfs.c",
-+ [64906].name = "b43legacy_debugfs_write",
-+ [64906].param3 = 1,
-+ [64913].file = "sound/core/oss/pcm_oss.c",
-+ [64913].name = "snd_pcm_oss_write1",
-+ [64913].param3 = 1,
-+ [64961].file = "drivers/spi/spidev.c",
-+ [64961].name = "spidev_ioctl",
-+ [64961].param2 = 1,
-+ [65033].file = "crypto/shash.c",
-+ [65033].name = "shash_async_setkey",
-+ [65033].param3 = 1,
-+ [65093].file = "security/integrity/evm/evm_secfs.c",
-+ [65093].name = "evm_write_key",
-+ [65093].param3 = 1,
-+ [6514].file = "mm/nobootmem.c",
-+ [6514].name = "__alloc_bootmem_low",
-+ [6514].param1 = 1,
-+ [65169].file = "net/core/skbuff.c",
-+ [65169].name = "dev_alloc_skb",
-+ [65169].param1 = 1,
-+ [6517].file = "drivers/md/dm-table.c",
-+ [6517].name = "alloc_targets",
-+ [6517].param2 = 1,
-+ [65205].file = "drivers/input/evdev.c",
-+ [65205].name = "handle_eviocgbit",
-+ [65205].param3 = 1,
-+ [65237].file = "kernel/profile.c",
-+ [65237].name = "read_profile",
-+ [65237].param3 = 1,
-+ [65343].file = "kernel/trace/trace.c",
-+ [65343].name = "tracing_clock_write",
-+ [65343].param3 = 1,
-+ [65345].file = "lib/xz/xz_dec_lzma2.c",
-+ [65345].name = "xz_dec_lzma2_create",
-+ [65345].param2 = 1,
-+ [65409].file = "net/802/garp.c",
-+ [65409].name = "garp_request_join",
-+ [65409].param4 = 1,
-+ [65432].file = "drivers/hid/hid-roccat-kone.c",
-+ [65432].name = "kone_receive",
-+ [65432].param4 = 1,
-+ [65514].file = "drivers/media/video/gspca/t613.c",
-+ [65514].name = "reg_w_ixbuf",
-+ [65514].param4 = 1,
-+ [6551].file = "drivers/usb/host/xhci-mem.c",
-+ [6551].name = "xhci_alloc_stream_info",
-+ [6551].param3 = 1,
-+ [65535].file = "drivers/media/dvb/dvb-usb/opera1.c",
-+ [65535].name = "opera1_xilinx_rw",
-+ [65535].param5 = 1,
-+ [6672].file = "drivers/net/wireless/b43/debugfs.c",
-+ [6672].name = "b43_debugfs_write",
-+ [6672].param3 = 1,
-+ [6691].file = "drivers/acpi/proc.c",
-+ [6691].name = "acpi_system_write_wakeup_device",
-+ [6691].param3 = 1,
-+ [6865].file = "drivers/staging/iio/ring_sw.c",
-+ [6865].name = "iio_read_first_n_sw_rb",
-+ [6865].param2 = 1,
-+ [6867].file = "fs/coda/psdev.c",
-+ [6867].name = "coda_psdev_read",
-+ [6867].param3 = 1,
-+ [6891].file = "drivers/bluetooth/btmrvl_debugfs.c",
-+ [6891].name = "btmrvl_gpiogap_write",
-+ [6891].param3 = 1,
-+ [6944].file = "drivers/ide/ide-proc.c",
-+ [6944].name = "ide_settings_proc_write",
-+ [6944].param3 = 1,
-+ [6950].file = "drivers/isdn/capi/capi.c",
-+ [6950].name = "capi_write",
-+ [6950].param3 = 1,
-+ [697].file = "sound/isa/gus/gus_dram.c",
-+ [697].name = "snd_gus_dram_peek",
-+ [697].param4 = 1,
-+ [7066].file = "security/keys/keyctl.c",
-+ [7066].name = "keyctl_instantiate_key_common",
-+ [7066].param4 = 1,
-+ [7125].file = "include/net/nfc/nci_core.h",
-+ [7125].name = "nci_skb_alloc",
-+ [7125].param2 = 1,
-+ [7129].file = "mm/maccess.c",
-+ [7129].name = "__probe_kernel_read",
-+ [7129].param3 = 1,
-+ [7158].file = "kernel/trace/trace.c",
-+ [7158].name = "tracing_read_pipe",
-+ [7158].param3 = 1,
-+ [720].file = "sound/pci/rme9652/hdsp.c",
-+ [720].name = "snd_hdsp_playback_copy",
-+ [720].param5 = 1,
-+ [7236].file = "drivers/gpu/drm/drm_crtc.c",
-+ [7236].name = "drm_plane_init",
-+ [7236].param6 = 1,
-+ [7411].file = "drivers/vhost/vhost.c",
-+ [7411].name = "__vhost_add_used_n",
-+ [7411].param3 = 1,
-+ [7432].file = "net/bluetooth/mgmt.c",
-+ [7432].name = "mgmt_event",
-+ [7432].param4 = 1,
-+ [7488].file = "security/keys/user_defined.c",
-+ [7488].name = "user_read",
-+ [7488].param3 = 1,
-+ [7551].file = "drivers/input/touchscreen/ad7879-spi.c",
-+ [7551].name = "ad7879_spi_xfer",
-+ [7551].param3 = 1,
-+ [7671].file = "mm/nobootmem.c",
-+ [7671].name = "__alloc_bootmem_node_high",
-+ [7671].param2 = 1,
-+ [7676].file = "drivers/acpi/custom_method.c",
-+ [7676].name = "cm_write",
-+ [7676].param3 = 1,
-+ [7693].file = "net/sctp/socket.c",
-+ [7693].name = "sctp_setsockopt_associnfo",
-+ [7693].param3 = 1,
-+ [7697].file = "security/selinux/selinuxfs.c",
-+ [7697].name = "sel_write_access",
-+ [7697].param3 = 1,
-+ [7843].file = "fs/compat.c",
-+ [7843].name = "compat_sys_readv",
-+ [7843].param3 = 1,
-+ [7883].file = "net/sched/sch_sfq.c",
-+ [7883].name = "sfq_alloc",
-+ [7883].param1 = 1,
-+ [7924].file = "drivers/media/video/cx18/cx18-fileops.c",
-+ [7924].name = "cx18_read_pos",
-+ [7924].param3 = 1,
-+ [7958].file = "drivers/gpu/vga/vgaarb.c",
-+ [7958].name = "vga_arb_write",
-+ [7958].param3 = 1,
-+ [7976].file = "drivers/usb/gadget/rndis.c",
-+ [7976].name = "rndis_add_response",
-+ [7976].param2 = 1,
-+ [7985].file = "net/mac80211/cfg.c",
-+ [7985].name = "ieee80211_mgmt_tx",
-+ [7985].param9 = 1,
-+ [8014].file = "net/netfilter/ipset/ip_set_list_set.c",
-+ [8014].name = "init_list_set",
-+ [8014].param2 = 1,
-+ [8014].param3 = 1,
-+ [8126].file = "sound/soc/soc-core.c",
-+ [8126].name = "codec_reg_read_file",
-+ [8126].param3 = 1,
-+ [8317].file = "security/smack/smackfs.c",
-+ [8317].name = "smk_write_ambient",
-+ [8317].param3 = 1,
-+ [8335].file = "drivers/media/dvb/dvb-core/dmxdev.c",
-+ [8335].name = "dvb_dvr_set_buffer_size",
-+ [8335].param2 = 1,
-+ [8383].file = "kernel/module.c",
-+ [8383].name = "copy_and_check",
-+ [8383].param3 = 1,
-+ [8411].file = "net/caif/cfpkt_skbuff.c",
-+ [8411].name = "cfpkt_append",
-+ [8411].param3 = 1,
-+ [8536].file = "fs/cifs/dns_resolve.c",
-+ [8536].name = "dns_resolve_server_name_to_ip",
-+ [8536].param1 = 1,
-+ [857].file = "drivers/virtio/virtio_ring.c",
-+ [857].name = "virtqueue_add_buf",
-+ [857].param3 = 1,
-+ [857].param4 = 1,
-+ [8650].file = "drivers/gpu/drm/vmwgfx/vmwgfx_kms.c",
-+ [8650].name = "vmw_kms_present",
-+ [8650].param9 = 1,
-+ [8654].file = "drivers/net/wireless/mwifiex/sdio.c",
-+ [8654].name = "mwifiex_alloc_sdio_mpa_buffers",
-+ [8654].param2 = 1,
-+ [8654].param3 = 1,
-+ [865].file = "drivers/base/regmap/regmap-debugfs.c",
-+ [865].name = "regmap_access_read_file",
-+ [865].param3 = 1,
-+ [8663].file = "net/bridge/netfilter/ebtables.c",
-+ [8663].name = "do_update_counters",
-+ [8663].param4 = 1,
-+ [8684].file = "fs/read_write.c",
-+ [8684].name = "sys_writev",
-+ [8684].param3 = 1,
-+ [8699].file = "security/selinux/selinuxfs.c",
-+ [8699].name = "sel_commit_bools_write",
-+ [8699].param3 = 1,
-+ [8764].file = "drivers/usb/core/devio.c",
-+ [8764].name = "usbdev_read",
-+ [8764].param3 = 1,
-+ [8802].file = "fs/dlm/user.c",
-+ [8802].name = "device_write",
-+ [8802].param3 = 1,
-+ [8810].file = "net/mac80211/debugfs_sta.c",
-+ [8810].name = "sta_agg_status_write",
-+ [8810].param3 = 1,
-+ [8815].file = "security/tomoyo/securityfs_if.c",
-+ [8815].name = "tomoyo_write_self",
-+ [8815].param3 = 1,
-+ [8821].file = "net/wireless/sme.c",
-+ [8821].name = "cfg80211_roamed",
-+ [8821].param5 = 1,
-+ [8821].param7 = 1,
-+ [8833].file = "security/selinux/ss/services.c",
-+ [8833].name = "security_context_to_sid",
-+ [8833].param2 = 1,
-+ [8838].file = "lib/mpi/mpi-bit.c",
-+ [8838].name = "mpi_lshift_limbs",
-+ [8838].param2 = 1,
-+ [8851].file = "net/key/af_key.c",
-+ [8851].name = "pfkey_sendmsg",
-+ [8851].param4 = 1,
-+ [8917].file = "net/can/raw.c",
-+ [8917].name = "raw_setsockopt",
-+ [8917].param5 = 1,
-+ [8983].file = "include/linux/skbuff.h",
-+ [8983].name = "alloc_skb",
-+ [8983].param1 = 1,
-+ [9117].file = "drivers/base/regmap/regcache-rbtree.c",
-+ [9117].name = "regcache_rbtree_insert_to_block",
-+ [9117].param5 = 1,
-+ [9226].file = "mm/migrate.c",
-+ [9226].name = "sys_move_pages",
-+ [9226].param2 = 1,
-+ [9304].file = "kernel/auditfilter.c",
-+ [9304].name = "audit_init_entry",
-+ [9304].param1 = 1,
-+ [9317].file = "drivers/usb/wusbcore/wa-nep.c",
-+ [9317].name = "wa_nep_queue",
-+ [9317].param2 = 1,
-+ [9341].file = "drivers/acpi/apei/erst-dbg.c",
-+ [9341].name = "erst_dbg_write",
-+ [9341].param3 = 1,
-+ [9386].file = "fs/exofs/ore.c",
-+ [9386].name = "_ore_get_io_state",
-+ [9386].param3 = 1,
-+ [9386].param4 = 1,
-+ [9386].param5 = 1,
-+ [9538].file = "crypto/blkcipher.c",
-+ [9538].name = "blkcipher_copy_iv",
-+ [9538].param3 = 1,
-+ [9546].file = "drivers/video/fbmem.c",
-+ [9546].name = "fb_write",
-+ [9546].param3 = 1,
-+ [9601].file = "kernel/kfifo.c",
-+ [9601].name = "__kfifo_from_user",
-+ [9601].param3 = 1,
-+ [9618].file = "security/selinux/selinuxfs.c",
-+ [9618].name = "sel_write_bool",
-+ [9618].param3 = 1,
-+ [9768].file = "drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c",
-+ [9768].name = "vmw_execbuf_process",
-+ [9768].param5 = 1,
-+ [9828].file = "drivers/media/dvb/dvb-core/dmxdev.c",
-+ [9828].name = "dvb_demux_do_ioctl",
-+ [9828].param3 = 1,
-+ [9870].file = "net/atm/addr.c",
-+ [9870].name = "atm_get_addr",
-+ [9870].param3 = 1,
-+ [9977].file = "drivers/net/wireless/zd1211rw/zd_usb.c",
-+ [9977].name = "zd_usb_iowrite16v_async",
-+ [9977].param3 = 1,
-+ [16344].collision = 1,
-+ [307].collision = 1,
-+ [31649].collision = 1,
-+ [33040].collision = 1,
-+ [45231].collision = 1,
-+ [60651].collision = 1,
-+};
-diff --git a/tools/gcc/size_overflow_hash2.h b/tools/gcc/size_overflow_hash2.h
+diff --git a/tools/gcc/size_overflow_hash.h b/tools/gcc/size_overflow_hash.h
new file mode 100644
-index 0000000..9ec45ae
+index 0000000..c2eca90
--- /dev/null
-+++ b/tools/gcc/size_overflow_hash2.h
-@@ -0,0 +1,35 @@
-+struct size_overflow_hash size_overflow_hash2[65536] = {
-+ [22224].file = "fs/proc/vmcore.c",
-+ [22224].name = "read_from_oldmem",
-+ [22224].param2 = 1,
-+ [2344].file = "fs/ecryptfs/crypto.c",
-+ [2344].name = "ecryptfs_decode_and_decrypt_filename",
-+ [2344].param5 = 1,
-+ [2515].file = "fs/ecryptfs/crypto.c",
-+ [2515].name = "ecryptfs_copy_filename",
-+ [2515].param4 = 1,
-+ [26518].file = "drivers/gpu/vga/vgaarb.c",
-+ [26518].name = "vga_arb_read",
-+ [26518].param3 = 1,
-+ [30632].file = "drivers/ide/ide-proc.c",
-+ [30632].name = "ide_driver_proc_write",
-+ [30632].param3 = 1,
-+ [39024].file = "lib/scatterlist.c",
-+ [39024].name = "sg_kmalloc",
-+ [39024].param1 = 1,
-+ [50359].file = "kernel/sched/core.c",
-+ [50359].name = "alloc_sched_domains",
-+ [50359].param1 = 1,
-+ [53262].file = "drivers/block/aoe/aoechr.c",
-+ [53262].name = "revalidate",
-+ [53262].param2 = 1,
-+ [56432].file = "drivers/base/regmap/regmap-debugfs.c",
-+ [56432].name = "regmap_map_read_file",
-+ [56432].param3 = 1,
-+ [57500].file = "drivers/spi/spidev.c",
-+ [57500].name = "spidev_write",
-+ [57500].param3 = 1,
-+ [8155].file = "drivers/hv/channel.c",
-+ [8155].name = "vmbus_establish_gpadl",
-+ [8155].param3 = 1,
++++ b/tools/gcc/size_overflow_hash.h
+@@ -0,0 +1,17290 @@
++#define PARAM1 (1U << 1)
++#define PARAM2 (1U << 2)
++#define PARAM3 (1U << 3)
++#define PARAM4 (1U << 4)
++#define PARAM5 (1U << 5)
++#define PARAM6 (1U << 6)
++#define PARAM7 (1U << 7)
++#define PARAM8 (1U << 8)
++#define PARAM9 (1U << 9)
++#define PARAM10 (1U << 10)
++
++struct size_overflow_hash _000001_hash = {
++ .next = NULL,
++ .name = "alloc_dr",
++ .param = PARAM2,
+};
-diff --git a/tools/gcc/size_overflow_plugin.c b/tools/gcc/size_overflow_plugin.c
-new file mode 100644
-index 0000000..4ec0934
---- /dev/null
-+++ b/tools/gcc/size_overflow_plugin.c
-@@ -0,0 +1,1150 @@
-+/*
-+ * Copyright 2011, 2012 by Emese Revfy <re.emese@gmail.com>
-+ * Licensed under the GPL v2, or (at your option) v3
-+ *
-+ * Homepage:
-+ * http://www.grsecurity.net/~ephox/overflow_plugin/
-+ *
-+ * This plugin recomputes expressions of function arguments marked by a size_overflow attribute
-+ * with double integer precision (DImode/TImode for 32/64 bit integer types).
-+ * The recomputed argument is checked against INT_MAX and an event is logged on overflow and the triggering process is killed.
-+ *
-+ * Usage:
-+ * $ gcc -I`gcc -print-file-name=plugin`/include -fPIC -shared -O2 -o size_overflow_plugin.so size_overflow_plugin.c
-+ * $ gcc -fplugin=size_overflow_plugin.so test.c -O2
-+ */
+
-+#include "gcc-plugin.h"
-+#include "config.h"
-+#include "system.h"
-+#include "coretypes.h"
-+#include "tree.h"
-+#include "tree-pass.h"
-+#include "intl.h"
-+#include "plugin-version.h"
-+#include "tm.h"
-+#include "toplev.h"
-+#include "function.h"
-+#include "tree-flow.h"
-+#include "plugin.h"
-+#include "gimple.h"
-+#include "c-common.h"
-+#include "diagnostic.h"
-+#include "cfgloop.h"
++struct size_overflow_hash _000002_hash = {
++ .next = NULL,
++ .name = "__copy_from_user",
++ .param = PARAM3,
++};
+
-+struct size_overflow_hash {
-+ const char *name;
-+ const char *file;
-+ unsigned short collision:1;
-+ unsigned short param1:1;
-+ unsigned short param2:1;
-+ unsigned short param3:1;
-+ unsigned short param4:1;
-+ unsigned short param5:1;
-+ unsigned short param6:1;
-+ unsigned short param7:1;
-+ unsigned short param8:1;
-+ unsigned short param9:1;
-+};
-+
-+#include "size_overflow_hash1.h"
-+#include "size_overflow_hash2.h"
++struct size_overflow_hash _000003_hash = {
++ .next = NULL,
++ .name = "copy_from_user",
++ .param = PARAM3,
++};
+
-+#define __unused __attribute__((__unused__))
-+#define NAME(node) IDENTIFIER_POINTER(DECL_NAME(node))
-+#define NAME_LEN(node) IDENTIFIER_LENGTH(DECL_NAME(node))
-+#define BEFORE_STMT true
-+#define AFTER_STMT false
-+#define CREATE_NEW_VAR NULL_TREE
++struct size_overflow_hash _000004_hash = {
++ .next = NULL,
++ .name = "__copy_from_user_inatomic",
++ .param = PARAM3,
++};
+
-+int plugin_is_GPL_compatible;
-+void debug_gimple_stmt(gimple gs);
++struct size_overflow_hash _000005_hash = {
++ .next = NULL,
++ .name = "__copy_from_user_nocache",
++ .param = PARAM3,
++};
+
-+static tree expand(struct pointer_set_t *visited, bool *potentionally_overflowed, tree var);
-+static tree signed_size_overflow_type;
-+static tree unsigned_size_overflow_type;
-+static tree report_size_overflow_decl;
-+static tree const_char_ptr_type_node;
-+static unsigned int handle_function(void);
-+static bool file_match = true;
++struct size_overflow_hash _000006_hash = {
++ .next = NULL,
++ .name = "__copy_to_user_inatomic",
++ .param = PARAM3,
++};
+
-+static struct plugin_info size_overflow_plugin_info = {
-+ .version = "20120502beta",
-+ .help = "no-size_overflow\tturn off size overflow checking\n",
++struct size_overflow_hash _000007_hash = {
++ .next = NULL,
++ .name = "do_xip_mapping_read",
++ .param = PARAM5,
+};
+
-+static tree handle_size_overflow_attribute(tree *node, tree __unused name, tree args, int __unused flags, bool *no_add_attrs)
-+{
-+ unsigned int arg_count = type_num_arguments(*node);
++struct size_overflow_hash _000008_hash = {
++ .next = NULL,
++ .name = "hugetlbfs_read",
++ .param = PARAM3,
++};
+
-+ for (; args; args = TREE_CHAIN(args)) {
-+ tree position = TREE_VALUE(args);
-+ if (TREE_CODE(position) != INTEGER_CST || TREE_INT_CST_HIGH(position) || TREE_INT_CST_LOW(position) < 1 || TREE_INT_CST_LOW(position) > arg_count ) {
-+ error("handle_size_overflow_attribute: overflow parameter outside range.");
-+ *no_add_attrs = true;
-+ }
-+ }
-+ return NULL_TREE;
-+}
++struct size_overflow_hash _000009_hash = {
++ .next = NULL,
++ .name = "kmalloc",
++ .param = PARAM1,
++};
+
-+static struct attribute_spec no_size_overflow_attr = {
-+ .name = "size_overflow",
-+ .min_length = 1,
-+ .max_length = -1,
-+ .decl_required = false,
-+ .type_required = true,
-+ .function_type_required = true,
-+ .handler = handle_size_overflow_attribute
++struct size_overflow_hash _000010_hash = {
++ .next = NULL,
++ .name = "kmalloc_array",
++ .param = PARAM1|PARAM2,
+};
+
-+static void register_attributes(void __unused *event_data, void __unused *data)
-+{
-+ register_attribute(&no_size_overflow_attr);
-+}
++struct size_overflow_hash _000012_hash = {
++ .next = NULL,
++ .name = "kmalloc_slab",
++ .param = PARAM1,
++};
+
-+// http://www.team5150.com/~andrew/noncryptohashzoo2~/CrapWow.html
-+static unsigned int CrapWow(const char *key, unsigned int len, unsigned int seed)
-+{
-+#define cwfold( a, b, lo, hi ) { p = (unsigned int)(a) * (unsigned long long)(b); lo ^= (unsigned int)p; hi ^= (unsigned int)(p >> 32); }
-+#define cwmixa( in ) { cwfold( in, m, k, h ); }
-+#define cwmixb( in ) { cwfold( in, n, h, k ); }
++struct size_overflow_hash _000013_hash = {
++ .next = NULL,
++ .name = "kmemdup",
++ .param = PARAM2,
++};
+
-+ const unsigned int m = 0x57559429;
-+ const unsigned int n = 0x5052acdb;
-+ const unsigned int *key4 = (const unsigned int *)key;
-+ unsigned int h = len;
-+ unsigned int k = len + seed + n;
-+ unsigned long long p;
++struct size_overflow_hash _000014_hash = {
++ .next = NULL,
++ .name = "__krealloc",
++ .param = PARAM2,
++};
+
-+ while (len >= 8) {
-+ cwmixb(key4[0]) cwmixa(key4[1]) key4 += 2;
-+ len -= 8;
-+ }
-+ if (len >= 4) {
-+ cwmixb(key4[0]) key4 += 1;
-+ len -= 4;
-+ }
-+ if (len)
-+ cwmixa(key4[0] & ((1 << (len * 8)) - 1 ));
-+ cwmixb(h ^ (k + n));
-+ return k ^ h;
++struct size_overflow_hash _000015_hash = {
++ .next = NULL,
++ .name = "memdup_user",
++ .param = PARAM2,
++};
+
-+#undef cwfold
-+#undef cwmixa
-+#undef cwmixb
-+}
++struct size_overflow_hash _000016_hash = {
++ .next = NULL,
++ .name = "module_alloc",
++ .param = PARAM1,
++};
+
-+static inline unsigned int size_overflow_hash(const char *fndecl, unsigned int seed)
-+{
-+ return CrapWow(fndecl, strlen(fndecl), seed) & 0xffff;
-+}
++struct size_overflow_hash _000017_hash = {
++ .next = NULL,
++ .name = "read_default_ldt",
++ .param = PARAM2,
++};
+
-+static inline tree get_original_function_decl(tree fndecl)
-+{
-+ if (DECL_ABSTRACT_ORIGIN(fndecl))
-+ return DECL_ABSTRACT_ORIGIN(fndecl);
-+ return fndecl;
-+}
++struct size_overflow_hash _000018_hash = {
++ .next = NULL,
++ .name = "read_kcore",
++ .param = PARAM3,
++};
+
-+static inline gimple get_def_stmt(tree node)
-+{
-+ gcc_assert(TREE_CODE(node) == SSA_NAME);
-+ return SSA_NAME_DEF_STMT(node);
-+}
++struct size_overflow_hash _000019_hash = {
++ .next = NULL,
++ .name = "read_ldt",
++ .param = PARAM2,
++};
+
-+static struct size_overflow_hash *get_function_hash(tree fndecl)
-+{
-+ unsigned int hash;
-+ const char *func = NAME(fndecl);
++struct size_overflow_hash _000020_hash = {
++ .next = NULL,
++ .name = "read_zero",
++ .param = PARAM3,
++};
+
-+ hash = size_overflow_hash(func, 0);
++struct size_overflow_hash _000021_hash = {
++ .next = NULL,
++ .name = "__vmalloc_node",
++ .param = PARAM1,
++};
+
-+ if (size_overflow_hash1[hash].collision) {
-+ hash = size_overflow_hash(func, 23432);
-+ return &size_overflow_hash2[hash];
-+ }
-+ return &size_overflow_hash1[hash];
-+}
++struct size_overflow_hash _000022_hash = {
++ .next = NULL,
++ .name = "vm_map_ram",
++ .param = PARAM2,
++};
+
-+static void check_arg_type(tree var)
-+{
-+ tree type = TREE_TYPE(var);
-+ enum tree_code code = TREE_CODE(type);
++struct size_overflow_hash _000023_hash = {
++ .next = NULL,
++ .name = "aa_simple_write_to_buffer",
++ .param = PARAM4|PARAM3,
++};
+
-+ gcc_assert(code == INTEGER_TYPE ||
-+ (code == POINTER_TYPE && TREE_CODE(TREE_TYPE(type)) == VOID_TYPE) ||
-+ (code == POINTER_TYPE && TREE_CODE(TREE_TYPE(type)) == INTEGER_TYPE));
-+}
++struct size_overflow_hash _000024_hash = {
++ .next = NULL,
++ .name = "ablkcipher_copy_iv",
++ .param = PARAM3,
++};
+
-+static void check_missing_attribute(tree arg)
-+{
-+ tree var, type, func = get_original_function_decl(current_function_decl);
-+ const char *curfunc = NAME(func);
-+ unsigned int new_hash, argnum = 1;
-+ struct size_overflow_hash *hash;
-+ location_t loc;
-+ expanded_location xloc;
-+ bool match = false;
++struct size_overflow_hash _000025_hash = {
++ .next = NULL,
++ .name = "ablkcipher_next_slow",
++ .param = PARAM4,
++};
+
-+ type = TREE_TYPE(arg);
-+ // skip function pointers
-+ if (TREE_CODE(type) == POINTER_TYPE && TREE_CODE(TREE_TYPE(type)) == FUNCTION_TYPE)
-+ return;
++struct size_overflow_hash _000026_hash = {
++ .next = NULL,
++ .name = "acpi_battery_write_alarm",
++ .param = PARAM3,
++};
+
-+ loc = DECL_SOURCE_LOCATION(func);
-+ xloc = expand_location(loc);
++struct size_overflow_hash _000027_hash = {
++ .next = NULL,
++ .name = "acpi_os_allocate",
++ .param = PARAM1,
++};
+
-+ if (lookup_attribute("size_overflow", TYPE_ATTRIBUTES(TREE_TYPE(func))))
-+ return;
++struct size_overflow_hash _000028_hash = {
++ .next = NULL,
++ .name = "acpi_system_write_wakeup_device",
++ .param = PARAM3,
++};
+
-+ hash = get_function_hash(func);
-+ if (hash->name && !strcmp(hash->name, NAME(func)))
-+ return;
-+ if (file_match && hash->file && !strcmp(hash->file, xloc.file))
-+ return;
++struct size_overflow_hash _000029_hash = {
++ .next = NULL,
++ .name = "adu_write",
++ .param = PARAM3,
++};
+
-+ gcc_assert(TREE_CODE(arg) != COMPONENT_REF);
++struct size_overflow_hash _000030_hash = {
++ .next = NULL,
++ .name = "aer_inject_write",
++ .param = PARAM3,
++};
+
-+ if (TREE_CODE(arg) == SSA_NAME)
-+ arg = SSA_NAME_VAR(arg);
++struct size_overflow_hash _000031_hash = {
++ .next = NULL,
++ .name = "afs_alloc_flat_call",
++ .param = PARAM2|PARAM3,
++};
+
-+ for (var = DECL_ARGUMENTS(func); var; var = TREE_CHAIN(var)) {
-+ if (strcmp(NAME(arg), NAME(var))) {
-+ argnum++;
-+ continue;
-+ }
-+ check_arg_type(var);
++struct size_overflow_hash _000033_hash = {
++ .next = NULL,
++ .name = "afs_proc_cells_write",
++ .param = PARAM3,
++};
+
-+ match = true;
-+ if (!TYPE_UNSIGNED(TREE_TYPE(var)))
-+ return;
-+ break;
-+ }
-+ if (!match) {
-+ warning(0, "check_missing_attribute: cannot find the %s argument in %s", NAME(arg), NAME(func));
-+ return;
-+ }
++struct size_overflow_hash _000034_hash = {
++ .next = NULL,
++ .name = "afs_proc_rootcell_write",
++ .param = PARAM3,
++};
+
-+#define check_param(num) \
-+ if (num == argnum && hash->param##num) \
-+ return;
-+ check_param(1);
-+ check_param(2);
-+ check_param(3);
-+ check_param(4);
-+ check_param(5);
-+ check_param(6);
-+ check_param(7);
-+ check_param(8);
-+ check_param(9);
-+#undef check_param
++struct size_overflow_hash _000035_hash = {
++ .next = NULL,
++ .name = "agp_3_5_isochronous_node_enable",
++ .param = PARAM3,
++};
+
-+ new_hash = size_overflow_hash(curfunc, 0);
-+ inform(loc, "Function %s is missing from the size_overflow hash table +%s+%d+%u+%s", curfunc, curfunc, argnum, new_hash, xloc.file);
-+}
++struct size_overflow_hash _000036_hash = {
++ .next = NULL,
++ .name = "agp_alloc_page_array",
++ .param = PARAM1,
++};
+
-+static tree create_new_var(tree type)
-+{
-+ tree new_var = create_tmp_var(type, "cicus");
++struct size_overflow_hash _000037_hash = {
++ .next = NULL,
++ .name = "ah_alloc_tmp",
++ .param = PARAM2,
++};
+
-+ add_referenced_var(new_var);
-+ mark_sym_for_renaming(new_var);
-+ return new_var;
-+}
++struct size_overflow_hash _000038_hash = {
++ .next = NULL,
++ .name = "ahash_setkey_unaligned",
++ .param = PARAM3,
++};
+
-+static bool is_bool(tree node)
-+{
-+ tree type;
++struct size_overflow_hash _000039_hash = {
++ .next = NULL,
++ .name = "alg_setkey",
++ .param = PARAM3,
++};
+
-+ if (node == NULL_TREE)
-+ return false;
++struct size_overflow_hash _000040_hash = {
++ .next = NULL,
++ .name = "aligned_kmalloc",
++ .param = PARAM1,
++};
+
-+ type = TREE_TYPE(node);
-+ if (!INTEGRAL_TYPE_P(type))
-+ return false;
-+ if (TREE_CODE(type) == BOOLEAN_TYPE)
-+ return true;
-+ if (TYPE_PRECISION(type) == 1)
-+ return true;
-+ return false;
-+}
++struct size_overflow_hash _000041_hash = {
++ .next = NULL,
++ .name = "alloc_context",
++ .param = PARAM1,
++};
+
-+static tree cast_a_tree(tree type, tree var)
-+{
-+ gcc_assert(fold_convertible_p(type, var));
++struct size_overflow_hash _000042_hash = {
++ .next = NULL,
++ .name = "alloc_ep_req",
++ .param = PARAM2,
++};
+
-+ return fold_convert(type, var);
-+}
++struct size_overflow_hash _000043_hash = {
++ .next = NULL,
++ .name = "alloc_fdmem",
++ .param = PARAM1,
++};
+
-+static gimple build_cast_stmt(tree type, tree var, tree new_var, location_t loc)
-+{
-+ gimple assign;
++struct size_overflow_hash _000044_hash = {
++ .next = NULL,
++ .name = "alloc_flex_gd",
++ .param = PARAM1,
++};
+
-+ if (new_var == CREATE_NEW_VAR)
-+ new_var = create_new_var(type);
++struct size_overflow_hash _000045_hash = {
++ .next = NULL,
++ .name = "alloc_sglist",
++ .param = PARAM1|PARAM3|PARAM2,
++};
+
-+ assign = gimple_build_assign(new_var, cast_a_tree(type, var));
-+ gimple_set_location(assign, loc);
-+ gimple_set_lhs(assign, make_ssa_name(new_var, assign));
++struct size_overflow_hash _000046_hash = {
++ .next = NULL,
++ .name = "aoedev_flush",
++ .param = PARAM2,
++};
+
-+ return assign;
-+}
++struct size_overflow_hash _000047_hash = {
++ .next = NULL,
++ .name = "append_to_buffer",
++ .param = PARAM3,
++};
+
-+static tree create_assign(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple oldstmt, tree rhs1, bool before)
-+{
-+ tree oldstmt_rhs1;
-+ enum tree_code code;
-+ gimple stmt;
-+ gimple_stmt_iterator gsi;
++struct size_overflow_hash _000048_hash = {
++ .next = NULL,
++ .name = "asix_read_cmd",
++ .param = PARAM5,
++};
+
-+ if (!*potentionally_overflowed)
-+ return NULL_TREE;
++struct size_overflow_hash _000049_hash = {
++ .next = NULL,
++ .name = "asix_write_cmd",
++ .param = PARAM5,
++};
+
-+ if (rhs1 == NULL_TREE) {
-+ debug_gimple_stmt(oldstmt);
-+ error("create_assign: rhs1 is NULL_TREE");
-+ gcc_unreachable();
-+ }
++struct size_overflow_hash _000050_hash = {
++ .next = NULL,
++ .name = "asn1_octets_decode",
++ .param = PARAM2,
++};
+
-+ oldstmt_rhs1 = gimple_assign_rhs1(oldstmt);
-+ code = TREE_CODE(oldstmt_rhs1);
-+ if (code == PARM_DECL || (code == SSA_NAME && gimple_code(get_def_stmt(oldstmt_rhs1)) == GIMPLE_NOP))
-+ check_missing_attribute(oldstmt_rhs1);
++struct size_overflow_hash _000051_hash = {
++ .next = NULL,
++ .name = "asn1_oid_decode",
++ .param = PARAM2,
++};
+
-+ stmt = build_cast_stmt(signed_size_overflow_type, rhs1, CREATE_NEW_VAR, gimple_location(oldstmt));
-+ gsi = gsi_for_stmt(oldstmt);
-+ if (lookup_stmt_eh_lp(oldstmt) != 0) {
-+ basic_block next_bb, cur_bb;
-+ edge e;
++struct size_overflow_hash _000052_hash = {
++ .next = NULL,
++ .name = "at76_set_card_command",
++ .param = PARAM4,
++};
+
-+ gcc_assert(before == false);
-+ gcc_assert(stmt_can_throw_internal(oldstmt));
-+ gcc_assert(gimple_code(oldstmt) == GIMPLE_CALL);
-+ gcc_assert(!gsi_end_p(gsi));
++struct size_overflow_hash _000053_hash = {
++ .next = NULL,
++ .name = "ath6kl_add_bss_if_needed",
++ .param = PARAM6,
++};
+
-+ cur_bb = gimple_bb(oldstmt);
-+ next_bb = cur_bb->next_bb;
-+ e = find_edge(cur_bb, next_bb);
-+ gcc_assert(e != NULL);
-+ gcc_assert(e->flags & EDGE_FALLTHRU);
++struct size_overflow_hash _000054_hash = {
++ .next = NULL,
++ .name = "ath6kl_debug_roam_tbl_event",
++ .param = PARAM3,
++};
+
-+ gsi = gsi_after_labels(next_bb);
-+ gcc_assert(!gsi_end_p(gsi));
-+ before = true;
-+ }
-+ if (before)
-+ gsi_insert_before(&gsi, stmt, GSI_NEW_STMT);
-+ else
-+ gsi_insert_after(&gsi, stmt, GSI_NEW_STMT);
-+ update_stmt(stmt);
-+ pointer_set_insert(visited, oldstmt);
-+ return gimple_get_lhs(stmt);
-+}
++struct size_overflow_hash _000055_hash = {
++ .next = NULL,
++ .name = "ath6kl_mgmt_powersave_ap",
++ .param = PARAM6,
++};
+
-+static tree dup_assign(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple oldstmt, tree rhs1, tree rhs2, tree __unused rhs3)
-+{
-+ tree new_var, lhs = gimple_get_lhs(oldstmt);
-+ gimple stmt;
-+ gimple_stmt_iterator gsi;
++struct size_overflow_hash _000056_hash = {
++ .next = NULL,
++ .name = "ath6kl_send_go_probe_resp",
++ .param = PARAM3,
++};
+
-+ if (!*potentionally_overflowed)
-+ return NULL_TREE;
++struct size_overflow_hash _000057_hash = {
++ .next = NULL,
++ .name = "ath6kl_set_ap_probe_resp_ies",
++ .param = PARAM3,
++};
+
-+ if (gimple_num_ops(oldstmt) != 4 && rhs1 == NULL_TREE) {
-+ rhs1 = gimple_assign_rhs1(oldstmt);
-+ rhs1 = create_assign(visited, potentionally_overflowed, oldstmt, rhs1, BEFORE_STMT);
-+ }
-+ if (gimple_num_ops(oldstmt) == 3 && rhs2 == NULL_TREE) {
-+ rhs2 = gimple_assign_rhs2(oldstmt);
-+ rhs2 = create_assign(visited, potentionally_overflowed, oldstmt, rhs2, BEFORE_STMT);
-+ }
++struct size_overflow_hash _000058_hash = {
++ .next = NULL,
++ .name = "ath6kl_set_assoc_req_ies",
++ .param = PARAM3,
++};
+
-+ stmt = gimple_copy(oldstmt);
-+ gimple_set_location(stmt, gimple_location(oldstmt));
++struct size_overflow_hash _000059_hash = {
++ .next = NULL,
++ .name = "ath6kl_wmi_bssinfo_event_rx",
++ .param = PARAM3,
++};
+
-+ if (gimple_assign_rhs_code(oldstmt) == WIDEN_MULT_EXPR)
-+ gimple_assign_set_rhs_code(stmt, MULT_EXPR);
++struct size_overflow_hash _000060_hash = {
++ .next = NULL,
++ .name = "ath6kl_wmi_send_action_cmd",
++ .param = PARAM7,
++};
+
-+ if (is_bool(lhs))
-+ new_var = SSA_NAME_VAR(lhs);
-+ else
-+ new_var = create_new_var(signed_size_overflow_type);
-+ new_var = make_ssa_name(new_var, stmt);
-+ gimple_set_lhs(stmt, new_var);
++struct size_overflow_hash _000061_hash = {
++ .next = NULL,
++ .name = "__ath6kl_wmi_send_mgmt_cmd",
++ .param = PARAM7,
++};
+
-+ if (rhs1 != NULL_TREE) {
-+ if (!gimple_assign_cast_p(oldstmt))
-+ rhs1 = cast_a_tree(signed_size_overflow_type, rhs1);
-+ gimple_assign_set_rhs1(stmt, rhs1);
-+ }
++struct size_overflow_hash _000062_hash = {
++ .next = NULL,
++ .name = "attach_hdlc_protocol",
++ .param = PARAM3,
++};
+
-+ if (rhs2 != NULL_TREE)
-+ gimple_assign_set_rhs2(stmt, rhs2);
-+#if BUILDING_GCC_VERSION >= 4007
-+ if (rhs3 != NULL_TREE)
-+ gimple_assign_set_rhs3(stmt, rhs3);
-+#endif
-+ gimple_set_vuse(stmt, gimple_vuse(oldstmt));
-+ gimple_set_vdef(stmt, gimple_vdef(oldstmt));
++struct size_overflow_hash _000063_hash = {
++ .next = NULL,
++ .name = "audio_write",
++ .param = PARAM4,
++};
+
-+ gsi = gsi_for_stmt(oldstmt);
-+ gsi_insert_after(&gsi, stmt, GSI_SAME_STMT);
-+ update_stmt(stmt);
-+ pointer_set_insert(visited, oldstmt);
-+ return gimple_get_lhs(stmt);
-+}
++struct size_overflow_hash _000064_hash = {
++ .next = NULL,
++ .name = "audit_unpack_string",
++ .param = PARAM3,
++};
+
-+static gimple overflow_create_phi_node(gimple oldstmt, tree var)
-+{
-+ basic_block bb;
-+ gimple phi;
-+ gimple_stmt_iterator gsi = gsi_for_stmt(oldstmt);
++struct size_overflow_hash _000065_hash = {
++ .next = NULL,
++ .name = "av7110_vbi_write",
++ .param = PARAM3,
++};
+
-+ bb = gsi_bb(gsi);
++struct size_overflow_hash _000066_hash = {
++ .next = NULL,
++ .name = "ax25_setsockopt",
++ .param = PARAM5,
++};
+
-+ phi = create_phi_node(var, bb);
-+ gsi = gsi_last(phi_nodes(bb));
-+ gsi_remove(&gsi, false);
++struct size_overflow_hash _000067_hash = {
++ .next = NULL,
++ .name = "b43_debugfs_write",
++ .param = PARAM3,
++};
+
-+ gsi = gsi_for_stmt(oldstmt);
-+ gsi_insert_after(&gsi, phi, GSI_NEW_STMT);
-+ gimple_set_bb(phi, bb);
-+ return phi;
-+}
++struct size_overflow_hash _000068_hash = {
++ .next = NULL,
++ .name = "b43legacy_debugfs_write",
++ .param = PARAM3,
++};
+
-+static tree signed_cast_constant(tree node)
-+{
-+ gcc_assert(is_gimple_constant(node));
++struct size_overflow_hash _000069_hash = {
++ .next = NULL,
++ .name = "bch_alloc",
++ .param = PARAM1,
++};
+
-+ return cast_a_tree(signed_size_overflow_type, node);
-+}
++struct size_overflow_hash _000070_hash = {
++ .next = NULL,
++ .name = "befs_nls2utf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000071_hash = {
++ .next = NULL,
++ .name = "befs_utf2nls",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000072_hash = {
++ .next = NULL,
++ .name = "bfad_debugfs_write_regrd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000073_hash = {
++ .next = NULL,
++ .name = "bfad_debugfs_write_regwr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000074_hash = {
++ .next = NULL,
++ .name = "bio_alloc_map_data",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000076_hash = {
++ .next = NULL,
++ .name = "bio_kmalloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000077_hash = {
++ .next = NULL,
++ .name = "blkcipher_copy_iv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000078_hash = {
++ .next = NULL,
++ .name = "blkcipher_next_slow",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000079_hash = {
++ .next = NULL,
++ .name = "bl_pipe_downcall",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000080_hash = {
++ .next = NULL,
++ .name = "bnad_debugfs_write_regrd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000081_hash = {
++ .next = NULL,
++ .name = "bnad_debugfs_write_regwr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000082_hash = {
++ .next = NULL,
++ .name = "bnx2fc_cmd_mgr_alloc",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000084_hash = {
++ .next = NULL,
++ .name = "bnx2_nvram_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000085_hash = {
++ .next = NULL,
++ .name = "brcmf_sdbrcm_downloadvars",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000086_hash = {
++ .next = NULL,
++ .name = "btmrvl_gpiogap_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000087_hash = {
++ .next = NULL,
++ .name = "btmrvl_hscfgcmd_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000088_hash = {
++ .next = NULL,
++ .name = "btmrvl_hscmd_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000089_hash = {
++ .next = NULL,
++ .name = "btmrvl_hsmode_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000090_hash = {
++ .next = NULL,
++ .name = "btmrvl_pscmd_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000091_hash = {
++ .next = NULL,
++ .name = "btmrvl_psmode_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000092_hash = {
++ .next = NULL,
++ .name = "btrfs_alloc_delayed_item",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000093_hash = {
++ .next = NULL,
++ .name = "cache_do_downcall",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000094_hash = {
++ .next = NULL,
++ .name = "cachefiles_cook_key",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000095_hash = {
++ .next = NULL,
++ .name = "cachefiles_daemon_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000096_hash = {
++ .next = NULL,
++ .name = "capi_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000097_hash = {
++ .next = NULL,
++ .name = "carl9170_debugfs_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000098_hash = {
++ .next = NULL,
++ .name = "cciss_allocate_sg_chain_blocks",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000100_hash = {
++ .next = NULL,
++ .name = "cciss_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000101_hash = {
++ .next = NULL,
++ .name = "cdrom_read_cdda_old",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000102_hash = {
++ .next = NULL,
++ .name = "ceph_alloc_page_vector",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000103_hash = {
++ .next = NULL,
++ .name = "ceph_buffer_new",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000104_hash = {
++ .next = NULL,
++ .name = "ceph_copy_user_to_page_vector",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000105_hash = {
++ .next = NULL,
++ .name = "ceph_get_direct_page_vector",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000106_hash = {
++ .next = NULL,
++ .name = "ceph_msg_new",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000107_hash = {
++ .next = NULL,
++ .name = "ceph_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000108_hash = {
++ .next = NULL,
++ .name = "cfi_read_pri",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000109_hash = {
++ .next = NULL,
++ .name = "cgroup_write_string",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000110_hash = {
++ .next = NULL,
++ .name = "cgroup_write_X64",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000111_hash = {
++ .next = NULL,
++ .name = "change_xattr",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000112_hash = {
++ .next = NULL,
++ .name = "check_load_and_stores",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000113_hash = {
++ .next = NULL,
++ .name = "cifs_idmap_key_instantiate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000114_hash = {
++ .next = NULL,
++ .name = "cifs_security_flags_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000115_hash = {
++ .next = NULL,
++ .name = "cifs_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000116_hash = {
++ .next = NULL,
++ .name = "cifs_spnego_key_instantiate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000117_hash = {
++ .next = NULL,
++ .name = "ci_ll_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000118_hash = {
++ .next = NULL,
++ .name = "cld_pipe_downcall",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000119_hash = {
++ .next = NULL,
++ .name = "clear_refs_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000120_hash = {
++ .next = NULL,
++ .name = "clusterip_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000121_hash = {
++ .next = NULL,
++ .name = "cm4040_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000122_hash = {
++ .next = NULL,
++ .name = "cm_copy_private_data",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000123_hash = {
++ .next = NULL,
++ .name = "cmm_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000124_hash = {
++ .next = NULL,
++ .name = "cm_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000125_hash = {
++ .next = NULL,
++ .name = "coda_psdev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000126_hash = {
++ .next = NULL,
++ .name = "codec_reg_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000127_hash = {
++ .next = NULL,
++ .name = "command_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000128_hash = {
++ .next = NULL,
++ .name = "command_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000129_hash = {
++ .next = NULL,
++ .name = "comm_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000130_hash = {
++ .next = NULL,
++ .name = "concat_writev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000131_hash = {
++ .next = NULL,
++ .name = "copy_and_check",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000132_hash = {
++ .next = NULL,
++ .name = "copy_from_user_toio",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000133_hash = {
++ .next = NULL,
++ .name = "copy_items",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000134_hash = {
++ .next = NULL,
++ .name = "copy_macs",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000135_hash = {
++ .next = NULL,
++ .name = "__copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000136_hash = {
++ .next = NULL,
++ .name = "copy_vm86_regs_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000137_hash = {
++ .next = NULL,
++ .name = "cosa_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000138_hash = {
++ .next = NULL,
++ .name = "create_entry",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000139_hash = {
++ .next = NULL,
++ .name = "create_queues",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000141_hash = {
++ .next = NULL,
++ .name = "create_xattr",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000142_hash = {
++ .next = NULL,
++ .name = "create_xattr_datum",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000143_hash = {
++ .next = NULL,
++ .name = "csum_partial_copy_fromiovecend",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000145_hash = {
++ .next = NULL,
++ .name = "ctrl_out",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _000147_hash = {
++ .next = NULL,
++ .name = "cx24116_writeregN",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000148_hash = {
++ .next = NULL,
++ .name = "cxacru_cm_get_array",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000149_hash = {
++ .next = NULL,
++ .name = "cxgbi_alloc_big_mem",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000150_hash = {
++ .next = NULL,
++ .name = "dac960_user_command_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000151_hash = {
++ .next = NULL,
++ .name = "datablob_format",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000152_hash = {
++ .next = NULL,
++ .name = "dccp_feat_clone_sp_val",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000153_hash = {
++ .next = NULL,
++ .name = "dccp_setsockopt_ccid",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000154_hash = {
++ .next = NULL,
++ .name = "dccp_setsockopt_cscov",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000155_hash = {
++ .next = NULL,
++ .name = "dccp_setsockopt_service",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000156_hash = {
++ .next = NULL,
++ .name = "ddb_output_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000157_hash = {
++ .next = NULL,
++ .name = "ddebug_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000158_hash = {
++ .next = NULL,
++ .name = "dev_config",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000159_hash = {
++ .next = NULL,
++ .name = "device_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000160_hash = {
++ .next = NULL,
++ .name = "devm_kzalloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000161_hash = {
++ .next = NULL,
++ .name = "devres_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000162_hash = {
++ .next = NULL,
++ .name = "dfs_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000163_hash = {
++ .next = NULL,
++ .name = "direct_entry",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000164_hash = {
++ .next = NULL,
++ .name = "dispatch_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000165_hash = {
++ .next = NULL,
++ .name = "diva_os_copy_from_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000166_hash = {
++ .next = NULL,
++ .name = "dlm_alloc_pagevec",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000167_hash = {
++ .next = NULL,
++ .name = "dlmfs_file_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000168_hash = {
++ .next = NULL,
++ .name = "dlmfs_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000169_hash = {
++ .next = NULL,
++ .name = "dm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000170_hash = {
++ .next = NULL,
++ .name = "dm_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000171_hash = {
++ .next = NULL,
++ .name = "__dn_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000172_hash = {
++ .next = NULL,
++ .name = "dns_query",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000173_hash = {
++ .next = NULL,
++ .name = "dns_resolver_instantiate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000174_hash = {
++ .next = NULL,
++ .name = "do_add_counters",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000175_hash = {
++ .next = NULL,
++ .name = "__do_config_autodelink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000176_hash = {
++ .next = NULL,
++ .name = "do_ip_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000177_hash = {
++ .next = NULL,
++ .name = "do_ipv6_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000178_hash = {
++ .next = NULL,
++ .name = "do_ip_vs_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000179_hash = {
++ .next = NULL,
++ .name = "do_kimage_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000180_hash = {
++ .next = NULL,
++ .name = "do_register_entry",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000181_hash = {
++ .next = NULL,
++ .name = "do_tty_write",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000182_hash = {
++ .next = NULL,
++ .name = "do_update_counters",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000183_hash = {
++ .next = NULL,
++ .name = "dsp_write",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000184_hash = {
++ .next = NULL,
++ .name = "dup_to_netobj",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000185_hash = {
++ .next = NULL,
++ .name = "dvb_aplay",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000186_hash = {
++ .next = NULL,
++ .name = "dvb_ca_en50221_io_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000187_hash = {
++ .next = NULL,
++ .name = "dvbdmx_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000188_hash = {
++ .next = NULL,
++ .name = "dvb_play",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000189_hash = {
++ .next = NULL,
++ .name = "dw210x_op_rw",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000190_hash = {
++ .next = NULL,
++ .name = "dwc3_link_state_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000191_hash = {
++ .next = NULL,
++ .name = "dwc3_mode_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000192_hash = {
++ .next = NULL,
++ .name = "dwc3_testmode_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000193_hash = {
++ .next = NULL,
++ .name = "ecryptfs_copy_filename",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000194_hash = {
++ .next = NULL,
++ .name = "ecryptfs_miscdev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000195_hash = {
++ .next = NULL,
++ .name = "ecryptfs_send_miscdev",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000196_hash = {
++ .next = NULL,
++ .name = "efx_tsoh_heap_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000197_hash = {
++ .next = NULL,
++ .name = "emi26_writememory",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000198_hash = {
++ .next = NULL,
++ .name = "emi62_writememory",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000199_hash = {
++ .next = NULL,
++ .name = "encrypted_instantiate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000200_hash = {
++ .next = NULL,
++ .name = "encrypted_update",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000201_hash = {
++ .next = NULL,
++ .name = "ep0_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000202_hash = {
++ .next = NULL,
++ .name = "ep_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000203_hash = {
++ .next = NULL,
++ .name = "ep_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000204_hash = {
++ .next = NULL,
++ .name = "erst_dbg_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000205_hash = {
++ .next = NULL,
++ .name = "esp_alloc_tmp",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000206_hash = {
++ .next = NULL,
++ .name = "exofs_read_lookup_dev_table",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000207_hash = {
++ .next = NULL,
++ .name = "ext4_kvmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000208_hash = {
++ .next = NULL,
++ .name = "ezusb_writememory",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000209_hash = {
++ .next = NULL,
++ .name = "fanotify_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000210_hash = {
++ .next = NULL,
++ .name = "fd_copyin",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000211_hash = {
++ .next = NULL,
++ .name = "ffs_epfile_io",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000212_hash = {
++ .next = NULL,
++ .name = "ffs_prepare_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000213_hash = {
++ .next = NULL,
++ .name = "f_hidg_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000214_hash = {
++ .next = NULL,
++ .name = "file_read_actor",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000215_hash = {
++ .next = NULL,
++ .name = "fill_write_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000216_hash = {
++ .next = NULL,
++ .name = "fl_create",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000217_hash = {
++ .next = NULL,
++ .name = "ftdi_elan_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000218_hash = {
++ .next = NULL,
++ .name = "fuse_conn_limit_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000219_hash = {
++ .next = NULL,
++ .name = "fw_iso_buffer_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000220_hash = {
++ .next = NULL,
++ .name = "garmin_write_bulk",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000221_hash = {
++ .next = NULL,
++ .name = "garp_attr_create",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000222_hash = {
++ .next = NULL,
++ .name = "get_arg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000223_hash = {
++ .next = NULL,
++ .name = "getdqbuf",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000224_hash = {
++ .next = NULL,
++ .name = "get_fdb_entries",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000225_hash = {
++ .next = NULL,
++ .name = "get_indirect_ea",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000226_hash = {
++ .next = NULL,
++ .name = "get_registers",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000227_hash = {
++ .next = NULL,
++ .name = "get_scq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000228_hash = {
++ .next = NULL,
++ .name = "get_server_iovec",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000229_hash = {
++ .next = NULL,
++ .name = "get_ucode_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000230_hash = {
++ .next = NULL,
++ .name = "get_user_cpu_mask",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000231_hash = {
++ .next = NULL,
++ .name = "gfs2_alloc_sort_buffer",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000232_hash = {
++ .next = NULL,
++ .name = "gfs2_glock_nq_m",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000233_hash = {
++ .next = NULL,
++ .name = "gigaset_initcs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000234_hash = {
++ .next = NULL,
++ .name = "gigaset_initdriver",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000235_hash = {
++ .next = NULL,
++ .name = "gs_alloc_req",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000236_hash = {
++ .next = NULL,
++ .name = "gs_buf_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000237_hash = {
++ .next = NULL,
++ .name = "gsm_data_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000238_hash = {
++ .next = NULL,
++ .name = "gss_pipe_downcall",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000239_hash = {
++ .next = NULL,
++ .name = "handle_request",
++ .param = PARAM9,
++};
++
++struct size_overflow_hash _000240_hash = {
++ .next = NULL,
++ .name = "hash_new",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000241_hash = {
++ .next = NULL,
++ .name = "hashtab_create",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000242_hash = {
++ .next = NULL,
++ .name = "hcd_buffer_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000243_hash = {
++ .next = NULL,
++ .name = "hci_sock_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000244_hash = {
++ .next = NULL,
++ .name = "heap_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000245_hash = {
++ .next = NULL,
++ .name = "hest_ghes_dev_register",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000246_hash = {
++ .next = NULL,
++ .name = "hidraw_get_report",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000247_hash = {
++ .next = NULL,
++ .name = "hidraw_report_event",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000248_hash = {
++ .next = NULL,
++ .name = "hidraw_send_report",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000249_hash = {
++ .next = NULL,
++ .name = "hpfs_translate_name",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000250_hash = {
++ .next = NULL,
++ .name = "hysdn_conf_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000251_hash = {
++ .next = NULL,
++ .name = "hysdn_log_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000252_hash = {
++ .next = NULL,
++ .name = "__i2400mu_send_barker",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000253_hash = {
++ .next = NULL,
++ .name = "i2cdev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000254_hash = {
++ .next = NULL,
++ .name = "i2cdev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000255_hash = {
++ .next = NULL,
++ .name = "i2o_parm_field_get",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000256_hash = {
++ .next = NULL,
++ .name = "i2o_parm_table_get",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000257_hash = {
++ .next = NULL,
++ .name = "ib_copy_from_udata",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000258_hash = {
++ .next = NULL,
++ .name = "ib_ucm_alloc_data",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000259_hash = {
++ .next = NULL,
++ .name = "ib_umad_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000260_hash = {
++ .next = NULL,
++ .name = "ib_uverbs_unmarshall_recv",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000261_hash = {
++ .next = NULL,
++ .name = "icn_writecmd",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000262_hash = {
++ .next = NULL,
++ .name = "ide_driver_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000263_hash = {
++ .next = NULL,
++ .name = "ide_settings_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000264_hash = {
++ .next = NULL,
++ .name = "idetape_chrdev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000265_hash = {
++ .next = NULL,
++ .name = "idmap_pipe_downcall",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000266_hash = {
++ .next = NULL,
++ .name = "ieee80211_build_probe_req",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _000267_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000268_hash = {
++ .next = NULL,
++ .name = "if_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000269_hash = {
++ .next = NULL,
++ .name = "ilo_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000270_hash = {
++ .next = NULL,
++ .name = "ima_write_policy",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000271_hash = {
++ .next = NULL,
++ .name = "init_data_container",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000272_hash = {
++ .next = NULL,
++ .name = "init_send_hfcd",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000273_hash = {
++ .next = NULL,
++ .name = "insert_dent",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _000274_hash = {
++ .next = NULL,
++ .name = "interpret_user_input",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000275_hash = {
++ .next = NULL,
++ .name = "int_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000276_hash = {
++ .next = NULL,
++ .name = "ioctl_private_iw_point",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _000277_hash = {
++ .next = NULL,
++ .name = "iov_iter_copy_from_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000278_hash = {
++ .next = NULL,
++ .name = "iov_iter_copy_from_user_atomic",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000279_hash = {
++ .next = NULL,
++ .name = "iowarrior_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000280_hash = {
++ .next = NULL,
++ .name = "ipc_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000281_hash = {
++ .next = NULL,
++ .name = "ipc_rcu_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000282_hash = {
++ .next = NULL,
++ .name = "ip_options_get_from_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000283_hash = {
++ .next = NULL,
++ .name = "ipv6_renew_option",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000284_hash = {
++ .next = NULL,
++ .name = "ip_vs_conn_fill_param_sync",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000285_hash = {
++ .next = NULL,
++ .name = "ip_vs_create_timeout_table",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000286_hash = {
++ .next = NULL,
++ .name = "ipw_queue_tx_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000287_hash = {
++ .next = NULL,
++ .name = "irda_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000288_hash = {
++ .next = NULL,
++ .name = "irias_new_octseq_value",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000289_hash = {
++ .next = NULL,
++ .name = "ir_lirc_transmit_ir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000290_hash = {
++ .next = NULL,
++ .name = "irnet_ctrl_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000291_hash = {
++ .next = NULL,
++ .name = "isdn_add_channels",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000292_hash = {
++ .next = NULL,
++ .name = "isdn_ppp_fill_rq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000293_hash = {
++ .next = NULL,
++ .name = "isdn_ppp_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000294_hash = {
++ .next = NULL,
++ .name = "isdn_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000295_hash = {
++ .next = NULL,
++ .name = "isdn_v110_open",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000296_hash = {
++ .next = NULL,
++ .name = "isdn_writebuf_stub",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000297_hash = {
++ .next = NULL,
++ .name = "islpci_mgt_transmit",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000298_hash = {
++ .next = NULL,
++ .name = "iso_callback",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000299_hash = {
++ .next = NULL,
++ .name = "iso_packets_buffer_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000300_hash = {
++ .next = NULL,
++ .name = "it821x_firmware_command",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000301_hash = {
++ .next = NULL,
++ .name = "ivtv_buf_copy_from_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000302_hash = {
++ .next = NULL,
++ .name = "iwch_alloc_fastreg_pbl",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000303_hash = {
++ .next = NULL,
++ .name = "iwl_calib_set",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000304_hash = {
++ .next = NULL,
++ .name = "jbd2_journal_init_revoke_table",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000305_hash = {
++ .next = NULL,
++ .name = "jffs2_alloc_full_dirent",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000306_hash = {
++ .next = NULL,
++ .name = "journal_init_revoke_table",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000307_hash = {
++ .next = NULL,
++ .name = "kcalloc",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000309_hash = {
++ .next = NULL,
++ .name = "keyctl_instantiate_key_common",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000310_hash = {
++ .next = NULL,
++ .name = "keyctl_update_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000311_hash = {
++ .next = NULL,
++ .name = "__kfifo_alloc",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000313_hash = {
++ .next = NULL,
++ .name = "kfifo_copy_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000314_hash = {
++ .next = NULL,
++ .name = "kmalloc_node",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000315_hash = {
++ .next = NULL,
++ .name = "kmalloc_parameter",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000316_hash = {
++ .next = NULL,
++ .name = "kmem_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000317_hash = {
++ .next = NULL,
++ .name = "kobj_map",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000319_hash = {
++ .next = NULL,
++ .name = "kone_receive",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000320_hash = {
++ .next = NULL,
++ .name = "kone_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000321_hash = {
++ .next = NULL,
++ .name = "krealloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000322_hash = {
++ .next = NULL,
++ .name = "kvmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000323_hash = {
++ .next = NULL,
++ .name = "kvm_read_guest_atomic",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000324_hash = {
++ .next = NULL,
++ .name = "kvm_read_guest_cached",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000325_hash = {
++ .next = NULL,
++ .name = "kvm_read_guest_page",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000326_hash = {
++ .next = NULL,
++ .name = "kzalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000327_hash = {
++ .next = NULL,
++ .name = "l2cap_sock_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000328_hash = {
++ .next = NULL,
++ .name = "l2cap_sock_setsockopt_old",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000329_hash = {
++ .next = NULL,
++ .name = "lane2_associate_req",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000330_hash = {
++ .next = NULL,
++ .name = "lbs_debugfs_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000331_hash = {
++ .next = &_000014_hash,
++ .name = "lcd_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000332_hash = {
++ .next = NULL,
++ .name = "ldm_frag_add",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000333_hash = {
++ .next = NULL,
++ .name = "__lgread",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000334_hash = {
++ .next = NULL,
++ .name = "libipw_alloc_txb",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000335_hash = {
++ .next = NULL,
++ .name = "link_send_sections_long",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000336_hash = {
++ .next = NULL,
++ .name = "listxattr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000337_hash = {
++ .next = NULL,
++ .name = "LoadBitmap",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000338_hash = {
++ .next = NULL,
++ .name = "load_msg",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000339_hash = {
++ .next = NULL,
++ .name = "lpfc_debugfs_dif_err_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000340_hash = {
++ .next = NULL,
++ .name = "lp_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000341_hash = {
++ .next = NULL,
++ .name = "mb_cache_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000342_hash = {
++ .next = NULL,
++ .name = "mce_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000343_hash = {
++ .next = NULL,
++ .name = "mcs7830_get_reg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000344_hash = {
++ .next = NULL,
++ .name = "mcs7830_set_reg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000345_hash = {
++ .next = NULL,
++ .name = "memcpy_fromiovec",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000346_hash = {
++ .next = NULL,
++ .name = "memcpy_fromiovecend",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000348_hash = {
++ .next = NULL,
++ .name = "mempool_kmalloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000349_hash = {
++ .next = NULL,
++ .name = "mempool_resize",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000350_hash = {
++ .next = NULL,
++ .name = "mem_rw",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000351_hash = {
++ .next = NULL,
++ .name = "mgmt_control",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000352_hash = {
++ .next = NULL,
++ .name = "mgmt_pending_add",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000353_hash = {
++ .next = NULL,
++ .name = "mlx4_ib_alloc_fast_reg_page_list",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000354_hash = {
++ .next = NULL,
++ .name = "mmc_alloc_sg",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000355_hash = {
++ .next = NULL,
++ .name = "mmc_send_bus_test",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000356_hash = {
++ .next = NULL,
++ .name = "mmc_send_cxd_data",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000357_hash = {
++ .next = NULL,
++ .name = "module_alloc_update_bounds",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000358_hash = {
++ .next = NULL,
++ .name = "move_addr_to_kernel",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000359_hash = {
++ .next = NULL,
++ .name = "mpi_alloc_limb_space",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000360_hash = {
++ .next = NULL,
++ .name = "mpi_resize",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000361_hash = {
++ .next = NULL,
++ .name = "mptctl_getiocinfo",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000362_hash = {
++ .next = NULL,
++ .name = "mtdchar_readoob",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000363_hash = {
++ .next = NULL,
++ .name = "mtdchar_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000364_hash = {
++ .next = NULL,
++ .name = "mtdchar_writeoob",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000365_hash = {
++ .next = NULL,
++ .name = "mtd_device_parse_register",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000366_hash = {
++ .next = NULL,
++ .name = "mtf_test_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000367_hash = {
++ .next = NULL,
++ .name = "mtrr_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000368_hash = {
++ .next = NULL,
++ .name = "musb_test_mode_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000369_hash = {
++ .next = NULL,
++ .name = "mwifiex_get_common_rates",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000370_hash = {
++ .next = NULL,
++ .name = "mwifiex_update_curr_bss_params",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000371_hash = {
++ .next = NULL,
++ .name = "nand_bch_init",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000373_hash = {
++ .next = NULL,
++ .name = "ncp_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000374_hash = {
++ .next = NULL,
++ .name = "ncp__vol2io",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000375_hash = {
++ .next = NULL,
++ .name = "nes_alloc_fast_reg_page_list",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000376_hash = {
++ .next = NULL,
++ .name = "nfc_targets_found",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000377_hash = {
++ .next = NULL,
++ .name = "nfs4_acl_new",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000378_hash = {
++ .next = NULL,
++ .name = "nfs4_write_cached_acl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000379_hash = {
++ .next = NULL,
++ .name = "nfsd_cache_update",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000380_hash = {
++ .next = NULL,
++ .name = "nfsd_symlink",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000381_hash = {
++ .next = NULL,
++ .name = "nfs_idmap_get_desc",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _000383_hash = {
++ .next = NULL,
++ .name = "nfs_readdir_make_qstr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000384_hash = {
++ .next = NULL,
++ .name = "note_last_dentry",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000385_hash = {
++ .next = NULL,
++ .name = "ntfs_copy_from_user",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _000387_hash = {
++ .next = NULL,
++ .name = "__ntfs_copy_from_user_iovec_inatomic",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000389_hash = {
++ .next = NULL,
++ .name = "ntfs_ucstonls",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000390_hash = {
++ .next = NULL,
++ .name = "nvme_alloc_iod",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000391_hash = {
++ .next = NULL,
++ .name = "nvram_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000392_hash = {
++ .next = NULL,
++ .name = "o2hb_debug_create",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000393_hash = {
++ .next = NULL,
++ .name = "o2net_send_message_vec",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000394_hash = {
++ .next = NULL,
++ .name = "ocfs2_control_cfu",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000395_hash = {
++ .next = NULL,
++ .name = "oom_adjust_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000396_hash = {
++ .next = NULL,
++ .name = "oom_score_adj_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000397_hash = {
++ .next = NULL,
++ .name = "opera1_xilinx_rw",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000398_hash = {
++ .next = NULL,
++ .name = "oprofilefs_ulong_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000399_hash = {
++ .next = NULL,
++ .name = "opticon_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000400_hash = {
++ .next = NULL,
++ .name = "orig_node_add_if",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000401_hash = {
++ .next = NULL,
++ .name = "orig_node_del_if",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000402_hash = {
++ .next = NULL,
++ .name = "p9_check_zc_errors",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000403_hash = {
++ .next = NULL,
++ .name = "packet_buffer_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000404_hash = {
++ .next = NULL,
++ .name = "packet_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000405_hash = {
++ .next = NULL,
++ .name = "parse_command",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000406_hash = {
++ .next = NULL,
++ .name = "pcbit_writecmd",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000407_hash = {
++ .next = NULL,
++ .name = "pcmcia_replace_cis",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000408_hash = {
++ .next = NULL,
++ .name = "pgctrl_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000409_hash = {
++ .next = NULL,
++ .name = "pg_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000410_hash = {
++ .next = NULL,
++ .name = "pidlist_allocate",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000411_hash = {
++ .next = NULL,
++ .name = "pipe_iov_copy_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000412_hash = {
++ .next = NULL,
++ .name = "pipe_iov_copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000413_hash = {
++ .next = NULL,
++ .name = "pkt_add",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000414_hash = {
++ .next = NULL,
++ .name = "pktgen_if_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000415_hash = {
++ .next = NULL,
++ .name = "platform_device_add_data",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000416_hash = {
++ .next = NULL,
++ .name = "platform_device_add_resources",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000417_hash = {
++ .next = NULL,
++ .name = "pm_qos_power_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000418_hash = {
++ .next = NULL,
++ .name = "pnpbios_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000419_hash = {
++ .next = NULL,
++ .name = "pool_allocate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000420_hash = {
++ .next = NULL,
++ .name = "posix_acl_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000421_hash = {
++ .next = NULL,
++ .name = "ppp_cp_parse_cr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000422_hash = {
++ .next = NULL,
++ .name = "ppp_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000423_hash = {
++ .next = NULL,
++ .name = "pp_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000424_hash = {
++ .next = NULL,
++ .name = "pp_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000425_hash = {
++ .next = NULL,
++ .name = "printer_req_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000426_hash = {
++ .next = NULL,
++ .name = "printer_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000427_hash = {
++ .next = NULL,
++ .name = "prism2_set_genericelement",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000428_hash = {
++ .next = NULL,
++ .name = "__probe_kernel_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000429_hash = {
++ .next = NULL,
++ .name = "__probe_kernel_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000430_hash = {
++ .next = NULL,
++ .name = "proc_coredump_filter_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000431_hash = {
++ .next = NULL,
++ .name = "_proc_do_string",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000432_hash = {
++ .next = NULL,
++ .name = "process_vm_rw_pages",
++ .param = PARAM5|PARAM6,
++};
++
++struct size_overflow_hash _000434_hash = {
++ .next = NULL,
++ .name = "proc_loginuid_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000435_hash = {
++ .next = NULL,
++ .name = "proc_pid_attr_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000436_hash = {
++ .next = NULL,
++ .name = "proc_scsi_devinfo_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000437_hash = {
++ .next = NULL,
++ .name = "proc_scsi_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000438_hash = {
++ .next = NULL,
++ .name = "proc_scsi_write_proc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000439_hash = {
++ .next = NULL,
++ .name = "pstore_mkfile",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000440_hash = {
++ .next = NULL,
++ .name = "pti_char_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000441_hash = {
++ .next = NULL,
++ .name = "ptrace_writedata",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000442_hash = {
++ .next = NULL,
++ .name = "pt_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000443_hash = {
++ .next = NULL,
++ .name = "pvr2_ioread_set_sync_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000444_hash = {
++ .next = NULL,
++ .name = "pvr2_stream_buffer_count",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000445_hash = {
++ .next = NULL,
++ .name = "qdisc_class_hash_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000446_hash = {
++ .next = NULL,
++ .name = "r3964_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000447_hash = {
++ .next = NULL,
++ .name = "raw_seticmpfilter",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000448_hash = {
++ .next = NULL,
++ .name = "raw_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000449_hash = {
++ .next = NULL,
++ .name = "rawv6_seticmpfilter",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000450_hash = {
++ .next = NULL,
++ .name = "ray_cs_essid_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000451_hash = {
++ .next = NULL,
++ .name = "rbd_add",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000452_hash = {
++ .next = NULL,
++ .name = "rbd_snap_add",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000453_hash = {
++ .next = NULL,
++ .name = "rdma_set_ib_paths",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000454_hash = {
++ .next = NULL,
++ .name = "rds_page_copy_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000455_hash = {
++ .next = NULL,
++ .name = "read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000456_hash = {
++ .next = NULL,
++ .name = "read_buf",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000457_hash = {
++ .next = NULL,
++ .name = "read_cis_cache",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000458_hash = {
++ .next = NULL,
++ .name = "realloc_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000459_hash = {
++ .next = NULL,
++ .name = "realloc_packet_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000460_hash = {
++ .next = NULL,
++ .name = "receive_DataRequest",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000461_hash = {
++ .next = NULL,
++ .name = "recent_mt_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000462_hash = {
++ .next = NULL,
++ .name = "regmap_access_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000463_hash = {
++ .next = NULL,
++ .name = "regmap_bulk_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000464_hash = {
++ .next = NULL,
++ .name = "regmap_map_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000465_hash = {
++ .next = NULL,
++ .name = "regset_tls_set",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000466_hash = {
++ .next = NULL,
++ .name = "reg_w_buf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000467_hash = {
++ .next = NULL,
++ .name = "reg_w_ixbuf",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000468_hash = {
++ .next = NULL,
++ .name = "remote_settings_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000469_hash = {
++ .next = NULL,
++ .name = "request_key_auth_new",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000470_hash = {
++ .next = NULL,
++ .name = "restore_i387_fxsave",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000471_hash = {
++ .next = NULL,
++ .name = "revalidate",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000472_hash = {
++ .next = NULL,
++ .name = "rfcomm_sock_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000473_hash = {
++ .next = NULL,
++ .name = "rndis_add_response",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000474_hash = {
++ .next = NULL,
++ .name = "rndis_set_oid",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000475_hash = {
++ .next = NULL,
++ .name = "rngapi_reset",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000476_hash = {
++ .next = NULL,
++ .name = "roccat_common_receive",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000477_hash = {
++ .next = NULL,
++ .name = "roccat_common_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000478_hash = {
++ .next = NULL,
++ .name = "rpc_malloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000479_hash = {
++ .next = NULL,
++ .name = "rt2x00debug_write_bbp",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000480_hash = {
++ .next = NULL,
++ .name = "rt2x00debug_write_csr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000481_hash = {
++ .next = NULL,
++ .name = "rt2x00debug_write_eeprom",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000482_hash = {
++ .next = NULL,
++ .name = "rt2x00debug_write_rf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000483_hash = {
++ .next = NULL,
++ .name = "rts51x_read_mem",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000484_hash = {
++ .next = NULL,
++ .name = "rts51x_read_status",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000485_hash = {
++ .next = NULL,
++ .name = "rts51x_write_mem",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000486_hash = {
++ .next = NULL,
++ .name = "rw_copy_check_uvector",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000487_hash = {
++ .next = NULL,
++ .name = "rxrpc_request_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000488_hash = {
++ .next = NULL,
++ .name = "rxrpc_server_keyring",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000489_hash = {
++ .next = NULL,
++ .name = "savemem",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000490_hash = {
++ .next = NULL,
++ .name = "sb16_copy_from_user",
++ .param = PARAM10|PARAM7|PARAM6,
++};
++
++struct size_overflow_hash _000493_hash = {
++ .next = NULL,
++ .name = "sched_autogroup_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000494_hash = {
++ .next = NULL,
++ .name = "scsi_mode_select",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000495_hash = {
++ .next = NULL,
++ .name = "scsi_tgt_copy_sense",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000496_hash = {
++ .next = NULL,
++ .name = "sctp_auth_create_key",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000497_hash = {
++ .next = NULL,
++ .name = "sctp_getsockopt_delayed_ack",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000498_hash = {
++ .next = NULL,
++ .name = "sctp_getsockopt_local_addrs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000499_hash = {
++ .next = NULL,
++ .name = "sctp_make_abort_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000500_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_active_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000501_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_adaptation_layer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000502_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_associnfo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000503_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_auth_chunk",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000504_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_auth_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000505_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_autoclose",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000506_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_bindx",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000507_hash = {
++ .next = NULL,
++ .name = "__sctp_setsockopt_connectx",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000508_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_context",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000509_hash = {
++ .next = &_000247_hash,
++ .name = "sctp_setsockopt_default_send_param",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000510_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_delayed_ack",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000511_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_del_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000512_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_events",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000513_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_hmac_ident",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000514_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_initmsg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000515_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_maxburst",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000516_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_maxseg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000517_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_peer_addr_params",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000518_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_peer_primary_addr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000519_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_rtoinfo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000520_hash = {
++ .next = NULL,
++ .name = "security_context_to_sid_core",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000521_hash = {
++ .next = NULL,
++ .name = "sel_commit_bools_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000522_hash = {
++ .next = NULL,
++ .name = "sel_write_avc_cache_threshold",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000523_hash = {
++ .next = NULL,
++ .name = "sel_write_bool",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000524_hash = {
++ .next = NULL,
++ .name = "sel_write_checkreqprot",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000525_hash = {
++ .next = NULL,
++ .name = "sel_write_disable",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000526_hash = {
++ .next = NULL,
++ .name = "sel_write_enforce",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000527_hash = {
++ .next = NULL,
++ .name = "sel_write_load",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000528_hash = {
++ .next = NULL,
++ .name = "send_bulk_static_data",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000529_hash = {
++ .next = NULL,
++ .name = "send_control_msg",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000530_hash = {
++ .next = NULL,
++ .name = "set_aoe_iflist",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000531_hash = {
++ .next = NULL,
++ .name = "setkey_unaligned",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000532_hash = {
++ .next = NULL,
++ .name = "set_registers",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000533_hash = {
++ .next = NULL,
++ .name = "setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000534_hash = {
++ .next = NULL,
++ .name = "setup_req",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000535_hash = {
++ .next = NULL,
++ .name = "setup_window",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _000536_hash = {
++ .next = NULL,
++ .name = "setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000537_hash = {
++ .next = NULL,
++ .name = "sfq_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000538_hash = {
++ .next = NULL,
++ .name = "sg_kmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000539_hash = {
++ .next = NULL,
++ .name = "sgl_map_user_pages",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000540_hash = {
++ .next = NULL,
++ .name = "shash_setkey_unaligned",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000541_hash = {
++ .next = NULL,
++ .name = "shmem_xattr_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000542_hash = {
++ .next = NULL,
++ .name = "sierra_setup_urb",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000543_hash = {
++ .next = NULL,
++ .name = "simple_transaction_get",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000544_hash = {
++ .next = NULL,
++ .name = "simple_write_to_buffer",
++ .param = PARAM2|PARAM5,
++};
++
++struct size_overflow_hash _000546_hash = {
++ .next = NULL,
++ .name = "sisusb_send_bulk_msg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000547_hash = {
++ .next = NULL,
++ .name = "skb_add_data",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000548_hash = {
++ .next = NULL,
++ .name = "skb_do_copy_data_nocache",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000549_hash = {
++ .next = NULL,
++ .name = "sl_alloc_bufs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000550_hash = {
++ .next = NULL,
++ .name = "sl_realloc_bufs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000551_hash = {
++ .next = NULL,
++ .name = "smk_write_ambient",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000552_hash = {
++ .next = NULL,
++ .name = "smk_write_cipso",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000553_hash = {
++ .next = NULL,
++ .name = "smk_write_direct",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000554_hash = {
++ .next = NULL,
++ .name = "smk_write_doi",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000555_hash = {
++ .next = NULL,
++ .name = "smk_write_load_list",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000556_hash = {
++ .next = NULL,
++ .name = "smk_write_logging",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000557_hash = {
++ .next = NULL,
++ .name = "smk_write_netlbladdr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000558_hash = {
++ .next = NULL,
++ .name = "smk_write_onlycap",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000559_hash = {
++ .next = NULL,
++ .name = "snd_ctl_elem_user_tlv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000560_hash = {
++ .next = NULL,
++ .name = "snd_emu10k1_fx8010_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000561_hash = {
++ .next = NULL,
++ .name = "snd_emu10k1_synth_copy_from_user",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _000563_hash = {
++ .next = NULL,
++ .name = "snd_gus_dram_poke",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000564_hash = {
++ .next = NULL,
++ .name = "snd_hdsp_playback_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000565_hash = {
++ .next = NULL,
++ .name = "snd_info_entry_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000566_hash = {
++ .next = NULL,
++ .name = "snd_korg1212_copy_from",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000567_hash = {
++ .next = NULL,
++ .name = "snd_mem_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000568_hash = {
++ .next = NULL,
++ .name = "snd_midi_channel_init_set",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000569_hash = {
++ .next = NULL,
++ .name = "snd_midi_event_new",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000570_hash = {
++ .next = NULL,
++ .name = "snd_opl4_mem_proc_write",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000571_hash = {
++ .next = NULL,
++ .name = "snd_pcm_aio_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000572_hash = {
++ .next = NULL,
++ .name = "snd_pcm_aio_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000573_hash = {
++ .next = NULL,
++ .name = "snd_pcm_oss_write1",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000574_hash = {
++ .next = NULL,
++ .name = "snd_pcm_oss_write2",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000575_hash = {
++ .next = NULL,
++ .name = "snd_rawmidi_kernel_write1",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000576_hash = {
++ .next = NULL,
++ .name = "snd_rme9652_playback_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000577_hash = {
++ .next = NULL,
++ .name = "snd_sb_csp_load_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000578_hash = {
++ .next = NULL,
++ .name = "snd_usb_ctl_msg",
++ .param = PARAM8,
++};
++
++struct size_overflow_hash _000579_hash = {
++ .next = NULL,
++ .name = "sock_bindtodevice",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000580_hash = {
++ .next = NULL,
++ .name = "sock_kmalloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000581_hash = {
++ .next = NULL,
++ .name = "spidev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000582_hash = {
++ .next = NULL,
++ .name = "squashfs_read_table",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000583_hash = {
++ .next = NULL,
++ .name = "srpt_alloc_ioctx",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000585_hash = {
++ .next = NULL,
++ .name = "srpt_alloc_ioctx_ring",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000586_hash = {
++ .next = NULL,
++ .name = "st5481_setup_isocpipes",
++ .param = PARAM6|PARAM4,
++};
++
++struct size_overflow_hash _000587_hash = {
++ .next = NULL,
++ .name = "sta_agg_status_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000588_hash = {
++ .next = NULL,
++ .name = "svc_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000589_hash = {
++ .next = NULL,
++ .name = "sys_add_key",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000590_hash = {
++ .next = NULL,
++ .name = "sys_modify_ldt",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000591_hash = {
++ .next = NULL,
++ .name = "sys_semtimedop",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000592_hash = {
++ .next = NULL,
++ .name = "sys_setdomainname",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000593_hash = {
++ .next = NULL,
++ .name = "sys_sethostname",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000594_hash = {
++ .next = NULL,
++ .name = "tda10048_writeregbulk",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000595_hash = {
++ .next = NULL,
++ .name = "tipc_log_resize",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000596_hash = {
++ .next = NULL,
++ .name = "tomoyo_write_self",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000597_hash = {
++ .next = NULL,
++ .name = "tower_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000598_hash = {
++ .next = NULL,
++ .name = "tpm_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000599_hash = {
++ .next = NULL,
++ .name = "trusted_instantiate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000600_hash = {
++ .next = NULL,
++ .name = "trusted_update",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000601_hash = {
++ .next = NULL,
++ .name = "tt_changes_fill_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000602_hash = {
++ .next = NULL,
++ .name = "tty_buffer_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000603_hash = {
++ .next = NULL,
++ .name = "__tun_chr_ioctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000604_hash = {
++ .next = NULL,
++ .name = "ubi_more_leb_change_data",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000605_hash = {
++ .next = NULL,
++ .name = "ubi_more_update_data",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000606_hash = {
++ .next = NULL,
++ .name = "ubi_resize_volume",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000607_hash = {
++ .next = NULL,
++ .name = "udf_alloc_i_data",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000608_hash = {
++ .next = NULL,
++ .name = "uea_idma_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000609_hash = {
++ .next = NULL,
++ .name = "uea_request",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000610_hash = {
++ .next = NULL,
++ .name = "uea_send_modem_cmd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000611_hash = {
++ .next = NULL,
++ .name = "uio_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000612_hash = {
++ .next = NULL,
++ .name = "um_idi_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000613_hash = {
++ .next = NULL,
++ .name = "us122l_ctl_msg",
++ .param = PARAM8,
++};
++
++struct size_overflow_hash _000614_hash = {
++ .next = NULL,
++ .name = "usb_alloc_urb",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000615_hash = {
++ .next = NULL,
++ .name = "usblp_new_writeurb",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000616_hash = {
++ .next = NULL,
++ .name = "usblp_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000617_hash = {
++ .next = NULL,
++ .name = "usbtest_alloc_urb",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _000619_hash = {
++ .next = NULL,
++ .name = "usbtmc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000620_hash = {
++ .next = NULL,
++ .name = "user_instantiate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000621_hash = {
++ .next = NULL,
++ .name = "user_update",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000622_hash = {
++ .next = NULL,
++ .name = "uvc_simplify_fraction",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000623_hash = {
++ .next = NULL,
++ .name = "uwb_rc_cmd_done",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000624_hash = {
++ .next = NULL,
++ .name = "uwb_rc_neh_grok_event",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000625_hash = {
++ .next = NULL,
++ .name = "v9fs_alloc_rdir_buf",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000626_hash = {
++ .next = NULL,
++ .name = "__vb2_perform_fileio",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000627_hash = {
++ .next = NULL,
++ .name = "vc_do_resize",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000629_hash = {
++ .next = NULL,
++ .name = "vcs_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000630_hash = {
++ .next = NULL,
++ .name = "vfd_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000631_hash = {
++ .next = NULL,
++ .name = "vga_arb_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000632_hash = {
++ .next = NULL,
++ .name = "vga_switcheroo_debugfs_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000633_hash = {
++ .next = NULL,
++ .name = "vhci_get_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000634_hash = {
++ .next = NULL,
++ .name = "video_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000635_hash = {
++ .next = NULL,
++ .name = "vlsi_alloc_ring",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000637_hash = {
++ .next = NULL,
++ .name = "__vmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000638_hash = {
++ .next = NULL,
++ .name = "vmalloc_32",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000639_hash = {
++ .next = NULL,
++ .name = "vmalloc_32_user",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000640_hash = {
++ .next = NULL,
++ .name = "vmalloc_exec",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000641_hash = {
++ .next = NULL,
++ .name = "vmalloc_node",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000642_hash = {
++ .next = NULL,
++ .name = "__vmalloc_node_flags",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000643_hash = {
++ .next = NULL,
++ .name = "vmalloc_user",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000644_hash = {
++ .next = NULL,
++ .name = "vol_cdev_direct_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000645_hash = {
++ .next = NULL,
++ .name = "vp_request_msix_vectors",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000646_hash = {
++ .next = NULL,
++ .name = "vring_add_indirect",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000648_hash = {
++ .next = NULL,
++ .name = "vring_new_virtqueue",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000649_hash = {
++ .next = NULL,
++ .name = "vxge_os_dma_malloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000650_hash = {
++ .next = NULL,
++ .name = "vxge_os_dma_malloc_async",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000651_hash = {
++ .next = NULL,
++ .name = "wdm_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000652_hash = {
++ .next = NULL,
++ .name = "wiimote_hid_send",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000653_hash = {
++ .next = NULL,
++ .name = "wl1273_fm_fops_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000654_hash = {
++ .next = NULL,
++ .name = "wlc_phy_loadsampletable_nphy",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000655_hash = {
++ .next = NULL,
++ .name = "write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000656_hash = {
++ .next = NULL,
++ .name = "write_flush",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000657_hash = {
++ .next = NULL,
++ .name = "write_rio",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000658_hash = {
++ .next = NULL,
++ .name = "x25_asy_change_mtu",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000659_hash = {
++ .next = NULL,
++ .name = "xdi_copy_from_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000660_hash = {
++ .next = NULL,
++ .name = "xfrm_dst_alloc_copy",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000661_hash = {
++ .next = NULL,
++ .name = "xfrm_user_policy",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000662_hash = {
++ .next = NULL,
++ .name = "xfs_attrmulti_attr_set",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000663_hash = {
++ .next = NULL,
++ .name = "xfs_handle_to_dentry",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000664_hash = {
++ .next = NULL,
++ .name = "__xip_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000665_hash = {
++ .next = NULL,
++ .name = "xprt_rdma_allocate",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000666_hash = {
++ .next = NULL,
++ .name = "zd_usb_iowrite16v_async",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000667_hash = {
++ .next = NULL,
++ .name = "zd_usb_read_fw",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000668_hash = {
++ .next = NULL,
++ .name = "zerocopy_sg_from_iovec",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000669_hash = {
++ .next = NULL,
++ .name = "zoran_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000671_hash = {
++ .next = NULL,
++ .name = "acpi_ex_allocate_name_string",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000672_hash = {
++ .next = NULL,
++ .name = "acpi_os_allocate_zeroed",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000673_hash = {
++ .next = NULL,
++ .name = "acpi_ut_initialize_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000674_hash = {
++ .next = NULL,
++ .name = "ad7879_spi_xfer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000675_hash = {
++ .next = NULL,
++ .name = "add_new_gdb",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000676_hash = {
++ .next = NULL,
++ .name = "add_numbered_child",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000677_hash = {
++ .next = NULL,
++ .name = "add_res_range",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000678_hash = {
++ .next = NULL,
++ .name = "addtgt",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000679_hash = {
++ .next = NULL,
++ .name = "add_uuid",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000680_hash = {
++ .next = NULL,
++ .name = "afs_cell_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000681_hash = {
++ .next = NULL,
++ .name = "aggr_recv_addba_req_evt",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000682_hash = {
++ .next = NULL,
++ .name = "agp_create_memory",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000683_hash = {
++ .next = NULL,
++ .name = "agp_create_user_memory",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000684_hash = {
++ .next = NULL,
++ .name = "alg_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000685_hash = {
++ .next = NULL,
++ .name = "alloc_async",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000686_hash = {
++ .next = NULL,
++ .name = "___alloc_bootmem_nopanic",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000687_hash = {
++ .next = NULL,
++ .name = "alloc_buf",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000688_hash = {
++ .next = NULL,
++ .name = "alloc_chunk",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000689_hash = {
++ .next = NULL,
++ .name = "alloc_context",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000690_hash = {
++ .next = NULL,
++ .name = "alloc_ctrl_packet",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000691_hash = {
++ .next = NULL,
++ .name = "alloc_data_packet",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000692_hash = {
++ .next = NULL,
++ .name = "alloc_dca_provider",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000693_hash = {
++ .next = NULL,
++ .name = "__alloc_dev_table",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000694_hash = {
++ .next = NULL,
++ .name = "alloc_ep",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000695_hash = {
++ .next = NULL,
++ .name = "__alloc_extent_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000696_hash = {
++ .next = NULL,
++ .name = "alloc_group_attrs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000697_hash = {
++ .next = NULL,
++ .name = "alloc_large_system_hash",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000698_hash = {
++ .next = NULL,
++ .name = "alloc_netdev_mqs",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000699_hash = {
++ .next = NULL,
++ .name = "__alloc_objio_seg",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000700_hash = {
++ .next = NULL,
++ .name = "alloc_ring",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _000701_hash = {
++ .next = NULL,
++ .name = "alloc_ring",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _000704_hash = {
++ .next = NULL,
++ .name = "alloc_session",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000708_hash = {
++ .next = NULL,
++ .name = "alloc_smp_req",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000709_hash = {
++ .next = NULL,
++ .name = "alloc_smp_resp",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000710_hash = {
++ .next = NULL,
++ .name = "alloc_ts_config",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000711_hash = {
++ .next = NULL,
++ .name = "alloc_upcall",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000712_hash = {
++ .next = NULL,
++ .name = "altera_drscan",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000713_hash = {
++ .next = NULL,
++ .name = "altera_irscan",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000714_hash = {
++ .next = NULL,
++ .name = "altera_set_dr_post",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000715_hash = {
++ .next = NULL,
++ .name = "altera_set_dr_pre",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000716_hash = {
++ .next = NULL,
++ .name = "altera_set_ir_post",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000717_hash = {
++ .next = NULL,
++ .name = "altera_set_ir_pre",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000718_hash = {
++ .next = NULL,
++ .name = "altera_swap_dr",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000719_hash = {
++ .next = &_000696_hash,
++ .name = "altera_swap_ir",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000720_hash = {
++ .next = NULL,
++ .name = "amd_create_gatt_pages",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000721_hash = {
++ .next = NULL,
++ .name = "aoechr_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000722_hash = {
++ .next = NULL,
++ .name = "applesmc_create_nodes",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000723_hash = {
++ .next = NULL,
++ .name = "array_zalloc",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000725_hash = {
++ .next = NULL,
++ .name = "arvo_sysfs_read",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000726_hash = {
++ .next = NULL,
++ .name = "arvo_sysfs_write",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000727_hash = {
++ .next = NULL,
++ .name = "asd_store_update_bios",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000728_hash = {
++ .next = NULL,
++ .name = "ata_host_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000729_hash = {
++ .next = NULL,
++ .name = "atalk_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000730_hash = {
++ .next = NULL,
++ .name = "ath6kl_cfg80211_connect_event",
++ .param = PARAM7|PARAM9|PARAM8,
++};
++
++struct size_overflow_hash _000731_hash = {
++ .next = NULL,
++ .name = "ath6kl_mgmt_tx",
++ .param = PARAM9,
++};
++
++struct size_overflow_hash _000732_hash = {
++ .next = NULL,
++ .name = "ath6kl_wmi_roam_tbl_event_rx",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000733_hash = {
++ .next = NULL,
++ .name = "ath6kl_wmi_send_mgmt_cmd",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _000734_hash = {
++ .next = NULL,
++ .name = "ath_descdma_setup",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000735_hash = {
++ .next = NULL,
++ .name = "ath_rx_edma_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000736_hash = {
++ .next = NULL,
++ .name = "ati_create_gatt_pages",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000737_hash = {
++ .next = NULL,
++ .name = "au0828_init_isoc",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000739_hash = {
++ .next = NULL,
++ .name = "audit_init_entry",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000740_hash = {
++ .next = NULL,
++ .name = "ax25_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000741_hash = {
++ .next = NULL,
++ .name = "b1_alloc_card",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000742_hash = {
++ .next = NULL,
++ .name = "b43_nphy_load_samples",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000743_hash = {
++ .next = NULL,
++ .name = "bio_copy_user_iov",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000744_hash = {
++ .next = NULL,
++ .name = "__bio_map_kern",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000746_hash = {
++ .next = NULL,
++ .name = "blk_register_region",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000748_hash = {
++ .next = NULL,
++ .name = "bm_entry_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000749_hash = {
++ .next = NULL,
++ .name = "bm_realloc_pages",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000750_hash = {
++ .next = &_000569_hash,
++ .name = "bm_register_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000751_hash = {
++ .next = NULL,
++ .name = "bm_status_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000752_hash = {
++ .next = NULL,
++ .name = "br_mdb_rehash",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000753_hash = {
++ .next = NULL,
++ .name = "btrfs_copy_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000754_hash = {
++ .next = NULL,
++ .name = "btrfs_insert_delayed_dir_index",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000755_hash = {
++ .next = NULL,
++ .name = "__btrfs_map_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000756_hash = {
++ .next = NULL,
++ .name = "__c4iw_init_resource_fifo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000757_hash = {
++ .next = NULL,
++ .name = "cache_downcall",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000758_hash = {
++ .next = NULL,
++ .name = "cache_slow_downcall",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000759_hash = {
++ .next = NULL,
++ .name = "ca_extend",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000760_hash = {
++ .next = NULL,
++ .name = "caif_seqpkt_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000761_hash = {
++ .next = NULL,
++ .name = "caif_stream_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000762_hash = {
++ .next = NULL,
++ .name = "carl9170_cmd_buf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000763_hash = {
++ .next = NULL,
++ .name = "cdev_add",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000765_hash = {
++ .next = NULL,
++ .name = "cdrom_read_cdda",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000766_hash = {
++ .next = NULL,
++ .name = "ceph_dns_resolve_name",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000767_hash = {
++ .next = NULL,
++ .name = "ceph_msgpool_get",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000768_hash = {
++ .next = NULL,
++ .name = "cfg80211_connect_result",
++ .param = PARAM4|PARAM6,
++};
++
++struct size_overflow_hash _000770_hash = {
++ .next = NULL,
++ .name = "cfg80211_disconnected",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000771_hash = {
++ .next = NULL,
++ .name = "cfg80211_inform_bss",
++ .param = PARAM8,
++};
++
++struct size_overflow_hash _000772_hash = {
++ .next = NULL,
++ .name = "cfg80211_inform_bss_frame",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000773_hash = {
++ .next = NULL,
++ .name = "cfg80211_mlme_register_mgmt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000774_hash = {
++ .next = NULL,
++ .name = "cfg80211_roamed_bss",
++ .param = PARAM4|PARAM6,
++};
++
++struct size_overflow_hash _000776_hash = {
++ .next = NULL,
++ .name = "cifs_readdata_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000777_hash = {
++ .next = NULL,
++ .name = "cifs_readv_from_socket",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000778_hash = {
++ .next = NULL,
++ .name = "cifs_writedata_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000779_hash = {
++ .next = NULL,
++ .name = "cnic_alloc_dma",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000780_hash = {
++ .next = NULL,
++ .name = "configfs_write_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000781_hash = {
++ .next = NULL,
++ .name = "construct_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000782_hash = {
++ .next = NULL,
++ .name = "context_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000783_hash = {
++ .next = NULL,
++ .name = "copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000784_hash = {
++ .next = NULL,
++ .name = "create_attr_set",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000785_hash = {
++ .next = NULL,
++ .name = "create_bounce_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000786_hash = {
++ .next = NULL,
++ .name = "create_gpadl_header",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000787_hash = {
++ .next = NULL,
++ .name = "_create_sg_bios",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000788_hash = {
++ .next = NULL,
++ .name = "cryptd_alloc_instance",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000790_hash = {
++ .next = NULL,
++ .name = "crypto_ahash_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000791_hash = {
++ .next = NULL,
++ .name = "crypto_alloc_instance2",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000792_hash = {
++ .next = NULL,
++ .name = "crypto_shash_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000793_hash = {
++ .next = NULL,
++ .name = "cx231xx_init_bulk",
++ .param = PARAM3|PARAM2,
++};
++
++struct size_overflow_hash _000794_hash = {
++ .next = NULL,
++ .name = "cx231xx_init_isoc",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000796_hash = {
++ .next = NULL,
++ .name = "cx231xx_init_vbi_isoc",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000798_hash = {
++ .next = NULL,
++ .name = "cxgb_alloc_mem",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000799_hash = {
++ .next = NULL,
++ .name = "cxgbi_device_portmap_create",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000800_hash = {
++ .next = NULL,
++ .name = "cxgbi_device_register",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000802_hash = {
++ .next = NULL,
++ .name = "__cxio_init_resource_fifo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000803_hash = {
++ .next = NULL,
++ .name = "dccp_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000804_hash = {
++ .next = NULL,
++ .name = "ddp_make_gl",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000805_hash = {
++ .next = NULL,
++ .name = "depth_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000806_hash = {
++ .next = NULL,
++ .name = "dev_irnet_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000807_hash = {
++ .next = NULL,
++ .name = "dev_set_alias",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000808_hash = {
++ .next = NULL,
++ .name = "dev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000809_hash = {
++ .next = NULL,
++ .name = "dfs_global_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000810_hash = {
++ .next = NULL,
++ .name = "dgram_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000811_hash = {
++ .next = NULL,
++ .name = "disconnect",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000812_hash = {
++ .next = NULL,
++ .name = "dma_attach",
++ .param = PARAM6|PARAM7,
++};
++
++struct size_overflow_hash _000814_hash = {
++ .next = NULL,
++ .name = "dn_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000815_hash = {
++ .next = NULL,
++ .name = "do_dccp_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000816_hash = {
++ .next = NULL,
++ .name = "do_jffs2_setxattr",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000817_hash = {
++ .next = NULL,
++ .name = "do_msgsnd",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000818_hash = {
++ .next = NULL,
++ .name = "do_raw_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000819_hash = {
++ .next = NULL,
++ .name = "do_readv_writev",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000820_hash = {
++ .next = NULL,
++ .name = "do_sync",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000821_hash = {
++ .next = NULL,
++ .name = "dup_array",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000822_hash = {
++ .next = NULL,
++ .name = "dvb_audio_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000823_hash = {
++ .next = NULL,
++ .name = "dvb_ca_en50221_init",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000824_hash = {
++ .next = NULL,
++ .name = "dvb_video_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000825_hash = {
++ .next = NULL,
++ .name = "econet_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000826_hash = {
++ .next = NULL,
++ .name = "ecryptfs_decode_and_decrypt_filename",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000827_hash = {
++ .next = NULL,
++ .name = "ecryptfs_encrypt_and_encode_filename",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000828_hash = {
++ .next = NULL,
++ .name = "ecryptfs_send_message_locked",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000829_hash = {
++ .next = NULL,
++ .name = "edac_device_alloc_ctl_info",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000830_hash = {
++ .next = NULL,
++ .name = "edac_mc_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000831_hash = {
++ .next = NULL,
++ .name = "edac_pci_alloc_ctl_info",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000832_hash = {
++ .next = NULL,
++ .name = "efivar_create_sysfs_entry",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000833_hash = {
++ .next = NULL,
++ .name = "em28xx_alloc_isoc",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000834_hash = {
++ .next = NULL,
++ .name = "enable_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000835_hash = {
++ .next = NULL,
++ .name = "enclosure_register",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000836_hash = {
++ .next = NULL,
++ .name = "ext4_kvzalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000837_hash = {
++ .next = NULL,
++ .name = "extend_netdev_table",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000838_hash = {
++ .next = NULL,
++ .name = "__feat_register_sp",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000839_hash = {
++ .next = NULL,
++ .name = "__ffs_ep0_read_events",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000840_hash = {
++ .next = NULL,
++ .name = "ffs_ep0_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000841_hash = {
++ .next = NULL,
++ .name = "ffs_epfile_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000842_hash = {
++ .next = NULL,
++ .name = "ffs_epfile_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000843_hash = {
++ .next = NULL,
++ .name = "fib_info_hash_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000844_hash = {
++ .next = NULL,
++ .name = "fillonedir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000845_hash = {
++ .next = NULL,
++ .name = "flexcop_device_kmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000846_hash = {
++ .next = NULL,
++ .name = "frame_alloc",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000847_hash = {
++ .next = NULL,
++ .name = "fw_node_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000848_hash = {
++ .next = NULL,
++ .name = "garmin_read_process",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000849_hash = {
++ .next = NULL,
++ .name = "garp_request_join",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000850_hash = {
++ .next = NULL,
++ .name = "get_derived_key",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000851_hash = {
++ .next = NULL,
++ .name = "get_entry",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000852_hash = {
++ .next = NULL,
++ .name = "get_free_de",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000853_hash = {
++ .next = NULL,
++ .name = "get_new_cssid",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000854_hash = {
++ .next = NULL,
++ .name = "getxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000855_hash = {
++ .next = NULL,
++ .name = "gspca_dev_probe2",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000856_hash = {
++ .next = NULL,
++ .name = "hcd_alloc_coherent",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000857_hash = {
++ .next = NULL,
++ .name = "hci_sock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000858_hash = {
++ .next = NULL,
++ .name = "hid_register_field",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000860_hash = {
++ .next = NULL,
++ .name = "hid_report_raw_event",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000861_hash = {
++ .next = NULL,
++ .name = "hpi_alloc_control_cache",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000862_hash = {
++ .next = NULL,
++ .name = "hugetlbfs_read_actor",
++ .param = PARAM2|PARAM5|PARAM4,
++};
++
++struct size_overflow_hash _000865_hash = {
++ .next = NULL,
++ .name = "hvc_alloc",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000866_hash = {
++ .next = NULL,
++ .name = "__hwahc_dev_set_key",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000867_hash = {
++ .next = NULL,
++ .name = "i2400m_zrealloc_2x",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000868_hash = {
++ .next = NULL,
++ .name = "ib_alloc_device",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000869_hash = {
++ .next = NULL,
++ .name = "ib_create_send_mad",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000870_hash = {
++ .next = NULL,
++ .name = "ibmasm_new_command",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000871_hash = {
++ .next = NULL,
++ .name = "ib_send_cm_drep",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000872_hash = {
++ .next = NULL,
++ .name = "ib_send_cm_mra",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000873_hash = {
++ .next = NULL,
++ .name = "ib_send_cm_rtu",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000874_hash = {
++ .next = NULL,
++ .name = "ieee80211_key_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000875_hash = {
++ .next = NULL,
++ .name = "ieee80211_mgmt_tx",
++ .param = PARAM9,
++};
++
++struct size_overflow_hash _000876_hash = {
++ .next = NULL,
++ .name = "ieee80211_send_probe_req",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000877_hash = {
++ .next = NULL,
++ .name = "if_writecmd",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000878_hash = {
++ .next = NULL,
++ .name = "init_bch",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _000880_hash = {
++ .next = NULL,
++ .name = "init_ipath",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000881_hash = {
++ .next = NULL,
++ .name = "init_list_set",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000883_hash = {
++ .next = NULL,
++ .name = "init_q",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000884_hash = {
++ .next = NULL,
++ .name = "init_state",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000885_hash = {
++ .next = NULL,
++ .name = "init_tag_map",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000886_hash = {
++ .next = NULL,
++ .name = "input_ff_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000887_hash = {
++ .next = NULL,
++ .name = "input_mt_init_slots",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000888_hash = {
++ .next = NULL,
++ .name = "interfaces",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000889_hash = {
++ .next = NULL,
++ .name = "ioat2_alloc_ring",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000890_hash = {
++ .next = NULL,
++ .name = "ip_generic_getfrag",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000892_hash = {
++ .next = NULL,
++ .name = "ipr_alloc_ucode_buffer",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000893_hash = {
++ .next = NULL,
++ .name = "ip_set_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000894_hash = {
++ .next = NULL,
++ .name = "ipv6_flowlabel_opt",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000895_hash = {
++ .next = NULL,
++ .name = "ipv6_renew_options",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000896_hash = {
++ .next = NULL,
++ .name = "ipxrtr_route_packet",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000897_hash = {
++ .next = NULL,
++ .name = "irda_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000898_hash = {
++ .next = NULL,
++ .name = "irda_sendmsg_dgram",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000899_hash = {
++ .next = NULL,
++ .name = "irda_sendmsg_ultra",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000900_hash = {
++ .next = NULL,
++ .name = "irias_add_octseq_attrib",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000901_hash = {
++ .next = NULL,
++ .name = "irq_alloc_generic_chip",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000902_hash = {
++ .next = NULL,
++ .name = "irq_domain_add_linear",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000903_hash = {
++ .next = NULL,
++ .name = "iscsi_alloc_session",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000904_hash = {
++ .next = NULL,
++ .name = "iscsi_create_conn",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000905_hash = {
++ .next = NULL,
++ .name = "iscsi_create_endpoint",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000906_hash = {
++ .next = NULL,
++ .name = "iscsi_create_iface",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000907_hash = {
++ .next = NULL,
++ .name = "iscsi_decode_text_input",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000908_hash = {
++ .next = NULL,
++ .name = "iscsi_pool_init",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _000910_hash = {
++ .next = NULL,
++ .name = "iscsit_dump_data_payload",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000911_hash = {
++ .next = NULL,
++ .name = "isdn_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000912_hash = {
++ .next = NULL,
++ .name = "isku_receive",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000913_hash = {
++ .next = NULL,
++ .name = "isku_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000914_hash = {
++ .next = NULL,
++ .name = "islpci_mgt_transaction",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000915_hash = {
++ .next = NULL,
++ .name = "iso_sched_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000916_hash = {
++ .next = NULL,
++ .name = "ivtv_v4l2_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000917_hash = {
++ .next = NULL,
++ .name = "iwl_trans_txq_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000918_hash = {
++ .next = NULL,
++ .name = "iwmct_fw_parser_init",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000919_hash = {
++ .next = NULL,
++ .name = "iwm_notif_send",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000920_hash = {
++ .next = NULL,
++ .name = "iwm_ntf_calib_res",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000921_hash = {
++ .next = NULL,
++ .name = "iwm_umac_set_config_var",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000922_hash = {
++ .next = NULL,
++ .name = "ixgbe_alloc_q_vector",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _000924_hash = {
++ .next = NULL,
++ .name = "jbd2_journal_init_revoke",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000925_hash = {
++ .next = NULL,
++ .name = "jffs2_write_dirent",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000926_hash = {
++ .next = NULL,
++ .name = "journal_init_revoke",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000927_hash = {
++ .next = NULL,
++ .name = "keyctl_instantiate_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000928_hash = {
++ .next = NULL,
++ .name = "keyctl_instantiate_key_iov",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000929_hash = {
++ .next = NULL,
++ .name = "__kfifo_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000930_hash = {
++ .next = NULL,
++ .name = "kimage_crash_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000931_hash = {
++ .next = NULL,
++ .name = "kimage_normal_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000932_hash = {
++ .next = NULL,
++ .name = "kmem_realloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000933_hash = {
++ .next = NULL,
++ .name = "kmem_zalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000934_hash = {
++ .next = NULL,
++ .name = "koneplus_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000935_hash = {
++ .next = NULL,
++ .name = "koneplus_sysfs_read",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000936_hash = {
++ .next = NULL,
++ .name = "kovaplus_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000937_hash = {
++ .next = NULL,
++ .name = "kvm_read_guest_page_mmu",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _000938_hash = {
++ .next = NULL,
++ .name = "kvm_set_irq_routing",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000939_hash = {
++ .next = NULL,
++ .name = "kvm_write_guest_cached",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000940_hash = {
++ .next = NULL,
++ .name = "kvm_write_guest_page",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _000941_hash = {
++ .next = NULL,
++ .name = "l2cap_skbuff_fromiovec",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _000943_hash = {
++ .next = NULL,
++ .name = "l2tp_ip_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000944_hash = {
++ .next = NULL,
++ .name = "l2tp_session_create",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000945_hash = {
++ .next = NULL,
++ .name = "lc_create",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000946_hash = {
++ .next = NULL,
++ .name = "leaf_dealloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000947_hash = {
++ .next = NULL,
++ .name = "linear_conf",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000948_hash = {
++ .next = NULL,
++ .name = "lirc_buffer_init",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000950_hash = {
++ .next = NULL,
++ .name = "llc_ui_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000951_hash = {
++ .next = NULL,
++ .name = "lpfc_sli4_queue_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000952_hash = {
++ .next = NULL,
++ .name = "mce_request_packet",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000953_hash = {
++ .next = NULL,
++ .name = "mdiobus_alloc_size",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000954_hash = {
++ .next = NULL,
++ .name = "media_entity_init",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _000956_hash = {
++ .next = NULL,
++ .name = "memstick_alloc_host",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000957_hash = {
++ .next = NULL,
++ .name = "mesh_table_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000958_hash = {
++ .next = NULL,
++ .name = "mfd_add_devices",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000959_hash = {
++ .next = NULL,
++ .name = "mISDN_sock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000960_hash = {
++ .next = NULL,
++ .name = "mmc_alloc_host",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000961_hash = {
++ .next = NULL,
++ .name = "mmc_test_alloc_mem",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000962_hash = {
++ .next = NULL,
++ .name = "mpi_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000963_hash = {
++ .next = NULL,
++ .name = "mpihelp_mul_karatsuba_case",
++ .param = PARAM5|PARAM3,
++};
++
++struct size_overflow_hash _000964_hash = {
++ .next = NULL,
++ .name = "mpihelp_mul_n",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000965_hash = {
++ .next = NULL,
++ .name = "mpi_set_bit",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000966_hash = {
++ .next = NULL,
++ .name = "mpi_set_highbit",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000967_hash = {
++ .next = NULL,
++ .name = "mtd_concat_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000968_hash = {
++ .next = NULL,
++ .name = "mvumi_alloc_mem_resource",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000969_hash = {
++ .next = NULL,
++ .name = "mwifiex_11n_create_rx_reorder_tbl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000970_hash = {
++ .next = NULL,
++ .name = "mwifiex_alloc_sdio_mpa_buffers",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _000972_hash = {
++ .next = NULL,
++ .name = "mwl8k_cmd_set_beacon",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000973_hash = {
++ .next = NULL,
++ .name = "neigh_hash_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000974_hash = {
++ .next = NULL,
++ .name = "netlink_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000975_hash = {
++ .next = NULL,
++ .name = "netxen_alloc_sds_rings",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000976_hash = {
++ .next = NULL,
++ .name = "new_bind_ctl",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000977_hash = {
++ .next = NULL,
++ .name = "new_dir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000978_hash = {
++ .next = NULL,
++ .name = "new_tape_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000979_hash = {
++ .next = NULL,
++ .name = "nfc_llcp_build_tlv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000980_hash = {
++ .next = NULL,
++ .name = "nfc_llcp_send_i_frame",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000981_hash = {
++ .next = NULL,
++ .name = "nfs4_alloc_slots",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000982_hash = {
++ .next = NULL,
++ .name = "nfsctl_transaction_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000983_hash = {
++ .next = NULL,
++ .name = "nfs_idmap_request_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000984_hash = {
++ .next = NULL,
++ .name = "nfs_readdata_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000985_hash = {
++ .next = NULL,
++ .name = "nfs_writedata_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000986_hash = {
++ .next = NULL,
++ .name = "nl_pid_hash_zalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000987_hash = {
++ .next = NULL,
++ .name = "nr_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000988_hash = {
++ .next = NULL,
++ .name = "nsm_create_handle",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000989_hash = {
++ .next = NULL,
++ .name = "ntfs_copy_from_user_iovec",
++ .param = PARAM3|PARAM6,
++};
++
++struct size_overflow_hash _000991_hash = {
++ .next = NULL,
++ .name = "ntfs_file_buffered_write",
++ .param = PARAM4|PARAM6,
++};
++
++struct size_overflow_hash _000993_hash = {
++ .next = NULL,
++ .name = "__ntfs_malloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _000994_hash = {
++ .next = NULL,
++ .name = "nvme_alloc_queue",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000995_hash = {
++ .next = NULL,
++ .name = "ocfs2_acl_from_xattr",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _000996_hash = {
++ .next = NULL,
++ .name = "ocfs2_control_message",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000997_hash = {
++ .next = NULL,
++ .name = "opera1_usb_i2c_msgxfer",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _000998_hash = {
++ .next = NULL,
++ .name = "_ore_get_io_state",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _000999_hash = {
++ .next = NULL,
++ .name = "orig_hash_add_if",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001000_hash = {
++ .next = NULL,
++ .name = "orig_hash_del_if",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001001_hash = {
++ .next = NULL,
++ .name = "orinoco_set_key",
++ .param = PARAM5|PARAM7,
++};
++
++struct size_overflow_hash _001003_hash = {
++ .next = NULL,
++ .name = "osdmap_set_max_osd",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001004_hash = {
++ .next = NULL,
++ .name = "_osd_realloc_seg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001005_hash = {
++ .next = NULL,
++ .name = "OSDSetBlock",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _001007_hash = {
++ .next = NULL,
++ .name = "osst_execute",
++ .param = PARAM7|PARAM6,
++};
++
++struct size_overflow_hash _001008_hash = {
++ .next = NULL,
++ .name = "osst_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001009_hash = {
++ .next = NULL,
++ .name = "otp_read",
++ .param = PARAM2|PARAM5|PARAM4,
++};
++
++struct size_overflow_hash _001012_hash = {
++ .next = NULL,
++ .name = "ovs_vport_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001013_hash = {
++ .next = NULL,
++ .name = "packet_sendmsg_spkt",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001014_hash = {
++ .next = NULL,
++ .name = "pair_device",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001015_hash = {
++ .next = NULL,
++ .name = "pccard_store_cis",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001016_hash = {
++ .next = NULL,
++ .name = "pci_add_cap_save_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001017_hash = {
++ .next = NULL,
++ .name = "pcnet32_realloc_rx_ring",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001018_hash = {
++ .next = NULL,
++ .name = "pcnet32_realloc_tx_ring",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001019_hash = {
++ .next = NULL,
++ .name = "pcpu_mem_zalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001020_hash = {
++ .next = NULL,
++ .name = "pep_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001021_hash = {
++ .next = NULL,
++ .name = "pfkey_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001022_hash = {
++ .next = NULL,
++ .name = "pidlist_resize",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001023_hash = {
++ .next = NULL,
++ .name = "pin_code_reply",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001024_hash = {
++ .next = NULL,
++ .name = "ping_getfrag",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001026_hash = {
++ .next = NULL,
++ .name = "pipe_set_size",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001027_hash = {
++ .next = NULL,
++ .name = "pkt_bio_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001028_hash = {
++ .next = NULL,
++ .name = "platform_create_bundle",
++ .param = PARAM4|PARAM6,
++};
++
++struct size_overflow_hash _001030_hash = {
++ .next = NULL,
++ .name = "play_iframe",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001031_hash = {
++ .next = NULL,
++ .name = "pm8001_store_update_fw",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001032_hash = {
++ .next = NULL,
++ .name = "pmcraid_alloc_sglist",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001033_hash = {
++ .next = NULL,
++ .name = "pn533_dep_link_up",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001034_hash = {
++ .next = NULL,
++ .name = "pnp_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001035_hash = {
++ .next = NULL,
++ .name = "pn_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001036_hash = {
++ .next = NULL,
++ .name = "pppoe_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001037_hash = {
++ .next = NULL,
++ .name = "pppol2tp_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001038_hash = {
++ .next = NULL,
++ .name = "process_vm_rw",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _001040_hash = {
++ .next = NULL,
++ .name = "process_vm_rw_single_vec",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _001042_hash = {
++ .next = NULL,
++ .name = "proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001043_hash = {
++ .next = NULL,
++ .name = "profile_load",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001044_hash = {
++ .next = NULL,
++ .name = "profile_remove",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001045_hash = {
++ .next = NULL,
++ .name = "profile_replace",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001046_hash = {
++ .next = NULL,
++ .name = "pscsi_get_bio",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001047_hash = {
++ .next = NULL,
++ .name = "pyra_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001048_hash = {
++ .next = NULL,
++ .name = "qc_capture",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001049_hash = {
++ .next = NULL,
++ .name = "qla4xxx_alloc_work",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001050_hash = {
++ .next = NULL,
++ .name = "qlcnic_alloc_msix_entries",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001051_hash = {
++ .next = NULL,
++ .name = "qlcnic_alloc_sds_rings",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001052_hash = {
++ .next = NULL,
++ .name = "queue_received_packet",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001053_hash = {
++ .next = NULL,
++ .name = "raw_send_hdrinc",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001054_hash = {
++ .next = &_000022_hash,
++ .name = "raw_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001055_hash = {
++ .next = NULL,
++ .name = "rawsock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001056_hash = {
++ .next = NULL,
++ .name = "rawv6_send_hdrinc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001057_hash = {
++ .next = NULL,
++ .name = "rb_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001058_hash = {
++ .next = NULL,
++ .name = "rbd_alloc_coll",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001059_hash = {
++ .next = NULL,
++ .name = "rbd_create_rw_ops",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001060_hash = {
++ .next = NULL,
++ .name = "rds_ib_inc_copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001061_hash = {
++ .next = NULL,
++ .name = "rds_iw_inc_copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001062_hash = {
++ .next = NULL,
++ .name = "rds_message_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001063_hash = {
++ .next = NULL,
++ .name = "rds_message_copy_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001064_hash = {
++ .next = NULL,
++ .name = "rds_message_inc_copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001065_hash = {
++ .next = NULL,
++ .name = "redrat3_transmit_ir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001066_hash = {
++ .next = NULL,
++ .name = "regcache_rbtree_insert_to_block",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001067_hash = {
++ .next = NULL,
++ .name = "_regmap_raw_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001068_hash = {
++ .next = NULL,
++ .name = "regmap_register_patch",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001069_hash = {
++ .next = NULL,
++ .name = "relay_alloc_page_array",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001070_hash = {
++ .next = NULL,
++ .name = "remove_uuid",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001071_hash = {
++ .next = NULL,
++ .name = "reshape_ring",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001072_hash = {
++ .next = NULL,
++ .name = "RESIZE_IF_NEEDED",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001073_hash = {
++ .next = NULL,
++ .name = "resize_stripes",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001074_hash = {
++ .next = NULL,
++ .name = "rfcomm_sock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001075_hash = {
++ .next = NULL,
++ .name = "rose_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001076_hash = {
++ .next = NULL,
++ .name = "rxrpc_send_data",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001077_hash = {
++ .next = NULL,
++ .name = "rxrpc_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001078_hash = {
++ .next = NULL,
++ .name = "saa7146_vmalloc_build_pgtable",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001079_hash = {
++ .next = NULL,
++ .name = "saa7164_buffer_alloc_user",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001081_hash = {
++ .next = NULL,
++ .name = "sco_send_frame",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001082_hash = {
++ .next = NULL,
++ .name = "scsi_host_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001083_hash = {
++ .next = NULL,
++ .name = "scsi_tgt_kspace_exec",
++ .param = PARAM8,
++};
++
++struct size_overflow_hash _001084_hash = {
++ .next = NULL,
++ .name = "sctp_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001085_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001086_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_connectx",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001087_hash = {
++ .next = NULL,
++ .name = "sctp_setsockopt_connectx_old",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001088_hash = {
++ .next = NULL,
++ .name = "sctp_tsnmap_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001089_hash = {
++ .next = NULL,
++ .name = "sctp_user_addto_chunk",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _001091_hash = {
++ .next = NULL,
++ .name = "security_context_to_sid",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001092_hash = {
++ .next = NULL,
++ .name = "security_context_to_sid_default",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001093_hash = {
++ .next = NULL,
++ .name = "security_context_to_sid_force",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001094_hash = {
++ .next = NULL,
++ .name = "selinux_transaction_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001095_hash = {
++ .next = NULL,
++ .name = "sel_write_access",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001096_hash = {
++ .next = NULL,
++ .name = "sel_write_create",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001097_hash = {
++ .next = NULL,
++ .name = "sel_write_member",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001098_hash = {
++ .next = NULL,
++ .name = "sel_write_relabel",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001099_hash = {
++ .next = NULL,
++ .name = "sel_write_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001100_hash = {
++ .next = NULL,
++ .name = "__seq_open_private",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001101_hash = {
++ .next = NULL,
++ .name = "serverworks_create_gatt_pages",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001102_hash = {
++ .next = NULL,
++ .name = "set_connectable",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001103_hash = {
++ .next = NULL,
++ .name = "set_dev_class",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001104_hash = {
++ .next = NULL,
++ .name = "set_discoverable",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001105_hash = {
++ .next = NULL,
++ .name = "setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001106_hash = {
++ .next = NULL,
++ .name = "set_le",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001107_hash = {
++ .next = NULL,
++ .name = "set_link_security",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001108_hash = {
++ .next = NULL,
++ .name = "set_local_name",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001109_hash = {
++ .next = NULL,
++ .name = "set_powered",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001110_hash = {
++ .next = NULL,
++ .name = "set_ssp",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001111_hash = {
++ .next = &_000305_hash,
++ .name = "sg_build_sgat",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001112_hash = {
++ .next = NULL,
++ .name = "sg_read_oxfer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001113_hash = {
++ .next = NULL,
++ .name = "shmem_xattr_set",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001114_hash = {
++ .next = NULL,
++ .name = "simple_alloc_urb",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001115_hash = {
++ .next = NULL,
++ .name = "sisusb_send_bridge_packet",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001116_hash = {
++ .next = NULL,
++ .name = "sisusb_send_packet",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001117_hash = {
++ .next = NULL,
++ .name = "skb_add_data_nocache",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001118_hash = {
++ .next = NULL,
++ .name = "skb_copy_datagram_from_iovec",
++ .param = PARAM2|PARAM5|PARAM4,
++};
++
++struct size_overflow_hash _001121_hash = {
++ .next = NULL,
++ .name = "skb_copy_to_page_nocache",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001122_hash = {
++ .next = NULL,
++ .name = "sk_chk_filter",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001123_hash = {
++ .next = NULL,
++ .name = "skcipher_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001124_hash = {
++ .next = NULL,
++ .name = "sl_change_mtu",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001125_hash = {
++ .next = &_000894_hash,
++ .name = "slhc_init",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _001127_hash = {
++ .next = NULL,
++ .name = "sm501_create_subdev",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001129_hash = {
++ .next = NULL,
++ .name = "smk_write_access",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001130_hash = {
++ .next = NULL,
++ .name = "snapshot_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001131_hash = {
++ .next = NULL,
++ .name = "snd_ac97_pcm_assign",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001132_hash = {
++ .next = NULL,
++ .name = "snd_card_create",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001133_hash = {
++ .next = NULL,
++ .name = "snd_emux_create_port",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001134_hash = {
++ .next = NULL,
++ .name = "snd_gus_dram_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001135_hash = {
++ .next = NULL,
++ .name = "snd_midi_channel_alloc_set",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001136_hash = {
++ .next = NULL,
++ .name = "_snd_pcm_lib_alloc_vmalloc_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001137_hash = {
++ .next = NULL,
++ .name = "snd_pcm_oss_sync1",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001138_hash = {
++ .next = NULL,
++ .name = "snd_pcm_oss_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001139_hash = {
++ .next = NULL,
++ .name = "snd_pcm_plugin_build",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001140_hash = {
++ .next = NULL,
++ .name = "snd_rawmidi_kernel_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001141_hash = {
++ .next = NULL,
++ .name = "snd_rawmidi_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001142_hash = {
++ .next = NULL,
++ .name = "snd_rme32_playback_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001143_hash = {
++ .next = NULL,
++ .name = "snd_rme96_playback_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001144_hash = {
++ .next = NULL,
++ .name = "snd_seq_device_new",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001145_hash = {
++ .next = NULL,
++ .name = "snd_seq_oss_readq_new",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001146_hash = {
++ .next = NULL,
++ .name = "snd_vx_create",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001147_hash = {
++ .next = NULL,
++ .name = "sock_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001148_hash = {
++ .next = NULL,
++ .name = "sound_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001149_hash = {
++ .next = NULL,
++ .name = "_sp2d_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001150_hash = {
++ .next = NULL,
++ .name = "spi_alloc_master",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001151_hash = {
++ .next = NULL,
++ .name = "spidev_message",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001152_hash = {
++ .next = NULL,
++ .name = "spi_register_board_info",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001153_hash = {
++ .next = NULL,
++ .name = "squashfs_cache_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001154_hash = {
++ .next = NULL,
++ .name = "squashfs_read_data",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001155_hash = {
++ .next = NULL,
++ .name = "srp_alloc_iu",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001156_hash = {
++ .next = NULL,
++ .name = "srp_iu_pool_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001157_hash = {
++ .next = NULL,
++ .name = "srp_ring_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001159_hash = {
++ .next = NULL,
++ .name = "start_isoc_chain",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001160_hash = {
++ .next = NULL,
++ .name = "stk_prepare_sio_buffers",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001161_hash = {
++ .next = NULL,
++ .name = "store_iwmct_log_level",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001162_hash = {
++ .next = NULL,
++ .name = "store_iwmct_log_level_fw",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001163_hash = {
++ .next = NULL,
++ .name = "st_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001164_hash = {
++ .next = NULL,
++ .name = "svc_pool_map_alloc_arrays",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001165_hash = {
++ .next = NULL,
++ .name = "symtab_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001166_hash = {
++ .next = NULL,
++ .name = "sys_bind",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001167_hash = {
++ .next = NULL,
++ .name = "sys_connect",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001168_hash = {
++ .next = NULL,
++ .name = "sys_flistxattr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001169_hash = {
++ .next = NULL,
++ .name = "sys_fsetxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001170_hash = {
++ .next = NULL,
++ .name = "sysfs_write_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001171_hash = {
++ .next = NULL,
++ .name = "sys_ipc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001172_hash = {
++ .next = &_000974_hash,
++ .name = "sys_keyctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001173_hash = {
++ .next = NULL,
++ .name = "sys_listxattr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001174_hash = {
++ .next = NULL,
++ .name = "sys_llistxattr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001175_hash = {
++ .next = NULL,
++ .name = "sys_lsetxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001176_hash = {
++ .next = NULL,
++ .name = "sys_mq_timedsend",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001177_hash = {
++ .next = NULL,
++ .name = "sys_sched_setaffinity",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001178_hash = {
++ .next = NULL,
++ .name = "sys_semop",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001179_hash = {
++ .next = NULL,
++ .name = "sys_sendto",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001180_hash = {
++ .next = NULL,
++ .name = "sys_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001181_hash = {
++ .next = NULL,
++ .name = "t4_alloc_mem",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001182_hash = {
++ .next = NULL,
++ .name = "tcf_hash_create",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001183_hash = {
++ .next = NULL,
++ .name = "__team_options_register",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001184_hash = {
++ .next = NULL,
++ .name = "test_unaligned_bulk",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001185_hash = {
++ .next = NULL,
++ .name = "tifm_alloc_adapter",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001186_hash = {
++ .next = NULL,
++ .name = "timeout_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001187_hash = {
++ .next = NULL,
++ .name = "tipc_link_send_sections_fast",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001188_hash = {
++ .next = NULL,
++ .name = "tipc_subseq_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001189_hash = {
++ .next = NULL,
++ .name = "tm6000_read_write_usb",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _001190_hash = {
++ .next = NULL,
++ .name = "tnode_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001191_hash = {
++ .next = NULL,
++ .name = "tomoyo_commit_ok",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001192_hash = {
++ .next = NULL,
++ .name = "tomoyo_scan_bprm",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _001194_hash = {
++ .next = NULL,
++ .name = "tps65910_i2c_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001195_hash = {
++ .next = NULL,
++ .name = "ts_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001196_hash = {
++ .next = NULL,
++ .name = "ttusb2_msg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001197_hash = {
++ .next = NULL,
++ .name = "tty_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001198_hash = {
++ .next = NULL,
++ .name = "ubi_dbg_check_all_ff",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001199_hash = {
++ .next = NULL,
++ .name = "ubi_dbg_check_write",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001200_hash = {
++ .next = NULL,
++ .name = "ubifs_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001201_hash = {
++ .next = NULL,
++ .name = "udf_sb_alloc_partition_maps",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001202_hash = {
++ .next = NULL,
++ .name = "udplite_getfrag",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001204_hash = {
++ .next = NULL,
++ .name = "ulong_write_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001205_hash = {
++ .next = NULL,
++ .name = "unix_dgram_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001206_hash = {
++ .next = NULL,
++ .name = "unix_stream_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001207_hash = {
++ .next = NULL,
++ .name = "unlink_queued",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001208_hash = {
++ .next = NULL,
++ .name = "update_pmkid",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001209_hash = {
++ .next = NULL,
++ .name = "usb_alloc_coherent",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001210_hash = {
++ .next = NULL,
++ .name = "uvc_alloc_buffers",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001211_hash = {
++ .next = NULL,
++ .name = "uvc_alloc_entity",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001212_hash = {
++ .next = NULL,
++ .name = "v4l2_ctrl_new",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _001213_hash = {
++ .next = NULL,
++ .name = "v4l2_event_subscribe",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001214_hash = {
++ .next = NULL,
++ .name = "vb2_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001215_hash = {
++ .next = NULL,
++ .name = "vb2_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001216_hash = {
++ .next = NULL,
++ .name = "vc_resize",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _001218_hash = {
++ .next = NULL,
++ .name = "__vhost_add_used_n",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001219_hash = {
++ .next = NULL,
++ .name = "__videobuf_alloc_vb",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001220_hash = {
++ .next = NULL,
++ .name = "videobuf_dma_init_kernel",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001221_hash = {
++ .next = NULL,
++ .name = "virtqueue_add_buf",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001223_hash = {
++ .next = NULL,
++ .name = "vmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001224_hash = {
++ .next = NULL,
++ .name = "vmalloc_to_sg",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001225_hash = {
++ .next = NULL,
++ .name = "vol_cdev_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001226_hash = {
++ .next = NULL,
++ .name = "vxge_device_register",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001227_hash = {
++ .next = NULL,
++ .name = "__vxge_hw_channel_allocate",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001228_hash = {
++ .next = NULL,
++ .name = "vzalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001229_hash = {
++ .next = NULL,
++ .name = "vzalloc_node",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001230_hash = {
++ .next = NULL,
++ .name = "wa_nep_queue",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001231_hash = {
++ .next = NULL,
++ .name = "__wa_xfer_setup_segs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001232_hash = {
++ .next = NULL,
++ .name = "wiphy_new",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001233_hash = {
++ .next = NULL,
++ .name = "wpan_phy_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001234_hash = {
++ .next = NULL,
++ .name = "wusb_ccm_mac",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _001235_hash = {
++ .next = NULL,
++ .name = "x25_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001236_hash = {
++ .next = NULL,
++ .name = "xfrm_hash_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001237_hash = {
++ .next = NULL,
++ .name = "_xfs_buf_get_pages",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001238_hash = {
++ .next = NULL,
++ .name = "xfs_da_buf_make",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001239_hash = {
++ .next = NULL,
++ .name = "xfs_da_grow_inode_int",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001240_hash = {
++ .next = NULL,
++ .name = "xfs_dir_cilookup_result",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001241_hash = {
++ .next = NULL,
++ .name = "xfs_iext_add_indirect_multi",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001242_hash = {
++ .next = NULL,
++ .name = "xfs_iext_inline_to_direct",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001243_hash = {
++ .next = NULL,
++ .name = "xfs_iroot_realloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001244_hash = {
++ .next = NULL,
++ .name = "xhci_alloc_stream_info",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001245_hash = {
++ .next = NULL,
++ .name = "xlog_recover_add_to_trans",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001246_hash = {
++ .next = NULL,
++ .name = "xprt_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001247_hash = {
++ .next = NULL,
++ .name = "xt_alloc_table_info",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001248_hash = {
++ .next = NULL,
++ .name = "_zd_iowrite32v_async_locked",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001249_hash = {
++ .next = NULL,
++ .name = "zd_usb_iowrite16v",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001250_hash = {
++ .next = NULL,
++ .name = "acpi_ds_build_internal_package_obj",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001251_hash = {
++ .next = NULL,
++ .name = "acpi_system_read_event",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001252_hash = {
++ .next = NULL,
++ .name = "acpi_ut_create_buffer_object",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001253_hash = {
++ .next = NULL,
++ .name = "acpi_ut_create_package_object",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001254_hash = {
++ .next = NULL,
++ .name = "acpi_ut_create_string_object",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001255_hash = {
++ .next = NULL,
++ .name = "ad7879_spi_multi_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001256_hash = {
++ .next = NULL,
++ .name = "add_child",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001257_hash = {
++ .next = NULL,
++ .name = "add_port",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001258_hash = {
++ .next = NULL,
++ .name = "adu_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001259_hash = {
++ .next = NULL,
++ .name = "afs_cell_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001260_hash = {
++ .next = NULL,
++ .name = "agp_generic_alloc_user",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001261_hash = {
++ .next = NULL,
++ .name = "alloc_agpphysmem_i8xx",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001262_hash = {
++ .next = NULL,
++ .name = "allocate_cnodes",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001263_hash = {
++ .next = NULL,
++ .name = "___alloc_bootmem",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001264_hash = {
++ .next = NULL,
++ .name = "__alloc_bootmem_nopanic",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001265_hash = {
++ .next = NULL,
++ .name = "alloc_bulk_urbs_generic",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001266_hash = {
++ .next = NULL,
++ .name = "alloc_candev",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _001268_hash = {
++ .next = NULL,
++ .name = "____alloc_ei_netdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001269_hash = {
++ .next = NULL,
++ .name = "alloc_etherdev_mqs",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001270_hash = {
++ .next = NULL,
++ .name = "alloc_extent_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001271_hash = {
++ .next = NULL,
++ .name = "alloc_fcdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001272_hash = {
++ .next = NULL,
++ .name = "alloc_fddidev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001273_hash = {
++ .next = NULL,
++ .name = "alloc_hippi_dev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001274_hash = {
++ .next = NULL,
++ .name = "alloc_irdadev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001275_hash = {
++ .next = NULL,
++ .name = "alloc_ltalkdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001276_hash = {
++ .next = NULL,
++ .name = "alloc_one_pg_vec_page",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001277_hash = {
++ .next = NULL,
++ .name = "alloc_orinocodev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001279_hash = {
++ .next = NULL,
++ .name = "alloc_trdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001280_hash = {
++ .next = NULL,
++ .name = "async_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001281_hash = {
++ .next = NULL,
++ .name = "ata_host_alloc_pinfo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001284_hash = {
++ .next = NULL,
++ .name = "ath6kl_connect_event",
++ .param = PARAM7|PARAM9|PARAM8,
++};
++
++struct size_overflow_hash _001285_hash = {
++ .next = NULL,
++ .name = "ath6kl_fwlog_block_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001286_hash = {
++ .next = NULL,
++ .name = "ath6kl_fwlog_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001287_hash = {
++ .next = NULL,
++ .name = "ath_rx_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001288_hash = {
++ .next = NULL,
++ .name = "ath_tx_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001289_hash = {
++ .next = NULL,
++ .name = "atm_get_addr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001290_hash = {
++ .next = NULL,
++ .name = "av7110_ipack_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001291_hash = {
++ .next = NULL,
++ .name = "bdx_rxdb_create",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001292_hash = {
++ .next = NULL,
++ .name = "bdx_tx_db_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001293_hash = {
++ .next = NULL,
++ .name = "bio_map_kern",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001294_hash = {
++ .next = NULL,
++ .name = "bits_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001295_hash = {
++ .next = NULL,
++ .name = "__blk_queue_init_tags",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001296_hash = {
++ .next = NULL,
++ .name = "blk_queue_resize_tags",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001297_hash = {
++ .next = NULL,
++ .name = "blk_rq_map_user_iov",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001298_hash = {
++ .next = NULL,
++ .name = "bm_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001299_hash = {
++ .next = NULL,
++ .name = "brcmf_alloc_wdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001300_hash = {
++ .next = NULL,
++ .name = "btrfs_insert_dir_item",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001301_hash = {
++ .next = NULL,
++ .name = "btrfs_map_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001302_hash = {
++ .next = NULL,
++ .name = "c4_add_card",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001303_hash = {
++ .next = NULL,
++ .name = "cache_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001304_hash = {
++ .next = NULL,
++ .name = "cache_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001305_hash = {
++ .next = NULL,
++ .name = "calc_hmac",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001306_hash = {
++ .next = NULL,
++ .name = "ccid_getsockopt_builtin_ccids",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001307_hash = {
++ .next = NULL,
++ .name = "ceph_copy_page_vector_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001308_hash = {
++ .next = NULL,
++ .name = "ceph_read_dir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001309_hash = {
++ .next = NULL,
++ .name = "cfg80211_roamed",
++ .param = PARAM5|PARAM7,
++};
++
++struct size_overflow_hash _001311_hash = {
++ .next = NULL,
++ .name = "ci_ll_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001312_hash = {
++ .next = NULL,
++ .name = "coda_psdev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001313_hash = {
++ .next = NULL,
++ .name = "construct_key_and_link",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001314_hash = {
++ .next = NULL,
++ .name = "copy_counters_to_user",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001315_hash = {
++ .next = NULL,
++ .name = "copy_entries_to_user",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001316_hash = {
++ .next = NULL,
++ .name = "copy_from_buf",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001317_hash = {
++ .next = NULL,
++ .name = "copy_oldmem_page",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001318_hash = {
++ .next = NULL,
++ .name = "copy_to_user_fromio",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001319_hash = {
++ .next = NULL,
++ .name = "cryptd_hash_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001320_hash = {
++ .next = NULL,
++ .name = "crypto_authenc_esn_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001321_hash = {
++ .next = NULL,
++ .name = "crypto_authenc_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001322_hash = {
++ .next = NULL,
++ .name = "cx18_copy_buf_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001324_hash = {
++ .next = NULL,
++ .name = "cxgbi_ddp_reserve",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001325_hash = {
++ .next = NULL,
++ .name = "datablob_hmac_append",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001326_hash = {
++ .next = NULL,
++ .name = "datablob_hmac_verify",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001327_hash = {
++ .next = NULL,
++ .name = "dataflash_read_fact_otp",
++ .param = PARAM3|PARAM2,
++};
++
++struct size_overflow_hash _001328_hash = {
++ .next = &_000201_hash,
++ .name = "dataflash_read_user_otp",
++ .param = PARAM3|PARAM2,
++};
++
++struct size_overflow_hash _001329_hash = {
++ .next = NULL,
++ .name = "dccp_feat_register_sp",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001330_hash = {
++ .next = NULL,
++ .name = "ddb_input_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001331_hash = {
++ .next = NULL,
++ .name = "dev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001332_hash = {
++ .next = NULL,
++ .name = "diva_os_copy_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001333_hash = {
++ .next = NULL,
++ .name = "diva_os_malloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001334_hash = {
++ .next = NULL,
++ .name = "dlm_dir_lookup",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001335_hash = {
++ .next = NULL,
++ .name = "dm_vcalloc",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _001337_hash = {
++ .next = NULL,
++ .name = "do_proc_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001338_hash = {
++ .next = NULL,
++ .name = "do_readlink",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001339_hash = {
++ .next = NULL,
++ .name = "__do_replace",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001340_hash = {
++ .next = NULL,
++ .name = "do_sigpending",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001341_hash = {
++ .next = &_000371_hash,
++ .name = "drbd_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001342_hash = {
++ .next = NULL,
++ .name = "dsp_buffer_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001343_hash = {
++ .next = NULL,
++ .name = "dump_midi",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001344_hash = {
++ .next = NULL,
++ .name = "dvb_dmxdev_set_buffer_size",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001345_hash = {
++ .next = NULL,
++ .name = "dvb_dvr_set_buffer_size",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001346_hash = {
++ .next = NULL,
++ .name = "dvb_ringbuffer_pkt_read_user",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _001348_hash = {
++ .next = NULL,
++ .name = "dvb_ringbuffer_read_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001349_hash = {
++ .next = NULL,
++ .name = "ecryptfs_filldir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001350_hash = {
++ .next = NULL,
++ .name = "ecryptfs_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001351_hash = {
++ .next = NULL,
++ .name = "ecryptfs_send_message",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001352_hash = {
++ .next = &_000721_hash,
++ .name = "em28xx_init_isoc",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001353_hash = {
++ .next = NULL,
++ .name = "et61x251_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001354_hash = {
++ .next = NULL,
++ .name = "ext4_add_new_descs",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001355_hash = {
++ .next = NULL,
++ .name = "fat_ioctl_filldir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001356_hash = {
++ .next = NULL,
++ .name = "fd_copyout",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001357_hash = {
++ .next = NULL,
++ .name = "f_hidg_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001358_hash = {
++ .next = NULL,
++ .name = "filldir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001359_hash = {
++ .next = NULL,
++ .name = "filldir64",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001360_hash = {
++ .next = NULL,
++ .name = "fops_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001361_hash = {
++ .next = NULL,
++ .name = "from_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001362_hash = {
++ .next = NULL,
++ .name = "fsm_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001363_hash = {
++ .next = NULL,
++ .name = "get_subdir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001364_hash = {
++ .next = NULL,
++ .name = "gspca_dev_probe",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001365_hash = {
++ .next = NULL,
++ .name = "handle_received_packet",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001366_hash = {
++ .next = NULL,
++ .name = "hash_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001367_hash = {
++ .next = NULL,
++ .name = "hdlcdrv_register",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001368_hash = {
++ .next = NULL,
++ .name = "hdpvr_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001369_hash = {
++ .next = NULL,
++ .name = "hid_input_report",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001370_hash = {
++ .next = &_001200_hash,
++ .name = "hidraw_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001371_hash = {
++ .next = NULL,
++ .name = "HiSax_readstatus",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001373_hash = {
++ .next = NULL,
++ .name = "__hwahc_op_set_gtk",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001374_hash = {
++ .next = NULL,
++ .name = "__hwahc_op_set_ptk",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001375_hash = {
++ .next = NULL,
++ .name = "ib_copy_to_udata",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001376_hash = {
++ .next = NULL,
++ .name = "idetape_chrdev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001377_hash = {
++ .next = NULL,
++ .name = "ieee80211_alloc_hw",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001378_hash = {
++ .next = NULL,
++ .name = "ieee80211_bss_info_update",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001379_hash = {
++ .next = NULL,
++ .name = "ilo_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001380_hash = {
++ .next = NULL,
++ .name = "init_map_ipmac",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001382_hash = {
++ .next = NULL,
++ .name = "init_tid_tabs",
++ .param = PARAM2|PARAM4|PARAM3,
++};
++
++struct size_overflow_hash _001385_hash = {
++ .next = NULL,
++ .name = "iowarrior_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001386_hash = {
++ .next = NULL,
++ .name = "ipv6_getsockopt_sticky",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001387_hash = {
++ .next = NULL,
++ .name = "ipwireless_send_packet",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001388_hash = {
++ .next = NULL,
++ .name = "ipx_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001389_hash = {
++ .next = NULL,
++ .name = "iscsi_conn_setup",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001390_hash = {
++ .next = NULL,
++ .name = "iscsi_create_session",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001391_hash = {
++ .next = NULL,
++ .name = "iscsi_host_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001392_hash = {
++ .next = NULL,
++ .name = "iscsi_session_setup",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _001394_hash = {
++ .next = NULL,
++ .name = "iscsit_find_cmd_from_itt_or_dump",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001395_hash = {
++ .next = NULL,
++ .name = "isdn_ppp_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001396_hash = {
++ .next = NULL,
++ .name = "isku_sysfs_read",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001397_hash = {
++ .next = NULL,
++ .name = "isku_sysfs_write",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001398_hash = {
++ .next = NULL,
++ .name = "iso_alloc_urb",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _001400_hash = {
++ .next = NULL,
++ .name = "ivtv_copy_buf_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001401_hash = {
++ .next = NULL,
++ .name = "iwm_rx_handle",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001402_hash = {
++ .next = NULL,
++ .name = "iwm_wdev_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001403_hash = {
++ .next = NULL,
++ .name = "jbd2_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001404_hash = {
++ .next = NULL,
++ .name = "jffs2_do_link",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001405_hash = {
++ .next = NULL,
++ .name = "jffs2_do_unlink",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001406_hash = {
++ .next = NULL,
++ .name = "jffs2_security_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001407_hash = {
++ .next = NULL,
++ .name = "jffs2_trusted_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001408_hash = {
++ .next = NULL,
++ .name = "jffs2_user_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001409_hash = {
++ .next = NULL,
++ .name = "kernel_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001410_hash = {
++ .next = NULL,
++ .name = "keyctl_describe_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001411_hash = {
++ .next = &_001132_hash,
++ .name = "keyctl_get_security",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001412_hash = {
++ .next = NULL,
++ .name = "keyring_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001413_hash = {
++ .next = NULL,
++ .name = "kfifo_copy_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001414_hash = {
++ .next = NULL,
++ .name = "kmem_zalloc_large",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001415_hash = {
++ .next = NULL,
++ .name = "kmp_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001416_hash = {
++ .next = NULL,
++ .name = "koneplus_sysfs_write",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001417_hash = {
++ .next = NULL,
++ .name = "kvm_clear_guest_page",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001418_hash = {
++ .next = NULL,
++ .name = "kvm_read_nested_guest_page",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001419_hash = {
++ .next = &_001034_hash,
++ .name = "l2cap_create_basic_pdu",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001420_hash = {
++ .next = &_000966_hash,
++ .name = "l2cap_create_connless_pdu",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001421_hash = {
++ .next = NULL,
++ .name = "l2cap_create_iframe_pdu",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001422_hash = {
++ .next = NULL,
++ .name = "__lgwrite",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001423_hash = {
++ .next = NULL,
++ .name = "libfc_host_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001424_hash = {
++ .next = NULL,
++ .name = "llcp_sock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001425_hash = {
++ .next = NULL,
++ .name = "macvtap_get_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001426_hash = {
++ .next = NULL,
++ .name = "mcam_v4l_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001427_hash = {
++ .next = NULL,
++ .name = "mce_async_out",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001428_hash = {
++ .next = NULL,
++ .name = "mce_flush_rx_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001429_hash = {
++ .next = NULL,
++ .name = "mdc800_device_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001430_hash = {
++ .next = &_000867_hash,
++ .name = "memcpy_toiovec",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001431_hash = {
++ .next = NULL,
++ .name = "memcpy_toiovecend",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001433_hash = {
++ .next = NULL,
++ .name = "mgt_set_varlen",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001434_hash = {
++ .next = NULL,
++ .name = "mlx4_en_create_rx_ring",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001435_hash = {
++ .next = NULL,
++ .name = "mlx4_en_create_tx_ring",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001436_hash = {
++ .next = NULL,
++ .name = "mon_bin_get_event",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001437_hash = {
++ .next = NULL,
++ .name = "mousedev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001438_hash = {
++ .next = NULL,
++ .name = "move_addr_to_user",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001439_hash = {
++ .next = NULL,
++ .name = "mpihelp_mul",
++ .param = PARAM5|PARAM3,
++};
++
++struct size_overflow_hash _001441_hash = {
++ .next = NULL,
++ .name = "mpi_lshift_limbs",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001442_hash = {
++ .next = NULL,
++ .name = "msnd_fifo_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001443_hash = {
++ .next = NULL,
++ .name = "mtdswap_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001444_hash = {
++ .next = NULL,
++ .name = "neigh_hash_grow",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001445_hash = {
++ .next = NULL,
++ .name = "nfs4_realloc_slot_table",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001446_hash = {
++ .next = NULL,
++ .name = "nfs_idmap_get_key",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001447_hash = {
++ .next = NULL,
++ .name = "nsm_get_handle",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001448_hash = {
++ .next = NULL,
++ .name = "ntfs_malloc_nofs",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001449_hash = {
++ .next = NULL,
++ .name = "ntfs_malloc_nofs_nofail",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001450_hash = {
++ .next = NULL,
++ .name = "nvme_create_queue",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001451_hash = {
++ .next = NULL,
++ .name = "ocfs2_control_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001452_hash = {
++ .next = NULL,
++ .name = "orinoco_add_extscan_result",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001454_hash = {
++ .next = NULL,
++ .name = "override_release",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001455_hash = {
++ .next = NULL,
++ .name = "packet_snd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001456_hash = {
++ .next = NULL,
++ .name = "pcbit_stat",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001457_hash = {
++ .next = NULL,
++ .name = "pcpu_extend_area_map",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001458_hash = {
++ .next = NULL,
++ .name = "pg_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001459_hash = {
++ .next = NULL,
++ .name = "picolcd_debug_eeprom_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001460_hash = {
++ .next = NULL,
++ .name = "pkt_alloc_packet_data",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001461_hash = {
++ .next = NULL,
++ .name = "pmcraid_build_passthrough_ioadls",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001462_hash = {
++ .next = NULL,
++ .name = "pms_capture",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001463_hash = {
++ .next = NULL,
++ .name = "posix_clock_register",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001464_hash = {
++ .next = NULL,
++ .name = "printer_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001465_hash = {
++ .next = NULL,
++ .name = "__proc_file_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001466_hash = {
++ .next = NULL,
++ .name = "pt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001467_hash = {
++ .next = NULL,
++ .name = "put_cmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001468_hash = {
++ .next = NULL,
++ .name = "pvr2_ioread_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001469_hash = {
++ .next = NULL,
++ .name = "pwc_video_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001470_hash = {
++ .next = NULL,
++ .name = "px_raw_event",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001471_hash = {
++ .next = NULL,
++ .name = "qcam_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001472_hash = {
++ .next = NULL,
++ .name = "rawv6_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001473_hash = {
++ .next = NULL,
++ .name = "rds_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001474_hash = {
++ .next = NULL,
++ .name = "read_flush",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001475_hash = {
++ .next = NULL,
++ .name = "read_profile",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001476_hash = {
++ .next = NULL,
++ .name = "read_vmcore",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001477_hash = {
++ .next = NULL,
++ .name = "redirected_tty_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001478_hash = {
++ .next = NULL,
++ .name = "__register_chrdev",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _001480_hash = {
++ .next = NULL,
++ .name = "regmap_raw_write",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001481_hash = {
++ .next = NULL,
++ .name = "reiserfs_allocate_list_bitmaps",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001482_hash = {
++ .next = NULL,
++ .name = "reiserfs_resize",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001483_hash = {
++ .next = NULL,
++ .name = "request_key_auth_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001484_hash = {
++ .next = NULL,
++ .name = "rfkill_fop_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001485_hash = {
++ .next = NULL,
++ .name = "rng_dev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001486_hash = {
++ .next = NULL,
++ .name = "roccat_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001487_hash = {
++ .next = NULL,
++ .name = "sco_sock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001488_hash = {
++ .next = NULL,
++ .name = "scsi_register",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001489_hash = {
++ .next = NULL,
++ .name = "sctp_getsockopt_events",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001490_hash = {
++ .next = NULL,
++ .name = "sctp_getsockopt_maxburst",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001491_hash = {
++ .next = NULL,
++ .name = "sctp_getsockopt_maxseg",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001492_hash = {
++ .next = NULL,
++ .name = "sctpprobe_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001493_hash = {
++ .next = NULL,
++ .name = "sdhci_alloc_host",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001494_hash = {
++ .next = NULL,
++ .name = "selinux_inode_post_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001495_hash = {
++ .next = NULL,
++ .name = "selinux_inode_setsecurity",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001496_hash = {
++ .next = NULL,
++ .name = "selinux_inode_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001497_hash = {
++ .next = NULL,
++ .name = "selinux_secctx_to_secid",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001498_hash = {
++ .next = NULL,
++ .name = "selinux_setprocattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001499_hash = {
++ .next = NULL,
++ .name = "sel_write_context",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001500_hash = {
++ .next = NULL,
++ .name = "seq_copy_in_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001501_hash = {
++ .next = NULL,
++ .name = "seq_open_net",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001502_hash = {
++ .next = NULL,
++ .name = "seq_open_private",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001503_hash = {
++ .next = NULL,
++ .name = "set_arg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001504_hash = {
++ .next = NULL,
++ .name = "sg_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001505_hash = {
++ .next = &_001468_hash,
++ .name = "shash_async_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001506_hash = {
++ .next = NULL,
++ .name = "shash_compat_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001507_hash = {
++ .next = NULL,
++ .name = "shmem_setxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001508_hash = {
++ .next = NULL,
++ .name = "simple_read_from_buffer",
++ .param = PARAM2|PARAM5,
++};
++
++struct size_overflow_hash _001511_hash = {
++ .next = NULL,
++ .name = "sm_checker_extend",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001512_hash = {
++ .next = NULL,
++ .name = "sn9c102_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001513_hash = {
++ .next = NULL,
++ .name = "snd_es1938_capture_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001514_hash = {
++ .next = NULL,
++ .name = "snd_gus_dram_peek",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001515_hash = {
++ .next = NULL,
++ .name = "snd_hdsp_capture_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001516_hash = {
++ .next = NULL,
++ .name = "snd_korg1212_copy_to",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001517_hash = {
++ .next = NULL,
++ .name = "snd_opl4_mem_proc_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001518_hash = {
++ .next = NULL,
++ .name = "snd_pcm_alloc_vmalloc_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001519_hash = {
++ .next = NULL,
++ .name = "snd_pcm_oss_read1",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001520_hash = {
++ .next = NULL,
++ .name = "snd_rawmidi_kernel_read1",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001521_hash = {
++ .next = NULL,
++ .name = "snd_rme9652_capture_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001522_hash = {
++ .next = NULL,
++ .name = "srp_target_alloc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001523_hash = {
++ .next = NULL,
++ .name = "stk_allocate_buffers",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001524_hash = {
++ .next = NULL,
++ .name = "store_ifalias",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001525_hash = {
++ .next = NULL,
++ .name = "store_msg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001526_hash = {
++ .next = NULL,
++ .name = "str_to_user",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001527_hash = {
++ .next = NULL,
++ .name = "subbuf_read_actor",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001528_hash = {
++ .next = NULL,
++ .name = "sys_fgetxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001529_hash = {
++ .next = NULL,
++ .name = "sys_gethostname",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001530_hash = {
++ .next = NULL,
++ .name = "sys_getxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001531_hash = {
++ .next = NULL,
++ .name = "sys_kexec_load",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001532_hash = {
++ .next = &_000129_hash,
++ .name = "sys_msgsnd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001533_hash = {
++ .next = NULL,
++ .name = "sys_process_vm_readv",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _001535_hash = {
++ .next = NULL,
++ .name = "sys_process_vm_writev",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _001537_hash = {
++ .next = NULL,
++ .name = "sys_sched_getaffinity",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001538_hash = {
++ .next = NULL,
++ .name = "sys_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001539_hash = {
++ .next = NULL,
++ .name = "t3_init_l2t",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001540_hash = {
++ .next = NULL,
++ .name = "team_options_register",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001541_hash = {
++ .next = NULL,
++ .name = "tipc_send2name",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001542_hash = {
++ .next = NULL,
++ .name = "tipc_send2port",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001543_hash = {
++ .next = NULL,
++ .name = "tipc_send",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001544_hash = {
++ .next = NULL,
++ .name = "tm6000_i2c_recv_regs16",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001545_hash = {
++ .next = NULL,
++ .name = "tm6000_i2c_recv_regs",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001546_hash = {
++ .next = NULL,
++ .name = "tm6000_i2c_send_regs",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001547_hash = {
++ .next = NULL,
++ .name = "tnode_new",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001548_hash = {
++ .next = NULL,
++ .name = "tomoyo_read_self",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001549_hash = {
++ .next = NULL,
++ .name = "tomoyo_update_domain",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001550_hash = {
++ .next = NULL,
++ .name = "tomoyo_update_policy",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001551_hash = {
++ .next = NULL,
++ .name = "tpm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001552_hash = {
++ .next = NULL,
++ .name = "TSS_rawhmac",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001553_hash = {
++ .next = NULL,
++ .name = "tt3650_ci_msg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001554_hash = {
++ .next = NULL,
++ .name = "tun_get_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001555_hash = {
++ .next = NULL,
++ .name = "ubi_dbg_dump_flash",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001556_hash = {
++ .next = &_000954_hash,
++ .name = "ubi_io_write",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _001558_hash = {
++ .next = NULL,
++ .name = "uio_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001559_hash = {
++ .next = NULL,
++ .name = "unix_seqpacket_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001560_hash = {
++ .next = NULL,
++ .name = "unlink1",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001562_hash = {
++ .next = NULL,
++ .name = "usb_allocate_stream_buffers",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001563_hash = {
++ .next = NULL,
++ .name = "usbdev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001564_hash = {
++ .next = NULL,
++ .name = "usblp_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001565_hash = {
++ .next = NULL,
++ .name = "usbtmc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001566_hash = {
++ .next = NULL,
++ .name = "usbvision_v4l2_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001567_hash = {
++ .next = NULL,
++ .name = "_usb_writeN_sync",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001568_hash = {
++ .next = NULL,
++ .name = "user_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001569_hash = {
++ .next = NULL,
++ .name = "v4l_stk_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001570_hash = {
++ .next = NULL,
++ .name = "vcs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001571_hash = {
++ .next = NULL,
++ .name = "vdma_mem_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001572_hash = {
++ .next = NULL,
++ .name = "venus_create",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001573_hash = {
++ .next = NULL,
++ .name = "venus_link",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001574_hash = {
++ .next = NULL,
++ .name = "venus_lookup",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001575_hash = {
++ .next = NULL,
++ .name = "venus_mkdir",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001576_hash = {
++ .next = NULL,
++ .name = "venus_remove",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001577_hash = {
++ .next = NULL,
++ .name = "venus_rename",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _001579_hash = {
++ .next = NULL,
++ .name = "venus_rmdir",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001580_hash = {
++ .next = NULL,
++ .name = "venus_symlink",
++ .param = PARAM4|PARAM6,
++};
++
++struct size_overflow_hash _001582_hash = {
++ .next = NULL,
++ .name = "vfs_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001583_hash = {
++ .next = NULL,
++ .name = "vfs_readv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001584_hash = {
++ .next = NULL,
++ .name = "vfs_writev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001585_hash = {
++ .next = NULL,
++ .name = "vga_arb_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001586_hash = {
++ .next = NULL,
++ .name = "vhci_put_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001587_hash = {
++ .next = NULL,
++ .name = "vhost_add_used_n",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001588_hash = {
++ .next = NULL,
++ .name = "__videobuf_copy_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001589_hash = {
++ .next = NULL,
++ .name = "videobuf_pages_to_sg",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001590_hash = {
++ .next = NULL,
++ .name = "videobuf_vmalloc_to_sg",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001591_hash = {
++ .next = NULL,
++ .name = "virtnet_send_command",
++ .param = PARAM5|PARAM6,
++};
++
++struct size_overflow_hash _001593_hash = {
++ .next = NULL,
++ .name = "vmbus_establish_gpadl",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001594_hash = {
++ .next = &_001501_hash,
++ .name = "vol_cdev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001595_hash = {
++ .next = NULL,
++ .name = "w9966_v4l_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001596_hash = {
++ .next = NULL,
++ .name = "wdm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001597_hash = {
++ .next = &_000063_hash,
++ .name = "wusb_prf",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _001598_hash = {
++ .next = NULL,
++ .name = "xdi_copy_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001599_hash = {
++ .next = NULL,
++ .name = "xfs_buf_get_uncached",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001600_hash = {
++ .next = NULL,
++ .name = "xfs_efd_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001601_hash = {
++ .next = NULL,
++ .name = "xfs_efi_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001602_hash = {
++ .next = NULL,
++ .name = "xfs_iext_realloc_direct",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001603_hash = {
++ .next = NULL,
++ .name = "xfs_iext_realloc_indirect",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001604_hash = {
++ .next = NULL,
++ .name = "xfs_inumbers_fmt",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001605_hash = {
++ .next = NULL,
++ .name = "xlog_recover_add_to_cont_trans",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001606_hash = {
++ .next = NULL,
++ .name = "xz_dec_lzma2_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001607_hash = {
++ .next = NULL,
++ .name = "_zd_iowrite32v_locked",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001608_hash = {
++ .next = NULL,
++ .name = "aat2870_reg_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001609_hash = {
++ .next = NULL,
++ .name = "add_sctp_bind_addr",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001610_hash = {
++ .next = NULL,
++ .name = "aes_decrypt_fail_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001611_hash = {
++ .next = NULL,
++ .name = "aes_decrypt_interrupt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001612_hash = {
++ .next = NULL,
++ .name = "aes_decrypt_packets_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001613_hash = {
++ .next = NULL,
++ .name = "aes_encrypt_fail_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001614_hash = {
++ .next = NULL,
++ .name = "aes_encrypt_interrupt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001615_hash = {
++ .next = NULL,
++ .name = "aes_encrypt_packets_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001616_hash = {
++ .next = NULL,
++ .name = "afs_cell_lookup",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001617_hash = {
++ .next = NULL,
++ .name = "agp_allocate_memory",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001618_hash = {
++ .next = NULL,
++ .name = "__alloc_bootmem",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001619_hash = {
++ .next = NULL,
++ .name = "__alloc_bootmem_low",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001620_hash = {
++ .next = NULL,
++ .name = "__alloc_bootmem_node_nopanic",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001621_hash = {
++ .next = NULL,
++ .name = "alloc_cc770dev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001622_hash = {
++ .next = NULL,
++ .name = "__alloc_ei_netdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001623_hash = {
++ .next = NULL,
++ .name = "__alloc_eip_netdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001624_hash = {
++ .next = NULL,
++ .name = "alloc_libipw",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001625_hash = {
++ .next = NULL,
++ .name = "alloc_pg_vec",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001626_hash = {
++ .next = NULL,
++ .name = "alloc_sja1000dev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001627_hash = {
++ .next = NULL,
++ .name = "alloc_targets",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001630_hash = {
++ .next = NULL,
++ .name = "ath6kl_disconnect_timeout_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001631_hash = {
++ .next = NULL,
++ .name = "ath6kl_endpoint_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001632_hash = {
++ .next = NULL,
++ .name = "ath6kl_fwlog_mask_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001633_hash = {
++ .next = NULL,
++ .name = "ath6kl_keepalive_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001634_hash = {
++ .next = NULL,
++ .name = "ath6kl_listen_int_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001635_hash = {
++ .next = NULL,
++ .name = "ath6kl_lrssi_roam_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001636_hash = {
++ .next = NULL,
++ .name = "ath6kl_regdump_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001637_hash = {
++ .next = NULL,
++ .name = "ath6kl_regread_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001638_hash = {
++ .next = NULL,
++ .name = "ath6kl_regwrite_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001639_hash = {
++ .next = NULL,
++ .name = "ath6kl_roam_table_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001640_hash = {
++ .next = NULL,
++ .name = "ath9k_debugfs_read_buf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001641_hash = {
++ .next = NULL,
++ .name = "atk_debugfs_ggrp_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001642_hash = {
++ .next = NULL,
++ .name = "b43_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001643_hash = {
++ .next = NULL,
++ .name = "b43legacy_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001644_hash = {
++ .next = NULL,
++ .name = "bcm_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001645_hash = {
++ .next = NULL,
++ .name = "bfad_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001646_hash = {
++ .next = NULL,
++ .name = "bfad_debugfs_read_regrd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001647_hash = {
++ .next = NULL,
++ .name = "blk_init_tags",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001648_hash = {
++ .next = NULL,
++ .name = "blk_queue_init_tags",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001649_hash = {
++ .next = NULL,
++ .name = "blk_rq_map_kern",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001650_hash = {
++ .next = NULL,
++ .name = "bm_entry_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001651_hash = {
++ .next = NULL,
++ .name = "bm_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001652_hash = {
++ .next = NULL,
++ .name = "bnad_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001653_hash = {
++ .next = NULL,
++ .name = "bnad_debugfs_read_regrd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001654_hash = {
++ .next = NULL,
++ .name = "btmrvl_curpsmode_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001655_hash = {
++ .next = NULL,
++ .name = "btmrvl_gpiogap_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001656_hash = {
++ .next = NULL,
++ .name = "btmrvl_hscfgcmd_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001657_hash = {
++ .next = NULL,
++ .name = "btmrvl_hscmd_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001658_hash = {
++ .next = NULL,
++ .name = "btmrvl_hsmode_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001659_hash = {
++ .next = NULL,
++ .name = "btmrvl_hsstate_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001660_hash = {
++ .next = NULL,
++ .name = "btmrvl_pscmd_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001661_hash = {
++ .next = NULL,
++ .name = "btmrvl_psmode_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001662_hash = {
++ .next = NULL,
++ .name = "btmrvl_psstate_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001663_hash = {
++ .next = NULL,
++ .name = "btmrvl_txdnldready_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001664_hash = {
++ .next = NULL,
++ .name = "btrfs_add_link",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001665_hash = {
++ .next = NULL,
++ .name = "btrfs_discard_extent",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001666_hash = {
++ .next = NULL,
++ .name = "btrfs_find_create_tree_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001667_hash = {
++ .next = NULL,
++ .name = "btrfsic_map_block",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001668_hash = {
++ .next = NULL,
++ .name = "caif_stream_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001669_hash = {
++ .next = NULL,
++ .name = "carl9170_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001670_hash = {
++ .next = NULL,
++ .name = "carl9170_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001671_hash = {
++ .next = NULL,
++ .name = "cgroup_read_s64",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001672_hash = {
++ .next = NULL,
++ .name = "cgroup_read_u64",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001673_hash = {
++ .next = NULL,
++ .name = "channel_type_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001674_hash = {
++ .next = NULL,
++ .name = "codec_list_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001675_hash = {
++ .next = NULL,
++ .name = "configfs_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001676_hash = {
++ .next = NULL,
++ .name = "cpuset_common_file_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001677_hash = {
++ .next = NULL,
++ .name = "create_subvol",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001678_hash = {
++ .next = NULL,
++ .name = "cx18_copy_mdl_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001679_hash = {
++ .next = NULL,
++ .name = "dai_list_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001680_hash = {
++ .next = NULL,
++ .name = "dapm_bias_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001681_hash = {
++ .next = NULL,
++ .name = "dapm_widget_power_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001684_hash = {
++ .next = NULL,
++ .name = "dbgfs_frame",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001685_hash = {
++ .next = NULL,
++ .name = "dbgfs_state",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001686_hash = {
++ .next = NULL,
++ .name = "debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001687_hash = {
++ .next = NULL,
++ .name = "debug_output",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001688_hash = {
++ .next = NULL,
++ .name = "debug_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001689_hash = {
++ .next = NULL,
++ .name = "dfs_file_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001690_hash = {
++ .next = NULL,
++ .name = "dma_memcpy_pg_to_iovec",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001691_hash = {
++ .next = NULL,
++ .name = "dma_memcpy_to_iovec",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001692_hash = {
++ .next = NULL,
++ .name = "dma_rx_errors_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001693_hash = {
++ .next = NULL,
++ .name = "dma_rx_requested_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001694_hash = {
++ .next = NULL,
++ .name = "dma_show_regs",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001695_hash = {
++ .next = NULL,
++ .name = "dma_tx_errors_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001696_hash = {
++ .next = NULL,
++ .name = "dma_tx_requested_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001697_hash = {
++ .next = &_001103_hash,
++ .name = "dm_exception_table_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001698_hash = {
++ .next = NULL,
++ .name = "dn_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001699_hash = {
++ .next = NULL,
++ .name = "dns_resolver_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001700_hash = {
++ .next = NULL,
++ .name = "do_msgrcv",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001701_hash = {
++ .next = &_001394_hash,
++ .name = "driver_state_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001702_hash = {
++ .next = NULL,
++ .name = "dvb_demux_do_ioctl",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001703_hash = {
++ .next = NULL,
++ .name = "dvb_dmxdev_buffer_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001704_hash = {
++ .next = NULL,
++ .name = "dvb_dvr_do_ioctl",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001705_hash = {
++ .next = NULL,
++ .name = "econet_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001706_hash = {
++ .next = NULL,
++ .name = "event_calibration_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001707_hash = {
++ .next = NULL,
++ .name = "event_heart_beat_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001708_hash = {
++ .next = &_001014_hash,
++ .name = "event_oom_late_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001709_hash = {
++ .next = NULL,
++ .name = "event_phy_transmit_error_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001710_hash = {
++ .next = NULL,
++ .name = "event_rx_mem_empty_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001711_hash = {
++ .next = NULL,
++ .name = "event_rx_mismatch_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001712_hash = {
++ .next = NULL,
++ .name = "event_rx_pool_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001713_hash = {
++ .next = NULL,
++ .name = "event_tx_stuck_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001714_hash = {
++ .next = NULL,
++ .name = "excessive_retries_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001715_hash = {
++ .next = NULL,
++ .name = "fallback_on_nodma_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001716_hash = {
++ .next = NULL,
++ .name = "filter_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001717_hash = {
++ .next = NULL,
++ .name = "format_devstat_counter",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001718_hash = {
++ .next = NULL,
++ .name = "fragmentation_threshold_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001719_hash = {
++ .next = NULL,
++ .name = "fuse_conn_limit_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001720_hash = {
++ .next = NULL,
++ .name = "fuse_conn_waiting_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001721_hash = {
++ .next = NULL,
++ .name = "generic_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001722_hash = {
++ .next = NULL,
++ .name = "gpio_power_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001723_hash = {
++ .next = NULL,
++ .name = "hash_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001724_hash = {
++ .next = NULL,
++ .name = "ht40allow_map_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001725_hash = {
++ .next = NULL,
++ .name = "hwflags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001726_hash = {
++ .next = NULL,
++ .name = "hysdn_conf_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001727_hash = {
++ .next = NULL,
++ .name = "i2400m_rx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001728_hash = {
++ .next = NULL,
++ .name = "i2400m_tx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001729_hash = {
++ .next = NULL,
++ .name = "idmouse_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001730_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001731_hash = {
++ .next = NULL,
++ .name = "ieee80211_rx_bss_info",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001732_hash = {
++ .next = NULL,
++ .name = "ikconfig_read_current",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001733_hash = {
++ .next = NULL,
++ .name = "il3945_sta_dbgfs_stats_table_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001734_hash = {
++ .next = NULL,
++ .name = "il3945_ucode_general_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001735_hash = {
++ .next = NULL,
++ .name = "il3945_ucode_rx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001736_hash = {
++ .next = NULL,
++ .name = "il3945_ucode_tx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001737_hash = {
++ .next = NULL,
++ .name = "il4965_rs_sta_dbgfs_rate_scale_data_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001738_hash = {
++ .next = NULL,
++ .name = "il4965_rs_sta_dbgfs_scale_table_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001739_hash = {
++ .next = NULL,
++ .name = "il4965_rs_sta_dbgfs_stats_table_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001740_hash = {
++ .next = NULL,
++ .name = "il4965_ucode_general_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001741_hash = {
++ .next = NULL,
++ .name = "il4965_ucode_rx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001742_hash = {
++ .next = NULL,
++ .name = "il4965_ucode_tx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001743_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_chain_noise_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001744_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_channels_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001745_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_disable_ht40_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001746_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_fh_reg_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001747_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_force_reset_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001748_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_interrupt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001749_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_missed_beacon_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001750_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_nvm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001751_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_power_save_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001752_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_qos_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001753_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_rxon_filter_flags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001754_hash = {
++ .next = &_001681_hash,
++ .name = "il_dbgfs_rxon_flags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001755_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_rx_queue_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001756_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_rx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001757_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_sensitivity_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001758_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_sram_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001759_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_stations_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001760_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001761_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_tx_queue_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001762_hash = {
++ .next = NULL,
++ .name = "il_dbgfs_tx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001763_hash = {
++ .next = NULL,
++ .name = "ima_show_htable_value",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001765_hash = {
++ .next = NULL,
++ .name = "ipw_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001766_hash = {
++ .next = NULL,
++ .name = "irda_recvmsg_stream",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001767_hash = {
++ .next = NULL,
++ .name = "iscsi_tcp_conn_setup",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001768_hash = {
++ .next = NULL,
++ .name = "isr_cmd_cmplt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001769_hash = {
++ .next = NULL,
++ .name = "isr_commands_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001770_hash = {
++ .next = NULL,
++ .name = "isr_decrypt_done_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001771_hash = {
++ .next = NULL,
++ .name = "isr_dma0_done_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001772_hash = {
++ .next = NULL,
++ .name = "isr_dma1_done_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001773_hash = {
++ .next = NULL,
++ .name = "isr_fiqs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001774_hash = {
++ .next = NULL,
++ .name = "isr_host_acknowledges_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001775_hash = {
++ .next = &_001696_hash,
++ .name = "isr_hw_pm_mode_changes_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001776_hash = {
++ .next = NULL,
++ .name = "isr_irqs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001777_hash = {
++ .next = NULL,
++ .name = "isr_low_rssi_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001778_hash = {
++ .next = NULL,
++ .name = "isr_pci_pm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001779_hash = {
++ .next = NULL,
++ .name = "isr_rx_headers_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001780_hash = {
++ .next = NULL,
++ .name = "isr_rx_mem_overflow_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001781_hash = {
++ .next = NULL,
++ .name = "isr_rx_procs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001782_hash = {
++ .next = NULL,
++ .name = "isr_rx_rdys_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001783_hash = {
++ .next = NULL,
++ .name = "isr_tx_exch_complete_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001784_hash = {
++ .next = NULL,
++ .name = "isr_tx_procs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001785_hash = {
++ .next = NULL,
++ .name = "isr_wakeups_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001786_hash = {
++ .next = NULL,
++ .name = "ivtv_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001787_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_bt_traffic_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001788_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_chain_noise_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001789_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_channels_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001790_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_current_sleep_command_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001791_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_disable_ht40_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001792_hash = {
++ .next = &_000393_hash,
++ .name = "iwl_dbgfs_fh_reg_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001793_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_force_reset_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001794_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_interrupt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001795_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_log_event_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001796_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_missed_beacon_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001797_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_nvm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001798_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_plcp_delta_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001799_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_power_save_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001800_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_protection_mode_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001801_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_qos_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001802_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_reply_tx_error_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001803_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_rx_handlers_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001804_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_rxon_filter_flags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001805_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_rxon_flags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001806_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_rx_queue_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001807_hash = {
++ .next = &_000425_hash,
++ .name = "iwl_dbgfs_rx_statistics_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001808_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_sensitivity_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001809_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_sleep_level_override_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001810_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_sram_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001811_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_stations_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001812_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001813_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_temperature_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001814_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_thermal_throttling_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001815_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_traffic_log_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001816_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_tx_queue_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001817_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_tx_statistics_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001818_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_ucode_bt_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001819_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_ucode_general_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001820_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_ucode_rx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001821_hash = {
++ .next = &_000349_hash,
++ .name = "iwl_dbgfs_ucode_tracing_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001822_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_ucode_tx_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001823_hash = {
++ .next = NULL,
++ .name = "iwl_dbgfs_wowlan_sram_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001824_hash = {
++ .next = &_001314_hash,
++ .name = "iwm_if_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001825_hash = {
++ .next = NULL,
++ .name = "kernel_readv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001826_hash = {
++ .next = NULL,
++ .name = "key_algorithm_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001827_hash = {
++ .next = NULL,
++ .name = "key_icverrors_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001828_hash = {
++ .next = NULL,
++ .name = "key_key_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001829_hash = {
++ .next = NULL,
++ .name = "key_replays_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001830_hash = {
++ .next = NULL,
++ .name = "key_rx_spec_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001831_hash = {
++ .next = NULL,
++ .name = "key_tx_spec_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001832_hash = {
++ .next = NULL,
++ .name = "__kfifo_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001833_hash = {
++ .next = NULL,
++ .name = "__kfifo_to_user_r",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001834_hash = {
++ .next = NULL,
++ .name = "kmem_zalloc_greedy",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _001836_hash = {
++ .next = NULL,
++ .name = "l2cap_chan_send",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001837_hash = {
++ .next = NULL,
++ .name = "l2cap_sar_segment_sdu",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001838_hash = {
++ .next = NULL,
++ .name = "lbs_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001839_hash = {
++ .next = NULL,
++ .name = "lbs_dev_info",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001840_hash = {
++ .next = NULL,
++ .name = "lbs_host_sleep_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001841_hash = {
++ .next = NULL,
++ .name = "lbs_rdbbp_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001842_hash = {
++ .next = NULL,
++ .name = "lbs_rdmac_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001843_hash = {
++ .next = NULL,
++ .name = "lbs_rdrf_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001844_hash = {
++ .next = NULL,
++ .name = "lbs_sleepparams_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001845_hash = {
++ .next = NULL,
++ .name = "lbs_threshold_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001846_hash = {
++ .next = NULL,
++ .name = "libfc_vport_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001847_hash = {
++ .next = NULL,
++ .name = "lkdtm_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001848_hash = {
++ .next = NULL,
++ .name = "llcp_sock_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001849_hash = {
++ .next = NULL,
++ .name = "long_retry_limit_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001850_hash = {
++ .next = NULL,
++ .name = "lpfc_debugfs_dif_err_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001851_hash = {
++ .next = NULL,
++ .name = "lpfc_debugfs_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001852_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_baracc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001853_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_ctlacc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001854_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_drbacc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001855_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_extacc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001856_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_mbxacc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001857_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_pcicfg_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001858_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_queacc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001859_hash = {
++ .next = NULL,
++ .name = "lpfc_idiag_queinfo_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001860_hash = {
++ .next = NULL,
++ .name = "mac80211_format_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001861_hash = {
++ .next = NULL,
++ .name = "macvtap_put_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001862_hash = {
++ .next = NULL,
++ .name = "macvtap_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001863_hash = {
++ .next = NULL,
++ .name = "mic_calc_failure_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001864_hash = {
++ .next = NULL,
++ .name = "mic_rx_pkts_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001865_hash = {
++ .next = NULL,
++ .name = "minstrel_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001866_hash = {
++ .next = NULL,
++ .name = "mmc_ext_csd_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001867_hash = {
++ .next = NULL,
++ .name = "mon_bin_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001868_hash = {
++ .next = NULL,
++ .name = "mon_stat_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001870_hash = {
++ .next = NULL,
++ .name = "mqueue_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001871_hash = {
++ .next = NULL,
++ .name = "mwifiex_debug_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001872_hash = {
++ .next = NULL,
++ .name = "mwifiex_getlog_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001873_hash = {
++ .next = NULL,
++ .name = "mwifiex_info_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001874_hash = {
++ .next = NULL,
++ .name = "mwifiex_rdeeprom_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001875_hash = {
++ .next = NULL,
++ .name = "mwifiex_regrdwr_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001876_hash = {
++ .next = NULL,
++ .name = "nfsd_vfs_read",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001877_hash = {
++ .next = NULL,
++ .name = "nfsd_vfs_write",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001878_hash = {
++ .next = NULL,
++ .name = "nfs_idmap_lookup_id",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001879_hash = {
++ .next = NULL,
++ .name = "o2hb_debug_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001880_hash = {
++ .next = NULL,
++ .name = "o2net_debug_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001881_hash = {
++ .next = NULL,
++ .name = "ocfs2_control_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001882_hash = {
++ .next = NULL,
++ .name = "ocfs2_debug_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001883_hash = {
++ .next = NULL,
++ .name = "ocfs2_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001884_hash = {
++ .next = NULL,
++ .name = "oom_adjust_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001885_hash = {
++ .next = NULL,
++ .name = "oom_score_adj_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001886_hash = {
++ .next = NULL,
++ .name = "oprofilefs_str_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001887_hash = {
++ .next = NULL,
++ .name = "oprofilefs_ulong_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001888_hash = {
++ .next = NULL,
++ .name = "_osd_req_list_objects",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _001889_hash = {
++ .next = NULL,
++ .name = "osd_req_read_kern",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001890_hash = {
++ .next = NULL,
++ .name = "osd_req_write_kern",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _001891_hash = {
++ .next = NULL,
++ .name = "p54_init_common",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _001892_hash = {
++ .next = NULL,
++ .name = "packet_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001893_hash = {
++ .next = NULL,
++ .name = "page_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001894_hash = {
++ .next = NULL,
++ .name = "pcf50633_write_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001895_hash = {
++ .next = NULL,
++ .name = "platform_list_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001896_hash = {
++ .next = NULL,
++ .name = "pm860x_bulk_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001897_hash = {
++ .next = NULL,
++ .name = "pm_qos_power_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001898_hash = {
++ .next = NULL,
++ .name = "pms_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001899_hash = {
++ .next = NULL,
++ .name = "port_show_regs",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001900_hash = {
++ .next = NULL,
++ .name = "proc_coredump_filter_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001901_hash = {
++ .next = NULL,
++ .name = "proc_fdinfo_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001902_hash = {
++ .next = NULL,
++ .name = "proc_info_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001903_hash = {
++ .next = NULL,
++ .name = "proc_loginuid_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001904_hash = {
++ .next = NULL,
++ .name = "proc_pid_attr_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001905_hash = {
++ .next = NULL,
++ .name = "proc_pid_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001906_hash = {
++ .next = NULL,
++ .name = "proc_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001907_hash = {
++ .next = NULL,
++ .name = "proc_self_readlink",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001908_hash = {
++ .next = NULL,
++ .name = "proc_sessionid_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001909_hash = {
++ .next = NULL,
++ .name = "provide_user_output",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001910_hash = {
++ .next = NULL,
++ .name = "ps_pspoll_max_apturn_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001911_hash = {
++ .next = NULL,
++ .name = "ps_pspoll_timeouts_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001912_hash = {
++ .next = NULL,
++ .name = "ps_pspoll_utilization_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001913_hash = {
++ .next = NULL,
++ .name = "pstore_file_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001914_hash = {
++ .next = NULL,
++ .name = "ps_upsd_max_apturn_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001915_hash = {
++ .next = NULL,
++ .name = "ps_upsd_max_sptime_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001916_hash = {
++ .next = NULL,
++ .name = "ps_upsd_timeouts_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001917_hash = {
++ .next = NULL,
++ .name = "ps_upsd_utilization_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001918_hash = {
++ .next = NULL,
++ .name = "pvr2_v4l2_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001919_hash = {
++ .next = NULL,
++ .name = "pwr_disable_ps_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001920_hash = {
++ .next = NULL,
++ .name = "pwr_elp_enter_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001921_hash = {
++ .next = NULL,
++ .name = "pwr_enable_ps_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001922_hash = {
++ .next = NULL,
++ .name = "pwr_fix_tsf_ps_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001923_hash = {
++ .next = NULL,
++ .name = "pwr_missing_bcns_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001924_hash = {
++ .next = NULL,
++ .name = "pwr_power_save_off_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001925_hash = {
++ .next = &_000501_hash,
++ .name = "pwr_ps_enter_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001926_hash = {
++ .next = NULL,
++ .name = "pwr_rcvd_awake_beacons_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001927_hash = {
++ .next = NULL,
++ .name = "pwr_rcvd_beacons_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001928_hash = {
++ .next = NULL,
++ .name = "pwr_tx_without_ps_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001929_hash = {
++ .next = NULL,
++ .name = "pwr_tx_with_ps_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001930_hash = {
++ .next = NULL,
++ .name = "pwr_wake_on_host_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001931_hash = {
++ .next = NULL,
++ .name = "pwr_wake_on_timer_exp_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001932_hash = {
++ .next = NULL,
++ .name = "queues_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001933_hash = {
++ .next = NULL,
++ .name = "raw_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001934_hash = {
++ .next = NULL,
++ .name = "rcname_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001935_hash = {
++ .next = NULL,
++ .name = "read_4k_modal_eeprom",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001936_hash = {
++ .next = NULL,
++ .name = "read_9287_modal_eeprom",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001937_hash = {
++ .next = NULL,
++ .name = "reada_find_extent",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001938_hash = {
++ .next = NULL,
++ .name = "read_def_modal_eeprom",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001939_hash = {
++ .next = NULL,
++ .name = "read_enabled_file_bool",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001940_hash = {
++ .next = NULL,
++ .name = "read_file_ani",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001941_hash = {
++ .next = NULL,
++ .name = "read_file_antenna",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001942_hash = {
++ .next = NULL,
++ .name = "read_file_base_eeprom",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001943_hash = {
++ .next = NULL,
++ .name = "read_file_beacon",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001944_hash = {
++ .next = NULL,
++ .name = "read_file_blob",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001945_hash = {
++ .next = NULL,
++ .name = "read_file_bool",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001946_hash = {
++ .next = NULL,
++ .name = "read_file_credit_dist_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001947_hash = {
++ .next = NULL,
++ .name = "read_file_debug",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001948_hash = {
++ .next = NULL,
++ .name = "read_file_disable_ani",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001949_hash = {
++ .next = NULL,
++ .name = "read_file_dma",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001950_hash = {
++ .next = NULL,
++ .name = "read_file_dump_nfcal",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001951_hash = {
++ .next = NULL,
++ .name = "read_file_frameerrors",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001952_hash = {
++ .next = NULL,
++ .name = "read_file_interrupt",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001953_hash = {
++ .next = NULL,
++ .name = "read_file_misc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001954_hash = {
++ .next = NULL,
++ .name = "read_file_modal_eeprom",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001955_hash = {
++ .next = NULL,
++ .name = "read_file_queue",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001956_hash = {
++ .next = NULL,
++ .name = "read_file_rcstat",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001957_hash = {
++ .next = NULL,
++ .name = "read_file_recv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001958_hash = {
++ .next = NULL,
++ .name = "read_file_regidx",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001959_hash = {
++ .next = &_001952_hash,
++ .name = "read_file_regval",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001960_hash = {
++ .next = NULL,
++ .name = "read_file_reset",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001961_hash = {
++ .next = NULL,
++ .name = "read_file_rx_chainmask",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001962_hash = {
++ .next = NULL,
++ .name = "read_file_slot",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001963_hash = {
++ .next = NULL,
++ .name = "read_file_stations",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001964_hash = {
++ .next = NULL,
++ .name = "read_file_tgt_int_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001965_hash = {
++ .next = NULL,
++ .name = "read_file_tgt_rx_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001966_hash = {
++ .next = NULL,
++ .name = "read_file_tgt_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001967_hash = {
++ .next = NULL,
++ .name = "read_file_tgt_tx_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001968_hash = {
++ .next = NULL,
++ .name = "read_file_tx_chainmask",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001969_hash = {
++ .next = NULL,
++ .name = "read_file_war_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001970_hash = {
++ .next = NULL,
++ .name = "read_file_xmit",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001971_hash = {
++ .next = NULL,
++ .name = "read_from_oldmem",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _001972_hash = {
++ .next = NULL,
++ .name = "read_oldmem",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001973_hash = {
++ .next = NULL,
++ .name = "regmap_name_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001974_hash = {
++ .next = NULL,
++ .name = "repair_io_failure",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001975_hash = {
++ .next = NULL,
++ .name = "request_key_and_link",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001976_hash = {
++ .next = NULL,
++ .name = "res_counter_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _001977_hash = {
++ .next = NULL,
++ .name = "retry_count_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001978_hash = {
++ .next = NULL,
++ .name = "rs_sta_dbgfs_rate_scale_data_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001979_hash = {
++ .next = NULL,
++ .name = "rs_sta_dbgfs_scale_table_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001980_hash = {
++ .next = NULL,
++ .name = "rs_sta_dbgfs_stats_table_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001981_hash = {
++ .next = NULL,
++ .name = "rts_threshold_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001982_hash = {
++ .next = NULL,
++ .name = "rx_dropped_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001983_hash = {
++ .next = NULL,
++ .name = "rx_fcs_err_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001984_hash = {
++ .next = NULL,
++ .name = "rx_hdr_overflow_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001985_hash = {
++ .next = NULL,
++ .name = "rx_hw_stuck_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001986_hash = {
++ .next = NULL,
++ .name = "rx_out_of_mem_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001987_hash = {
++ .next = NULL,
++ .name = "rx_path_reset_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001988_hash = {
++ .next = NULL,
++ .name = "rxpipe_beacon_buffer_thres_host_int_trig_rx_data_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001989_hash = {
++ .next = NULL,
++ .name = "rxpipe_descr_host_int_trig_rx_data_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001990_hash = {
++ .next = NULL,
++ .name = "rxpipe_missed_beacon_host_int_trig_rx_data_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001991_hash = {
++ .next = NULL,
++ .name = "rxpipe_rx_prep_beacon_drop_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001992_hash = {
++ .next = NULL,
++ .name = "rxpipe_tx_xfr_host_int_trig_rx_data_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001993_hash = {
++ .next = NULL,
++ .name = "rx_reset_counter_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001994_hash = {
++ .next = NULL,
++ .name = "rx_xfr_hint_trig_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001995_hash = {
++ .next = NULL,
++ .name = "s5m_bulk_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001996_hash = {
++ .next = NULL,
++ .name = "scrub_setup_recheck_block",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _001998_hash = {
++ .next = NULL,
++ .name = "scsi_adjust_queue_depth",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _001999_hash = {
++ .next = NULL,
++ .name = "selinux_inode_notifysecctx",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002000_hash = {
++ .next = NULL,
++ .name = "sel_read_avc_cache_threshold",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002001_hash = {
++ .next = NULL,
++ .name = "sel_read_avc_hash_stats",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002002_hash = {
++ .next = NULL,
++ .name = "sel_read_bool",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002003_hash = {
++ .next = NULL,
++ .name = "sel_read_checkreqprot",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002004_hash = {
++ .next = NULL,
++ .name = "sel_read_class",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002005_hash = {
++ .next = NULL,
++ .name = "sel_read_enforce",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002006_hash = {
++ .next = NULL,
++ .name = "sel_read_handle_status",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002007_hash = {
++ .next = NULL,
++ .name = "sel_read_handle_unknown",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002008_hash = {
++ .next = NULL,
++ .name = "sel_read_initcon",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002009_hash = {
++ .next = NULL,
++ .name = "sel_read_mls",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002010_hash = {
++ .next = NULL,
++ .name = "sel_read_perm",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002011_hash = {
++ .next = NULL,
++ .name = "sel_read_policy",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002012_hash = {
++ .next = NULL,
++ .name = "sel_read_policycap",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002013_hash = {
++ .next = NULL,
++ .name = "sel_read_policyvers",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002014_hash = {
++ .next = NULL,
++ .name = "send_msg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002015_hash = {
++ .next = NULL,
++ .name = "send_packet",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002016_hash = {
++ .next = NULL,
++ .name = "short_retry_limit_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002017_hash = {
++ .next = NULL,
++ .name = "simple_attr_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002018_hash = {
++ .next = NULL,
++ .name = "simple_transaction_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002019_hash = {
++ .next = NULL,
++ .name = "skb_copy_datagram_const_iovec",
++ .param = PARAM2|PARAM5|PARAM4,
++};
++
++struct size_overflow_hash _002022_hash = {
++ .next = NULL,
++ .name = "skb_copy_datagram_iovec",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _002024_hash = {
++ .next = NULL,
++ .name = "smk_read_ambient",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002025_hash = {
++ .next = NULL,
++ .name = "smk_read_direct",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002026_hash = {
++ .next = NULL,
++ .name = "smk_read_doi",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002027_hash = {
++ .next = NULL,
++ .name = "smk_read_logging",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002028_hash = {
++ .next = NULL,
++ .name = "smk_read_onlycap",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002029_hash = {
++ .next = NULL,
++ .name = "snapshot_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002030_hash = {
++ .next = NULL,
++ .name = "snd_cs4281_BA0_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002031_hash = {
++ .next = NULL,
++ .name = "snd_cs4281_BA1_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002032_hash = {
++ .next = NULL,
++ .name = "snd_cs46xx_io_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002033_hash = {
++ .next = NULL,
++ .name = "snd_gus_dram_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002034_hash = {
++ .next = NULL,
++ .name = "snd_pcm_oss_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002035_hash = {
++ .next = NULL,
++ .name = "snd_rme32_capture_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002036_hash = {
++ .next = NULL,
++ .name = "snd_rme96_capture_copy",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002037_hash = {
++ .next = NULL,
++ .name = "snd_soc_hw_bulk_write_raw",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002038_hash = {
++ .next = &_001908_hash,
++ .name = "spi_show_regs",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002039_hash = {
++ .next = NULL,
++ .name = "sta_agg_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002040_hash = {
++ .next = NULL,
++ .name = "sta_connected_time_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002041_hash = {
++ .next = NULL,
++ .name = "sta_flags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002042_hash = {
++ .next = NULL,
++ .name = "sta_ht_capa_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002043_hash = {
++ .next = NULL,
++ .name = "sta_last_seq_ctrl_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002044_hash = {
++ .next = NULL,
++ .name = "sta_num_ps_buf_frames_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002045_hash = {
++ .next = NULL,
++ .name = "st_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002046_hash = {
++ .next = NULL,
++ .name = "supply_map_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002047_hash = {
++ .next = NULL,
++ .name = "sysfs_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002048_hash = {
++ .next = NULL,
++ .name = "sys_lgetxattr",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002049_hash = {
++ .next = NULL,
++ .name = "sys_preadv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002050_hash = {
++ .next = NULL,
++ .name = "sys_pwritev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002051_hash = {
++ .next = NULL,
++ .name = "sys_readv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002052_hash = {
++ .next = NULL,
++ .name = "sys_rt_sigpending",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002053_hash = {
++ .next = NULL,
++ .name = "sys_writev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002054_hash = {
++ .next = NULL,
++ .name = "test_iso_queue",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002055_hash = {
++ .next = NULL,
++ .name = "ts_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002056_hash = {
++ .next = NULL,
++ .name = "TSS_authhmac",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002057_hash = {
++ .next = NULL,
++ .name = "TSS_checkhmac1",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002058_hash = {
++ .next = NULL,
++ .name = "TSS_checkhmac2",
++ .param = PARAM5|PARAM7,
++};
++
++struct size_overflow_hash _002060_hash = {
++ .next = NULL,
++ .name = "tt3650_ci_msg_locked",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002061_hash = {
++ .next = NULL,
++ .name = "tun_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002062_hash = {
++ .next = NULL,
++ .name = "tx_internal_desc_overflow_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002063_hash = {
++ .next = NULL,
++ .name = "tx_queue_len_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002064_hash = {
++ .next = NULL,
++ .name = "tx_queue_status_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002065_hash = {
++ .next = NULL,
++ .name = "ubi_io_write_data",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002067_hash = {
++ .next = NULL,
++ .name = "uhci_debug_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002068_hash = {
++ .next = NULL,
++ .name = "unix_stream_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002069_hash = {
++ .next = NULL,
++ .name = "uvc_debugfs_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002070_hash = {
++ .next = NULL,
++ .name = "vhost_add_used_and_signal_n",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002071_hash = {
++ .next = NULL,
++ .name = "vifs_state_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002072_hash = {
++ .next = NULL,
++ .name = "vmbus_open",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002074_hash = {
++ .next = NULL,
++ .name = "waiters_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002075_hash = {
++ .next = NULL,
++ .name = "wep_addr_key_count_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002076_hash = {
++ .next = NULL,
++ .name = "wep_decrypt_fail_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002077_hash = {
++ .next = NULL,
++ .name = "wep_default_key_count_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002078_hash = {
++ .next = NULL,
++ .name = "wep_interrupt_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002079_hash = {
++ .next = &_000915_hash,
++ .name = "wep_key_not_found_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002080_hash = {
++ .next = NULL,
++ .name = "wep_packets_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002081_hash = {
++ .next = NULL,
++ .name = "wl1271_format_buffer",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002082_hash = {
++ .next = NULL,
++ .name = "wm8994_bulk_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002083_hash = {
++ .next = NULL,
++ .name = "wusb_prf_256",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _002084_hash = {
++ .next = NULL,
++ .name = "wusb_prf_64",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _002085_hash = {
++ .next = NULL,
++ .name = "xfs_buf_read_uncached",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002086_hash = {
++ .next = NULL,
++ .name = "xfs_iext_add",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002087_hash = {
++ .next = NULL,
++ .name = "xfs_iext_remove_direct",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002088_hash = {
++ .next = NULL,
++ .name = "xfs_trans_get_efd",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002089_hash = {
++ .next = NULL,
++ .name = "xfs_trans_get_efi",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002090_hash = {
++ .next = NULL,
++ .name = "xlog_get_bp",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002091_hash = {
++ .next = NULL,
++ .name = "xz_dec_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002092_hash = {
++ .next = NULL,
++ .name = "aac_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002093_hash = {
++ .next = NULL,
++ .name = "agp_allocate_memory_wrap",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002094_hash = {
++ .next = NULL,
++ .name = "arcmsr_adjust_disk_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002095_hash = {
++ .next = NULL,
++ .name = "atalk_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002097_hash = {
++ .next = NULL,
++ .name = "atomic_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002098_hash = {
++ .next = NULL,
++ .name = "ax25_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002099_hash = {
++ .next = NULL,
++ .name = "beacon_interval_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002100_hash = {
++ .next = NULL,
++ .name = "btrfs_init_new_buffer",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002101_hash = {
++ .next = NULL,
++ .name = "btrfs_mksubvol",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002102_hash = {
++ .next = NULL,
++ .name = "bt_sock_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002103_hash = {
++ .next = NULL,
++ .name = "bt_sock_stream_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002104_hash = {
++ .next = NULL,
++ .name = "caif_seqpkt_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002105_hash = {
++ .next = NULL,
++ .name = "cpu_type_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002106_hash = {
++ .next = NULL,
++ .name = "cx18_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002107_hash = {
++ .next = NULL,
++ .name = "dccp_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002108_hash = {
++ .next = NULL,
++ .name = "depth_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002109_hash = {
++ .next = NULL,
++ .name = "dfs_global_file_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002110_hash = {
++ .next = NULL,
++ .name = "dgram_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002111_hash = {
++ .next = NULL,
++ .name = "dma_skb_copy_datagram_iovec",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _002113_hash = {
++ .next = NULL,
++ .name = "dtim_interval_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002114_hash = {
++ .next = NULL,
++ .name = "dynamic_ps_timeout_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002115_hash = {
++ .next = NULL,
++ .name = "enable_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002116_hash = {
++ .next = &_001885_hash,
++ .name = "exofs_read_kern",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002117_hash = {
++ .next = NULL,
++ .name = "fc_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002118_hash = {
++ .next = NULL,
++ .name = "forced_ps_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002119_hash = {
++ .next = NULL,
++ .name = "frequency_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002120_hash = {
++ .next = NULL,
++ .name = "get_alua_req",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002121_hash = {
++ .next = NULL,
++ .name = "get_rdac_req",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002122_hash = {
++ .next = NULL,
++ .name = "hci_sock_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002123_hash = {
++ .next = NULL,
++ .name = "hpsa_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002124_hash = {
++ .next = NULL,
++ .name = "hptiop_adjust_disk_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002125_hash = {
++ .next = NULL,
++ .name = "ide_queue_pc_tail",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002126_hash = {
++ .next = NULL,
++ .name = "ide_raw_taskfile",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002127_hash = {
++ .next = NULL,
++ .name = "idetape_queue_rw_tail",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002128_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_aid",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002129_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_auto_open_plinks",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002130_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_ave_beacon",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002131_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_bssid",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002132_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_channel_type",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002133_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshConfirmTimeout",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002134_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshGateAnnouncementProtocol",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002135_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHoldingTimeout",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002136_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPactivePathTimeout",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002137_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPmaxPREQretries",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002138_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPnetDiameterTraversalTime",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002139_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPperrMinInterval",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002140_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPpreqMinInterval",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002141_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPRannInterval",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002142_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshHWMPRootMode",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002143_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshMaxPeerLinks",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002144_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshMaxRetries",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002145_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshRetryTimeout",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002146_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dot11MeshTTL",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002147_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dropped_frames_congestion",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002148_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dropped_frames_no_route",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002149_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dropped_frames_ttl",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002150_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_drop_unencrypted",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002151_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_dtim_count",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002152_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_element_ttl",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002153_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_estab_plinks",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002154_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_flags",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002155_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_fwded_frames",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002156_hash = {
++ .next = &_000151_hash,
++ .name = "ieee80211_if_read_fwded_mcast",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002157_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_fwded_unicast",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002158_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_last_beacon",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002159_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_min_discovery_timeout",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002160_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_num_buffered_multicast",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002161_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_num_sta_authorized",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002162_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_num_sta_ps",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002163_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_path_refresh_time",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002164_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_peer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002165_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_rc_rateidx_mask_2ghz",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002166_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_rc_rateidx_mask_5ghz",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002167_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_rc_rateidx_mcs_mask_2ghz",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002168_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_rc_rateidx_mcs_mask_5ghz",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002169_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_rssi_threshold",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002170_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_smps",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002171_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_state",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002172_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_tkip_mic_test",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002173_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_tsf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002174_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_uapsd_max_sp_len",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002175_hash = {
++ .next = NULL,
++ .name = "ieee80211_if_read_uapsd_queues",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002176_hash = {
++ .next = NULL,
++ .name = "ieee80211_rx_mgmt_beacon",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002177_hash = {
++ .next = NULL,
++ .name = "ieee80211_rx_mgmt_probe_resp",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002178_hash = {
++ .next = NULL,
++ .name = "ima_show_htable_violations",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002179_hash = {
++ .next = NULL,
++ .name = "ima_show_measurements_count",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002180_hash = {
++ .next = NULL,
++ .name = "insert_one_name",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _002181_hash = {
++ .next = NULL,
++ .name = "ipr_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002182_hash = {
++ .next = NULL,
++ .name = "ip_recv_error",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002183_hash = {
++ .next = NULL,
++ .name = "ipv6_recv_error",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002184_hash = {
++ .next = NULL,
++ .name = "ipv6_recv_rxpmtu",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002185_hash = {
++ .next = NULL,
++ .name = "ipx_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002186_hash = {
++ .next = NULL,
++ .name = "irda_recvmsg_dgram",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002187_hash = {
++ .next = NULL,
++ .name = "iscsi_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002188_hash = {
++ .next = &_000303_hash,
++ .name = "ivtv_read_pos",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002189_hash = {
++ .next = NULL,
++ .name = "key_conf_hw_key_idx_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002190_hash = {
++ .next = NULL,
++ .name = "key_conf_keyidx_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002191_hash = {
++ .next = NULL,
++ .name = "key_conf_keylen_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002192_hash = {
++ .next = NULL,
++ .name = "key_flags_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002193_hash = {
++ .next = NULL,
++ .name = "key_ifindex_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002194_hash = {
++ .next = NULL,
++ .name = "key_tx_rx_count_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002195_hash = {
++ .next = NULL,
++ .name = "l2cap_sock_sendmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002196_hash = {
++ .next = NULL,
++ .name = "l2tp_ip_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002197_hash = {
++ .next = NULL,
++ .name = "llc_ui_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002198_hash = {
++ .next = NULL,
++ .name = "lpfc_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002199_hash = {
++ .next = &_001832_hash,
++ .name = "macvtap_do_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002200_hash = {
++ .next = NULL,
++ .name = "megaraid_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002201_hash = {
++ .next = NULL,
++ .name = "megasas_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002202_hash = {
++ .next = NULL,
++ .name = "mptscsih_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002203_hash = {
++ .next = NULL,
++ .name = "NCR_700_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002204_hash = {
++ .next = NULL,
++ .name = "netlink_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002205_hash = {
++ .next = NULL,
++ .name = "nfsctl_transaction_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002206_hash = {
++ .next = NULL,
++ .name = "nfs_map_group_to_gid",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002207_hash = {
++ .next = NULL,
++ .name = "nfs_map_name_to_uid",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002208_hash = {
++ .next = NULL,
++ .name = "nr_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002209_hash = {
++ .next = NULL,
++ .name = "osd_req_list_collection_objects",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002210_hash = {
++ .next = NULL,
++ .name = "osd_req_list_partition_objects",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002212_hash = {
++ .next = NULL,
++ .name = "packet_recv_error",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002213_hash = {
++ .next = NULL,
++ .name = "packet_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002214_hash = {
++ .next = NULL,
++ .name = "pep_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002215_hash = {
++ .next = NULL,
++ .name = "pfkey_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002216_hash = {
++ .next = NULL,
++ .name = "ping_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002217_hash = {
++ .next = NULL,
++ .name = "pmcraid_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002218_hash = {
++ .next = NULL,
++ .name = "pn_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002219_hash = {
++ .next = NULL,
++ .name = "pointer_size_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002220_hash = {
++ .next = NULL,
++ .name = "power_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002221_hash = {
++ .next = NULL,
++ .name = "pppoe_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002222_hash = {
++ .next = NULL,
++ .name = "pppol2tp_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002223_hash = {
++ .next = NULL,
++ .name = "qla2x00_adjust_sdev_qdepth_up",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002224_hash = {
++ .next = NULL,
++ .name = "qla2x00_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002225_hash = {
++ .next = NULL,
++ .name = "raw_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002226_hash = {
++ .next = NULL,
++ .name = "rawsock_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002227_hash = {
++ .next = NULL,
++ .name = "rawv6_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002228_hash = {
++ .next = NULL,
++ .name = "reada_add_block",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002229_hash = {
++ .next = NULL,
++ .name = "readahead_tree_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002230_hash = {
++ .next = NULL,
++ .name = "reada_tree_block_flagged",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002231_hash = {
++ .next = NULL,
++ .name = "read_tree_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002232_hash = {
++ .next = NULL,
++ .name = "recover_peb",
++ .param = PARAM6|PARAM7,
++};
++
++struct size_overflow_hash _002234_hash = {
++ .next = NULL,
++ .name = "recv_msg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002235_hash = {
++ .next = NULL,
++ .name = "recv_stream",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002236_hash = {
++ .next = NULL,
++ .name = "_req_append_segment",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002237_hash = {
++ .next = NULL,
++ .name = "request_key_async",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002238_hash = {
++ .next = NULL,
++ .name = "request_key_async_with_auxdata",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002239_hash = {
++ .next = NULL,
++ .name = "request_key_with_auxdata",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002240_hash = {
++ .next = NULL,
++ .name = "rose_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002241_hash = {
++ .next = NULL,
++ .name = "rxrpc_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002242_hash = {
++ .next = NULL,
++ .name = "rx_streaming_always_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002243_hash = {
++ .next = NULL,
++ .name = "rx_streaming_interval_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002244_hash = {
++ .next = NULL,
++ .name = "sas_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002245_hash = {
++ .next = NULL,
++ .name = "scsi_activate_tcq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002246_hash = {
++ .next = NULL,
++ .name = "scsi_deactivate_tcq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002247_hash = {
++ .next = NULL,
++ .name = "scsi_execute",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002248_hash = {
++ .next = NULL,
++ .name = "_scsih_adjust_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002249_hash = {
++ .next = NULL,
++ .name = "scsi_init_shared_tag_map",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002250_hash = {
++ .next = NULL,
++ .name = "scsi_track_queue_full",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002251_hash = {
++ .next = NULL,
++ .name = "sctp_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002252_hash = {
++ .next = NULL,
++ .name = "send_stream",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002253_hash = {
++ .next = NULL,
++ .name = "skb_copy_and_csum_datagram_iovec",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002255_hash = {
++ .next = NULL,
++ .name = "snd_gf1_mem_proc_dump",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002256_hash = {
++ .next = NULL,
++ .name = "split_scan_timeout_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002257_hash = {
++ .next = NULL,
++ .name = "sta_dev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002258_hash = {
++ .next = NULL,
++ .name = "sta_inactive_ms_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002259_hash = {
++ .next = NULL,
++ .name = "sta_last_signal_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002260_hash = {
++ .next = NULL,
++ .name = "stats_dot11ACKFailureCount_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002261_hash = {
++ .next = NULL,
++ .name = "stats_dot11FCSErrorCount_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002262_hash = {
++ .next = NULL,
++ .name = "stats_dot11RTSFailureCount_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002263_hash = {
++ .next = NULL,
++ .name = "stats_dot11RTSSuccessCount_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002264_hash = {
++ .next = NULL,
++ .name = "storvsc_connect_to_vsp",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002265_hash = {
++ .next = NULL,
++ .name = "suspend_dtim_interval_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002266_hash = {
++ .next = NULL,
++ .name = "sys_msgrcv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002267_hash = {
++ .next = NULL,
++ .name = "tcm_loop_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002268_hash = {
++ .next = NULL,
++ .name = "tcp_copy_to_iovec",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002269_hash = {
++ .next = NULL,
++ .name = "tcp_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002270_hash = {
++ .next = NULL,
++ .name = "timeout_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002271_hash = {
++ .next = NULL,
++ .name = "total_ps_buffered_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002272_hash = {
++ .next = NULL,
++ .name = "tun_put_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002273_hash = {
++ .next = NULL,
++ .name = "twa_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002274_hash = {
++ .next = NULL,
++ .name = "tw_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002275_hash = {
++ .next = NULL,
++ .name = "twl_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002276_hash = {
++ .next = NULL,
++ .name = "ubi_eba_write_leb",
++ .param = PARAM5|PARAM6,
++};
++
++struct size_overflow_hash _002278_hash = {
++ .next = NULL,
++ .name = "ubi_eba_write_leb_st",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002279_hash = {
++ .next = NULL,
++ .name = "udp_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002280_hash = {
++ .next = &_002171_hash,
++ .name = "udpv6_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002281_hash = {
++ .next = &_000511_hash,
++ .name = "ulong_read_file",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002282_hash = {
++ .next = NULL,
++ .name = "unix_dgram_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002283_hash = {
++ .next = NULL,
++ .name = "user_power_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002284_hash = {
++ .next = NULL,
++ .name = "vcc_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002285_hash = {
++ .next = NULL,
++ .name = "wep_iv_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002286_hash = {
++ .next = NULL,
++ .name = "x25_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002287_hash = {
++ .next = NULL,
++ .name = "xfs_iext_insert",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002288_hash = {
++ .next = NULL,
++ .name = "xfs_iext_remove",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002289_hash = {
++ .next = NULL,
++ .name = "xlog_find_verify_log_record",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002290_hash = {
++ .next = NULL,
++ .name = "btrfs_alloc_free_block",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002291_hash = {
++ .next = NULL,
++ .name = "cx18_read_pos",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002292_hash = {
++ .next = NULL,
++ .name = "l2cap_sock_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002293_hash = {
++ .next = NULL,
++ .name = "osd_req_list_dev_partitions",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002294_hash = {
++ .next = NULL,
++ .name = "osd_req_list_partition_collections",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002295_hash = {
++ .next = NULL,
++ .name = "osst_do_scsi",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002296_hash = {
++ .next = NULL,
++ .name = "qla2x00_handle_queue_full",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002297_hash = {
++ .next = NULL,
++ .name = "rfcomm_sock_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002298_hash = {
++ .next = NULL,
++ .name = "scsi_execute_req",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002299_hash = {
++ .next = NULL,
++ .name = "_scsih_change_queue_depth",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002300_hash = {
++ .next = NULL,
++ .name = "spi_execute",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002301_hash = {
++ .next = NULL,
++ .name = "submit_inquiry",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002302_hash = {
++ .next = NULL,
++ .name = "tcp_dma_try_early_copy",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002303_hash = {
++ .next = NULL,
++ .name = "tun_do_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002304_hash = {
++ .next = NULL,
++ .name = "ubi_eba_atomic_leb_change",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002305_hash = {
++ .next = NULL,
++ .name = "ubi_leb_write",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002307_hash = {
++ .next = NULL,
++ .name = "unix_seqpacket_recvmsg",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002308_hash = {
++ .next = NULL,
++ .name = "write_leb",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002309_hash = {
++ .next = NULL,
++ .name = "ch_do_scsi",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002310_hash = {
++ .next = NULL,
++ .name = "dbg_leb_write",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002312_hash = {
++ .next = NULL,
++ .name = "scsi_mode_sense",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002313_hash = {
++ .next = NULL,
++ .name = "scsi_vpd_inquiry",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002314_hash = {
++ .next = &_000673_hash,
++ .name = "ses_recv_diag",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002315_hash = {
++ .next = NULL,
++ .name = "ses_send_diag",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002316_hash = {
++ .next = NULL,
++ .name = "spi_dv_device_echo_buffer",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002318_hash = {
++ .next = NULL,
++ .name = "ubifs_leb_write",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002320_hash = {
++ .next = NULL,
++ .name = "ubi_leb_change",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002321_hash = {
++ .next = NULL,
++ .name = "ubi_write",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002322_hash = {
++ .next = NULL,
++ .name = "dbg_leb_change",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002323_hash = {
++ .next = NULL,
++ .name = "gluebi_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002324_hash = {
++ .next = NULL,
++ .name = "scsi_get_vpd_page",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002325_hash = {
++ .next = NULL,
++ .name = "sd_do_mode_sense",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002326_hash = {
++ .next = NULL,
++ .name = "ubifs_leb_change",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002327_hash = {
++ .next = NULL,
++ .name = "ubifs_write_node",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002328_hash = {
++ .next = NULL,
++ .name = "fixup_leb",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002329_hash = {
++ .next = NULL,
++ .name = "recover_head",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002330_hash = {
++ .next = NULL,
++ .name = "alloc_cpu_rmap",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002331_hash = {
++ .next = NULL,
++ .name = "alloc_ebda_hpc",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _002333_hash = {
++ .next = NULL,
++ .name = "alloc_sched_domains",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002334_hash = {
++ .next = NULL,
++ .name = "amthi_read",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002335_hash = {
++ .next = NULL,
++ .name = "bcm_char_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002336_hash = {
++ .next = NULL,
++ .name = "BcmCopySection",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002337_hash = {
++ .next = NULL,
++ .name = "buffer_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002338_hash = {
++ .next = NULL,
++ .name = "buffer_to_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002339_hash = {
++ .next = NULL,
++ .name = "c4iw_init_resource_fifo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002340_hash = {
++ .next = NULL,
++ .name = "c4iw_init_resource_fifo_random",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002341_hash = {
++ .next = NULL,
++ .name = "card_send_command",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002342_hash = {
++ .next = NULL,
++ .name = "chd_dec_fetch_cdata",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002343_hash = {
++ .next = NULL,
++ .name = "crystalhd_create_dio_pool",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002344_hash = {
++ .next = NULL,
++ .name = "crystalhd_user_data",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002345_hash = {
++ .next = NULL,
++ .name = "cxio_init_resource_fifo",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002346_hash = {
++ .next = NULL,
++ .name = "cxio_init_resource_fifo_random",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002347_hash = {
++ .next = NULL,
++ .name = "do_pages_stat",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002348_hash = {
++ .next = NULL,
++ .name = "do_read_log_to_user",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002349_hash = {
++ .next = NULL,
++ .name = "do_write_log_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002350_hash = {
++ .next = NULL,
++ .name = "dt3155_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002351_hash = {
++ .next = NULL,
++ .name = "easycap_alsa_vmalloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002352_hash = {
++ .next = NULL,
++ .name = "evm_read_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002353_hash = {
++ .next = NULL,
++ .name = "evm_write_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002354_hash = {
++ .next = NULL,
++ .name = "fir16_create",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002355_hash = {
++ .next = NULL,
++ .name = "iio_allocate_device",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002356_hash = {
++ .next = NULL,
++ .name = "__iio_allocate_kfifo",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002358_hash = {
++ .next = NULL,
++ .name = "__iio_allocate_sw_ring_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002359_hash = {
++ .next = NULL,
++ .name = "iio_debugfs_read_reg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002360_hash = {
++ .next = NULL,
++ .name = "iio_debugfs_write_reg",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002361_hash = {
++ .next = NULL,
++ .name = "iio_event_chrdev_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002362_hash = {
++ .next = NULL,
++ .name = "iio_read_first_n_kfifo",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002363_hash = {
++ .next = NULL,
++ .name = "iio_read_first_n_sw_rb",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002364_hash = {
++ .next = NULL,
++ .name = "ioapic_setup_resources",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002365_hash = {
++ .next = NULL,
++ .name = "keymap_store",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002366_hash = {
++ .next = NULL,
++ .name = "kzalloc_node",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002367_hash = {
++ .next = NULL,
++ .name = "line6_alloc_sysex_buffer",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002368_hash = {
++ .next = NULL,
++ .name = "line6_dumpreq_initbuf",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002369_hash = {
++ .next = NULL,
++ .name = "line6_midibuf_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002370_hash = {
++ .next = NULL,
++ .name = "lirc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002371_hash = {
++ .next = NULL,
++ .name = "_malloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002372_hash = {
++ .next = NULL,
++ .name = "mei_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002373_hash = {
++ .next = NULL,
++ .name = "mei_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002374_hash = {
++ .next = NULL,
++ .name = "mempool_create_node",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002375_hash = {
++ .next = NULL,
++ .name = "msg_set",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002376_hash = {
++ .next = NULL,
++ .name = "newpart",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002377_hash = {
++ .next = NULL,
++ .name = "OS_kmalloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002378_hash = {
++ .next = NULL,
++ .name = "pcpu_alloc_bootmem",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002379_hash = {
++ .next = NULL,
++ .name = "pcpu_get_vm_areas",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002380_hash = {
++ .next = NULL,
++ .name = "resource_from_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002381_hash = {
++ .next = NULL,
++ .name = "sca3000_read_data",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002382_hash = {
++ .next = NULL,
++ .name = "sca3000_read_first_n_hw_rb",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002383_hash = {
++ .next = NULL,
++ .name = "send_midi_async",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002384_hash = {
++ .next = NULL,
++ .name = "sep_create_dcb_dmatables_context",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002385_hash = {
++ .next = NULL,
++ .name = "sep_create_dcb_dmatables_context_kernel",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002386_hash = {
++ .next = NULL,
++ .name = "sep_create_msgarea_context",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002387_hash = {
++ .next = NULL,
++ .name = "sep_lli_table_secure_dma",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002389_hash = {
++ .next = &_002154_hash,
++ .name = "sep_lock_user_pages",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002391_hash = {
++ .next = NULL,
++ .name = "sep_prepare_input_output_dma_table_in_dcb",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002393_hash = {
++ .next = NULL,
++ .name = "sep_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002394_hash = {
++ .next = NULL,
++ .name = "TransmitTcb",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002395_hash = {
++ .next = NULL,
++ .name = "ValidateDSDParamsChecksum",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002396_hash = {
++ .next = NULL,
++ .name = "Wb35Reg_BurstWrite",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002397_hash = {
++ .next = &_001499_hash,
++ .name = "__alloc_bootmem_low_node",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002398_hash = {
++ .next = NULL,
++ .name = "__alloc_bootmem_node",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002399_hash = {
++ .next = NULL,
++ .name = "alloc_irq_cpu_rmap",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002400_hash = {
++ .next = NULL,
++ .name = "alloc_ring",
++ .param = PARAM2|PARAM4,
++};
++
++struct size_overflow_hash _002402_hash = {
++ .next = NULL,
++ .name = "c4iw_init_resource",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002404_hash = {
++ .next = &_000284_hash,
++ .name = "cxio_hal_init_resource",
++ .param = PARAM2|PARAM7|PARAM6,
++};
++
++struct size_overflow_hash _002407_hash = {
++ .next = NULL,
++ .name = "cxio_hal_init_rhdl_resource",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002408_hash = {
++ .next = NULL,
++ .name = "disk_expand_part_tbl",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002409_hash = {
++ .next = NULL,
++ .name = "InterfaceTransmitPacket",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002410_hash = {
++ .next = NULL,
++ .name = "line6_dumpreq_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002411_hash = {
++ .next = NULL,
++ .name = "mempool_create",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002412_hash = {
++ .next = NULL,
++ .name = "pcpu_fc_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002413_hash = {
++ .next = NULL,
++ .name = "pod_alloc_sysex_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002414_hash = {
++ .next = NULL,
++ .name = "r8712_usbctrl_vendorreq",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002415_hash = {
++ .next = NULL,
++ .name = "r871x_set_wpa_ie",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002416_hash = {
++ .next = NULL,
++ .name = "sys_move_pages",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002417_hash = {
++ .next = NULL,
++ .name = "variax_alloc_sysex_buffer",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002418_hash = {
++ .next = NULL,
++ .name = "vme_user_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002419_hash = {
++ .next = NULL,
++ .name = "add_partition",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002420_hash = {
++ .next = NULL,
++ .name = "__alloc_bootmem_node_high",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002421_hash = {
++ .next = NULL,
++ .name = "ceph_msgpool_init",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002423_hash = {
++ .next = NULL,
++ .name = "mempool_create_kmalloc_pool",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002424_hash = {
++ .next = NULL,
++ .name = "mempool_create_page_pool",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002425_hash = {
++ .next = NULL,
++ .name = "mempool_create_slab_pool",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002426_hash = {
++ .next = NULL,
++ .name = "variax_set_raw2",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002427_hash = {
++ .next = NULL,
++ .name = "bioset_create",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002428_hash = {
++ .next = NULL,
++ .name = "bioset_integrity_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002429_hash = {
++ .next = NULL,
++ .name = "biovec_create_pools",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002430_hash = {
++ .next = NULL,
++ .name = "i2o_pool_alloc",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002431_hash = {
++ .next = NULL,
++ .name = "prison_create",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002432_hash = {
++ .next = NULL,
++ .name = "unlink_simple",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002433_hash = {
++ .next = NULL,
++ .name = "alloc_ieee80211",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002434_hash = {
++ .next = NULL,
++ .name = "alloc_ieee80211_rsl",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002435_hash = {
++ .next = NULL,
++ .name = "alloc_page_cgroup",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002436_hash = {
++ .next = &_002326_hash,
++ .name = "alloc_private",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002437_hash = {
++ .next = NULL,
++ .name = "alloc_rtllib",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002438_hash = {
++ .next = NULL,
++ .name = "alloc_rx_desc_ring",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002439_hash = {
++ .next = NULL,
++ .name = "alloc_subdevices",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002440_hash = {
++ .next = NULL,
++ .name = "atomic_counters_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002441_hash = {
++ .next = NULL,
++ .name = "atomic_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002442_hash = {
++ .next = NULL,
++ .name = "capabilities_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002443_hash = {
++ .next = NULL,
++ .name = "comedi_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002444_hash = {
++ .next = NULL,
++ .name = "comedi_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002445_hash = {
++ .next = NULL,
++ .name = "compat_do_arpt_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002446_hash = {
++ .next = NULL,
++ .name = "compat_do_ip6t_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002447_hash = {
++ .next = &_001852_hash,
++ .name = "compat_do_ipt_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002448_hash = {
++ .next = NULL,
++ .name = "compat_filldir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002449_hash = {
++ .next = NULL,
++ .name = "compat_filldir64",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002450_hash = {
++ .next = NULL,
++ .name = "compat_fillonedir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002451_hash = {
++ .next = NULL,
++ .name = "compat_rw_copy_check_uvector",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002452_hash = {
++ .next = NULL,
++ .name = "compat_sock_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002453_hash = {
++ .next = NULL,
++ .name = "compat_sys_kexec_load",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002454_hash = {
++ .next = NULL,
++ .name = "compat_sys_keyctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002455_hash = {
++ .next = NULL,
++ .name = "compat_sys_move_pages",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002456_hash = {
++ .next = NULL,
++ .name = "compat_sys_mq_timedsend",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002457_hash = {
++ .next = NULL,
++ .name = "compat_sys_msgrcv",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002458_hash = {
++ .next = NULL,
++ .name = "compat_sys_msgsnd",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002459_hash = {
++ .next = NULL,
++ .name = "compat_sys_semtimedop",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002460_hash = {
++ .next = NULL,
++ .name = "__copy_in_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002461_hash = {
++ .next = NULL,
++ .name = "copy_in_user",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002462_hash = {
++ .next = NULL,
++ .name = "dev_counters_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002463_hash = {
++ .next = NULL,
++ .name = "dev_names_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002464_hash = {
++ .next = NULL,
++ .name = "do_arpt_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002465_hash = {
++ .next = NULL,
++ .name = "do_ip6t_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002466_hash = {
++ .next = NULL,
++ .name = "do_ipt_set_ctl",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002467_hash = {
++ .next = NULL,
++ .name = "drbd_bm_resize",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002468_hash = {
++ .next = NULL,
++ .name = "driver_names_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002469_hash = {
++ .next = NULL,
++ .name = "driver_stats_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002470_hash = {
++ .next = NULL,
++ .name = "__earlyonly_bootmem_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002471_hash = {
++ .next = NULL,
++ .name = "evtchn_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002472_hash = {
++ .next = NULL,
++ .name = "ext_sd_execute_read_data",
++ .param = PARAM9,
++};
++
++struct size_overflow_hash _002473_hash = {
++ .next = NULL,
++ .name = "ext_sd_execute_write_data",
++ .param = PARAM9,
++};
++
++struct size_overflow_hash _002474_hash = {
++ .next = NULL,
++ .name = "fat_compat_ioctl_filldir",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002475_hash = {
++ .next = NULL,
++ .name = "firmwareUpload",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002476_hash = {
++ .next = NULL,
++ .name = "flash_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002477_hash = {
++ .next = NULL,
++ .name = "flash_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002478_hash = {
++ .next = NULL,
++ .name = "gather_array",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002479_hash = {
++ .next = NULL,
++ .name = "ghash_async_setkey",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002480_hash = {
++ .next = NULL,
++ .name = "gntdev_alloc_map",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002481_hash = {
++ .next = NULL,
++ .name = "gnttab_map",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002482_hash = {
++ .next = NULL,
++ .name = "gru_alloc_gts",
++ .param = PARAM2|PARAM3,
++};
++
++struct size_overflow_hash _002484_hash = {
++ .next = NULL,
++ .name = "handle_eviocgbit",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002485_hash = {
++ .next = NULL,
++ .name = "hid_parse_report",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002486_hash = {
++ .next = NULL,
++ .name = "ieee80211_alloc_txb",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002487_hash = {
++ .next = NULL,
++ .name = "ieee80211_wx_set_gen_ie",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002488_hash = {
++ .next = NULL,
++ .name = "ieee80211_wx_set_gen_ie_rsl",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002489_hash = {
++ .next = NULL,
++ .name = "init_cdev",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002490_hash = {
++ .next = NULL,
++ .name = "init_per_cpu",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002491_hash = {
++ .next = NULL,
++ .name = "ipath_create_cq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002492_hash = {
++ .next = NULL,
++ .name = "ipath_get_base_info",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002493_hash = {
++ .next = NULL,
++ .name = "ipath_init_qp_table",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002494_hash = {
++ .next = NULL,
++ .name = "ipath_resize_cq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002495_hash = {
++ .next = NULL,
++ .name = "ni_gpct_device_construct",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002496_hash = {
++ .next = NULL,
++ .name = "options_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002497_hash = {
++ .next = NULL,
++ .name = "portcntrs_1_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002498_hash = {
++ .next = NULL,
++ .name = "portcntrs_2_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002499_hash = {
++ .next = NULL,
++ .name = "portnames_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002500_hash = {
++ .next = NULL,
++ .name = "ptc_proc_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002501_hash = {
++ .next = NULL,
++ .name = "put_cmsg_compat",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002502_hash = {
++ .next = NULL,
++ .name = "qib_alloc_devdata",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002503_hash = {
++ .next = NULL,
++ .name = "qib_alloc_fast_reg_page_list",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002504_hash = {
++ .next = NULL,
++ .name = "qib_cdev_init",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002505_hash = {
++ .next = NULL,
++ .name = "qib_create_cq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002506_hash = {
++ .next = NULL,
++ .name = "qib_diag_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002507_hash = {
++ .next = NULL,
++ .name = "qib_get_base_info",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002508_hash = {
++ .next = NULL,
++ .name = "qib_resize_cq",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002509_hash = {
++ .next = NULL,
++ .name = "qsfp_1_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002510_hash = {
++ .next = NULL,
++ .name = "qsfp_2_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002511_hash = {
++ .next = NULL,
++ .name = "queue_reply",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002512_hash = {
++ .next = NULL,
++ .name = "Realloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002513_hash = {
++ .next = NULL,
++ .name = "rfc4106_set_key",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002514_hash = {
++ .next = NULL,
++ .name = "rtllib_alloc_txb",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002515_hash = {
++ .next = NULL,
++ .name = "rtllib_wx_set_gen_ie",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002516_hash = {
++ .next = NULL,
++ .name = "rts51x_transfer_data_partial",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002517_hash = {
++ .next = NULL,
++ .name = "sparse_early_usemaps_alloc_node",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002518_hash = {
++ .next = NULL,
++ .name = "split",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002519_hash = {
++ .next = NULL,
++ .name = "stats_read_ul",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002520_hash = {
++ .next = NULL,
++ .name = "store_debug_level",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002521_hash = {
++ .next = NULL,
++ .name = "sys32_ipc",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002522_hash = {
++ .next = NULL,
++ .name = "sys32_rt_sigpending",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002523_hash = {
++ .next = NULL,
++ .name = "tunables_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002524_hash = {
++ .next = NULL,
++ .name = "tunables_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002525_hash = {
++ .next = NULL,
++ .name = "u32_array_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002526_hash = {
++ .next = NULL,
++ .name = "usb_buffer_alloc",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002527_hash = {
++ .next = NULL,
++ .name = "xenbus_file_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002528_hash = {
++ .next = NULL,
++ .name = "xpc_kmalloc_cacheline_aligned",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002529_hash = {
++ .next = NULL,
++ .name = "xpc_kzalloc_cacheline_aligned",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002530_hash = {
++ .next = NULL,
++ .name = "xsd_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002531_hash = {
++ .next = NULL,
++ .name = "compat_do_readv_writev",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002532_hash = {
++ .next = NULL,
++ .name = "compat_keyctl_instantiate_key_iov",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002533_hash = {
++ .next = NULL,
++ .name = "compat_process_vm_rw",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _002535_hash = {
++ .next = NULL,
++ .name = "compat_sys_setsockopt",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002536_hash = {
++ .next = NULL,
++ .name = "ipath_cdev_init",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002537_hash = {
++ .next = NULL,
++ .name = "ms_read_multiple_pages",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002539_hash = {
++ .next = NULL,
++ .name = "ms_write_multiple_pages",
++ .param = PARAM5|PARAM6,
++};
++
++struct size_overflow_hash _002541_hash = {
++ .next = &_002004_hash,
++ .name = "sparse_mem_maps_populate_node",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002542_hash = {
++ .next = NULL,
++ .name = "vmemmap_alloc_block",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002543_hash = {
++ .next = NULL,
++ .name = "xd_read_multiple_pages",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002545_hash = {
++ .next = NULL,
++ .name = "xd_write_multiple_pages",
++ .param = PARAM5|PARAM6,
++};
++
++struct size_overflow_hash _002546_hash = {
++ .next = NULL,
++ .name = "compat_readv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002547_hash = {
++ .next = NULL,
++ .name = "compat_sys_process_vm_readv",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _002549_hash = {
++ .next = NULL,
++ .name = "compat_sys_process_vm_writev",
++ .param = PARAM3|PARAM5,
++};
++
++struct size_overflow_hash _002551_hash = {
++ .next = NULL,
++ .name = "compat_writev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002552_hash = {
++ .next = NULL,
++ .name = "ms_rw_multi_sector",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002553_hash = {
++ .next = NULL,
++ .name = "sparse_early_mem_maps_alloc_node",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002554_hash = {
++ .next = NULL,
++ .name = "vmemmap_alloc_block_buf",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002555_hash = {
++ .next = NULL,
++ .name = "xd_rw",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002556_hash = {
++ .next = NULL,
++ .name = "compat_sys_preadv64",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002557_hash = {
++ .next = NULL,
++ .name = "compat_sys_pwritev64",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002558_hash = {
++ .next = NULL,
++ .name = "compat_sys_readv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002559_hash = {
++ .next = NULL,
++ .name = "compat_sys_writev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002560_hash = {
++ .next = NULL,
++ .name = "ms_rw",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002561_hash = {
++ .next = NULL,
++ .name = "compat_sys_preadv",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002562_hash = {
++ .next = NULL,
++ .name = "compat_sys_pwritev",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002563_hash = {
++ .next = NULL,
++ .name = "alloc_apertures",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002564_hash = {
++ .next = NULL,
++ .name = "bin_uuid",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002565_hash = {
++ .next = NULL,
++ .name = "__copy_from_user_inatomic_nocache",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002566_hash = {
++ .next = NULL,
++ .name = "do_dmabuf_dirty_sou",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _002567_hash = {
++ .next = NULL,
++ .name = "do_surface_dirty_sou",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _002568_hash = {
++ .next = NULL,
++ .name = "drm_agp_bind_pages",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002569_hash = {
++ .next = NULL,
++ .name = "drm_calloc_large",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _002571_hash = {
++ .next = NULL,
++ .name = "drm_fb_helper_init",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _002573_hash = {
++ .next = NULL,
++ .name = "drm_ht_create",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002574_hash = {
++ .next = NULL,
++ .name = "drm_malloc_ab",
++ .param = PARAM1|PARAM2,
++};
++
++struct size_overflow_hash _002576_hash = {
++ .next = NULL,
++ .name = "drm_mode_crtc_set_gamma_size",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002577_hash = {
++ .next = NULL,
++ .name = "drm_plane_init",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002578_hash = {
++ .next = NULL,
++ .name = "drm_property_create",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002579_hash = {
++ .next = NULL,
++ .name = "drm_property_create_blob",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002580_hash = {
++ .next = NULL,
++ .name = "drm_vblank_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002581_hash = {
++ .next = NULL,
++ .name = "drm_vmalloc_dma",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002582_hash = {
++ .next = NULL,
++ .name = "fb_alloc_cmap_gfp",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002583_hash = {
++ .next = NULL,
++ .name = "fbcon_prepare_logo",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002584_hash = {
++ .next = NULL,
++ .name = "fb_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002585_hash = {
++ .next = NULL,
++ .name = "fb_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002586_hash = {
++ .next = NULL,
++ .name = "framebuffer_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002587_hash = {
++ .next = NULL,
++ .name = "i915_cache_sharing_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002588_hash = {
++ .next = NULL,
++ .name = "i915_cache_sharing_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002589_hash = {
++ .next = NULL,
++ .name = "i915_max_freq_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002590_hash = {
++ .next = NULL,
++ .name = "i915_max_freq_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002591_hash = {
++ .next = NULL,
++ .name = "i915_wedged_read",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002592_hash = {
++ .next = NULL,
++ .name = "i915_wedged_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002593_hash = {
++ .next = NULL,
++ .name = "p9_client_read",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002594_hash = {
++ .next = NULL,
++ .name = "probe_kernel_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002595_hash = {
++ .next = NULL,
++ .name = "sched_feat_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002596_hash = {
++ .next = NULL,
++ .name = "sd_alloc_ctl_entry",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002597_hash = {
++ .next = &_000009_hash,
++ .name = "tstats_write",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002598_hash = {
++ .next = NULL,
++ .name = "ttm_bo_fbdev_io",
++ .param = PARAM4,
++};
++
++struct size_overflow_hash _002599_hash = {
++ .next = NULL,
++ .name = "ttm_bo_io",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002600_hash = {
++ .next = NULL,
++ .name = "ttm_dma_page_pool_free",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002601_hash = {
++ .next = NULL,
++ .name = "ttm_page_pool_free",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002602_hash = {
++ .next = NULL,
++ .name = "vmw_execbuf_process",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002603_hash = {
++ .next = NULL,
++ .name = "vmw_fifo_reserve",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002604_hash = {
++ .next = NULL,
++ .name = "vmw_kms_present",
++ .param = PARAM9,
++};
++
++struct size_overflow_hash _002605_hash = {
++ .next = NULL,
++ .name = "vmw_kms_readback",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002606_hash = {
++ .next = NULL,
++ .name = "do_dmabuf_dirty_ldu",
++ .param = PARAM6,
++};
++
++struct size_overflow_hash _002607_hash = {
++ .next = NULL,
++ .name = "drm_mode_create_tv_properties",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002608_hash = {
++ .next = NULL,
++ .name = "drm_property_create_enum",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002609_hash = {
++ .next = NULL,
++ .name = "fast_user_write",
++ .param = PARAM5,
++};
++
++struct size_overflow_hash _002610_hash = {
++ .next = NULL,
++ .name = "fb_alloc_cmap",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002611_hash = {
++ .next = NULL,
++ .name = "i915_gem_execbuffer_relocate_slow",
++ .param = PARAM7,
++};
++
++struct size_overflow_hash _002612_hash = {
++ .next = NULL,
++ .name = "kgdb_hex2mem",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002613_hash = {
++ .next = NULL,
++ .name = "ttm_object_device_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002614_hash = {
++ .next = NULL,
++ .name = "ttm_object_file_init",
++ .param = PARAM2,
++};
++
++struct size_overflow_hash _002615_hash = {
++ .next = NULL,
++ .name = "vmw_cursor_update_image",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _002617_hash = {
++ .next = NULL,
++ .name = "vmw_gmr2_bind",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002618_hash = {
++ .next = NULL,
++ .name = "vmw_cursor_update_dmabuf",
++ .param = PARAM3|PARAM4,
++};
++
++struct size_overflow_hash _002620_hash = {
++ .next = NULL,
++ .name = "vmw_gmr_bind",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash _002621_hash = {
++ .next = NULL,
++ .name = "vmw_du_crtc_cursor_set",
++ .param = PARAM4|PARAM5,
++};
++
++struct size_overflow_hash _002622_hash = {
++ .next = NULL,
++ .name = "__module_alloc",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002623_hash = {
++ .next = NULL,
++ .name = "module_alloc_update_bounds_rw",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002624_hash = {
++ .next = NULL,
++ .name = "module_alloc_update_bounds_rx",
++ .param = PARAM1,
++};
++
++struct size_overflow_hash _002625_hash = {
++ .next = NULL,
++ .name = "acpi_system_write_alarm",
++ .param = PARAM3,
++};
++
++struct size_overflow_hash *size_overflow_hash[65536] = {
++ [22] = &_002264_hash,
++ [23] = &_002452_hash,
++ [27] = &_001669_hash,
++ [55] = &_002013_hash,
++ [57] = &_000770_hash,
++ [80] = &_001321_hash,
++ [92] = &_001516_hash,
++ [95] = &_000338_hash,
++ [132] = &_000883_hash,
++ [142] = &_000956_hash,
++ [170] = &_001450_hash,
++ [196] = &_001392_hash,
++ [267] = &_000438_hash,
++ [292] = &_001969_hash,
++ [310] = &_000415_hash,
++ [314] = &_001817_hash,
++ [413] = &_001663_hash,
++ [418] = &_001842_hash,
++ [496] = &_001022_hash,
++ [540] = &_001823_hash,
++ [551] = &_000161_hash,
++ [565] = &_001159_hash,
++ [583] = &_002561_hash,
++ [610] = &_002495_hash,
++ [645] = &_001207_hash,
++ [654] = &_002113_hash,
++ [656] = &_000104_hash,
++ [712] = &_002494_hash,
++ [734] = &_000517_hash,
++ [754] = &_000824_hash,
++ [815] = &_000877_hash,
++ [825] = &_002092_hash,
++ [841] = &_002231_hash,
++ [879] = &_001792_hash,
++ [920] = &_001659_hash,
++ [950] = &_000762_hash,
++ [959] = &_002266_hash,
++ [1060] = &_000234_hash,
++ [1073] = &_000952_hash,
++ [1075] = &_000682_hash,
++ [1083] = &_002248_hash,
++ [1092] = &_001424_hash,
++ [1135] = &_000638_hash,
++ [1192] = &_000280_hash,
++ [1196] = &_000869_hash,
++ [1206] = &_000253_hash,
++ [1240] = &_000026_hash,
++ [1273] = &_000276_hash,
++ [1362] = &_001388_hash,
++ [1383] = &_000514_hash,
++ [1387] = &_000817_hash,
++ [1401] = &_000214_hash,
++ [1463] = &_002063_hash,
++ [1475] = &_001246_hash,
++ [1488] = &_002044_hash,
++ [1589] = &_002138_hash,
++ [1607] = &_000403_hash,
++ [1614] = &_001657_hash,
++ [1647] = &_001658_hash,
++ [1658] = &_001732_hash,
++ [1683] = &_001675_hash,
++ [1711] = &_000125_hash,
++ [1725] = &_001690_hash,
++ [1774] = &_000137_hash,
++ [1974] = &_001162_hash,
++ [1984] = &_002001_hash,
++ [1992] = &_002398_hash,
++ [2035] = &_002336_hash,
++ [2050] = &_001632_hash,
++ [2071] = &_001527_hash,
++ [2081] = &_001790_hash,
++ [2097] = &_001376_hash,
++ [2107] = &_001795_hash,
++ [2109] = &_000827_hash,
++ [2117] = &_002115_hash,
++ [2124] = &_001894_hash,
++ [2143] = &_000112_hash,
++ [2166] = &_000998_hash,
++ [2219] = &_002525_hash,
++ [2249] = &_002141_hash,
++ [2256] = &_000522_hash,
++ [2259] = &_000182_hash,
++ [2275] = &_000059_hash,
++ [2308] = &_001417_hash,
++ [2347] = &_001677_hash,
++ [2368] = &_002240_hash,
++ [2370] = &_001757_hash,
++ [2403] = &_001991_hash,
++ [2418] = &_000295_hash,
++ [2454] = &_000981_hash,
++ [2473] = &_001643_hash,
++ [2481] = &_001208_hash,
++ [2482] = &_001232_hash,
++ [2513] = &_000170_hash,
++ [2570] = &_001364_hash,
++ [2618] = &_000556_hash,
++ [2707] = &_000346_hash,
++ [2733] = &_000664_hash,
++ [2828] = &_002005_hash,
++ [2861] = &_000537_hash,
++ [2868] = &_001438_hash,
++ [2896] = &_000123_hash,
++ [2919] = &_002435_hash,
++ [2949] = &_001544_hash,
++ [3017] = &_002566_hash,
++ [3021] = &_000805_hash,
++ [3034] = &_000660_hash,
++ [3038] = &_001809_hash,
++ [3048] = &_001735_hash,
++ [3071] = &_000150_hash,
++ [3100] = &_001196_hash,
++ [3102] = &_001057_hash,
++ [3122] = &_000544_hash,
++ [3142] = &_000215_hash,
++ [3168] = &_000199_hash,
++ [3184] = &_002446_hash,
++ [3194] = &_000041_hash,
++ [3233] = &_000930_hash,
++ [3236] = &_002348_hash,
++ [3241] = &_001828_hash,
++ [3311] = &_000726_hash,
++ [3326] = &_002535_hash,
++ [3337] = &_001971_hash,
++ [3351] = &_001748_hash,
++ [3393] = &_000364_hash,
++ [3397] = &_002252_hash,
++ [3426] = &_001016_hash,
++ [3427] = &_002343_hash,
++ [3447] = &_000412_hash,
++ [3492] = &_001092_hash,
++ [3521] = &_002488_hash,
++ [3566] = &_000709_hash,
++ [3569] = &_002471_hash,
++ [3585] = &_001216_hash,
++ [3606] = &_002459_hash,
++ [3607] = &_001489_hash,
++ [3628] = &_000040_hash,
++ [3649] = &_000122_hash,
++ [3650] = &_001630_hash,
++ [3703] = &_000091_hash,
++ [3708] = &_001589_hash,
++ [3740] = &_000117_hash,
++ [3793] = &_000504_hash,
++ [3813] = &_000373_hash,
++ [3826] = &_002197_hash,
++ [3829] = &_001968_hash,
++ [3855] = &_002028_hash,
++ [3870] = &_001555_hash,
++ [3883] = &_000221_hash,
++ [3888] = &_000610_hash,
++ [3894] = &_000391_hash,
++ [3910] = &_000629_hash,
++ [3992] = &_000174_hash,
++ [4005] = &_002373_hash,
++ [4011] = &_001515_hash,
++ [4166] = &_002120_hash,
++ [4180] = &_001945_hash,
++ [4204] = &_001888_hash,
++ [4303] = &_001346_hash,
++ [4365] = &_000004_hash,
++ [4373] = &_000592_hash,
++ [4388] = &_000897_hash,
++ [4412] = &_000148_hash,
++ [4415] = &_001846_hash,
++ [4437] = &_002347_hash,
++ [4471] = &_000052_hash,
++ [4486] = &_000591_hash,
++ [4495] = &_001593_hash,
++ [4502] = &_001107_hash,
++ [4532] = &_001174_hash,
++ [4548] = &_001590_hash,
++ [4593] = &_000069_hash,
++ [4605] = &_001059_hash,
++ [4635] = &_001816_hash,
++ [4682] = &_001117_hash,
++ [4683] = &_002291_hash,
++ [4687] = &_002016_hash,
++ [4690] = &_000319_hash,
++ [4707] = &_000149_hash,
++ [4710] = &_000599_hash,
++ [4718] = &_001655_hash,
++ [4722] = &_000736_hash,
++ [4804] = &_000374_hash,
++ [4815] = &_001974_hash,
++ [4833] = &_001995_hash,
++ [4843] = &_002358_hash,
++ [4862] = &_001831_hash,
++ [4874] = &_000858_hash,
++ [4886] = &_001585_hash,
++ [4889] = &_001171_hash,
++ [4928] = &_001535_hash,
++ [4966] = &_000160_hash,
++ [4999] = &_000051_hash,
++ [5024] = &_000365_hash,
++ [5091] = &_000313_hash,
++ [5102] = &_001148_hash,
++ [5171] = &_001812_hash,
++ [5204] = &_001026_hash,
++ [5214] = &_000421_hash,
++ [5224] = &_000054_hash,
++ [5324] = &_001920_hash,
++ [5329] = &_001262_hash,
++ [5361] = &_001912_hash,
++ [5368] = &_000098_hash,
++ [5463] = &_001600_hash,
++ [5476] = &_001601_hash,
++ [5484] = &_000114_hash,
++ [5494] = &_001197_hash,
++ [5498] = &_001549_hash,
++ [5518] = &_001151_hash,
++ [5574] = &_002354_hash,
++ [5580] = &_002427_hash,
++ [5590] = &_001700_hash,
++ [5611] = &_000332_hash,
++ [5662] = &_001463_hash,
++ [5694] = &_000222_hash,
++ [5727] = &_002605_hash,
++ [5735] = &_002516_hash,
++ [5775] = &_000505_hash,
++ [5784] = &_002559_hash,
++ [5806] = &_002022_hash,
++ [5846] = &_000106_hash,
++ [5848] = &_000534_hash,
++ [5861] = &_002455_hash,
++ [5904] = &_001899_hash,
++ [5911] = &_002067_hash,
++ [5941] = &_000829_hash,
++ [5957] = &_001188_hash,
++ [6073] = &_001086_hash,
++ [6112] = &_000809_hash,
++ [6159] = &_001400_hash,
++ [6171] = &_001571_hash,
++ [6228] = &_001870_hash,
++ [6238] = &_001357_hash,
++ [6246] = &_002583_hash,
++ [6282] = &_002527_hash,
++ [6376] = &_000431_hash,
++ [6431] = &_002181_hash,
++ [6432] = &_001620_hash,
++ [6507] = &_002372_hash,
++ [6536] = &_001948_hash,
++ [6547] = &_000474_hash,
++ [6549] = &_001596_hash,
++ [6554] = &_002610_hash,
++ [6622] = &_001349_hash,
++ [6699] = &_001910_hash,
++ [6706] = &_000080_hash,
++ [6724] = &_000634_hash,
++ [6784] = &_001789_hash,
++ [6785] = &_001730_hash,
++ [6792] = &_001367_hash,
++ [6841] = &_001867_hash,
++ [6847] = &_002030_hash,
++ [6888] = &_000447_hash,
++ [6892] = &_000168_hash,
++ [6911] = &_002038_hash,
++ [6918] = &_002177_hash,
++ [6924] = &_000876_hash,
++ [6926] = &_000093_hash,
++ [6963] = &_001220_hash,
++ [6985] = &_001320_hash,
++ [6990] = &_002237_hash,
++ [7000] = &_002415_hash,
++ [7024] = &_000860_hash,
++ [7043] = &_002492_hash,
++ [7072] = &_002122_hash,
++ [7091] = &_002099_hash,
++ [7142] = &_002184_hash,
++ [7203] = &_000699_hash,
++ [7238] = &_002521_hash,
++ [7349] = &_000351_hash,
++ [7368] = &_002136_hash,
++ [7396] = &_001124_hash,
++ [7414] = &_002579_hash,
++ [7459] = &_002552_hash,
++ [7471] = &_000849_hash,
++ [7482] = &_002457_hash,
++ [7509] = &_001493_hash,
++ [7519] = &_000723_hash,
++ [7659] = &_001033_hash,
++ [7685] = &_000671_hash,
++ [7708] = &_000808_hash,
++ [7752] = &_001226_hash,
++ [7776] = &_001266_hash,
++ [7787] = &_002109_hash,
++ [7790] = &_000084_hash,
++ [7792] = &_000165_hash,
++ [7898] = &_002089_hash,
++ [7917] = &_001423_hash,
++ [7932] = &_000213_hash,
++ [8013] = &_002060_hash,
++ [8017] = &_001570_hash,
++ [8038] = &_002070_hash,
++ [8052] = &_002537_hash,
++ [8074] = &_001627_hash,
++ [8121] = &_001574_hash,
++ [8175] = &_002473_hash,
++ [8206] = &_000461_hash,
++ [8212] = &_000479_hash,
++ [8218] = &_001255_hash,
++ [8219] = &_001030_hash,
++ [8261] = &_001539_hash,
++ [8274] = &_002489_hash,
++ [8321] = &_001313_hash,
++ [8328] = &_001387_hash,
++ [8334] = &_000756_hash,
++ [8360] = &_001024_hash,
++ [8395] = &_000659_hash,
++ [8436] = &_000578_hash,
++ [8482] = &_001616_hash,
++ [8506] = &_000158_hash,
++ [8533] = &_001625_hash,
++ [8556] = &_001044_hash,
++ [8570] = &_000758_hash,
++ [8574] = &_001771_hash,
++ [8580] = &_000597_hash,
++ [8620] = &_000540_hash,
++ [8628] = &_000300_hash,
++ [8712] = &_000145_hash,
++ [8800] = &_001676_hash,
++ [8858] = &_001230_hash,
++ [8944] = &_002469_hash,
++ [8959] = &_001966_hash,
++ [8964] = &_001562_hash,
++ [8967] = &_001575_hash,
++ [8968] = &_001594_hash,
++ [9061] = &_000561_hash,
++ [9062] = &_001514_hash,
++ [9075] = &_000843_hash,
++ [9088] = &_000139_hash,
++ [9110] = &_000761_hash,
++ [9116] = &_002217_hash,
++ [9181] = &_001776_hash,
++ [9194] = &_000719_hash,
++ [9232] = &_000497_hash,
++ [9269] = &_002517_hash,
++ [9273] = &_001368_hash,
++ [9309] = &_001811_hash,
++ [9337] = &_001441_hash,
++ [9397] = &_000455_hash,
++ [9431] = &_000749_hash,
++ [9438] = &_000840_hash,
++ [9444] = &_000010_hash,
++ [9470] = &_001260_hash,
++ [9511] = &_000340_hash,
++ [9522] = &_001083_hash,
++ [9530] = &_001949_hash,
++ [9559] = &_000847_hash,
++ [9566] = &_000317_hash,
++ [9575] = &_002429_hash,
++ [9604] = &_000820_hash,
++ [9605] = &_000560_hash,
++ [9627] = &_001079_hash,
++ [9639] = &_002454_hash,
++ [9656] = &_001210_hash,
++ [9657] = &_001052_hash,
++ [9670] = &_000570_hash,
++ [9671] = &_000648_hash,
++ [9676] = &_000172_hash,
++ [9705] = &_002128_hash,
++ [9743] = &_001330_hash,
++ [9766] = &_001340_hash,
++ [9778] = &_001295_hash,
++ [9786] = &_000567_hash,
++ [9805] = &_002598_hash,
++ [9813] = &_002280_hash,
++ [9840] = &_001345_hash,
++ [9864] = &_001032_hash,
++ [9893] = &_000750_hash,
++ [9904] = &_000460_hash,
++ [9948] = &_001953_hash,
++ [9957] = &_000143_hash,
++ [9973] = &_001664_hash,
++ [9990] = &_000984_hash,
++ [9991] = &_000050_hash,
++ [10009] = &_000936_hash,
++ [10024] = &_000239_hash,
++ [10110] = &_002114_hash,
++ [10155] = &_001612_hash,
++ [10157] = &_001986_hash,
++ [10165] = &_000727_hash,
++ [10173] = &_001904_hash,
++ [10182] = &_001408_hash,
++ [10259] = &_000100_hash,
++ [10287] = &_001521_hash,
++ [10321] = &_002613_hash,
++ [10337] = &_002061_hash,
++ [10355] = &_001634_hash,
++ [10362] = &_002539_hash,
++ [10366] = &_002042_hash,
++ [10379] = &_000826_hash,
++ [10471] = &_001709_hash,
++ [10507] = &_002503_hash,
++ [10511] = &_000525_hash,
++ [10517] = &_001062_hash,
++ [10594] = &_001009_hash,
++ [10608] = &_002046_hash,
++ [10619] = &_002178_hash,
++ [10660] = &_001878_hash,
++ [10708] = &_001496_hash,
++ [10720] = &_001505_hash,
++ [10737] = &_001491_hash,
++ [10738] = &_002458_hash,
++ [10747] = &_001276_hash,
++ [10760] = &_001587_hash,
++ [10765] = &_000323_hash,
++ [10799] = &_001166_hash,
++ [10840] = &_001844_hash,
++ [10872] = &_000573_hash,
++ [10897] = &_000227_hash,
++ [10900] = &_000109_hash,
++ [10903] = &_001185_hash,
++ [10918] = &_000002_hash,
++ [10976] = &_001650_hash,
++ [10984] = &_000493_hash,
++ [10997] = &_001236_hash,
++ [11050] = &_000594_hash,
++ [11106] = &_000939_hash,
++ [11116] = &_002274_hash,
++ [11172] = &_000889_hash,
++ [11221] = &_001755_hash,
++ [11268] = &_000008_hash,
++ [11329] = &_000781_hash,
++ [11350] = &_002590_hash,
++ [11353] = &_001096_hash,
++ [11362] = &_002580_hash,
++ [11369] = &_002507_hash,
++ [11398] = &_000806_hash,
++ [11410] = &_001263_hash,
++ [11411] = &_001526_hash,
++ [11422] = &_002543_hash,
++ [11479] = &_002382_hash,
++ [11507] = &_002325_hash,
++ [11510] = &_000933_hash,
++ [11582] = &_001887_hash,
++ [11649] = &_001115_hash,
++ [11673] = &_002125_hash,
++ [11678] = &_000092_hash,
++ [11684] = &_001342_hash,
++ [11686] = &_000920_hash,
++ [11687] = &_000513_hash,
++ [11691] = &_002518_hash,
++ [11695] = &_000559_hash,
++ [11753] = &_001801_hash,
++ [11776] = &_001911_hash,
++ [11818] = &_002412_hash,
++ [11828] = &_000668_hash,
++ [11829] = &_000516_hash,
++ [11830] = &_000484_hash,
++ [11843] = &_001113_hash,
++ [11868] = &_000193_hash,
++ [11917] = &_000012_hash,
++ [11942] = &_000152_hash,
++ [12061] = &_001047_hash,
++ [12064] = &_001742_hash,
++ [12076] = &_002500_hash,
++ [12127] = &_001265_hash,
++ [12129] = &_001109_hash,
++ [12135] = &_000663_hash,
++ [12137] = &_000449_hash,
++ [12141] = &_002603_hash,
++ [12144] = &_002226_hash,
++ [12154] = &_002072_hash,
++ [12173] = &_001691_hash,
++ [12179] = &_000804_hash,
++ [12184] = &_002445_hash,
++ [12187] = &_000890_hash,
++ [12221] = &_001608_hash,
++ [12251] = &_000260_hash,
++ [12257] = &_000734_hash,
++ [12267] = &_001506_hash,
++ [12269] = &_001609_hash,
++ [12284] = &_000477_hash,
++ [12285] = &_000384_hash,
++ [12288] = &_001750_hash,
++ [12295] = &_000919_hash,
++ [12316] = &_002102_hash,
++ [12332] = &_000406_hash,
++ [12384] = &_001242_hash,
++ [12465] = &_000548_hash,
++ [12487] = &_001235_hash,
++ [12509] = &_000383_hash,
++ [12579] = &_000865_hash,
++ [12589] = &_001457_hash,
++ [12604] = &_001586_hash,
++ [12640] = &_001035_hash,
++ [12641] = &_000190_hash,
++ [12649] = &_002208_hash,
++ [12664] = &_000600_hash,
++ [12669] = &_002541_hash,
++ [12716] = &_002160_hash,
++ [12736] = &_001830_hash,
++ [12756] = &_002144_hash,
++ [12769] = &_000336_hash,
++ [12785] = &_001028_hash,
++ [12802] = &_001998_hash,
++ [12817] = &_001604_hash,
++ [12839] = &_002056_hash,
++ [12930] = &_001311_hash,
++ [12964] = &_000751_hash,
++ [12989] = &_002394_hash,
++ [13041] = &_002304_hash,
++ [13060] = &_000171_hash,
++ [13111] = &_001143_hash,
++ [13119] = &_001645_hash,
++ [13173] = &_001668_hash,
++ [13176] = &_001919_hash,
++ [13199] = &_002443_hash,
++ [13205] = &_001866_hash,
++ [13245] = &_000048_hash,
++ [13252] = &_001382_hash,
++ [13289] = &_000416_hash,
++ [13330] = &_000613_hash,
++ [13337] = &_001418_hash,
++ [13377] = &_002079_hash,
++ [13414] = &_000200_hash,
++ [13417] = &_000975_hash,
++ [13438] = &_001412_hash,
++ [13440] = &_000518_hash,
++ [13443] = &_000730_hash,
++ [13529] = &_001298_hash,
++ [13556] = &_001848_hash,
++ [13574] = &_001941_hash,
++ [13589] = &_001304_hash,
++ [13596] = &_000288_hash,
++ [13615] = &_002082_hash,
++ [13634] = &_001455_hash,
++ [13666] = &_000757_hash,
++ [13748] = &_000064_hash,
++ [13791] = &_000055_hash,
++ [13900] = &_000571_hash,
++ [13943] = &_001800_hash,
++ [13946] = &_002159_hash,
++ [13950] = &_001858_hash,
++ [13977] = &_001471_hash,
++ [13991] = &_001378_hash,
++ [14041] = &_001938_hash,
++ [14058] = &_002039_hash,
++ [14096] = &_001337_hash,
++ [14208] = &_000685_hash,
++ [14222] = &_001531_hash,
++ [14245] = &_002037_hash,
++ [14267] = &_001284_hash,
++ [14273] = &_000676_hash,
++ [14283] = &_001145_hash,
++ [14302] = &_000017_hash,
++ [14393] = &_001636_hash,
++ [14400] = &_000558_hash,
++ [14416] = &_000967_hash,
++ [14426] = &_002351_hash,
++ [14479] = &_001202_hash,
++ [14486] = &_002134_hash,
++ [14507] = &_001882_hash,
++ [14536] = &_001328_hash,
++ [14549] = &_001459_hash,
++ [14550] = &_002581_hash,
++ [14591] = &_000265_hash,
++ [14652] = &_001045_hash,
++ [14717] = &_000630_hash,
++ [14782] = &_002257_hash,
++ [14796] = &_000207_hash,
++ [14857] = &_000331_hash,
++ [14861] = &_000230_hash,
++ [14892] = &_000027_hash,
++ [14899] = &_002320_hash,
++ [14908] = &_000321_hash,
++ [14952] = &_002282_hash,
++ [14976] = &_001428_hash,
++ [14987] = &_001105_hash,
++ [15058] = &_000118_hash,
++ [15067] = &_002174_hash,
++ [15070] = &_000378_hash,
++ [15072] = &_000385_hash,
++ [15073] = &_002221_hash,
++ [15088] = &_002327_hash,
++ [15093] = &_000695_hash,
++ [15104] = &_000965_hash,
++ [15193] = &_000905_hash,
++ [15218] = &_000072_hash,
++ [15237] = &_002417_hash,
++ [15243] = &_001756_hash,
++ [15291] = &_001167_hash,
++ [15345] = &_000700_hash,
++ [15360] = &_001254_hash,
++ [15374] = &_002547_hash,
++ [15382] = &_001272_hash,
++ [15423] = &_001588_hash,
++ [15449] = &_002123_hash,
++ [15464] = &_001223_hash,
++ [15534] = &_000402_hash,
++ [15587] = &_002418_hash,
++ [15620] = &_002450_hash,
++ [15631] = &_001903_hash,
++ [15642] = &_001192_hash,
++ [15653] = &_002530_hash,
++ [15674] = &_000169_hash,
++ [15752] = &_001371_hash,
++ [15803] = &_002025_hash,
++ [15822] = &_000034_hash,
++ [15870] = &_001556_hash,
++ [15892] = &_002206_hash,
++ [15939] = &_002220_hash,
++ [15948] = &_001854_hash,
++ [15954] = &_000432_hash,
++ [15981] = &_000846_hash,
++ [16003] = &_000851_hash,
++ [16056] = &_002107_hash,
++ [16103] = &_001783_hash,
++ [16110] = &_001775_hash,
++ [16134] = &_001362_hash,
++ [16227] = &_002097_hash,
++ [16280] = &_001341_hash,
++ [16291] = &_001523_hash,
++ [16332] = &_002615_hash,
++ [16365] = &_002271_hash,
++ [16366] = &_000451_hash,
++ [16376] = &_001767_hash,
++ [16399] = &_001279_hash,
++ [16405] = &_000964_hash,
++ [16406] = &_001333_hash,
++ [16420] = &_002173_hash,
++ [16431] = &_000488_hash,
++ [16566] = &_001851_hash,
++ [16576] = &_002093_hash,
++ [16669] = &_002212_hash,
++ [16756] = &_002094_hash,
++ [16772] = &_001297_hash,
++ [16804] = &_000228_hash,
++ [16809] = &_001541_hash,
++ [16814] = &_001335_hash,
++ [16831] = &_002574_hash,
++ [16835] = &_002312_hash,
++ [16874] = &_001163_hash,
++ [16908] = &_000370_hash,
++ [16926] = &_002255_hash,
++ [16944] = &_001149_hash,
++ [16945] = &_000582_hash,
++ [16969] = &_000928_hash,
++ [17005] = &_001308_hash,
++ [17027] = &_001824_hash,
++ [17048] = &_001407_hash,
++ [17076] = &_002018_hash,
++ [17100] = &_002049_hash,
++ [17131] = &_000369_hash,
++ [17161] = &_002393_hash,
++ [17163] = &_000070_hash,
++ [17194] = &_001701_hash,
++ [17213] = &_001698_hash,
++ [17220] = &_002560_hash,
++ [17269] = &_000694_hash,
++ [17276] = &_001458_hash,
++ [17277] = &_001933_hash,
++ [17283] = &_001444_hash,
++ [17290] = &_001865_hash,
++ [17307] = &_000341_hash,
++ [17320] = &_000921_hash,
++ [17325] = &_001281_hash,
++ [17346] = &_002139_hash,
++ [17347] = &_000733_hash,
++ [17424] = &_000339_hash,
++ [17435] = &_002040_hash,
++ [17481] = &_002594_hash,
++ [17486] = &_001552_hash,
++ [17528] = &_000470_hash,
++ [17551] = &_000135_hash,
++ [17559] = &_000003_hash,
++ [17594] = &_001253_hash,
++ [17595] = &_000973_hash,
++ [17598] = &_000485_hash,
++ [17607] = &_001007_hash,
++ [17662] = &_000404_hash,
++ [17686] = &_001921_hash,
++ [17707] = &_001577_hash,
++ [17733] = &_000206_hash,
++ [17741] = &_001492_hash,
++ [17820] = &_001136_hash,
++ [17864] = &_000546_hash,
++ [17868] = &_001626_hash,
++ [17875] = &_000450_hash,
++ [17878] = &_001001_hash,
++ [17880] = &_002490_hash,
++ [17886] = &_002562_hash,
++ [17904] = &_002329_hash,
++ [17914] = &_001329_hash,
++ [17920] = &_001156_hash,
++ [17989] = &_000552_hash,
++ [18006] = &_001918_hash,
++ [18016] = &_002438_hash,
++ [18048] = &_000788_hash,
++ [18055] = &_000157_hash,
++ [18074] = &_000325_hash,
++ [18094] = &_000962_hash,
++ [18116] = &_001689_hash,
++ [18148] = &_001495_hash,
++ [18176] = &_001015_hash,
++ [18207] = &_001452_hash,
++ [18215] = &_000177_hash,
++ [18226] = &_000934_hash,
++ [18254] = &_000472_hash,
++ [18262] = &_000445_hash,
++ [18275] = &_000231_hash,
++ [18278] = &_002400_hash,
++ [18285] = &_000355_hash,
++ [18293] = &_000612_hash,
++ [18322] = &_001351_hash,
++ [18355] = &_001924_hash,
++ [18402] = &_002230_hash,
++ [18407] = &_002344_hash,
++ [18459] = &_000465_hash,
++ [18525] = &_000563_hash,
++ [18543] = &_001500_hash,
++ [18555] = &_002244_hash,
++ [18575] = &_001687_hash,
++ [18604] = &_000279_hash,
++ [18625] = &_001361_hash,
++ [18667] = &_002287_hash,
++ [18708] = &_001803_hash,
++ [18710] = &_000102_hash,
++ [18744] = &_000392_hash,
++ [18751] = &_002080_hash,
++ [18766] = &_001950_hash,
++ [18775] = &_000841_hash,
++ [18780] = &_001271_hash,
++ [18821] = &_002355_hash,
++ [18824] = &_000590_hash,
++ [18844] = &_000366_hash,
++ [18853] = &_002573_hash,
++ [18862] = &_000512_hash,
++ [18869] = &_002152_hash,
++ [18870] = &_002289_hash,
++ [18913] = &_000107_hash,
++ [19043] = &_000471_hash,
++ [19044] = &_002571_hash,
++ [19064] = &_000786_hash,
++ [19065] = &_000874_hash,
++ [19089] = &_000131_hash,
++ [19090] = &_001533_hash,
++ [19106] = &_002043_hash,
++ [19109] = &_000777_hash,
++ [19140] = &_001274_hash,
++ [19205] = &_001802_hash,
++ [19214] = &_000006_hash,
++ [19216] = &_002462_hash,
++ [19281] = &_001753_hash,
++ [19298] = &_001048_hash,
++ [19305] = &_001713_hash,
++ [19322] = &_001688_hash,
++ [19332] = &_000771_hash,
++ [19366] = &_000020_hash,
++ [19393] = &_000274_hash,
++ [19402] = &_002214_hash,
++ [19423] = &_000187_hash,
++ [19485] = &_000832_hash,
++ [19509] = &_001354_hash,
++ [19510] = &_001213_hash,
++ [19536] = &_000979_hash,
++ [19564] = &_000996_hash,
++ [19565] = &_002172_hash,
++ [19570] = &_001671_hash,
++ [19583] = &_001651_hash,
++ [19658] = &_000337_hash,
++ [19678] = &_000452_hash,
++ [19736] = &_001431_hash,
++ [19750] = &_002593_hash,
++ [19758] = &_000418_hash,
++ [19780] = &_001078_hash,
++ [19824] = &_000287_hash,
++ [19826] = &_002276_hash,
++ [19839] = &_001091_hash,
++ [19852] = &_000773_hash,
++ [19910] = &_001611_hash,
++ [19918] = &_001914_hash,
++ [19943] = &_001806_hash,
++ [19969] = &_002322_hash,
++ [19986] = &_000062_hash,
++ [20029] = &_002256_hash,
++ [20063] = &_002433_hash,
++ [20080] = &_001472_hash,
++ [20084] = &_001719_hash,
++ [20091] = &_001540_hash,
++ [20097] = &_002223_hash,
++ [20122] = &_002124_hash,
++ [20167] = &_001191_hash,
++ [20174] = &_002075_hash,
++ [20249] = &_001075_hash,
++ [20250] = &_001546_hash,
++ [20323] = &_002031_hash,
++ [20347] = &_000232_hash,
++ [20399] = &_000929_hash,
++ [20469] = &_000456_hash,
++ [20478] = &_002310_hash,
++ [20494] = &_002609_hash,
++ [20521] = &_001602_hash,
++ [20522] = &_002467_hash,
++ [20537] = &_000720_hash,
++ [20555] = &_001572_hash,
++ [20581] = &_002589_hash,
++ [20604] = &_002370_hash,
++ [20646] = &_001413_hash,
++ [20676] = &_000564_hash,
++ [20682] = &_001703_hash,
++ [20697] = &_001964_hash,
++ [20724] = &_001093_hash,
++ [20737] = &_000646_hash,
++ [20751] = &_000644_hash,
++ [20792] = &_002582_hash,
++ [20795] = &_001805_hash,
++ [20809] = &_001179_hash,
++ [20834] = &_002081_hash,
++ [20836] = &_001211_hash,
++ [20891] = &_001116_hash,
++ [20895] = &_001827_hash,
++ [20911] = &_002558_hash,
++ [20948] = &_000716_hash,
++ [20970] = &_000576_hash,
++ [20985] = &_000684_hash,
++ [21046] = &_001845_hash,
++ [21083] = &_001706_hash,
++ [21113] = &_000056_hash,
++ [21153] = &_000731_hash,
++ [21208] = &_000281_hash,
++ [21240] = &_000886_hash,
++ [21305] = &_002617_hash,
++ [21310] = &_000677_hash,
++ [21371] = &_001277_hash,
++ [21451] = &_000130_hash,
++ [21487] = &_001970_hash,
++ [21504] = &_000354_hash,
++ [21516] = &_002111_hash,
++ [21532] = &_001759_hash,
++ [21553] = &_001076_hash,
++ [21604] = &_000995_hash,
++ [21677] = &_000729_hash,
++ [21681] = &_001068_hash,
++ [21687] = &_002514_hash,
++ [21732] = &_001481_hash,
++ [21785] = &_001239_hash,
++ [21915] = &_002509_hash,
++ [22001] = &_001989_hash,
++ [22049] = &_000667_hash,
++ [22053] = &_002095_hash,
++ [22085] = &_000350_hash,
++ [22173] = &_000311_hash,
++ [22227] = &_002297_hash,
++ [22254] = &_002533_hash,
++ [22300] = &_000603_hash,
++ [22305] = &_000957_hash,
++ [22395] = &_001661_hash,
++ [22399] = &_002436_hash,
++ [22404] = &_000669_hash,
++ [22416] = &_002511_hash,
++ [22457] = &_001365_hash,
++ [22554] = &_000036_hash,
++ [22601] = &_002029_hash,
++ [22631] = &_001087_hash,
++ [22640] = &_001931_hash,
++ [22681] = &_002196_hash,
++ [22708] = &_001624_hash,
++ [22735] = &_001322_hash,
++ [22742] = &_002360_hash,
++ [22854] = &_001956_hash,
++ [22859] = &_001445_hash,
++ [22861] = &_000784_hash,
++ [22885] = &_002602_hash,
++ [22894] = &_000615_hash,
++ [22896] = &_001429_hash,
++ [22948] = &_001019_hash,
++ [22960] = &_000045_hash,
++ [22961] = &_000760_hash,
++ [22987] = &_000468_hash,
++ [23062] = &_002307_hash,
++ [23078] = &_001054_hash,
++ [23084] = &_001784_hash,
++ [23091] = &_000481_hash,
++ [23097] = &_000389_hash,
++ [23102] = &_000411_hash,
++ [23104] = &_002110_hash,
++ [23109] = &_002182_hash,
++ [23110] = &_000972_hash,
++ [23122] = &_002607_hash,
++ [23161] = &_001940_hash,
++ [23178] = &_000616_hash,
++ [23179] = &_001442_hash,
++ [23182] = &_000238_hash,
++ [23190] = &_000359_hash,
++ [23229] = &_002090_hash,
++ [23265] = &_002251_hash,
++ [23310] = &_000254_hash,
++ [23314] = &_000986_hash,
++ [23346] = &_001893_hash,
++ [23416] = &_002187_hash,
++ [23424] = &_001229_hash,
++ [23447] = &_000802_hash,
++ [23449] = &_000248_hash,
++ [23485] = &_000947_hash,
++ [23536] = &_002179_hash,
++ [23570] = &_001580_hash,
++ [23574] = &_001794_hash,
++ [23588] = &_000116_hash,
++ [23610] = &_000914_hash,
++ [23615] = &_001511_hash,
++ [23652] = &_000252_hash,
++ [23699] = &_002106_hash,
++ [23801] = &_001987_hash,
++ [23824] = &_002470_hash,
++ [23845] = &_001797_hash,
++ [23850] = &_001891_hash,
++ [23878] = &_002143_hash,
++ [23884] = &_002132_hash,
++ [23918] = &_000963_hash,
++ [23957] = &_000115_hash,
++ [23984] = &_000666_hash,
++ [24007] = &_000798_hash,
++ [24052] = &_000680_hash,
++ [24075] = &_000077_hash,
++ [24109] = &_001483_hash,
++ [24139] = &_000290_hash,
++ [24177] = &_001258_hash,
++ [24208] = &_002140_hash,
++ [24236] = &_002002_hash,
++ [24283] = &_002556_hash,
++ [24308] = &_001660_hash,
++ [24317] = &_000053_hash,
++ [24352] = &_002366_hash,
++ [24365] = &_002296_hash,
++ [24366] = &_000108_hash,
++ [24398] = &_000854_hash,
++ [24425] = &_001642_hash,
++ [24430] = &_002176_hash,
++ [24466] = &_002253_hash,
++ [24515] = &_002239_hash,
++ [24645] = &_000782_hash,
++ [24738] = &_002017_hash,
++ [24742] = &_002224_hash,
++ [24755] = &_002612_hash,
++ [24775] = &_002587_hash,
++ [24786] = &_001326_hash,
++ [24790] = &_001303_hash,
++ [24869] = &_001419_hash,
++ [24873] = &_000082_hash,
++ [24877] = &_001932_hash,
++ [24899] = &_001401_hash,
++ [24910] = &_001674_hash,
++ [24954] = &_001892_hash,
++ [24961] = &_002052_hash,
++ [24987] = &_000950_hash,
++ [25003] = &_002189_hash,
++ [25005] = &_001744_hash,
++ [25067] = &_000236_hash,
++ [25104] = &_002407_hash,
++ [25106] = &_001140_hash,
++ [25127] = &_001884_hash,
++ [25166] = &_001528_hash,
++ [25167] = &_002493_hash,
++ [25178] = &_000498_hash,
++ [25238] = &_001868_hash,
++ [25242] = &_002451_hash,
++ [25277] = &_000791_hash,
++ [25278] = &_001584_hash,
++ [25286] = &_000944_hash,
++ [25316] = &_001640_hash,
++ [25355] = &_002611_hash,
++ [25369] = &_002009_hash,
++ [25420] = &_001353_hash,
++ [25421] = &_001679_hash,
++ [25502] = &_000301_hash,
++ [25505] = &_001139_hash,
++ [25545] = &_002163_hash,
++ [25547] = &_002340_hash,
++ [25569] = &_000459_hash,
++ [25597] = &_002216_hash,
++ [25625] = &_000430_hash,
++ [25628] = &_000071_hash,
++ [25690] = &_002258_hash,
++ [25714] = &_000870_hash,
++ [25726] = &_002397_hash,
++ [25747] = &_000799_hash,
++ [25792] = &_001712_hash,
++ [25799] = &_001504_hash,
++ [25814] = &_002522_hash,
++ [25816] = &_000458_hash,
++ [25824] = &_001923_hash,
++ [25884] = &_001637_hash,
++ [25905] = &_002198_hash,
++ [25910] = &_000816_hash,
++ [25919] = &_001934_hash,
++ [25930] = &_001513_hash,
++ [25931] = &_002192_hash,
++ [26036] = &_002202_hash,
++ [26037] = &_001494_hash,
++ [26061] = &_000310_hash,
++ [26131] = &_000620_hash,
++ [26164] = &_001317_hash,
++ [26166] = &_001639_hash,
++ [26187] = &_000226_hash,
++ [26201] = &_000342_hash,
++ [26213] = &_001040_hash,
++ [26230] = &_002299_hash,
++ [26233] = &_002241_hash,
++ [26321] = &_001930_hash,
++ [26363] = &_000184_hash,
++ [26483] = &_000868_hash,
++ [26485] = &_001204_hash,
++ [26501] = &_001476_hash,
++ [26540] = &_001064_hash,
++ [26554] = &_001218_hash,
++ [26577] = &_000483_hash,
++ [26627] = &_001922_hash,
++ [26650] = &_000901_hash,
++ [26760] = &_001157_hash,
++ [26795] = &_001051_hash,
++ [26847] = &_000194_hash,
++ [26928] = &_000658_hash,
++ [26933] = &_000495_hash,
++ [26935] = &_001925_hash,
++ [27062] = &_001219_hash,
++ [27083] = &_000043_hash,
++ [27089] = &_000088_hash,
++ [27142] = &_001462_hash,
++ [27143] = &_000087_hash,
++ [27183] = &_002166_hash,
++ [27235] = &_000487_hash,
++ [27308] = &_001316_hash,
++ [27332] = &_000574_hash,
++ [27346] = &_001259_hash,
++ [27364] = &_001456_hash,
++ [27416] = &_002170_hash,
++ [27495] = &_000242_hash,
++ [27497] = &_002505_hash,
++ [27509] = &_000848_hash,
++ [27519] = &_002085_hash,
++ [27525] = &_001375_hash,
++ [27579] = &_000334_hash,
++ [27643] = &_000675_hash,
++ [27660] = &_000266_hash,
++ [27664] = &_000101_hash,
++ [27701] = &_001837_hash,
++ [27715] = &_002353_hash,
++ [27724] = &_000466_hash,
++ [27770] = &_000307_hash,
++ [27804] = &_002614_hash,
++ [27805] = &_001439_hash,
++ [27833] = &_001173_hash,
++ [27859] = &_001475_hash,
++ [27893] = &_001559_hash,
++ [27896] = &_002278_hash,
++ [27905] = &_002323_hash,
++ [27972] = &_001864_hash,
++ [28008] = &_001141_hash,
++ [28041] = &_000515_hash,
++ [28053] = &_000796_hash,
++ [28061] = &_001856_hash,
++ [28102] = &_000961_hash,
++ [28153] = &_001135_hash,
++ [28154] = &_002261_hash,
++ [28185] = &_001425_hash,
++ [28225] = &_002367_hash,
++ [28317] = &_002034_hash,
++ [28338] = &_000748_hash,
++ [28344] = &_002268_hash,
++ [28351] = &_001130_hash,
++ [28371] = &_000401_hash,
++ [28384] = &_002053_hash,
++ [28385] = &_000167_hash,
++ [28459] = &_002399_hash,
++ [28479] = &_002621_hash,
++ [28527] = &_001728_hash,
++ [28544] = &_002012_hash,
++ [28545] = &_000361_hash,
++ [28556] = &_000068_hash,
++ [28670] = &_001296_hash,
++ [28731] = &_002577_hash,
++ [28736] = &_002300_hash,
++ [28738] = &_000572_hash,
++ [28764] = &_002345_hash,
++ [28800] = &_001097_hash,
++ [28832] = &_001804_hash,
++ [28849] = &_000645_hash,
++ [28867] = &_000895_hash,
++ [28885] = &_001013_hash,
++ [28924] = &_001916_hash,
++ [28972] = &_002333_hash,
++ [28993] = &_000243_hash,
++ [28999] = &_002564_hash,
++ [29029] = &_002091_hash,
++ [29061] = &_000299_hash,
++ [29109] = &_000293_hash,
++ [29142] = &_000437_hash,
++ [29147] = &_001071_hash,
++ [29201] = &_002608_hash,
++ [29203] = &_002083_hash,
++ [29214] = &_001061_hash,
++ [29224] = &_001813_hash,
++ [29236] = &_000902_hash,
++ [29238] = &_002232_hash,
++ [29248] = &_000520_hash,
++ [29277] = &_000427_hash,
++ [29305] = &_001512_hash,
++ [29338] = &_001622_hash,
++ [29346] = &_000328_hash,
++ [29437] = &_002411_hash,
++ [29478] = &_000180_hash,
++ [29504] = &_000090_hash,
++ [29522] = &_001641_hash,
++ [29562] = &_002127_hash,
++ [29566] = &_000946_hash,
++ [29654] = &_000499_hash,
++ [29708] = &_002596_hash,
++ [29731] = &_000198_hash,
++ [29735] = &_000457_hash,
++ [29771] = &_002404_hash,
++ [29842] = &_000429_hash,
++ [29886] = &_000376_hash,
++ [29982] = &_002290_hash,
++ [29983] = &_000900_hash,
++ [30030] = &_000698_hash,
++ [30040] = &_002313_hash,
++ [30091] = &_001324_hash,
++ [30092] = &_000568_hash,
++ [30138] = &_002235_hash,
++ [30189] = &_002424_hash,
++ [30208] = &_000983_hash,
++ [30212] = &_001935_hash,
++ [30218] = &_001131_hash,
++ [30265] = &_002227_hash,
++ [30271] = &_001778_hash,
++ [30273] = &_002546_hash,
++ [30290] = &_001123_hash,
++ [30341] = &_002380_hash,
++ [30352] = &_000642_hash,
++ [30393] = &_002402_hash,
++ [30456] = &_000834_hash,
++ [30487] = &_000029_hash,
++ [30516] = &_000192_hash,
++ [30561] = &_002408_hash,
++ [30581] = &_001106_hash,
++ [30592] = &_001647_hash,
++ [30610] = &_000539_hash,
++ [30629] = &_001862_hash,
++ [30701] = &_000153_hash,
++ [30721] = &_001838_hash,
++ [30777] = &_000218_hash,
++ [30809] = &_002321_hash,
++ [30813] = &_002026_hash,
++ [30843] = &_000503_hash,
++ [30887] = &_002218_hash,
++ [30941] = &_000519_hash,
++ [31013] = &_001840_hash,
++ [31060] = &_002456_hash,
++ [31091] = &_000508_hash,
++ [31112] = &_002108_hash,
++ [31140] = &_000931_hash,
++ [31148] = &_001595_hash,
++ [31171] = &_002309_hash,
++ [31183] = &_000887_hash,
++ [31200] = &_000362_hash,
++ [31221] = &_001289_hash,
++ [31238] = &_002269_hash,
++ [31244] = &_000787_hash,
++ [31257] = &_002158_hash,
++ [31270] = &_001307_hash,
++ [31303] = &_000622_hash,
++ [31318] = &_000127_hash,
++ [31372] = &_000665_hash,
++ [31411] = &_002193_hash,
++ [31413] = &_000344_hash,
++ [31429] = &_002057_hash,
++ [31453] = &_000397_hash,
++ [31485] = &_000039_hash,
++ [31491] = &_002510_hash,
++ [31498] = &_001618_hash,
++ [31581] = &_001008_hash,
++ [31611] = &_001822_hash,
++ [31617] = &_000725_hash,
++ [31651] = &_002413_hash,
++ [31668] = &_000333_hash,
++ [31680] = &_000837_hash,
++ [31682] = &_001567_hash,
++ [31685] = &_002118_hash,
++ [31742] = &_002203_hash,
++ [31750] = &_002335_hash,
++ [31753] = &_001144_hash,
++ [31801] = &_000828_hash,
++ [31804] = &_001781_hash,
++ [31818] = &_002259_hash,
++ [31881] = &_002576_hash,
++ [31902] = &_000156_hash,
++ [31919] = &_000977_hash,
++ [31920] = &_000316_hash,
++ [31942] = &_000277_hash,
++ [31948] = &_001215_hash,
++ [31966] = &_000132_hash,
++ [32010] = &_001305_hash,
++ [32045] = &_002618_hash,
++ [32046] = &_001177_hash,
++ [32064] = &_000436_hash,
++ [32101] = &_001286_hash,
++ [32165] = &_001573_hash,
++ [32199] = &_001234_hash,
++ [32241] = &_002104_hash,
++ [32308] = &_000643_hash,
++ [32342] = &_001181_hash,
++ [32362] = &_002008_hash,
++ [32374] = &_002426_hash,
++ [32377] = &_001565_hash,
++ [32400] = &_001241_hash,
++ [32458] = &_001369_hash,
++ [32493] = &_000262_hash,
++ [32521] = &_000811_hash,
++ [32531] = &_001379_hash,
++ [32533] = &_002153_hash,
++ [32550] = &_001717_hash,
++ [32562] = &_001613_hash,
++ [32595] = &_001943_hash,
++ [32603] = &_002147_hash,
++ [32631] = &_002186_hash,
++ [32632] = &_001309_hash,
++ [32646] = &_000322_hash,
++ [32654] = &_001721_hash,
++ [32673] = &_000358_hash,
++ [32747] = &_002201_hash,
++ [32751] = &_002519_hash,
++ [32794] = &_002475_hash,
++ [32833] = &_000400_hash,
++ [32866] = &_000978_hash,
++ [32880] = &_000778_hash,
++ [32913] = &_001762_hash,
++ [32999] = &_002448_hash,
++ [33065] = &_002263_hash,
++ [33068] = &_002003_hash,
++ [33178] = &_001554_hash,
++ [33204] = &_001327_hash,
++ [33210] = &_000423_hash,
++ [33274] = &_000094_hash,
++ [33308] = &_000343_hash,
++ [33312] = &_002421_hash,
++ [33356] = &_000142_hash,
++ [33370] = &_001958_hash,
++ [33383] = &_002148_hash,
++ [33475] = &_001012_hash,
++ [33479] = &_000138_hash,
++ [33499] = &_001976_hash,
++ [33506] = &_002584_hash,
++ [33518] = &_000368_hash,
++ [33521] = &_000038_hash,
++ [33523] = &_000375_hash,
++ [33539] = &_001548_hash,
++ [33551] = &_000821_hash,
++ [33596] = &_002247_hash,
++ [33615] = &_001752_hash,
++ [33678] = &_001058_hash,
++ [33708] = &_001172_hash,
++ [33714] = &_000852_hash,
++ [33719] = &_000444_hash,
++ [33762] = &_002071_hash,
++ [33769] = &_000241_hash,
++ [33829] = &_002386_hash,
++ [33942] = &_002000_hash,
++ [33943] = &_001853_hash,
++ [33944] = &_001965_hash,
++ [33984] = &_000632_hash,
++ [34022] = &_000993_hash,
++ [34034] = &_000422_hash,
++ [34133] = &_000297_hash,
++ [34135] = &_002600_hash,
++ [34264] = &_000079_hash,
++ [34271] = &_000486_hash,
++ [34366] = &_000475_hash,
++ [34377] = &_001482_hash,
++ [34384] = &_000065_hash,
++ [34386] = &_001566_hash,
++ [34400] = &_002188_hash,
++ [34446] = &_000617_hash,
++ [34472] = &_001875_hash,
++ [34473] = &_002410_hash,
++ [34477] = &_000255_hash,
++ [34532] = &_000687_hash,
++ [34547] = &_000862_hash,
++ [34564] = &_002434_hash,
++ [34586] = &_000272_hash,
++ [34641] = &_000779_hash,
++ [34687] = &_001773_hash,
++ [34722] = &_002162_hash,
++ [34734] = &_001895_hash,
++ [34736] = &_000467_hash,
++ [34778] = &_002504_hash,
++ [34790] = &_002460_hash,
++ [34803] = &_000595_hash,
++ [34838] = &_000067_hash,
++ [34853] = &_000028_hash,
++ [34871] = &_001702_hash,
++ [34894] = &_000267_hash,
++ [34961] = &_002512_hash,
++ [35003] = &_000941_hash,
++ [35029] = &_001312_hash,
++ [35053] = &_000086_hash,
++ [35088] = &_001524_hash,
++ [35104] = &_000096_hash,
++ [35110] = &_000263_hash,
++ [35145] = &_002480_hash,
++ [35159] = &_001389_hash,
++ [35161] = &_002131_hash,
++ [35210] = &_002068_hash,
++ [35255] = &_002364_hash,
++ [35266] = &_001694_hash,
++ [35280] = &_001766_hash,
++ [35283] = &_001782_hash,
++ [35320] = &_001538_hash,
++ [35324] = &_000976_hash,
++ [35332] = &_001715_hash,
++ [35351] = &_000861_hash,
++ [35354] = &_002449_hash,
++ [35425] = &_001056_hash,
++ [35439] = &_002338_hash,
++ [35474] = &_002591_hash,
++ [35521] = &_001280_hash,
++ [35534] = &_001787_hash,
++ [35538] = &_001992_hash,
++ [35617] = &_001825_hash,
++ [35651] = &_001152_hash,
++ [35652] = &_002520_hash,
++ [35674] = &_002453_hash,
++ [35691] = &_000454_hash,
++ [35761] = &_001791_hash,
++ [35786] = &_000607_hash,
++ [35795] = &_001963_hash,
++ [35892] = &_000623_hash,
++ [35913] = &_001409_hash,
++ [35937] = &_002501_hash,
++ [35974] = &_000103_hash,
++ [35993] = &_001416_hash,
++ [36016] = &_001736_hash,
++ [36059] = &_001722_hash,
++ [36112] = &_000631_hash,
++ [36132] = &_000640_hash,
++ [36147] = &_000917_hash,
++ [36155] = &_000741_hash,
++ [36169] = &_000566_hash,
++ [36228] = &_002441_hash,
++ [36276] = &_002526_hash,
++ [36280] = &_000126_hash,
++ [36285] = &_002229_hash,
++ [36303] = &_001850_hash,
++ [36311] = &_000674_hash,
++ [36328] = &_002474_hash,
++ [36336] = &_000304_hash,
++ [36353] = &_001606_hash,
++ [36385] = &_002523_hash,
++ [36399] = &_000031_hash,
++ [36446] = &_001088_hash,
++ [36450] = &_001269_hash,
++ [36481] = &_000742_hash,
++ [36510] = &_001374_hash,
++ [36513] = &_001426_hash,
++ [36520] = &_002155_hash,
++ [36540] = &_002105_hash,
++ [36555] = &_002199_hash,
++ [36589] = &_001467_hash,
++ [36598] = &_001017_hash,
++ [36621] = &_001355_hash,
++ [36664] = &_002209_hash,
++ [36671] = &_001391_hash,
++ [36740] = &_001520_hash,
++ [36746] = &_000800_hash,
++ [36841] = &_002117_hash,
++ [36853] = &_001410_hash,
++ [36858] = &_000124_hash,
++ [36876] = &_000588_hash,
++ [36885] = &_000258_hash,
++ [36896] = &_001999_hash,
++ [36909] = &_002377_hash,
++ [36957] = &_002308_hash,
++ [36971] = &_002553_hash,
++ [37006] = &_000536_hash,
++ [37053] = &_002150_hash,
++ [37079] = &_000405_hash,
++ [37198] = &_002284_hash,
++ [37223] = &_000462_hash,
++ [37227] = &_001339_hash,
++ [37288] = &_001522_hash,
++ [37311] = &_000925_hash,
++ [37323] = &_002014_hash,
++ [37327] = &_001420_hash,
++ [37330] = &_000494_hash,
++ [37418] = &_001530_hash,
++ [37420] = &_000857_hash,
++ [37422] = &_000672_hash,
++ [37489] = &_000932_hash,
++ [37519] = &_000639_hash,
++ [37551] = &_002384_hash,
++ [37611] = &_000937_hash,
++ [37651] = &_002302_hash,
++ [37660] = &_000743_hash,
++ [37661] = &_001074_hash,
++ [37675] = &_002167_hash,
++ [37685] = &_000464_hash,
++ [37744] = &_001939_hash,
++ [37750] = &_000394_hash,
++ [37752] = &_002536_hash,
++ [37766] = &_000154_hash,
++ [37792] = &_001737_hash,
++ [37804] = &_002027_hash,
++ [37851] = &_001879_hash,
++ [37876] = &_000918_hash,
++ [37880] = &_001180_hash,
++ [37920] = &_001187_hash,
++ [37928] = &_001460_hash,
++ [38011] = &_001583_hash,
++ [38037] = &_000681_hash,
++ [38044] = &_001743_hash,
++ [38060] = &_000988_hash,
++ [38071] = &_001275_hash,
++ [38092] = &_000469_hash,
++ [38094] = &_001907_hash,
++ [38108] = &_001138_hash,
++ [38130] = &_002604_hash,
++ [38153] = &_000387_hash,
++ [38176] = &_000763_hash,
++ [38195] = &_000482_hash,
++ [38202] = &_000229_hash,
++ [38223] = &_002294_hash,
++ [38268] = &_002129_hash,
++ [38325] = &_001779_hash,
++ [38390] = &_000814_hash,
++ [38415] = &_001402_hash,
++ [38419] = &_002151_hash,
++ [38428] = &_001018_hash,
++ [38509] = &_002463_hash,
++ [38510] = &_000906_hash,
++ [38518] = &_001711_hash,
++ [38547] = &_001665_hash,
++ [38563] = &_000898_hash,
++ [38564] = &_001738_hash,
++ [38629] = &_000261_hash,
++ [38644] = &_000739_hash,
++ [38655] = &_000356_hash,
++ [38683] = &_000910_hash,
++ [38725] = &_001212_hash,
++ [38779] = &_001814_hash,
++ [38784] = &_001134_hash,
++ [38813] = &_000283_hash,
++ [38836] = &_000163_hash,
++ [38859] = &_000888_hash,
++ [38894] = &_001685_hash,
++ [38971] = &_000061_hash,
++ [38986] = &_001005_hash,
++ [39034] = &_001248_hash,
++ [39123] = &_001833_hash,
++ [39151] = &_000701_hash,
++ [39153] = &_001900_hash,
++ [39155] = &_000785_hash,
++ [39188] = &_000881_hash,
++ [39189] = &_000605_hash,
++ [39226] = &_000916_hash,
++ [39308] = &_000021_hash,
++ [39351] = &_000005_hash,
++ [39362] = &_002349_hash,
++ [39379] = &_001973_hash,
++ [39414] = &_002283_hash,
++ [39427] = &_001261_hash,
++ [39457] = &_001178_hash,
++ [39474] = &_000531_hash,
++ [39479] = &_002101_hash,
++ [39531] = &_001194_hash,
++ [39542] = &_000275_hash,
++ [39554] = &_000424_hash,
++ [39571] = &_002156_hash,
++ [39616] = &_001446_hash,
++ [39645] = &_001697_hash,
++ [39653] = &_002035_hash,
++ [39666] = &_000324_hash,
++ [39672] = &_001569_hash,
++ [39678] = &_002567_hash,
++ [39846] = &_002316_hash,
++ [39897] = &_000413_hash,
++ [39909] = &_001954_hash,
++ [39915] = &_000189_hash,
++ [39919] = &_001614_hash,
++ [39921] = &_002116_hash,
++ [40038] = &_001325_hash,
++ [40129] = &_000510_hash,
++ [40153] = &_000302_hash,
++ [40159] = &_000442_hash,
++ [40199] = &_000892_hash,
++ [40205] = &_002625_hash,
++ [40262] = &_001979_hash,
++ [40283] = &_001994_hash,
++ [40305] = &_002065_hash,
++ [40363] = &_001710_hash,
++ [40458] = &_001550_hash,
++ [40520] = &_002058_hash,
++ [40548] = &_000270_hash,
++ [40558] = &_000205_hash,
++ [40672] = &_001360_hash,
++ [40715] = &_001100_hash,
++ [40744] = &_002087_hash,
++ [40757] = &_002341_hash,
++ [40766] = &_000409_hash,
++ [40775] = &_001350_hash,
++ [40895] = &_001955_hash,
++ [40902] = &_002074_hash,
++ [40905] = &_000291_hash,
++ [40915] = &_001225_hash,
++ [40948] = &_001146_hash,
++ [40976] = &_001473_hash,
++ [40978] = &_001705_hash,
++ [40993] = &_001746_hash,
++ [41010] = &_001860_hash,
++ [41031] = &_002236_hash,
++ [41035] = &_000959_hash,
++ [41078] = &_000772_hash,
++ [41093] = &_001486_hash,
++ [41105] = &_001909_hash,
++ [41116] = &_000395_hash,
++ [41194] = &_002549_hash,
++ [41196] = &_000162_hash,
++ [41283] = &_000689_hash,
++ [41332] = &_000621_hash,
++ [41342] = &_002275_hash,
++ [41359] = &_001403_hash,
++ [41373] = &_001415_hash,
++ [41398] = &_001769_hash,
++ [41407] = &_001168_hash,
++ [41422] = &_002086_hash,
++ [41428] = &_000292_hash,
++ [41431] = &_001843_hash,
++ [41442] = &_000991_hash,
++ [41492] = &_002078_hash,
++ [41497] = &_000249_hash,
++ [41542] = &_000913_hash,
++ [41554] = &_001631_hash,
++ [41581] = &_001485_hash,
++ [41605] = &_001961_hash,
++ [41650] = &_002423_hash,
++ [41656] = &_001153_hash,
++ [41691] = &_002305_hash,
++ [41719] = &_001292_hash,
++ [41722] = &_002050_hash,
++ [41746] = &_000844_hash,
++ [41815] = &_001081_hash,
++ [41852] = &_000176_hash,
++ [41855] = &_000927_hash,
++ [41916] = &_000224_hash,
++ [41917] = &_000105_hash,
++ [41958] = &_002499_hash,
++ [41975] = &_000147_hash,
++ [42012] = &_000419_hash,
++ [42030] = &_001252_hash,
++ [42038] = &_001373_hash,
++ [42047] = &_000899_hash,
++ [42048] = &_001404_hash,
++ [42058] = &_002409_hash,
++ [42064] = &_000085_hash,
++ [42088] = &_002298_hash,
++ [42095] = &_001122_hash,
++ [42108] = &_002301_hash,
++ [42113] = &_002047_hash,
++ [42150] = &_000625_hash,
++ [42168] = &_001942_hash,
++ [42182] = &_001886_hash,
++ [42252] = &_000089_hash,
++ [42302] = &_002010_hash,
++ [42304] = &_002281_hash,
++ [42324] = &_001726_hash,
++ [42355] = &_002126_hash,
++ [42386] = &_001745_hash,
++ [42437] = &_000237_hash,
++ [42443] = &_002190_hash,
++ [42454] = &_002267_hash,
++ [42525] = &_000557_hash,
++ [42533] = &_001133_hash,
++ [42558] = &_002279_hash,
++ [42594] = &_000396_hash,
++ [42626] = &_002416_hash,
++ [42640] = &_002245_hash,
++ [42643] = &_000752_hash,
++ [42652] = &_001067_hash,
++ [42693] = &_001975_hash,
++ [42703] = &_001214_hash,
++ [42737] = &_000530_hash,
++ [42740] = &_000066_hash,
++ [42777] = &_002286_hash,
++ [42781] = &_001319_hash,
++ [42792] = &_000935_hash,
++ [42820] = &_001818_hash,
++ [42824] = &_001503_hash,
++ [42895] = &_002528_hash,
++ [42941] = &_001490_hash,
++ [42962] = &_000593_hash,
++ [42990] = &_000381_hash,
++ [43025] = &_001780_hash,
++ [43035] = &_002077_hash,
++ [43165] = &_001751_hash,
++ [43185] = &_000058_hash,
++ [43202] = &_000611_hash,
++ [43208] = &_000298_hash,
++ [43245] = &_002542_hash,
++ [43256] = &_002328_hash,
++ [43300] = &_002439_hash,
++ [43355] = &_001704_hash,
++ [43423] = &_001619_hash,
++ [43436] = &_000614_hash,
++ [43440] = &_000732_hash,
++ [43518] = &_001338_hash,
++ [43533] = &_000186_hash,
++ [43535] = &_000095_hash,
++ [43564] = &_001287_hash,
++ [43573] = &_000478_hash,
++ [43614] = &_001906_hash,
++ [43623] = &_002431_hash,
++ [43732] = &_001142_hash,
++ [43753] = &_000233_hash,
++ [43755] = &_000500_hash,
++ [43806] = &_000753_hash,
++ [43829] = &_001377_hash,
++ [43851] = &_001474_hash,
++ [43875] = &_001896_hash,
++ [43948] = &_002262_hash,
++ [43992] = &_001644_hash,
++ [44102] = &_001605_hash,
++ [44130] = &_002620_hash,
++ [44193] = &_002484_hash,
++ [44227] = &_001155_hash,
++ [44239] = &_002250_hash,
++ [44303] = &_001633_hash,
++ [44320] = &_000164_hash,
++ [44355] = &_001648_hash,
++ [44366] = &_002185_hash,
++ [44384] = &_001981_hash,
++ [44398] = &_000046_hash,
++ [44410] = &_002295_hash,
++ [44423] = &_002168_hash,
++ [44500] = &_002149_hash,
++ [44505] = &_001810_hash,
++ [44510] = &_000581_hash,
++ [44537] = &_001532_hash,
++ [44595] = &_001518_hash,
++ [44667] = &_000690_hash,
++ [44674] = &_000360_hash,
++ [44687] = &_002055_hash,
++ [44715] = &_002374_hash,
++ [44725] = &_001607_hash,
++ [44729] = &_000120_hash,
++ [44742] = &_002194_hash,
++ [44757] = &_001547_hash,
++ [44788] = &_001085_hash,
++ [44799] = &_001982_hash,
++ [44813] = &_001049_hash,
++ [44896] = &_000181_hash,
++ [44978] = &_002064_hash,
++ [45021] = &_000441_hash,
++ [45039] = &_000633_hash,
++ [45060] = &_001099_hash,
++ [45080] = &_001000_hash,
++ [45114] = &_001563_hash,
++ [45156] = &_000159_hash,
++ [45161] = &_000596_hash,
++ [45164] = &_000587_hash,
++ [45190] = &_000577_hash,
++ [45201] = &_001256_hash,
++ [45206] = &_001398_hash,
++ [45223] = &_001150_hash,
++ [45233] = &_002164_hash,
++ [45298] = &_001137_hash,
++ [45340] = &_000136_hash,
++ [45398] = &_000329_hash,
++ [45406] = &_002365_hash,
++ [45428] = &_000922_hash,
++ [45437] = &_000602_hash,
++ [45510] = &_001063_hash,
++ [45531] = &_002048_hash,
++ [45532] = &_001672_hash,
++ [45534] = &_000134_hash,
++ [45549] = &_001678_hash,
++ [45558] = &_002260_hash,
++ [45564] = &_001579_hash,
++ [45586] = &_002491_hash,
++ [45592] = &_000453_hash,
++ [45609] = &_000246_hash,
++ [45679] = &_000810_hash,
++ [45691] = &_000551_hash,
++ [45699] = &_001205_hash,
++ [45718] = &_000823_hash,
++ [45734] = &_002032_hash,
++ [45752] = &_001847_hash,
++ [45775] = &_000710_hash,
++ [45800] = &_000448_hash,
++ [45805] = &_001841_hash,
++ [45831] = &_002334_hash,
++ [45863] = &_000911_hash,
++ [45882] = &_002121_hash,
++ [45917] = &_001684_hash,
++ [45976] = &_000208_hash,
++ [46029] = &_000542_hash,
++ [46060] = &_001695_hash,
++ [46077] = &_000521_hash,
++ [46094] = &_000728_hash,
++ [46111] = &_001734_hash,
++ [46119] = &_000353_hash,
++ [46160] = &_001050_hash,
++ [46184] = &_000649_hash,
++ [46215] = &_001545_hash,
++ [46218] = &_000183_hash,
++ [46328] = &_000866_hash,
++ [46355] = &_001788_hash,
++ [46363] = &_000553_hash,
++ [46469] = &_001359_hash,
++ [46510] = &_001023_hash,
++ [46525] = &_001291_hash,
++ [46556] = &_000335_hash,
++ [46582] = &_001101_hash,
++ [46624] = &_002238_hash,
++ [46655] = &_001290_hash,
++ [46698] = &_000691_hash,
++ [46715] = &_000204_hash,
++ [46766] = &_000245_hash,
++ [46811] = &_001237_hash,
++ [46826] = &_001243_hash,
++ [46860] = &_000875_hash,
++ [46865] = &_000994_hash,
++ [46892] = &_000833_hash,
++ [46924] = &_002585_hash,
++ [46939] = &_001654_hash,
++ [46949] = &_000507_hash,
++ [46976] = &_000352_hash,
++ [46996] = &_000523_hash,
++ [47000] = &_002599_hash,
++ [47004] = &_001649_hash,
++ [47024] = &_000793_hash,
++ [47086] = &_002246_hash,
++ [47123] = &_001437_hash,
++ [47143] = &_002314_hash,
++ [47151] = &_002346_hash,
++ [47165] = &_001978_hash,
++ [47181] = &_001164_hash,
++ [47205] = &_000357_hash,
++ [47243] = &_002496_hash,
++ [47253] = &_002497_hash,
++ [47274] = &_000025_hash,
++ [47300] = &_002062_hash,
++ [47308] = &_001673_hash,
++ [47356] = &_002135_hash,
++ [47379] = &_000744_hash,
++ [47394] = &_001021_hash,
++ [47421] = &_001228_hash,
++ [47485] = &_002376_hash,
++ [47506] = &_002432_hash,
++ [47533] = &_001038_hash,
++ [47570] = &_000019_hash,
++ [47605] = &_000836_hash,
++ [47613] = &_000609_hash,
++ [47700] = &_002213_hash,
++ [47733] = &_001294_hash,
++ [47738] = &_001670_hash,
++ [47750] = &_000968_hash,
++ [47771] = &_002592_hash,
++ [47889] = &_000309_hash,
++ [47915] = &_002270_hash,
++ [47926] = &_002444_hash,
++ [47983] = &_001821_hash,
++ [47993] = &_000259_hash,
++ [48014] = &_000842_hash,
++ [48039] = &_001036_hash,
++ [48056] = &_001233_hash,
++ [48063] = &_000420_hash,
++ [48090] = &_002339_hash,
++ [48097] = &_000960_hash,
++ [48102] = &_002019_hash,
++ [48141] = &_001104_hash,
++ [48159] = &_001772_hash,
++ [48186] = &_001621_hash,
++ [48187] = &_000880_hash,
++ [48232] = &_001957_hash,
++ [48250] = &_002205_hash,
++ [48284] = &_001027_hash,
++ [48301] = &_001855_hash,
++ [48310] = &_001366_hash,
++ [48363] = &_000547_hash,
++ [48413] = &_000330_hash,
++ [48423] = &_001928_hash,
++ [48489] = &_002414_hash,
++ [48498] = &_000529_hash,
++ [48501] = &_001435_hash,
++ [48508] = &_001332_hash,
++ [48525] = &_001199_hash,
++ [48528] = &_000652_hash,
++ [48589] = &_002472_hash,
++ [48641] = &_000178_hash,
++ [48662] = &_000945_hash,
++ [48666] = &_001615_hash,
++ [48668] = &_001127_hash,
++ [48694] = &_000251_hash,
++ [48698] = &_000712_hash,
++ [48704] = &_000938_hash,
++ [48709] = &_002234_hash,
++ [48747] = &_001638_hash,
++ [48802] = &_001733_hash,
++ [48808] = &_002273_hash,
++ [48827] = &_002440_hash,
++ [48842] = &_000627_hash,
++ [48868] = &_000839_hash,
++ [48900] = &_001598_hash,
++ [48961] = &_001707_hash,
++ [48998] = &_000526_hash,
++ [49020] = &_002555_hash,
++ [49094] = &_001488_hash,
++ [49102] = &_002531_hash,
++ [49136] = &_001466_hash,
++ [49161] = &_000286_hash,
++ [49199] = &_001819_hash,
++ [49206] = &_001739_hash,
++ [49260] = &_002169_hash,
++ [49300] = &_001558_hash,
++ [49330] = &_000585_hash,
++ [49371] = &_001470_hash,
++ [49390] = &_000903_hash,
++ [49392] = &_000722_hash,
++ [49401] = &_002242_hash,
++ [49407] = &_001190_hash,
++ [49465] = &_000035_hash,
++ [49490] = &_001770_hash,
++ [49561] = &_001129_hash,
++ [49572] = &_001448_hash,
++ [49575] = &_000688_hash,
++ [49578] = &_000509_hash,
++ [49607] = &_001785_hash,
++ [49617] = &_000244_hash,
++ [49621] = &_000554_hash,
++ [49683] = &_000023_hash,
++ [49698] = &_001529_hash,
++ [49728] = &_002385_hash,
++ [49736] = &_001169_hash,
++ [49744] = &_001249_hash,
++ [49758] = &_002191_hash,
++ [49762] = &_001720_hash,
++ [49767] = &_001397_hash,
++ [49806] = &_000377_hash,
++ [49829] = &_000989_hash,
++ [49831] = &_000679_hash,
++ [49836] = &_001285_hash,
++ [49839] = &_000755_hash,
++ [49870] = &_000506_hash,
++ [49921] = &_002565_hash,
++ [49995] = &_001836_hash,
++ [50004] = &_002622_hash,
++ [50021] = &_000294_hash,
++ [50046] = &_002331_hash,
++ [50084] = &_000807_hash,
++ [50085] = &_002379_hash,
++ [50088] = &_001147_hash,
++ [50090] = &_000718_hash,
++ [50111] = &_001962_hash,
++ [50140] = &_000133_hash,
++ [50163] = &_000314_hash,
++ [50172] = &_000606_hash,
++ [50186] = &_000871_hash,
++ [50198] = &_000774_hash,
++ [50207] = &_000327_hash,
++ [50240] = &_000538_hash,
++ [50286] = &_001077_hash,
++ [50318] = &_000776_hash,
++ [50334] = &_001857_hash,
++ [50344] = &_001551_hash,
++ [50356] = &_001395_hash,
++ [50380] = &_000549_hash,
++ [50411] = &_000943_hash,
++ [50425] = &_000904_hash,
++ [50453] = &_000408_hash,
++ [50478] = &_000765_hash,
++ [50505] = &_001926_hash,
++ [50539] = &_000057_hash,
++ [50584] = &_001796_hash,
++ [50633] = &_000543_hash,
++ [50656] = &_001883_hash,
++ [50664] = &_002051_hash,
++ [50665] = &_001652_hash,
++ [50683] = &_001662_hash,
++ [50774] = &_001189_hash,
++ [50782] = &_000074_hash,
++ [50798] = &_000598_hash,
++ [50800] = &_002303_hash,
++ [50803] = &_000656_hash,
++ [50814] = &_000188_hash,
++ [50830] = &_000439_hash,
++ [50831] = &_000812_hash,
++ [50857] = &_000097_hash,
++ [50909] = &_002288_hash,
++ [50924] = &_001723_hash,
++ [50926] = &_002342_hash,
++ [50942] = &_000579_hash,
++ [50991] = &_001186_hash,
++ [51003] = &_001042_hash,
++ [51023] = &_001839_hash,
++ [51040] = &_001343_hash,
++ [51042] = &_000583_hash,
++ [51053] = &_002464_hash,
++ [51065] = &_002084_hash,
++ [51088] = &_000924_hash,
++ [51132] = &_002207_hash,
++ [51136] = &_002437_hash,
++ [51148] = &_002088_hash,
++ [51151] = &_002557_hash,
++ [51238] = &_001543_hash,
++ [51239] = &_002578_hash,
++ [51251] = &_002045_hash,
++ [51275] = &_000822_hash,
++ [51308] = &_001653_hash,
++ [51320] = &_001273_hash,
++ [51337] = &_000708_hash,
++ [51399] = &_002487_hash,
++ [51424] = &_000746_hash,
++ [51429] = &_001874_hash,
++ [51430] = &_000825_hash,
++ [51441] = &_002142_hash,
++ [51475] = &_001268_hash,
++ [51477] = &_001599_hash,
++ [51549] = &_001623_hash,
++ [51641] = &_000496_hash,
++ [51647] = &_001390_hash,
++ [51665] = &_000853_hash,
++ [51669] = &_001917_hash,
++ [51684] = &_000502_hash,
++ [51704] = &_001095_hash,
++ [51724] = &_001112_hash,
++ [51725] = &_002375_hash,
++ [51735] = &_001469_hash,
++ [51737] = &_002485_hash,
++ [51756] = &_000268_hash,
++ [51801] = &_001421_hash,
++ [51819] = &_002502_hash,
++ [51826] = &_002337_hash,
++ [51847] = &_001967_hash,
++ [51849] = &_000819_hash,
++ [51863] = &_002219_hash,
++ [51869] = &_000225_hash,
++ [51881] = &_001568_hash,
++ [51911] = &_002363_hash,
++ [51951] = &_002324_hash,
++ [51997] = &_000191_hash,
++ [52014] = &_001118_hash,
++ [52032] = &_001454_hash,
++ [52045] = &_001692_hash,
++ [52089] = &_001447_hash,
++ [52105] = &_001880_hash,
++ [52129] = &_001977_hash,
++ [52145] = &_000250_hash,
++ [52168] = &_002145_hash,
++ [52186] = &_001905_hash,
++ [52241] = &_002606_hash,
++ [52259] = &_000953_hash,
++ [52280] = &_000555_hash,
++ [52310] = &_001960_hash,
++ [52318] = &_001725_hash,
++ [52333] = &_001184_hash,
++ [52367] = &_001315_hash,
++ [52383] = &_000296_hash,
++ [52399] = &_000030_hash,
++ [52425] = &_002369_hash,
++ [52477] = &_002486_hash,
++ [52513] = &_000417_hash,
++ [52518] = &_002103_hash,
++ [52529] = &_002225_hash,
++ [52733] = &_000078_hash,
++ [52735] = &_001069_hash,
++ [52824] = &_001270_hash,
++ [52836] = &_001927_hash,
++ [52863] = &_001436_hash,
++ [52960] = &_002015_hash,
++ [53074] = &_001871_hash,
++ [53090] = &_002508_hash,
++ [53123] = &_002368_hash,
++ [53282] = &_000948_hash,
++ [53407] = &_000476_hash,
++ [53439] = &_001768_hash,
++ [53447] = &_001873_hash,
++ [53483] = &_001385_hash,
++ [53486] = &_001890_hash,
++ [53582] = &_000532_hash,
++ [53604] = &_002215_hash,
++ [53626] = &_000686_hash,
++ [53633] = &_002545_hash,
++ [53634] = &_001306_hash,
++ [53656] = &_000987_hash,
++ [53676] = &_000999_hash,
++ [53735] = &_000651_hash,
++ [53803] = &_001480_hash,
++ [53831] = &_000348_hash,
++ [53873] = &_001898_hash,
++ [53976] = &_000264_hash,
++ [54036] = &_000896_hash,
++ [54077] = &_002371_hash,
++ [54103] = &_000717_hash,
++ [54106] = &_000141_hash,
++ [54130] = &_000912_hash,
++ [54136] = &_001774_hash,
++ [54166] = &_001430_hash,
++ [54223] = &_001478_hash,
++ [54247] = &_002228_hash,
++ [54258] = &_000767_hash,
++ [54261] = &_001597_hash,
++ [54269] = &_001872_hash,
++ [54291] = &_000714_hash,
++ [54296] = &_000166_hash,
++ [54343] = &_000693_hash,
++ [54352] = &_001004_hash,
++ [54360] = &_001182_hash,
++ [54367] = &_001946_hash,
++ [54368] = &_001582_hash,
++ [54377] = &_000815_hash,
++ [54378] = &_000037_hash,
++ [54392] = &_001799_hash,
++ [54503] = &_000113_hash,
++ [54514] = &_000110_hash,
++ [54519] = &_002513_hash,
++ [54539] = &_000533_hash,
++ [54577] = &_001877_hash,
++ [54582] = &_000219_hash,
++ [54658] = &_001699_hash,
++ [54672] = &_000076_hash,
++ [54674] = &_002352_hash,
++ [54703] = &_000678_hash,
++ [54711] = &_001484_hash,
++ [54737] = &_001451_hash,
++ [54740] = &_000326_hash,
++ [54744] = &_002285_hash,
++ [54757] = &_002361_hash,
++ [54793] = &_000845_hash,
++ [54815] = &_001610_hash,
++ [54837] = &_000657_hash,
++ [54846] = &_000830_hash,
++ [54851] = &_001464_hash,
++ [54860] = &_000042_hash,
++ [54913] = &_000908_hash,
++ [54941] = &_001257_hash,
++ [54968] = &_001302_hash,
++ [54978] = &_001465_hash,
++ [55007] = &_001060_hash,
++ [55106] = &_001988_hash,
++ [55134] = &_000790_hash,
++ [55137] = &_001358_hash,
++ [55150] = &_002175_hash,
++ [55195] = &_001098_hash,
++ [55202] = &_002595_hash,
++ [55209] = &_001724_hash,
++ [55215] = &_000818_hash,
++ [55247] = &_000345_hash,
++ [55291] = &_002243_hash,
++ [55362] = &_001251_hash,
++ [55407] = &_001798_hash,
++ [55462] = &_001227_hash,
++ [55485] = &_002430_hash,
++ [55588] = &_002419_hash,
++ [55609] = &_001861_hash,
++ [55611] = &_001498_hash,
++ [55628] = &_000414_hash,
++ [55643] = &_001344_hash,
++ [55658] = &_001972_hash,
++ [55662] = &_001859_hash,
++ [55668] = &_001761_hash,
++ [55716] = &_001031_hash,
++ [55719] = &_001443_hash,
++ [55738] = &_002356_hash,
++ [55757] = &_001108_hash,
++ [55761] = &_002100_hash,
++ [55799] = &_000624_hash,
++ [55812] = &_001666_hash,
++ [55836] = &_000490_hash,
++ [55845] = &_001238_hash,
++ [55862] = &_000856_hash,
++ [55867] = &_001507_hash,
++ [55891] = &_001897_hash,
++ [55947] = &_002011_hash,
++ [55957] = &_001508_hash,
++ [56027] = &_000390_hash,
++ [56058] = &_000803_hash,
++ [56103] = &_001046_hash,
++ [56128] = &_001414_hash,
++ [56139] = &_002006_hash,
++ [56177] = &_002161_hash,
++ [56238] = &_002466_hash,
++ [56245] = &_001996_hash,
++ [56247] = &_000210_hash,
++ [56277] = &_001740_hash,
++ [56286] = &_001072_hash,
++ [56296] = &_000185_hash,
++ [56303] = &_001656_hash,
++ [56331] = &_000306_hash,
++ [56347] = &_002183_hash,
++ [56348] = &_000650_hash,
++ [56368] = &_000278_hash,
++ [56369] = &_001331_hash,
++ [56405] = &_001881_hash,
++ [56417] = &_001525_hash,
++ [56420] = &_001037_hash,
++ [56435] = &_000216_hash,
++ [56439] = &_002481_hash,
++ [56453] = &_000794_hash,
++ [56458] = &_001102_hash,
++ [56464] = &_002210_hash,
++ [56515] = &_000768_hash,
++ [56561] = &_002563_hash,
++ [56573] = &_001980_hash,
++ [56586] = &_002498_hash,
++ [56641] = &_002478_hash,
++ [56651] = &_002069_hash,
++ [56662] = &_001334_hash,
++ [56686] = &_002033_hash,
++ [56702] = &_001348_hash,
++ [56710] = &_002041_hash,
++ [56711] = &_001386_hash,
++ [56725] = &_001231_hash,
++ [56748] = &_002568_hash,
++ [56751] = &_001667_hash,
++ [56753] = &_000958_hash,
++ [56831] = &_000363_hash,
++ [56847] = &_000575_hash,
++ [56933] = &_000926_hash,
++ [57003] = &_000635_hash,
++ [57064] = &_002381_hash,
++ [57066] = &_000407_hash,
++ [57116] = &_001170_hash,
++ [57136] = &_001763_hash,
++ [57168] = &_001160_hash,
++ [57179] = &_001985_hash,
++ [57219] = &_001553_hash,
++ [57251] = &_000398_hash,
++ [57259] = &_000044_hash,
++ [57288] = &_001913_hash,
++ [57309] = &_000217_hash,
++ [57342] = &_001564_hash,
++ [57406] = &_001944_hash,
++ [57412] = &_000835_hash,
++ [57431] = &_002532_hash,
++ [57432] = &_001318_hash,
++ [57463] = &_002383_hash,
++ [57470] = &_002389_hash,
++ [57500] = &_000081_hash,
++ [57502] = &_002461_hash,
++ [57515] = &_000885_hash,
++ [57517] = &_001747_hash,
++ [57630] = &_001003_hash,
++ [57661] = &_001176_hash,
++ [57662] = &_000446_hash,
++ [57669] = &_001422_hash,
++ [57706] = &_001727_hash,
++ [57742] = &_002222_hash,
++ [57796] = &_001786_hash,
++ [57830] = &_001646_hash,
++ [57835] = &_000783_hash,
++ [57843] = &_002476_hash,
++ [57903] = &_001247_hash,
++ [57908] = &_000197_hash,
++ [57910] = &_002362_hash,
++ [57933] = &_002007_hash,
++ [57946] = &_001826_hash,
++ [57953] = &_000893_hash,
++ [57961] = &_002588_hash,
++ [58001] = &_001993_hash,
++ [58009] = &_001066_hash,
++ [58023] = &_001820_hash,
++ [58056] = &_001427_hash,
++ [58079] = &_000121_hash,
++ [58129] = &_000489_hash,
++ [58135] = &_001125_hash,
++ [58191] = &_000220_hash,
++ [58192] = &_000049_hash,
++ [58256] = &_001947_hash,
++ [58267] = &_001043_hash,
++ [58271] = &_001250_hash,
++ [58292] = &_000907_hash,
++ [58307] = &_002146_hash,
++ [58354] = &_001224_hash,
++ [58388] = &_001760_hash,
++ [58457] = &_002442_hash,
++ [58466] = &_002447_hash,
++ [58484] = &_002036_hash,
++ [58544] = &_000473_hash,
++ [58545] = &_000196_hash,
++ [58567] = &_002076_hash,
++ [58624] = &_001121_hash,
++ [58634] = &_002624_hash,
++ [58700] = &_000641_hash,
++ [58761] = &_001617_hash,
++ [58763] = &_000175_hash,
++ [58803] = &_001053_hash,
++ [58806] = &_001396_hash,
++ [58813] = &_000202_hash,
++ [58841] = &_000128_hash,
++ [58860] = &_000060_hash,
++ [58870] = &_001815_hash,
++ [58883] = &_000235_hash,
++ [59008] = &_000203_hash,
++ [59038] = &_001094_hash,
++ [59049] = &_000463_hash,
++ [59130] = &_000980_hash,
++ [59145] = &_002586_hash,
++ [59178] = &_000535_hash,
++ [59211] = &_001603_hash,
++ [59226] = &_002350_hash,
++ [59304] = &_001300_hash,
++ [59323] = &_001356_hash,
++ [59327] = &_001936_hash,
++ [59346] = &_000662_hash,
++ [59440] = &_001154_hash,
++ [59470] = &_001221_hash,
++ [59502] = &_000257_hash,
++ [59563] = &_002524_hash,
++ [59574] = &_000379_hash,
++ [59590] = &_000015_hash,
++ [59622] = &_000367_hash,
++ [59650] = &_001370_hash,
++ [59670] = &_000692_hash,
++ [59700] = &_001863_hash,
++ [59740] = &_002157_hash,
++ [59766] = &_001849_hash,
++ [59781] = &_001576_hash,
++ [59807] = &_001765_hash,
++ [59808] = &_002515_hash,
++ [59810] = &_001198_hash,
++ [59812] = &_002249_hash,
++ [59829] = &_002137_hash,
++ [59833] = &_000855_hash,
++ [59849] = &_002272_hash,
++ [59882] = &_000443_hash,
++ [59886] = &_002292_hash,
++ [59892] = &_000212_hash,
++ [59950] = &_001754_hash,
++ [59956] = &_001749_hash,
++ [59990] = &_001889_hash,
++ [60001] = &_002479_hash,
++ [60010] = &_001055_hash,
++ [60027] = &_002293_hash,
++ [60033] = &_001537_hash,
++ [60040] = &_002465_hash,
++ [60056] = &_002482_hash,
++ [60063] = &_002551_hash,
++ [60165] = &_000884_hash,
++ [60179] = &_001111_hash,
++ [60202] = &_000872_hash,
++ [60209] = &_001161_hash,
++ [60276] = &_000426_hash,
++ [60297] = &_000007_hash,
++ [60347] = &_001299_hash,
++ [60399] = &_002468_hash,
++ [60420] = &_001114_hash,
++ [60425] = &_001714_hash,
++ [60432] = &_002597_hash,
++ [60483] = &_000792_hash,
++ [60515] = &_001288_hash,
++ [60621] = &_000653_hash,
++ [60670] = &_002133_hash,
++ [60709] = &_000271_hash,
++ [60774] = &_000524_hash,
++ [60775] = &_000399_hash,
++ [60851] = &_001929_hash,
++ [60908] = &_002359_hash,
++ [60916] = &_001433_hash,
++ [60960] = &_000440_hash,
++ [60961] = &_000970_hash,
++ [61022] = &_001635_hash,
++ [61050] = &_001165_hash,
++ [61100] = &_000850_hash,
++ [61119] = &_000428_hash,
++ [61126] = &_002554_hash,
++ [61139] = &_000033_hash,
++ [61168] = &_000637_hash,
++ [61175] = &_001708_hash,
++ [61177] = &_001175_hash,
++ [61190] = &_000541_hash,
++ [61220] = &_002024_hash,
++ [61226] = &_002318_hash,
++ [61288] = &_000589_hash,
++ [61340] = &_000586_hash,
++ [61390] = &_000111_hash,
++ [61455] = &_001206_hash,
++ [61570] = &_002165_hash,
++ [61589] = &_001502_hash,
++ [61600] = &_002204_hash,
++ [61621] = &_000780_hash,
++ [61630] = &_001731_hash,
++ [61635] = &_000256_hash,
++ [61650] = &_001073_hash,
++ [61661] = &_002601_hash,
++ [61668] = &_002180_hash,
++ [61692] = &_001716_hash,
++ [61718] = &_001718_hash,
++ [61742] = &_001959_hash,
++ [61841] = &_000073_hash,
++ [61904] = &_000119_hash,
++ [61917] = &_000737_hash,
++ [61919] = &_001084_hash,
++ [61932] = &_000528_hash,
++ [61948] = &_001741_hash,
++ [61993] = &_001591_hash,
++ [62020] = &_001405_hash,
++ [62034] = &_001461_hash,
++ [62043] = &_001901_hash,
++ [62047] = &_001089_hash,
++ [62074] = &_002378_hash,
++ [62107] = &_001406_hash,
++ [62133] = &_002506_hash,
++ [62186] = &_000711_hash,
++ [62205] = &_000580_hash,
++ [62224] = &_000240_hash,
++ [62296] = &_001758_hash,
++ [62313] = &_001201_hash,
++ [62327] = &_002396_hash,
++ [62354] = &_002477_hash,
++ [62396] = &_000713_hash,
++ [62411] = &_001110_hash,
++ [62488] = &_000766_hash,
++ [62498] = &_001434_hash,
++ [62524] = &_001020_hash,
++ [62534] = &_002054_hash,
++ [62535] = &_001686_hash,
++ [62542] = &_001487_hash,
++ [62573] = &_000661_hash,
++ [62581] = &_001363_hash,
++ [62605] = &_001876_hash,
++ [62628] = &_001793_hash,
++ [62646] = &_000951_hash,
++ [62649] = &_000601_hash,
++ [62671] = &_000655_hash,
++ [62687] = &_001807_hash,
++ [62708] = &_002428_hash,
++ [62746] = &_001829_hash,
++ [62770] = &_000740_hash,
++ [62839] = &_001245_hash,
++ [62844] = &_001983_hash,
++ [62868] = &_000985_hash,
++ [62883] = &_001352_hash,
++ [62907] = &_002425_hash,
++ [62908] = &_000223_hash,
++ [62955] = &_000683_hash,
++ [63033] = &_000626_hash,
++ [63041] = &_001082_hash,
++ [63059] = &_001560_hash,
++ [63087] = &_002391_hash,
++ [63116] = &_001808_hash,
++ [63138] = &_000873_hash,
++ [63233] = &_002623_hash,
++ [63314] = &_000173_hash,
++ [63344] = &_001902_hash,
++ [63362] = &_001915_hash,
++ [63374] = &_001729_hash,
++ [63388] = &_000831_hash,
++ [63405] = &_001990_hash,
++ [63427] = &_002195_hash,
++ [63435] = &_000320_hash,
++ [63442] = &_000380_hash,
++ [63474] = &_000565_hash,
++ [63486] = &_001937_hash,
++ [63488] = &_000018_hash,
++ [63534] = &_000604_hash,
++ [63550] = &_000047_hash,
++ [63555] = &_000940_hash,
++ [63630] = &_000016_hash,
++ [63631] = &_001449_hash,
++ [63648] = &_000434_hash,
++ [63654] = &_002395_hash,
++ [63720] = &_000754_hash,
++ [63744] = &_001497_hash,
++ [63771] = &_001519_hash,
++ [63774] = &_001517_hash,
++ [63806] = &_000969_hash,
++ [63830] = &_000527_hash,
++ [63845] = &_000435_hash,
++ [63896] = &_001380_hash,
++ [63902] = &_001244_hash,
++ [63935] = &_001542_hash,
++ [63941] = &_001183_hash,
++ [64001] = &_001951_hash,
++ [64015] = &_000013_hash,
++ [64031] = &_002119_hash,
++ [64042] = &_002387_hash,
++ [64086] = &_000550_hash,
++ [64130] = &_000878_hash,
++ [64139] = &_000608_hash,
++ [64140] = &_000024_hash,
++ [64171] = &_000704_hash,
++ [64244] = &_001065_hash,
++ [64288] = &_001240_hash,
++ [64336] = &_001195_hash,
++ [64340] = &_000619_hash,
++ [64367] = &_000654_hash,
++ [64378] = &_000269_hash,
++ [64379] = &_001301_hash,
++ [64403] = &_000289_hash,
++ [64404] = &_000410_hash,
++ [64407] = &_001984_hash,
++ [64418] = &_001411_hash,
++ [64441] = &_002098_hash,
++ [64478] = &_000285_hash,
++ [64490] = &_000697_hash,
++ [64505] = &_001070_hash,
++ [64521] = &_000997_hash,
++ [64527] = &_002315_hash,
++ [64541] = &_000759_hash,
++ [64623] = &_000209_hash,
++ [64712] = &_000838_hash,
++ [64715] = &_001680_hash,
++ [64751] = &_001293_hash,
++ [64753] = &_000480_hash,
++ [64789] = &_001777_hash,
++ [64800] = &_000982_hash,
++ [64815] = &_002200_hash,
++ [64816] = &_000195_hash,
++ [64827] = &_000179_hash,
++ [64862] = &_000715_hash,
++ [64886] = &_000211_hash,
++ [64924] = &_002130_hash,
++ [64958] = &_000282_hash,
++ [64971] = &_002265_hash,
++ [65034] = &_000273_hash,
++ [65076] = &_002420_hash,
++ [65268] = &_001834_hash,
++ [65279] = &_000315_hash,
++ [65297] = &_001477_hash,
++ [65336] = &_000155_hash,
++ [65354] = &_001693_hash,
++ [65363] = &_002330_hash,
++ [65397] = &_001264_hash,
++ [65421] = &_002569_hash,
++ [65433] = &_002529_hash,
++ [65444] = &_001209_hash,
++ [65483] = &_000735_hash,
++ [65495] = &_000001_hash,
++};
+diff --git a/tools/gcc/size_overflow_plugin.c b/tools/gcc/size_overflow_plugin.c
+new file mode 100644
+index 0000000..273e66a
+--- /dev/null
++++ b/tools/gcc/size_overflow_plugin.c
+@@ -0,0 +1,1203 @@
++/*
++ * Copyright 2011, 2012 by Emese Revfy <re.emese@gmail.com>
++ * Licensed under the GPL v2, or (at your option) v3
++ *
++ * Homepage:
++ * http://www.grsecurity.net/~ephox/overflow_plugin/
++ *
++ * This plugin recomputes expressions of function arguments marked by a size_overflow attribute
++ * with double integer precision (DImode/TImode for 32/64 bit integer types).
++ * The recomputed argument is checked against TYPE_MAX and an event is logged on overflow and the triggering process is killed.
++ *
++ * Usage:
++ * $ gcc -I`gcc -print-file-name=plugin`/include/c-family -I`gcc -print-file-name=plugin`/include -fPIC -shared -O2 -ggdb -Wall -W -Wno-missing-field-initializers -o size_overflow_plugin.so size_overflow_plugin.c
++ * $ gcc -fplugin=size_overflow_plugin.so test.c -O2
++ */
++
++#include "gcc-plugin.h"
++#include "config.h"
++#include "system.h"
++#include "coretypes.h"
++#include "tree.h"
++#include "tree-pass.h"
++#include "intl.h"
++#include "plugin-version.h"
++#include "tm.h"
++#include "toplev.h"
++#include "function.h"
++#include "tree-flow.h"
++#include "plugin.h"
++#include "gimple.h"
++#include "c-common.h"
++#include "diagnostic.h"
++#include "cfgloop.h"
++
++struct size_overflow_hash {
++ struct size_overflow_hash *next;
++ const char *name;
++ unsigned short param;
++};
++
++#include "size_overflow_hash.h"
++
++#define __unused __attribute__((__unused__))
++#define NAME(node) IDENTIFIER_POINTER(DECL_NAME(node))
++#define NAME_LEN(node) IDENTIFIER_LENGTH(DECL_NAME(node))
++#define BEFORE_STMT true
++#define AFTER_STMT false
++#define CREATE_NEW_VAR NULL_TREE
++#define CODES_LIMIT 32
++#define MAX_PARAM 10
++
++#if BUILDING_GCC_VERSION == 4005
++#define DECL_CHAIN(NODE) (TREE_CHAIN(DECL_MINIMAL_CHECK(NODE)))
++#endif
++
++int plugin_is_GPL_compatible;
++void debug_gimple_stmt(gimple gs);
++
++static tree expand(struct pointer_set_t *visited, bool *potentionally_overflowed, tree var);
++static tree signed_size_overflow_type;
++static tree unsigned_size_overflow_type;
++static tree report_size_overflow_decl;
++static tree const_char_ptr_type_node;
++static unsigned int handle_function(void);
++
++static struct plugin_info size_overflow_plugin_info = {
++ .version = "20120617beta",
++ .help = "no-size-overflow\tturn off size overflow checking\n",
++};
++
++static tree handle_size_overflow_attribute(tree *node, tree __unused name, tree args, int __unused flags, bool *no_add_attrs)
++{
++ unsigned int arg_count = type_num_arguments(*node);
++
++ for (; args; args = TREE_CHAIN(args)) {
++ tree position = TREE_VALUE(args);
++ if (TREE_CODE(position) != INTEGER_CST || TREE_INT_CST_HIGH(position) || TREE_INT_CST_LOW(position) < 1 || TREE_INT_CST_LOW(position) > arg_count ) {
++ error("handle_size_overflow_attribute: overflow parameter outside range.");
++ *no_add_attrs = true;
++ }
++ }
++ return NULL_TREE;
++}
++
++static struct attribute_spec no_size_overflow_attr = {
++ .name = "size_overflow",
++ .min_length = 1,
++ .max_length = -1,
++ .decl_required = false,
++ .type_required = true,
++ .function_type_required = true,
++ .handler = handle_size_overflow_attribute
++#if BUILDING_GCC_VERSION >= 4007
++ .affects_type_identity = false
++#endif
++};
++
++static void register_attributes(void __unused *event_data, void __unused *data)
++{
++ register_attribute(&no_size_overflow_attr);
++}
++
++// http://www.team5150.com/~andrew/noncryptohashzoo2~/CrapWow.html
++static unsigned int CrapWow(const char *key, unsigned int len, unsigned int seed)
++{
++#define cwfold( a, b, lo, hi ) { p = (unsigned int)(a) * (unsigned long long)(b); lo ^= (unsigned int)p; hi ^= (unsigned int)(p >> 32); }
++#define cwmixa( in ) { cwfold( in, m, k, h ); }
++#define cwmixb( in ) { cwfold( in, n, h, k ); }
++
++ const unsigned int m = 0x57559429;
++ const unsigned int n = 0x5052acdb;
++ const unsigned int *key4 = (const unsigned int *)key;
++ unsigned int h = len;
++ unsigned int k = len + seed + n;
++ unsigned long long p;
++
++ while (len >= 8) {
++ cwmixb(key4[0]) cwmixa(key4[1]) key4 += 2;
++ len -= 8;
++ }
++ if (len >= 4) {
++ cwmixb(key4[0]) key4 += 1;
++ len -= 4;
++ }
++ if (len)
++ cwmixa(key4[0] & ((1 << (len * 8)) - 1 ));
++ cwmixb(h ^ (k + n));
++ return k ^ h;
++
++#undef cwfold
++#undef cwmixa
++#undef cwmixb
++}
++
++static inline unsigned int get_hash_num(const char *fndecl, const char *tree_codes, unsigned int len, unsigned int seed)
++{
++ unsigned int fn = CrapWow(fndecl, strlen(fndecl), seed) & 0xffff;
++ unsigned int codes = CrapWow(tree_codes, len, seed) & 0xffff;
++ return fn ^ codes;
++}
++
++static inline tree get_original_function_decl(tree fndecl)
++{
++ if (DECL_ABSTRACT_ORIGIN(fndecl))
++ return DECL_ABSTRACT_ORIGIN(fndecl);
++ return fndecl;
++}
++
++static inline gimple get_def_stmt(tree node)
++{
++ gcc_assert(TREE_CODE(node) == SSA_NAME);
++ return SSA_NAME_DEF_STMT(node);
++}
++
++static unsigned char get_tree_code(tree type)
++{
++ switch (TREE_CODE(type)) {
++ case ARRAY_TYPE:
++ return 0;
++ case BOOLEAN_TYPE:
++ return 1;
++ case ENUMERAL_TYPE:
++ return 2;
++ case FUNCTION_TYPE:
++ return 3;
++ case INTEGER_TYPE:
++ return 4;
++ case POINTER_TYPE:
++ return 5;
++ case RECORD_TYPE:
++ return 6;
++ case UNION_TYPE:
++ return 7;
++ case VOID_TYPE:
++ return 8;
++ case REAL_TYPE:
++ return 9;
++ case VECTOR_TYPE:
++ return 10;
++ default:
++ debug_tree(type);
++ gcc_unreachable();
++ }
++}
++
++static size_t add_type_codes(tree type, unsigned char *tree_codes, size_t len)
++{
++ gcc_assert(type != NULL_TREE);
++
++ while (type && len < CODES_LIMIT) {
++ tree_codes[len] = get_tree_code(type);
++ len++;
++ type = TREE_TYPE(type);
++ }
++ return len;
++}
++
++static unsigned int get_function_decl(tree fndecl, unsigned char *tree_codes)
++{
++ tree arg, result, type = TREE_TYPE(fndecl);
++ enum tree_code code = TREE_CODE(type);
++ size_t len = 0;
++
++ // skip builtins __builtin_constant_p
++ if (DECL_BUILT_IN(fndecl))
++ return 0;
++
++ gcc_assert(code == FUNCTION_TYPE);
++
++ arg = TYPE_ARG_TYPES(type);
++ gcc_assert(arg != NULL_TREE);
++
++ if (TREE_CODE_CLASS(code) == tcc_type)
++ result = type;
++ else
++ result = DECL_RESULT(fndecl);
++
++ gcc_assert(result != NULL_TREE);
++ len = add_type_codes(TREE_TYPE(result), tree_codes, len);
++
++ while (arg && len < CODES_LIMIT) {
++ len = add_type_codes(TREE_VALUE(arg), tree_codes, len);
++ arg = TREE_CHAIN(arg);
++ }
++
++ gcc_assert(len != 0);
++ return len;
++}
++
++static struct size_overflow_hash *get_function_hash(tree fndecl)
++{
++ unsigned int hash;
++ struct size_overflow_hash *entry;
++ unsigned char tree_codes[CODES_LIMIT];
++ size_t len;
++ const char *func_name = NAME(fndecl);
++
++ len = get_function_decl(fndecl, tree_codes);
++ if (len == 0)
++ return NULL;
++
++ hash = get_hash_num(func_name, (const char*) tree_codes, len, 0);
++
++ entry = size_overflow_hash[hash];
++ while (entry) {
++ if (!strcmp(entry->name, func_name))
++ return entry;
++ entry = entry->next;
++ }
++
++ return NULL;
++}
++
++static void check_arg_type(tree var)
++{
++ tree type = TREE_TYPE(var);
++ enum tree_code code = TREE_CODE(type);
++
++ gcc_assert(code == INTEGER_TYPE || code == ENUMERAL_TYPE ||
++ (code == POINTER_TYPE && TREE_CODE(TREE_TYPE(type)) == VOID_TYPE) ||
++ (code == POINTER_TYPE && TREE_CODE(TREE_TYPE(type)) == INTEGER_TYPE));
++}
++
++static int find_arg_number(tree arg, tree func)
++{
++ tree var;
++ bool match = false;
++ unsigned int argnum = 1;
++
++ if (TREE_CODE(arg) == SSA_NAME)
++ arg = SSA_NAME_VAR(arg);
++
++ for (var = DECL_ARGUMENTS(func); var; var = TREE_CHAIN(var)) {
++ if (strcmp(NAME(arg), NAME(var))) {
++ argnum++;
++ continue;
++ }
++ check_arg_type(var);
++
++ match = true;
++ break;
++ }
++ if (!match) {
++ warning(0, "find_arg_number: cannot find the %s argument in %s", NAME(arg), NAME(func));
++ return 0;
++ }
++ return argnum;
++}
++
++static void print_missing_msg(tree func, unsigned int argnum)
++{
++ unsigned int new_hash;
++ size_t len;
++ unsigned char tree_codes[CODES_LIMIT];
++ location_t loc = DECL_SOURCE_LOCATION(func);
++ const char *curfunc = NAME(func);
++
++ len = get_function_decl(func, tree_codes);
++ new_hash = get_hash_num(curfunc, (const char *) tree_codes, len, 0);
++ inform(loc, "Function %s is missing from the size_overflow hash table +%s+%d+%u+", curfunc, curfunc, argnum, new_hash);
++}
++
++static void check_missing_attribute(tree arg)
++{
++ tree type, func = get_original_function_decl(current_function_decl);
++ unsigned int argnum;
++ struct size_overflow_hash *hash;
++
++ gcc_assert(TREE_CODE(arg) != COMPONENT_REF);
++
++ type = TREE_TYPE(arg);
++ // skip function pointers
++ if (TREE_CODE(type) == POINTER_TYPE && TREE_CODE(TREE_TYPE(type)) == FUNCTION_TYPE)
++ return;
++
++ if (lookup_attribute("size_overflow", TYPE_ATTRIBUTES(TREE_TYPE(func))))
++ return;
++
++ argnum = find_arg_number(arg, func);
++ if (argnum == 0)
++ return;
++
++ hash = get_function_hash(func);
++ if (!hash || !(hash->param & (1U << argnum)))
++ print_missing_msg(func, argnum);
++}
++
++static tree create_new_var(tree type)
++{
++ tree new_var = create_tmp_var(type, "cicus");
++
++ add_referenced_var(new_var);
++ mark_sym_for_renaming(new_var);
++ return new_var;
++}
++
++static bool is_bool(tree node)
++{
++ tree type;
++
++ if (node == NULL_TREE)
++ return false;
++
++ type = TREE_TYPE(node);
++ if (!INTEGRAL_TYPE_P(type))
++ return false;
++ if (TREE_CODE(type) == BOOLEAN_TYPE)
++ return true;
++ if (TYPE_PRECISION(type) == 1)
++ return true;
++ return false;
++}
++
++static tree cast_a_tree(tree type, tree var)
++{
++ gcc_assert(type != NULL_TREE && var != NULL_TREE);
++ gcc_assert(fold_convertible_p(type, var));
++
++ return fold_convert(type, var);
++}
++
++static tree signed_cast(tree var)
++{
++ return cast_a_tree(signed_size_overflow_type, var);
++}
++
++static gimple build_cast_stmt(tree type, tree var, tree new_var, location_t loc)
++{
++ gimple assign;
++
++ if (new_var == CREATE_NEW_VAR)
++ new_var = create_new_var(type);
++
++ assign = gimple_build_assign(new_var, cast_a_tree(type, var));
++ gimple_set_location(assign, loc);
++ gimple_set_lhs(assign, make_ssa_name(new_var, assign));
++
++ return assign;
++}
++
++static tree create_assign(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple oldstmt, tree rhs1, bool before)
++{
++ tree oldstmt_rhs1;
++ enum tree_code code;
++ gimple stmt;
++ gimple_stmt_iterator gsi;
++
++ if (!*potentionally_overflowed)
++ return NULL_TREE;
++
++ if (rhs1 == NULL_TREE) {
++ debug_gimple_stmt(oldstmt);
++ error("create_assign: rhs1 is NULL_TREE");
++ gcc_unreachable();
++ }
++
++ oldstmt_rhs1 = gimple_assign_rhs1(oldstmt);
++ code = TREE_CODE(oldstmt_rhs1);
++ if (code == PARM_DECL || (code == SSA_NAME && gimple_code(get_def_stmt(oldstmt_rhs1)) == GIMPLE_NOP))
++ check_missing_attribute(oldstmt_rhs1);
++
++ stmt = build_cast_stmt(signed_size_overflow_type, rhs1, CREATE_NEW_VAR, gimple_location(oldstmt));
++ gsi = gsi_for_stmt(oldstmt);
++ if (lookup_stmt_eh_lp(oldstmt) != 0) {
++ basic_block next_bb, cur_bb;
++ edge e;
++
++ gcc_assert(before == false);
++ gcc_assert(stmt_can_throw_internal(oldstmt));
++ gcc_assert(gimple_code(oldstmt) == GIMPLE_CALL);
++ gcc_assert(!gsi_end_p(gsi));
++
++ cur_bb = gimple_bb(oldstmt);
++ next_bb = cur_bb->next_bb;
++ e = find_edge(cur_bb, next_bb);
++ gcc_assert(e != NULL);
++ gcc_assert(e->flags & EDGE_FALLTHRU);
++
++ gsi = gsi_after_labels(next_bb);
++ gcc_assert(!gsi_end_p(gsi));
++ before = true;
++ }
++ if (before)
++ gsi_insert_before(&gsi, stmt, GSI_NEW_STMT);
++ else
++ gsi_insert_after(&gsi, stmt, GSI_NEW_STMT);
++ update_stmt(stmt);
++ pointer_set_insert(visited, oldstmt);
++ return gimple_get_lhs(stmt);
++}
++
++static tree dup_assign(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple oldstmt, tree rhs1, tree rhs2, tree __unused rhs3)
++{
++ tree new_var, lhs = gimple_get_lhs(oldstmt);
++ gimple stmt;
++ gimple_stmt_iterator gsi;
++
++ if (!*potentionally_overflowed)
++ return NULL_TREE;
++
++ if (gimple_num_ops(oldstmt) != 4 && rhs1 == NULL_TREE) {
++ rhs1 = gimple_assign_rhs1(oldstmt);
++ rhs1 = create_assign(visited, potentionally_overflowed, oldstmt, rhs1, BEFORE_STMT);
++ }
++ if (gimple_num_ops(oldstmt) == 3 && rhs2 == NULL_TREE) {
++ rhs2 = gimple_assign_rhs2(oldstmt);
++ rhs2 = create_assign(visited, potentionally_overflowed, oldstmt, rhs2, BEFORE_STMT);
++ }
++
++ stmt = gimple_copy(oldstmt);
++ gimple_set_location(stmt, gimple_location(oldstmt));
++
++ if (gimple_assign_rhs_code(oldstmt) == WIDEN_MULT_EXPR)
++ gimple_assign_set_rhs_code(stmt, MULT_EXPR);
++
++ if (is_bool(lhs))
++ new_var = SSA_NAME_VAR(lhs);
++ else
++ new_var = create_new_var(signed_size_overflow_type);
++ new_var = make_ssa_name(new_var, stmt);
++ gimple_set_lhs(stmt, new_var);
++
++ if (rhs1 != NULL_TREE) {
++ if (!gimple_assign_cast_p(oldstmt))
++ rhs1 = signed_cast(rhs1);
++ gimple_assign_set_rhs1(stmt, rhs1);
++ }
++
++ if (rhs2 != NULL_TREE)
++ gimple_assign_set_rhs2(stmt, rhs2);
++#if BUILDING_GCC_VERSION >= 4007
++ if (rhs3 != NULL_TREE)
++ gimple_assign_set_rhs3(stmt, rhs3);
++#endif
++ gimple_set_vuse(stmt, gimple_vuse(oldstmt));
++ gimple_set_vdef(stmt, gimple_vdef(oldstmt));
++
++ gsi = gsi_for_stmt(oldstmt);
++ gsi_insert_after(&gsi, stmt, GSI_SAME_STMT);
++ update_stmt(stmt);
++ pointer_set_insert(visited, oldstmt);
++ return gimple_get_lhs(stmt);
++}
++
++static gimple overflow_create_phi_node(gimple oldstmt, tree var)
++{
++ basic_block bb;
++ gimple phi;
++ gimple_stmt_iterator gsi = gsi_for_stmt(oldstmt);
++
++ bb = gsi_bb(gsi);
++
++ phi = create_phi_node(var, bb);
++ gsi = gsi_last(phi_nodes(bb));
++ gsi_remove(&gsi, false);
++
++ gsi = gsi_for_stmt(oldstmt);
++ gsi_insert_after(&gsi, phi, GSI_NEW_STMT);
++ gimple_set_bb(phi, bb);
++ return phi;
++}
++
++static basic_block create_a_first_bb(void)
++{
++ basic_block first_bb;
++
++ first_bb = split_block_after_labels(ENTRY_BLOCK_PTR)->dest;
++ if (dom_info_available_p(CDI_DOMINATORS))
++ set_immediate_dominator(CDI_DOMINATORS, first_bb, ENTRY_BLOCK_PTR);
++ return first_bb;
++}
+
+static gimple cast_old_phi_arg(gimple oldstmt, tree arg, tree new_var, unsigned int i)
+{
+ }
+
+ bb = gimple_phi_arg_edge(oldstmt, i)->src;
++ if (bb->index == 0)
++ bb = create_a_first_bb();
+ gsi = gsi_after_labels(bb);
+ gsi_insert_before(&gsi, newstmt, GSI_NEW_STMT);
+ return newstmt;
+
+ arg = gimple_phi_arg_def(oldstmt, i);
+ if (is_gimple_constant(arg))
-+ arg = signed_cast_constant(arg);
++ arg = signed_cast(arg);
+ lhs = build_new_phi_arg(visited, potentionally_overflowed, arg, new_var);
+ if (lhs == NULL_TREE)
+ lhs = gimple_get_lhs(cast_old_phi_arg(oldstmt, arg, new_var, i));
+ tree rhs1 = gimple_assign_rhs1(def_stmt);
+
+ if (is_gimple_constant(rhs1))
-+ return dup_assign(visited, potentionally_overflowed, def_stmt, signed_cast_constant(rhs1), NULL_TREE, NULL_TREE);
++ return dup_assign(visited, potentionally_overflowed, def_stmt, signed_cast(rhs1), NULL_TREE, NULL_TREE);
+
++ gcc_assert(TREE_CODE(rhs1) != COND_EXPR);
+ switch (TREE_CODE(rhs1)) {
+ case SSA_NAME:
+ return handle_unary_rhs(visited, potentionally_overflowed, var);
+ case BIT_FIELD_REF:
+ case ADDR_EXPR:
+ case COMPONENT_REF:
-+ case COND_EXPR:
+ case INDIRECT_REF:
+#if BUILDING_GCC_VERSION >= 4006
+ case MEM_REF:
+ gsi_insert_after(&gsi, func_stmt, GSI_CONTINUE_LINKING);
+}
+
++static void __unused print_the_code_insertions(gimple stmt)
++{
++ location_t loc = gimple_location(stmt);
++
++ inform(loc, "Integer size_overflow check applied here.");
++}
++
+static void insert_check_size_overflow(gimple stmt, enum tree_code cond_code, tree arg, tree type_value)
+{
+ basic_block cond_bb, join_bb, bb_true;
+ edge e;
+ gimple_stmt_iterator gsi = gsi_for_stmt(stmt);
-+// location_t loc = gimple_location(stmt);
+
+ cond_bb = gimple_bb(stmt);
+ gsi_prev(&gsi);
+ insert_cond(cond_bb, arg, cond_code, type_value);
+ insert_cond_result(bb_true, stmt, arg);
+
-+// inform(loc, "Integer size_overflow check applied here.");
-+}
-+
-+static tree get_type_for_check(tree rhs)
-+{
-+ tree def_rhs;
-+ gimple def_stmt = get_def_stmt(rhs);
-+
-+ if (!gimple_assign_cast_p(def_stmt))
-+ return TREE_TYPE(rhs);
-+ def_rhs = gimple_assign_rhs1(def_stmt);
-+ if (TREE_CODE(TREE_TYPE(def_rhs)) == INTEGER_TYPE)
-+ return TREE_TYPE(def_rhs);
-+ return TREE_TYPE(rhs);
++// print_the_code_insertions(stmt);
+}
+
+static gimple cast_to_unsigned_size_overflow_type(gimple stmt, tree cast_rhs)
+
+static void check_size_overflow(gimple stmt, tree cast_rhs, tree rhs, bool *potentionally_overflowed)
+{
-+ tree type_max, type_min, rhs_type;
++ tree type_max, type_min, rhs_type = TREE_TYPE(rhs);
+ gimple ucast_stmt;
+
+ if (!*potentionally_overflowed)
+ return;
+
-+ rhs_type = get_type_for_check(rhs);
-+
+ if (TYPE_UNSIGNED(rhs_type)) {
+ ucast_stmt = cast_to_unsigned_size_overflow_type(stmt, cast_rhs);
+ type_max = cast_a_tree(unsigned_size_overflow_type, TYPE_MAX_VALUE(rhs_type));
+ insert_check_size_overflow(stmt, GT_EXPR, gimple_get_lhs(ucast_stmt), type_max);
+ } else {
-+ type_max = cast_a_tree(signed_size_overflow_type, TYPE_MAX_VALUE(rhs_type));
++ type_max = signed_cast(TYPE_MAX_VALUE(rhs_type));
+ insert_check_size_overflow(stmt, GT_EXPR, cast_rhs, type_max);
+
-+ type_min = cast_a_tree(signed_size_overflow_type, TYPE_MIN_VALUE(rhs_type));
++ type_min = signed_cast(TYPE_MIN_VALUE(rhs_type));
+ insert_check_size_overflow(stmt, LT_EXPR, cast_rhs, type_min);
+ }
+}
+
-+static tree change_assign_rhs(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple stmt, tree orig_rhs)
++static tree change_assign_rhs(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple stmt, tree orig_rhs, tree new_rhs)
+{
+ gimple assign;
+ gimple_stmt_iterator gsi = gsi_for_stmt(stmt);
-+ tree new_rhs, origtype = TREE_TYPE(orig_rhs);
++ tree origtype = TREE_TYPE(orig_rhs);
+
+ gcc_assert(gimple_code(stmt) == GIMPLE_ASSIGN);
+
-+ new_rhs = expand(visited, potentionally_overflowed, orig_rhs);
-+ if (new_rhs == NULL_TREE)
-+ return NULL_TREE;
-+
+ assign = build_cast_stmt(origtype, new_rhs, CREATE_NEW_VAR, gimple_location(stmt));
+ gsi_insert_before(&gsi, assign, GSI_SAME_STMT);
+ update_stmt(assign);
+ return gimple_get_lhs(assign);
+}
+
-+static tree handle_const_assign(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple def_stmt, tree var, tree rhs, tree new_rhs1, tree new_rhs2, void (*gimple_assign_set_rhs)(gimple, tree))
++static tree handle_const_assign(struct pointer_set_t *visited, bool *potentionally_overflowed, gimple def_stmt, tree var, tree orig_rhs, tree var_rhs, tree new_rhs1, tree new_rhs2, void (*gimple_assign_set_rhs)(gimple, tree))
+{
-+ tree new_rhs, cast_rhs;
++ tree new_rhs;
+
+ if (gimple_assign_rhs_code(def_stmt) == MIN_EXPR)
+ return dup_assign(visited, potentionally_overflowed, def_stmt, new_rhs1, new_rhs2, NULL_TREE);
+
-+ new_rhs = change_assign_rhs(visited, potentionally_overflowed, def_stmt, rhs);
-+ if (new_rhs != NULL_TREE) {
-+ gimple_assign_set_rhs(def_stmt, new_rhs);
-+ update_stmt(def_stmt);
++ if (var_rhs == NULL_TREE)
++ return create_assign(visited, potentionally_overflowed, def_stmt, var, AFTER_STMT);
+
-+ cast_rhs = gimple_assign_rhs1(get_def_stmt(new_rhs));
++ new_rhs = change_assign_rhs(visited, potentionally_overflowed, def_stmt, orig_rhs, var_rhs);
++ gimple_assign_set_rhs(def_stmt, new_rhs);
++ update_stmt(def_stmt);
+
-+ check_size_overflow(def_stmt, cast_rhs, rhs, potentionally_overflowed);
-+ }
++ check_size_overflow(def_stmt, var_rhs, orig_rhs, potentionally_overflowed);
+ return create_assign(visited, potentionally_overflowed, def_stmt, var, AFTER_STMT);
+}
+
+ case ROUND_MOD_EXPR:
+ case EXACT_DIV_EXPR:
+ case POINTER_PLUS_EXPR:
++ case BIT_AND_EXPR:
+ return create_assign(visited, potentionally_overflowed, def_stmt, var, AFTER_STMT);
+ default:
+ break;
+ new_rhs2 = expand(visited, potentionally_overflowed, rhs2);
+
+ if (is_gimple_constant(rhs2))
-+ return handle_const_assign(visited, potentionally_overflowed, def_stmt, var, rhs1, new_rhs1, signed_cast_constant(rhs2), &gimple_assign_set_rhs1);
++ return handle_const_assign(visited, potentionally_overflowed, def_stmt, var, rhs1, new_rhs1, new_rhs1, signed_cast(rhs2), &gimple_assign_set_rhs1);
+
+ if (is_gimple_constant(rhs1))
-+ return handle_const_assign(visited, potentionally_overflowed, def_stmt, var, rhs2, signed_cast_constant(rhs1), new_rhs2, &gimple_assign_set_rhs2);
++ return handle_const_assign(visited, potentionally_overflowed, def_stmt, var, rhs2, new_rhs2, signed_cast(rhs1), new_rhs2, &gimple_assign_set_rhs2);
+
+ return dup_assign(visited, potentionally_overflowed, def_stmt, new_rhs1, new_rhs2, NULL_TREE);
+}
+static tree get_new_rhs(struct pointer_set_t *visited, bool *potentionally_overflowed, tree rhs)
+{
+ if (is_gimple_constant(rhs))
-+ return signed_cast_constant(rhs);
++ return signed_cast(rhs);
+ if (TREE_CODE(rhs) != SSA_NAME)
+ return NULL_TREE;
+ return expand(visited, potentionally_overflowed, rhs);
+ if (TREE_CODE(var) == ADDR_EXPR)
+ return NULL_TREE;
+
-+ gcc_assert(code == INTEGER_TYPE || code == POINTER_TYPE || code == BOOLEAN_TYPE);
++ gcc_assert(code == INTEGER_TYPE || code == POINTER_TYPE || code == BOOLEAN_TYPE || code == ENUMERAL_TYPE);
+ if (code != INTEGER_TYPE)
+ return NULL_TREE;
+
+static void handle_function_arg(gimple stmt, tree fndecl, unsigned int argnum)
+{
+ struct pointer_set_t *visited;
-+ tree arg, newarg, type_max;
-+ gimple ucast_stmt;
++ tree arg, newarg;
+ bool potentionally_overflowed;
+
+ arg = get_function_arg(argnum, stmt, fndecl);
+
+ change_function_arg(stmt, arg, argnum, newarg);
+
-+ ucast_stmt = cast_to_unsigned_size_overflow_type(stmt, newarg);
-+
-+ type_max = build_int_cstu(unsigned_size_overflow_type, 0x7fffffff);
-+ insert_check_size_overflow(stmt, GT_EXPR, gimple_get_lhs(ucast_stmt), type_max);
++ check_size_overflow(stmt, newarg, arg, &potentionally_overflowed);
+}
+
+static void handle_function_by_attribute(gimple stmt, tree attr, tree fndecl)
+
+static void handle_function_by_hash(gimple stmt, tree fndecl)
+{
++ tree orig_fndecl;
++ unsigned int num;
+ struct size_overflow_hash *hash;
-+ expanded_location xloc;
-+
-+ hash = get_function_hash(fndecl);
-+ xloc = expand_location(DECL_SOURCE_LOCATION(fndecl));
+
-+ fndecl = get_original_function_decl(fndecl);
-+ if (!hash->name)
-+ return;
-+ if (file_match && !hash->file)
-+ return;
-+ if (strcmp(hash->name, NAME(fndecl)))
++ orig_fndecl = get_original_function_decl(fndecl);
++ hash = get_function_hash(orig_fndecl);
++ if (!hash)
+ return;
-+ if (file_match && strcmp(hash->file, xloc.file))
-+ return;
-+
-+#define search_param(argnum) \
-+ if (hash->param##argnum) \
-+ handle_function_arg(stmt, fndecl, argnum - 1);
+
-+ search_param(1);
-+ search_param(2);
-+ search_param(3);
-+ search_param(4);
-+ search_param(5);
-+ search_param(6);
-+ search_param(7);
-+ search_param(8);
-+ search_param(9);
-+#undef search_param
++ for (num = 1; num <= MAX_PARAM; num++)
++ if (hash->param & (1U << num))
++ handle_function_arg(stmt, fndecl, num - 1);
+}
+
+static unsigned int handle_function(void)
+ DECL_ARTIFICIAL(report_size_overflow_decl) = 1;
+}
+
-+extern struct gimple_opt_pass pass_dce;
-+
+int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
+{
+ int i;
+ if (!strcmp(argv[i].key, "no-size-overflow")) {
+ enable = false;
+ continue;
-+ } else if (!(strcmp(argv[i].key, "no-file-match"))) {
-+ file_match = false;
-+ continue;
+ }
+ error(G_("unkown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key);
+ }
break;
}
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
-index 7858228..2919715 100644
+index 9739b53..6d457e3 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -75,7 +75,7 @@ LIST_HEAD(vm_list);
struct kmem_cache *kvm_vcpu_cache;
EXPORT_SYMBOL_GPL(kvm_vcpu_cache);
-@@ -2318,7 +2318,7 @@ static void hardware_enable_nolock(void *junk)
+@@ -2247,7 +2247,7 @@ static void hardware_enable_nolock(void *junk)
if (r) {
cpumask_clear_cpu(cpu, cpus_hardware_enabled);
printk(KERN_INFO "kvm: enabling virtualization on "
"CPU%d failed\n", cpu);
}
-@@ -2372,10 +2372,10 @@ static int hardware_enable_all(void)
+@@ -2301,10 +2301,10 @@ static int hardware_enable_all(void)
kvm_usage_count++;
if (kvm_usage_count == 1) {
hardware_disable_all_nolock();
r = -EBUSY;
}
-@@ -2738,7 +2738,7 @@ static void kvm_sched_out(struct preempt_notifier *pn,
+@@ -2667,7 +2667,7 @@ static void kvm_sched_out(struct preempt_notifier *pn,
kvm_arch_vcpu_put(vcpu);
}
struct module *module)
{
int r;
-@@ -2801,7 +2801,7 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
+@@ -2730,7 +2730,7 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
if (!vcpu_align)
vcpu_align = __alignof__(struct kvm_vcpu);
kvm_vcpu_cache = kmem_cache_create("kvm_vcpu", vcpu_size, vcpu_align,
if (!kvm_vcpu_cache) {
r = -ENOMEM;
goto out_free_3;
-@@ -2811,9 +2811,11 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
+@@ -2740,9 +2740,11 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
if (r)
goto out_free;